From c1fe9aad298caf0e8e8eaf0980bae7403fc8b103 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 14 Jun 2026 18:35:51 -0700 Subject: [PATCH 1/2] chore: regenerate aiplatform client --- .../v1/2.0.0/README.md | 4 +- .../GoogleCloudAiplatformV1GoogleMaps.java | 12 +- ...gleCloudAiplatformV1GroundingMetadata.java | 12 +- ...oogleCloudAiplatformV1ToolComputerUse.java | 24 + .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- .../v1beta1/2.0.0/README.md | 4 +- .../aiplatform/v1beta1/Aiplatform.java | 100409 ++++++++------- .../GenaiVertexV1beta1AgentInteraction.java | 25 +- .../model/GenaiVertexV1beta1AudioContent.java | 4 +- .../model/GenaiVertexV1beta1AudioDelta.java | 4 +- ...GenaiVertexV1beta1AudioResponseFormat.java | 6 +- ...rtexV1beta1CodeExecutionResultContent.java | 2 +- ...VertexV1beta1CodeExecutionResultDelta.java | 2 +- ...iVertexV1beta1CodeExecutionResultStep.java | 2 +- ...naiVertexV1beta1CodeMenderAgentConfig.java | 138 + ...beta1CodeMenderAgentConfigFileContent.java | 90 + ...beta1CodeMenderAgentConfigFindRequest.java | 126 + ...1beta1CodeMenderAgentConfigFixRequest.java | 129 + ...ta1CodeMenderAgentConfigSessionConfig.java | 117 + .../model/GenaiVertexV1beta1ComputerUse.java | 2 +- ...iVertexV1beta1DeepResearchAgentConfig.java | 6 +- .../GenaiVertexV1beta1DocumentContent.java | 2 +- .../GenaiVertexV1beta1DocumentDelta.java | 2 +- .../GenaiVertexV1beta1ExaAISearchConfig.java | 90 + .../model/GenaiVertexV1beta1FileCitation.java | 10 +- .../model/GenaiVertexV1beta1FileSearch.java | 6 +- ...naiVertexV1beta1FunctionResultContent.java | 2 +- ...GenaiVertexV1beta1FunctionResultDelta.java | 8 +- .../GenaiVertexV1beta1FunctionResultStep.java | 8 +- .../GenaiVertexV1beta1GenerationConfig.java | 71 +- .../model/GenaiVertexV1beta1GoogleMaps.java | 2 +- ...ogleMapsResultContentGoogleMapsResult.java | 2 +- ...psResultContentGoogleMapsResultPlaces.java | 4 +- ...gleMapsResultStepGoogleMapsResultItem.java | 2 +- ...eMapsResultItemGoogleMapsResultPlaces.java | 4 +- .../model/GenaiVertexV1beta1GoogleSearch.java | 2 +- ...iVertexV1beta1GoogleSearchCallContent.java | 2 +- ...enaiVertexV1beta1GoogleSearchCallStep.java | 2 +- ...ertexV1beta1GoogleSearchResultContent.java | 2 +- ...SearchResultContentGoogleSearchResult.java | 2 +- ...iVertexV1beta1GoogleSearchResultDelta.java | 2 +- ...aiVertexV1beta1GoogleSearchResultStep.java | 2 +- ...earchResultStepGoogleSearchResultItem.java | 2 +- .../model/GenaiVertexV1beta1ImageConfig.java | 4 +- .../model/GenaiVertexV1beta1ImageContent.java | 2 +- .../model/GenaiVertexV1beta1ImageDelta.java | 2 +- ...GenaiVertexV1beta1ImageResponseFormat.java | 6 +- .../model/GenaiVertexV1beta1Interaction.java | 62 +- ...iVertexV1beta1InteractionStatusUpdate.java | 2 +- ...ertexV1beta1InteractionStreamingEvent.java | 2 +- .../GenaiVertexV1beta1InteractionUsage.java | 22 +- .../model/GenaiVertexV1beta1McpServer.java | 2 +- ...VertexV1beta1McpServerToolCallContent.java | 2 +- ...aiVertexV1beta1McpServerToolCallDelta.java | 2 +- ...naiVertexV1beta1McpServerToolCallStep.java | 2 +- ...rtexV1beta1McpServerToolResultContent.java | 2 +- ...VertexV1beta1McpServerToolResultDelta.java | 8 +- ...iVertexV1beta1McpServerToolResultStep.java | 8 +- .../GenaiVertexV1beta1ModelInteraction.java | 35 +- ...aiVertexV1beta1ParallelAISearchConfig.java | 90 + .../GenaiVertexV1beta1PlaceCitation.java | 4 +- .../GenaiVertexV1beta1RagStoreConfig.java | 138 + ...ertexV1beta1RagStoreConfigRagResource.java | 90 + ...beta1RagStoreConfigRagRetrievalConfig.java | 138 + ...agStoreConfigRagRetrievalConfigFilter.java | 114 + ...eConfigRagRetrievalConfigHybridSearch.java | 66 + ...gStoreConfigRagRetrievalConfigRanking.java | 66 + ...gRagRetrievalConfigRankingRankService.java | 66 + .../GenaiVertexV1beta1ResponseFormatList.java | 2 +- .../model/GenaiVertexV1beta1Retrieval.java | 74 +- .../GenaiVertexV1beta1ReviewSnippet.java | 2 +- .../v1beta1/model/GenaiVertexV1beta1Step.java | 3 + .../GenaiVertexV1beta1StreamMetadata.java | 12 +- ...naiVertexV1beta1TextContentAnnotation.java | 10 +- .../GenaiVertexV1beta1TextResponseFormat.java | 2 +- .../model/GenaiVertexV1beta1ThoughtStep.java | 12 +- ...GenaiVertexV1beta1ThoughtSummaryDelta.java | 6 +- .../GenaiVertexV1beta1ToolChoiceConfig.java | 2 +- .../GenaiVertexV1beta1ToolResultContent.java | 2 +- .../GenaiVertexV1beta1ToolResultDelta.java | 2 +- .../GenaiVertexV1beta1ToolResultStep.java | 2 +- ...iVertexV1beta1UrlContextResultContent.java | 2 +- ...naiVertexV1beta1UrlContextResultDelta.java | 2 +- ...enaiVertexV1beta1UrlContextResultStep.java | 2 +- .../model/GenaiVertexV1beta1VideoContent.java | 2 +- .../model/GenaiVertexV1beta1VideoDelta.java | 2 +- ...formV1beta1AgentAnomalyDetectionScope.java | 177 + ...leCloudAiplatformV1beta1AgentResource.java | 117 + ...eta1AggregateAnalyzedSessionsResponse.java | 117 + ...nalyzedSessionsResponseAgentAggregate.java | 255 + ...udAiplatformV1beta1AnalyzedInvocation.java | 138 + ...CloudAiplatformV1beta1AnalyzedSession.java | 333 + ...V1beta1AnalyzedSessionSeveritySummary.java | 147 + ...oogleCloudAiplatformV1beta1Assessment.java | 66 + ...tformV1beta1AssessmentDetectorFinding.java | 186 + ...rmV1beta1DisableMonitoredAgentRequest.java | 42 + ...ormV1beta1EnableMonitoredAgentRequest.java | 42 + ...oogleCloudAiplatformV1beta1GoogleMaps.java | 12 +- ...oudAiplatformV1beta1GroundingMetadata.java | 12 +- 100 files changed, 55146 insertions(+), 48929 deletions(-) create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfig.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigFileContent.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigFindRequest.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigFixRequest.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ExaAISearchConfig.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ParallelAISearchConfig.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfig.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagResource.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentResource.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedInvocation.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSession.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Assessment.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AssessmentDetectorFinding.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest.java 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 fcd0721f2c1..72e1e2082b8 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-rev20260605-2.0.0 + v1-rev20260609-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260605-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260609-2.0.0' } ``` diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GoogleMaps.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GoogleMaps.java index a040202cfde..c4acaf1a0d6 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GoogleMaps.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GoogleMaps.java @@ -30,14 +30,18 @@ public final class GoogleCloudAiplatformV1GoogleMaps extends com.google.api.client.json.GenericJson { /** - * Optional. If true, include the widget context token in the response. + * Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps + * is being deprecated; this field is planned for removal and no longer has any effect once + * removed. If true, include the widget context token in the response. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean enableWidget; /** - * Optional. If true, include the widget context token in the response. + * Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps + * is being deprecated; this field is planned for removal and no longer has any effect once + * removed. If true, include the widget context token in the response. * @return value or {@code null} for none */ public java.lang.Boolean getEnableWidget() { @@ -45,7 +49,9 @@ public java.lang.Boolean getEnableWidget() { } /** - * Optional. If true, include the widget context token in the response. + * Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps + * is being deprecated; this field is planned for removal and no longer has any effect once + * removed. If true, include the widget context token in the response. * @param enableWidget enableWidget or {@code null} for none */ public GoogleCloudAiplatformV1GoogleMaps setEnableWidget(java.lang.Boolean enableWidget) { diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GroundingMetadata.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GroundingMetadata.java index 90967cec9e5..37b53a72f15 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GroundingMetadata.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1GroundingMetadata.java @@ -32,7 +32,9 @@ public final class GoogleCloudAiplatformV1GroundingMetadata extends com.google.api.client.json.GenericJson { /** - * Optional. Output only. A token that can be used to render a Google Maps widget with the + * Optional. Output only. Deprecated: The Google Maps contextual widget behavior in Grounding with + * Google Maps is being deprecated; this field is planned for removal and will no longer be + * populated once removed. A token that can be used to render a Google Maps widget with the * contextual data. This field is populated only when the grounding source is Google Maps. * The value may be {@code null}. */ @@ -102,7 +104,9 @@ public final class GoogleCloudAiplatformV1GroundingMetadata extends com.google.a private java.util.List webSearchQueries; /** - * Optional. Output only. A token that can be used to render a Google Maps widget with the + * Optional. Output only. Deprecated: The Google Maps contextual widget behavior in Grounding with + * Google Maps is being deprecated; this field is planned for removal and will no longer be + * populated once removed. A token that can be used to render a Google Maps widget with the * contextual data. This field is populated only when the grounding source is Google Maps. * @return value or {@code null} for none */ @@ -111,7 +115,9 @@ public java.lang.String getGoogleMapsWidgetContextToken() { } /** - * Optional. Output only. A token that can be used to render a Google Maps widget with the + * Optional. Output only. Deprecated: The Google Maps contextual widget behavior in Grounding with + * Google Maps is being deprecated; this field is planned for removal and will no longer be + * populated once removed. A token that can be used to render a Google Maps widget with the * contextual data. This field is populated only when the grounding source is Google Maps. * @param googleMapsWidgetContextToken googleMapsWidgetContextToken or {@code null} for none */ diff --git a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ToolComputerUse.java b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ToolComputerUse.java index fe8ff3025c0..1100f1364ab 100644 --- a/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ToolComputerUse.java +++ b/clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1ToolComputerUse.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1ToolComputerUse extends com.google.api.client.json.GenericJson { + /** + * Optional. Enables the prompt injection detection check on computer-use request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enablePromptInjectionDetection; + /** * Required. The environment being operated. * The value may be {@code null}. @@ -47,6 +54,23 @@ public final class GoogleCloudAiplatformV1ToolComputerUse extends com.google.api @com.google.api.client.util.Key private java.util.List excludedPredefinedFunctions; + /** + * Optional. Enables the prompt injection detection check on computer-use request. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnablePromptInjectionDetection() { + return enablePromptInjectionDetection; + } + + /** + * Optional. Enables the prompt injection detection check on computer-use request. + * @param enablePromptInjectionDetection enablePromptInjectionDetection or {@code null} for none + */ + public GoogleCloudAiplatformV1ToolComputerUse setEnablePromptInjectionDetection(java.lang.Boolean enablePromptInjectionDetection) { + this.enablePromptInjectionDetection = enablePromptInjectionDetection; + return this; + } + /** * Required. The environment being operated. * @return value or {@code null} for none 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 dc43187b26d..c8bdc553209 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-rev20260605-2.0.0 - Agent Platform API v1-rev20260605-2.0.0 + v1-rev20260609-2.0.0 + Agent Platform API v1-rev20260609-2.0.0 jar 2011 diff --git a/clients/google-api-services-aiplatform/v1/README.md b/clients/google-api-services-aiplatform/v1/README.md index fcd0721f2c1..72e1e2082b8 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-rev20260605-2.0.0 + v1-rev20260609-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260605-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1-rev20260609-2.0.0' } ``` 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 a6c371d8cd9..083c6aee1ca 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-rev20260605-2.0.0 + v1beta1-rev20260609-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260605-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260609-2.0.0' } ``` 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 1986e9e9775..faae0d6b676 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 @@ -28591,7 +28591,7 @@ public GetPoll setName(java.lang.String name) { } /** Optional. If true, includes the input in the response. */ - @com.google.api.client.util.Key("include_input") + @com.google.api.client.util.Key private java.lang.Boolean includeInput; /** Optional. If true, includes the input in the response. @@ -28610,7 +28610,7 @@ public GetPoll setIncludeInput(java.lang.Boolean includeInput) { * Optional. If set, resumes the interaction stream from the chunk after the event marked by * the event id. Can only be used if `stream` is true. */ - @com.google.api.client.util.Key("last_event_id") + @com.google.api.client.util.Key private java.lang.String lastEventId; /** Optional. If set, resumes the interaction stream from the chunk after the event marked by the event @@ -28785,7 +28785,7 @@ public GetStream setName(java.lang.String name) { } /** Optional. If true, includes the input in the response. */ - @com.google.api.client.util.Key("include_input") + @com.google.api.client.util.Key private java.lang.Boolean includeInput; /** Optional. If true, includes the input in the response. @@ -28804,7 +28804,7 @@ public GetStream setIncludeInput(java.lang.Boolean includeInput) { * Optional. If set, resumes the interaction stream from the chunk after the event marked by * the event id. Can only be used if `stream` is true. */ - @com.google.api.client.util.Key("last_event_id") + @com.google.api.client.util.Key private java.lang.String lastEventId; /** Optional. If set, resumes the interaction stream from the chunk after the event marked by the event @@ -46173,39 +46173,39 @@ public UpdateSemanticGovernancePolicyEngine set(String parameterName, Object val } /** - * An accessor for creating requests from the Agents collection. + * An accessor for creating requests from the AgentAnomalyDetectionScopes collection. * *

The typical use is:

*
        *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.Agents.List request = aiplatform.agents().list(parameters ...)}
+       *   {@code Aiplatform.AgentAnomalyDetectionScopes.List request = aiplatform.agentAnomalyDetectionScopes().list(parameters ...)}
        * 
* * @return the resource collection */ - public Agents agents() { - return new Agents(); + public AgentAnomalyDetectionScopes agentAnomalyDetectionScopes() { + return new AgentAnomalyDetectionScopes(); } /** - * The "agents" collection of methods. + * The "agentAnomalyDetectionScopes" collection of methods. */ - public class Agents { + public class AgentAnomalyDetectionScopes { /** - * Creates an agent. + * Creates a new AgentAnomalyDetectionScope. * - * Create a request for the method "agents.create". + * Create a request for the method "agentAnomalyDetectionScopes.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 agent in. Format: - * `projects/{project}/locations/{location}`. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent} + * @param parent Required. The resource name of the Location to create the AgentAnomalyDetectionScope in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; @@ -46213,15 +46213,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}/agents"; + private static final String REST_PATH = "v1beta1/{+parent}/agentAnomalyDetectionScopes"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates an agent. + * Creates a new AgentAnomalyDetectionScope. * - * Create a request for the method "agents.create". + * Create a request for the method "agentAnomalyDetectionScopes.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. @@ -46229,12 +46229,12 @@ public class Create extends AiplatformRequest * - * @param parent Required. The resource name of the location to create the agent in. Format: - * `projects/{project}/locations/{location}`. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent} + * @param parent Required. The resource name of the Location to create the AgentAnomalyDetectionScope in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent content) { + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope 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()) { @@ -46300,22 +46300,22 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the location to create the agent in. Format: - * `projects/{project}/locations/{location}`. + * Required. The resource name of the Location to create the AgentAnomalyDetectionScope + * 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 agent in. Format: - `projects/{project}/locations/{location}`. + /** Required. The resource name of the Location to create the AgentAnomalyDetectionScope in. Format: + `projects/{project}/locations/{location}` */ public java.lang.String getParent() { return parent; } /** - * Required. The resource name of the location to create the agent in. Format: - * `projects/{project}/locations/{location}`. + * Required. The resource name of the Location to create the AgentAnomalyDetectionScope + * in. Format: `projects/{project}/locations/{location}` */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -46327,21 +46327,47 @@ public Create setParent(java.lang.String parent) { return this; } + /** + * Required. The ID to use for the AgentAnomalyDetectionScope, which will become the final + * component of the AgentAnomalyDetectionScope's resource name. This value should be 1-63 + * characters, and valid characters are /[a-z]([a-z0-9-]{0,61}[a-z0-9])?/. + */ + @com.google.api.client.util.Key + private java.lang.String agentAnomalyDetectionScopeId; + + /** Required. The ID to use for the AgentAnomalyDetectionScope, which will become the final component + of the AgentAnomalyDetectionScope's resource name. This value should be 1-63 characters, and valid + characters are /[a-z]([a-z0-9-]{0,61}[a-z0-9])?/. + */ + public java.lang.String getAgentAnomalyDetectionScopeId() { + return agentAnomalyDetectionScopeId; + } + + /** + * Required. The ID to use for the AgentAnomalyDetectionScope, which will become the final + * component of the AgentAnomalyDetectionScope's resource name. This value should be 1-63 + * characters, and valid characters are /[a-z]([a-z0-9-]{0,61}[a-z0-9])?/. + */ + public Create setAgentAnomalyDetectionScopeId(java.lang.String agentAnomalyDetectionScopeId) { + this.agentAnomalyDetectionScopeId = agentAnomalyDetectionScopeId; + return this; + } + @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** - * Deletes an agent. + * Deletes a specific AgentAnomalyDetectionScope. * - * Create a request for the method "agents.delete". + * Create a request for the method "agentAnomalyDetectionScopes.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 agent to delete. Format: - * `projects/{project}/locations/{location}/agents/{agent}`. + * @param name Required. The name of the AgentAnomalyDetectionScope resource to be deleted. Format: `projects/{proj + * ect}/locations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -46355,12 +46381,12 @@ public class Delete extends AiplatformRequest * - * @param name Required. The resource name of the agent to delete. Format: - * `projects/{project}/locations/{location}/agents/{agent}`. + * @param name Required. The name of the AgentAnomalyDetectionScope resource to be deleted. Format: `projects/{proj + * ect}/locations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` * @since 1.13 */ protected Delete(java.lang.String name) { @@ -46378,7 +46404,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/[^/]+/agents/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agentAnomalyDetectionScopes/[^/]+$"); } } @@ -46438,28 +46464,30 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the agent to delete. Format: - * `projects/{project}/locations/{location}/agents/{agent}`. + * Required. The name of the AgentAnomalyDetectionScope resource to be deleted. Format: `p + * rojects/{project}/locations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detec + * tion_scope}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the agent to delete. Format: - `projects/{project}/locations/{location}/agents/{agent}`. + /** Required. The name of the AgentAnomalyDetectionScope resource to be deleted. Format: `projects/{pro + ject}/locations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the agent to delete. Format: - * `projects/{project}/locations/{location}/agents/{agent}`. + * Required. The name of the AgentAnomalyDetectionScope resource to be deleted. Format: `p + * rojects/{project}/locations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detec + * tion_scope}` */ 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/[^/]+/agents/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agentAnomalyDetectionScopes/[^/]+$"); } this.name = name; return this; @@ -46471,15 +46499,15 @@ public Delete set(String parameterName, Object value) { } } /** - * Retrieves an agent. + * Gets the details of a specific AgentAnomalyDetectionScope. * - * Create a request for the method "agents.get". + * Create a request for the method "agentAnomalyDetectionScopes.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 agent to retrieve. Format: - * `projects/{project}/locations/{location}/agents/{agent}`. + * @param name Required. The name of the AgentAnomalyDetectionScope resource. Format: `projects/{project}/locations + * /{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -46488,34 +46516,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/[^/]+/agents/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agentAnomalyDetectionScopes/[^/]+$"); /** - * Retrieves an agent. + * Gets the details of a specific AgentAnomalyDetectionScope. * - * Create a request for the method "agents.get". + * Create a request for the method "agentAnomalyDetectionScopes.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 agent to retrieve. Format: - * `projects/{project}/locations/{location}/agents/{agent}`. + * @param name Required. The name of the AgentAnomalyDetectionScope resource. Format: `projects/{project}/locations + * /{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agentAnomalyDetectionScopes/[^/]+$"); } } @@ -46585,28 +46613,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the agent to retrieve. Format: - * `projects/{project}/locations/{location}/agents/{agent}`. + * Required. The name of the AgentAnomalyDetectionScope resource. Format: `projects/{proje + * ct}/locations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the agent to retrieve. Format: - `projects/{project}/locations/{location}/agents/{agent}`. + /** Required. The name of the AgentAnomalyDetectionScope resource. Format: `projects/{project}/location + s/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the agent to retrieve. Format: - * `projects/{project}/locations/{location}/agents/{agent}`. + * Required. The name of the AgentAnomalyDetectionScope resource. Format: `projects/{proje + * ct}/locations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` */ 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/[^/]+/agents/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agentAnomalyDetectionScopes/[^/]+$"); } this.name = name; return this; @@ -46618,15 +46646,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists agents in a location. + * Lists AgentAnomalyDetectionScopes in a Location. * - * Create a request for the method "agents.list". + * Create a request for the method "agentAnomalyDetectionScopes.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 agents from. Format: - * `projects/{project}/locations/{location}`. + * @param parent Required. The resource name of the Location to list the AgentAnomalyDetectionScopes from. Format: + * `projects/{project}/locations/{location}` * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -46635,29 +46663,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}/agents"; + private static final String REST_PATH = "v1beta1/{+parent}/agentAnomalyDetectionScopes"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Lists agents in a location. + * Lists AgentAnomalyDetectionScopes in a Location. * - * Create a request for the method "agents.list". + * Create a request for the method "agentAnomalyDetectionScopes.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 agents from. Format: - * `projects/{project}/locations/{location}`. + * @param parent Required. The resource name of the Location to list the AgentAnomalyDetectionScopes 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.GoogleCloudAiplatformV1beta1ListAgentsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListAgentAnomalyDetectionScopesResponse.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(), @@ -46732,22 +46760,22 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the location to list agents from. Format: - * `projects/{project}/locations/{location}`. + * Required. The resource name of the Location to list the AgentAnomalyDetectionScopes + * 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 agents from. Format: - `projects/{project}/locations/{location}`. + /** Required. The resource name of the Location to list the AgentAnomalyDetectionScopes from. Format: + `projects/{project}/locations/{location}` */ public java.lang.String getParent() { return parent; } /** - * Required. The resource name of the location to list agents from. Format: - * `projects/{project}/locations/{location}`. + * Required. The resource name of the Location to list the AgentAnomalyDetectionScopes + * from. Format: `projects/{project}/locations/{location}` */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -46760,74 +46788,41 @@ public List setParent(java.lang.String parent) { } /** - * Optional. A comma-separated list of fields to order by. Supported fields: * - * `create_time` * `update_time` Use `desc` after a field name for descending order. - * Example: `create_time desc`. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. A comma-separated list of fields to order by. Supported fields: * `create_time` * - `update_time` Use `desc` after a field name for descending order. Example: `create_time desc`. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Optional. A comma-separated list of fields to order by. Supported fields: * - * `create_time` * `update_time` Use `desc` after a field name for descending order. - * Example: `create_time desc`. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Optional. The maximum number of agents to return. The service may return fewer than - * this value. The maximum page size is 100; values above 100 will be coerced to 100. If - * unspecified, the default page size is 10. + * Optional. The standard list page size. The maximum value is 100; values above 100 will + * be coerced to 100. If unspecified, at most 10 AgentAnomalyDetectionScopes will be + * returned. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The maximum number of agents to return. The service may return fewer than this value. The - maximum page size is 100; values above 100 will be coerced to 100. If unspecified, the default page - size is 10. + /** Optional. The standard list page size. The maximum value is 100; values above 100 will be coerced + to 100. If unspecified, at most 10 AgentAnomalyDetectionScopes will be returned. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * Optional. The maximum number of agents to return. The service may return fewer than - * this value. The maximum page size is 100; values above 100 will be coerced to 100. If - * unspecified, the default page size is 10. + * Optional. The standard list page size. The maximum value is 100; values above 100 will + * be coerced to 100. If unspecified, at most 10 AgentAnomalyDetectionScopes will be + * returned. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** - * Optional. A page token, received from a previous AgentService.ListAgents call. Provide - * this to retrieve the subsequent page. - */ + /** Optional. The standard list page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A page token, received from a previous AgentService.ListAgents call. Provide this to - retrieve the subsequent page. + /** Optional. The standard list page token. */ public java.lang.String getPageToken() { return pageToken; } - /** - * Optional. A page token, received from a previous AgentService.ListAgents call. Provide - * this to retrieve the subsequent page. - */ + /** Optional. The standard list page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; @@ -46839,35 +46834,35 @@ public List set(String parameterName, Object value) { } } /** - * Updates an agent. + * Updates an existing AgentAnomalyDetectionScope. * - * Create a request for the method "agents.patch". + * Create a request for the method "agentAnomalyDetectionScopes.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 agent. Format: - * `projects/{project}/locations/{location}/agents/{agent}`. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent} + * @param name Identifier. The resource name of the AgentAnomalyDetectionScope. Format: `projects/{project}/locatio + * ns/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; } - public class Patch extends AiplatformRequest { + 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/[^/]+/agents/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agentAnomalyDetectionScopes/[^/]+$"); /** - * Updates an agent. + * Updates an existing AgentAnomalyDetectionScope. * - * Create a request for the method "agents.patch". + * Create a request for the method "agentAnomalyDetectionScopes.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. @@ -46875,18 +46870,18 @@ public class Patch extends AiplatformRequest * - * @param name Identifier. The resource name of the agent. Format: - * `projects/{project}/locations/{location}/agents/{agent}`. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent} + * @param name Identifier. The resource name of the AgentAnomalyDetectionScope. Format: `projects/{project}/locatio + * ns/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent.class); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope 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/[^/]+/agents/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agentAnomalyDetectionScopes/[^/]+$"); } } @@ -46946,44 +46941,51 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Identifier. The resource name of the agent. Format: - * `projects/{project}/locations/{location}/agents/{agent}`. + * Identifier. The resource name of the AgentAnomalyDetectionScope. Format: `projects/{pro + * ject}/locations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. The resource name of the agent. Format: - `projects/{project}/locations/{location}/agents/{agent}`. + /** Identifier. The resource name of the AgentAnomalyDetectionScope. Format: `projects/{project}/locati + ons/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` */ public java.lang.String getName() { return name; } /** - * Identifier. The resource name of the agent. Format: - * `projects/{project}/locations/{location}/agents/{agent}`. + * Identifier. The resource name of the AgentAnomalyDetectionScope. Format: `projects/{pro + * ject}/locations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` */ 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/agentAnomalyDetectionScopes/[^/]+$"); } this.name = name; return this; } - /** Optional. The list of fields to update. If not present, all fields are updated. */ + /** + * Optional. The list of fields to update. Supported paths: `display_name`, `auto_enroll`, + * `log_buckets`, `observability_buckets`. + */ @com.google.api.client.util.Key private String updateMask; - /** Optional. The list of fields to update. If not present, all fields are updated. + /** Optional. The list of fields to update. Supported paths: `display_name`, `auto_enroll`, + `log_buckets`, `observability_buckets`. */ public String getUpdateMask() { return updateMask; } - /** Optional. The list of fields to update. If not present, all fields are updated. */ + /** + * Optional. The list of fields to update. Supported paths: `display_name`, `auto_enroll`, + * `log_buckets`, `observability_buckets`. + */ public Patch setUpdateMask(String updateMask) { this.updateMask = updateMask; return this; @@ -46995,714 +46997,902 @@ public Patch set(String parameterName, Object value) { } } + } + /** + * An accessor for creating requests from the Agents collection. + * + *

The typical use is:

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

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-         * 
+ * Create a request for the method "agents.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 resource name of the location to create the agent in. Format: + * `projects/{project}/locations/{location}`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent} + * @return the request */ - public Operations operations() { - return new Operations(); + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent 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}/agents"; + + 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 an agent. * - * Create a request for the method "operations.cancel". + * Create a request for the method "agents.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 resource name of the location to create the agent in. Format: + * `projects/{project}/locations/{location}`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent} + * @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.GoogleCloudAiplatformV1beta1Agent 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/[^/]+$"); + } } - 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/[^/]+/agents/[^/]+/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/[^/]+/agents/[^/]+/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 resource name of the location to create the agent in. Format: + * `projects/{project}/locations/{location}`. + */ + @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 resource name of the location to create the agent in. Format: + `projects/{project}/locations/{location}`. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + /** + * Required. The resource name of the location to create the agent 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 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 an agent. + * + * Create a request for the method "agents.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 agent to delete. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + * @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/[^/]+/agents/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); - @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 an agent. * - * Create a request for the method "operations.delete". + * Create a request for the method "agents.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 of the agent to delete. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + * @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.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/[^/]+$"); + } } - 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/[^/]+/agents/[^/]+/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/[^/]+/agents/[^/]+/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 of the agent to delete. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + */ + @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 of the agent to delete. Format: + `projects/{project}/locations/{location}/agents/{agent}`. + */ + public java.lang.String getName() { + return name; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** + * Required. The resource name of the agent to delete. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + */ + 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/[^/]+/agents/[^/]+$"); } + 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); + } + } + /** + * Retrieves an agent. + * + * Create a request for the method "agents.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 agent to retrieve. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + * @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/[^/]+/agents/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); - @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. + * Retrieves an agent. * - * Create a request for the method "operations.get". + * Create a request for the method "agents.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 of the agent to retrieve. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + * @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.GoogleCloudAiplatformV1beta1Agent.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/[^/]+$"); + } } - 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/[^/]+/agents/[^/]+/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/[^/]+/agents/[^/]+/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 of the agent to retrieve. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + */ + @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 of the agent to retrieve. Format: + `projects/{project}/locations/{location}/agents/{agent}`. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * Required. The resource name of the agent to retrieve. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + */ + 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/[^/]+/agents/[^/]+$"); } + 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 agents in a location. + * + * Create a request for the method "agents.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 agents 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; + } - /** 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}/agents"; - /** 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/[^/]+/agents/[^/]+/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 agents in a location. * - * Create a request for the method "operations.list". + * Create a request for the method "agents.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 resource name of the location to list agents from. Format: + * `projects/{project}/locations/{location}`. + * @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.GoogleCloudAiplatformV1beta1ListAgentsResponse.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 { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "v1beta1/{+name}/operations"; + @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/[^/]+/agents/[^/]+$"); + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** - * 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/[^/]+/agents/[^/]+$"); - } - } + @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 List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The resource name of the location to list agents from. Format: + * `projects/{project}/locations/{location}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Required. The resource name of the location to list agents from. Format: + `projects/{project}/locations/{location}`. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** + * Required. The resource name of the location to list agents 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; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** + * Optional. A comma-separated list of fields to order by. Supported fields: * + * `create_time` * `update_time` Use `desc` after a field name for descending order. + * Example: `create_time desc`. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Optional. A comma-separated list of fields to order by. Supported fields: * `create_time` * + `update_time` Use `desc` after a field name for descending order. Example: `create_time desc`. + */ + public java.lang.String getOrderBy() { + return orderBy; + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + /** + * Optional. A comma-separated list of fields to order by. Supported fields: * + * `create_time` * `update_time` Use `desc` after a field name for descending order. + * Example: `create_time desc`. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } - /** 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/[^/]+/agents/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Optional. The maximum number of agents to return. The service may return fewer than + * this value. The maximum page size is 100; values above 100 will be coerced to 100. If + * unspecified, the default page size is 10. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** Optional. The maximum number of agents to return. The service may return fewer than this value. The + maximum page size is 100; values above 100 will be coerced to 100. If unspecified, the default page + size is 10. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + /** + * Optional. The maximum number of agents to return. The service may return fewer than + * this value. The maximum page size is 100; values above 100 will be coerced to 100. If + * unspecified, the default page size is 10. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** + * Optional. A page token, received from a previous AgentService.ListAgents call. Provide + * this to retrieve the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** Optional. A page token, received from a previous AgentService.ListAgents call. Provide this to + retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** + * Optional. A page token, received from a previous AgentService.ListAgents call. Provide + * this to retrieve the subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an agent. + * + * Create a request for the method "agents.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 agent. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + public class Patch extends AiplatformRequest { - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agents/[^/]+$"); + + /** + * Updates an agent. + * + * Create a request for the method "agents.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 agent. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Agent.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/[^/]+$"); } + } - /** - * 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 Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - /** 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 Patch setAccessToken(java.lang.String accessToken) { + return (Patch) 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. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + @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 agent. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the agent. Format: + `projects/{project}/locations/{location}/agents/{agent}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the agent. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + */ + 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/[^/]+$"); } + this.name = name; + return this; + } + + /** Optional. The list of fields to update. If not present, all fields are updated. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update. If not present, all fields are updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. The list of fields to update. If not present, all fields are updated. */ + 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. + * + *

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 { + /** - * 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/[^/]+/agents/[^/]+/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(), @@ -47712,72 +47902,72 @@ protected Wait(java.lang.String name) { } @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 " + @@ -47787,216 +47977,6 @@ public Wait setName(java.lang.String 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 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. - * - *

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/[^/]+/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`. - * - * 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/[^/]+/apps/[^/]+/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/[^/]+/apps/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - @Override public Cancel set(String parameterName, Object value) { return (Cancel) super.set(parameterName, value); @@ -48026,7 +48006,7 @@ public class Delete extends AiplatformRequestThe typical use is:

*
        *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.BatchPredictionJobs.List request = aiplatform.batchPredictionJobs().list(parameters ...)}
+       *   {@code Aiplatform.Apps.List request = aiplatform.apps().list(parameters ...)}
        * 
* * @return the resource collection */ - public BatchPredictionJobs batchPredictionJobs() { - return new BatchPredictionJobs(); + public Apps apps() { + return new Apps(); } /** - * The "batchPredictionJobs" collection of methods. + * The "apps" collection of methods. */ - public class BatchPredictionJobs { + public class Apps { /** - * 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". + * 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 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 + * @return the resource collection */ - 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; + 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/[^/]+/batchPredictionJobs/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class Operations { /** - * 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. + * 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 "batchPredictionJobs.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 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 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.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 Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + public class Cancel extends AiplatformRequest { - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - @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/[^/]+/apps/[^/]+/operations/[^/]+$"); - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) 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/[^/]+/apps/[^/]+/operations/[^/]+$"); + } + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) 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 Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) 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 Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) 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 Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) 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 Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - public class Create 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/{+parent}/batchPredictionJobs"; + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** 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/[^/]+/apps/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - /** - * Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to - * start. - * - * Create a request for the method "batchPredictionJobs.create". + @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`. * - * 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.

+ * Create a request for the method "operations.delete". * - * @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 + * 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 */ - 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 Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + public class Delete extends AiplatformRequest { - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @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/[^/]+/apps/[^/]+/operations/[^/]+$"); - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + /** + * 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/[^/]+/apps/[^/]+/operations/[^/]+$"); + } + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) 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 Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) 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 Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) 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 Delete setUploadType(java.lang.String uploadType) { + return (Delete) 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 Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - public class Delete extends AiplatformRequest { + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1beta1/{+name}"; + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); + /** 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/[^/]+/apps/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Deletes a BatchPredictionJob. Can only be called on jobs that already finished. + * 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 "batchPredictionJobs.delete". + * 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 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 Get#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 The name of the operation resource. + * @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 Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest { - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @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/[^/]+/apps/[^/]+/operations/[^/]+$"); - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** + * 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/[^/]+/apps/[^/]+/operations/[^/]+$"); + } + } - @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) 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 Get setKey(java.lang.String key) { + return (Get) 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 Get setOauthToken(java.lang.String oauthToken) { + return (Get) 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 Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) 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 Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - public class Get extends AiplatformRequest { + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); + /** 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/[^/]+/apps/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Gets a BatchPredictionJob + * 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 "batchPredictionJobs.get". + * 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 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 List#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 The name of the operation's parent resource. + * @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(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + public class List extends AiplatformRequest { - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** + * 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/[^/]+/apps/[^/]+$"); + } + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * 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 List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** 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 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/[^/]+/apps/[^/]+$"); + } + 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); + } + } /** - * Required. The name of the BatchPredictionJob resource. Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * 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 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/[^/]+$"); - } - this.name = name; - return this; + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + 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/[^/]+/apps/[^/]+/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/[^/]+/apps/[^/]+/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/[^/]+/apps/[^/]+/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 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(); + } + + /** + * The "batchPredictionJobs" collection of methods. + */ + public class BatchPredictionJobs { + /** - * Lists BatchPredictionJobs in a Location. + * 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.list". + * 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 List#execute()} method to invoke the remote operation. + * parameters, call the {@link Cancel#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}` + * @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 List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + 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; } - public class List extends AiplatformRequest { + public class Cancel extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/batchPredictionJobs"; + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); /** - * Lists BatchPredictionJobs in a Location. + * 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.list". + * Create a request for the method "batchPredictionJobs.cancel". * * 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 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 parent Required. The resource name of the Location to list the BatchPredictionJobs from. Format: - * `projects/{project}/locations/{location}` + * @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 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."); + 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + 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); + 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); + 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); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Location to list the BatchPredictionJobs from. - * Format: `projects/{project}/locations/{location}` + * 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 parent; + private java.lang.String name; - /** Required. The resource name of the Location to list the BatchPredictionJobs from. Format: - `projects/{project}/locations/{location}` + /** Required. The name of the BatchPredictionJob to cancel. Format: + `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The resource name of the Location to list the BatchPredictionJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The name of the BatchPredictionJob to cancel. Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` */ - public List setParent(java.lang.String parent) { + public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } - 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; - - /** 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; - } - - /** - * 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 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 - * 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. 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. 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. */ - @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 Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, 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 { - /** - * Creates cached content, this call will initialize the cached content in the data storage, and - * users need to pay for the cache data storage. + * Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to + * start. * - * Create a request for the method "cachedContents.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 resource where the cached content will be created - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent} + * @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.GoogleCloudAiplatformV1beta1CachedContent 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}/cachedContents"; + 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 cached content, this call will initialize the cached content in the data storage, and - * users need to pay for the cache data storage. + * Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to + * start. * - * Create a request for the method "cachedContents.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. @@ -49572,12 +49702,13 @@ public class Create extends AiplatformRequest * - * @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} + * @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.GoogleCloudAiplatformV1beta1CachedContent content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CachedContent.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(), @@ -49641,17 +49772,24 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { return (Create) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent resource where the cached content will be created */ + /** + * 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 resource where the cached content will be created + /** 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 resource where the cached content will be created */ + /** + * 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(), @@ -49668,14 +49806,15 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes cached content + * Deletes a BatchPredictionJob. Can only be called on jobs that already finished. * - * Create a request for the method "cachedContents.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 resource name referring to the cached content + * @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 { @@ -49684,17 +49823,17 @@ 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/[^/]+/cachedContents/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); /** - * Deletes cached content + * Deletes a BatchPredictionJob. Can only be called on jobs that already finished. * - * Create a request for the method "cachedContents.delete". + * Create a request for the method "batchPredictionJobs.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. @@ -49702,16 +49841,17 @@ public class Delete extends AiplatformRequest * - * @param name Required. The resource name referring to the cached content + * @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) { - 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/[^/]+/cachedContents/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } } @@ -49770,22 +49910,29 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Required. The resource name referring to the cached content */ + /** + * 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 resource name referring to the cached content + /** 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 resource name referring to the cached content */ + /** + * 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/[^/]+/cachedContents/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } this.name = name; return this; @@ -49797,14 +49944,15 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets cached content configurations + * Gets a BatchPredictionJob * - * Create a request for the method "cachedContents.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 resource name referring to the cached content + * @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 { @@ -49813,33 +49961,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/[^/]+/cachedContents/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); /** - * Gets cached content configurations + * Gets a BatchPredictionJob * - * Create a request for the method "cachedContents.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 resource name referring to the cached content + * @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.GoogleCloudAiplatformV1beta1CachedContent.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/[^/]+/cachedContents/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } } @@ -49908,22 +50057,29 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The resource name referring to the cached content */ + /** + * 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 resource name referring to the cached content + /** 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 resource name referring to the cached content */ + /** + * 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/[^/]+/cachedContents/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$"); } this.name = name; return this; @@ -49935,14 +50091,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists cached contents in a project + * Lists BatchPredictionJobs in a Location. * - * Create a request for the method "cachedContents.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, which owns this collection of cached contents. + * @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 { @@ -49951,28 +50108,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}/cachedContents"; + 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 cached contents in a project + * Lists BatchPredictionJobs in a Location. * - * Create a request for the method "cachedContents.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, which owns this collection of cached contents. + * @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.GoogleCloudAiplatformV1beta1ListCachedContentsResponse.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(), @@ -50046,17 +50204,24 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent, which owns this collection of cached contents. */ + /** + * 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, which owns this collection of cached contents. + /** 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, which owns this collection of cached contents. */ + /** + * 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(), @@ -50068,465 +50233,208 @@ public List setParent(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. + * 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; + + /** 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; + } + + /** + * 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 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; - /** 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. + /** The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** - * 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. - */ + /** The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; 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. + * 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; - /** 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. + /** 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; } /** - * 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. + * 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. */ + @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 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 { + /** - * Updates cached content configurations + * 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.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#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 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 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); + 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; } - public class Patch extends AiplatformRequest { + public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+parent}/cachedContents"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Updates cached content configurations + * 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.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. *

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

* - * @param name Immutable. Identifier. The server-generated resource name of the cached content Format: - * projects/{project}/locations/{location}/cachedContents/{cached_content} + * @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 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."); + 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @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); - } - - /** - * 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; - - /** 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; - } - - /** - * 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; - } - - /** 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); - } - } - - } - /** - * 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(); - } - - /** - * The "customJobs" collection of methods. - */ - public class 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 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); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override @@ -50559,24 +50467,17 @@ 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}` - */ + /** Required. The parent resource where the cached content will be created */ @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}` + /** Required. The parent resource where the cached content will be created */ public java.lang.String getParent() { return parent; } - /** - * Required. The resource name of the Location to create the CustomJob in. Format: - * `projects/{project}/locations/{location}` - */ + /** 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(), @@ -50593,15 +50494,14 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes a CustomJob. + * Deletes cached content * - * Create a request for the method "customJobs.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. * - * @param name Required. The name of the CustomJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @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 { @@ -50610,17 +50510,17 @@ 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/[^/]+/customJobs/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); /** - * Deletes a CustomJob. + * Deletes cached content * - * Create a request for the method "customJobs.delete". + * 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. @@ -50628,17 +50528,16 @@ public class Delete extends AiplatformRequest * - * @param name Required. The name of the CustomJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @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.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/[^/]+/customJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); } } @@ -50697,29 +50596,22 @@ 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}` - */ + /** Required. The resource name referring to the cached content */ @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}` + /** Required. The resource name referring to the cached content */ 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}` - */ + /** 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/[^/]+/customJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); } this.name = name; return this; @@ -50731,15 +50623,14 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets a CustomJob. + * Gets cached content configurations * - * Create a request for the method "customJobs.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. * - * @param name Required. The name of the CustomJob resource. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @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 { @@ -50748,34 +50639,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/[^/]+/customJobs/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); /** - * Gets a CustomJob. + * Gets cached content configurations * - * Create a request for the method "customJobs.get". + * 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 name of the CustomJob resource. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @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.GoogleCloudAiplatformV1beta1CustomJob.class); + 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/[^/]+/customJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); } } @@ -50844,29 +50734,22 @@ 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}` - */ + /** Required. The resource name referring to the cached content */ @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}` + /** Required. The resource name referring to the cached content */ public java.lang.String getName() { return name; } - /** - * Required. The name of the CustomJob resource. Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` - */ + /** 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/[^/]+/customJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$"); } this.name = name; return this; @@ -50878,15 +50761,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists CustomJobs in a Location. + * Lists cached contents in a project * - * Create a request for the method "customJobs.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. * - * @param parent Required. The resource name of the Location to list the CustomJobs from. Format: - * `projects/{project}/locations/{location}` + * @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 { @@ -50895,29 +50777,28 @@ 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}/customJobs"; + private static final String REST_PATH = "v1beta1/{+parent}/cachedContents"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Lists CustomJobs in a Location. + * Lists cached contents in a project * - * Create a request for the method "customJobs.list". + * 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 resource name of the Location to list the CustomJobs from. Format: - * `projects/{project}/locations/{location}` + * @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.GoogleCloudAiplatformV1beta1ListCustomJobsResponse.class); + 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(), @@ -50991,24 +50872,17 @@ 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}` - */ + /** Required. The parent, which owns this collection of cached contents. */ @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}` + /** Required. The parent, which owns this collection of cached contents. */ public java.lang.String getParent() { return parent; } - /** - * Required. The resource name of the Location to list the CustomJobs from. Format: - * `projects/{project}/locations/{location}` - */ + /** 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(), @@ -51020,1134 +50894,856 @@ 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"` * - * `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:*` + * 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 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. + /** 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 page size. */ + /** + * 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; } /** - * The standard list page token. Typically obtained via - * ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call. + * 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; - /** The standard list page token. Typically obtained via ListCustomJobsResponse.next_page_token of the - previous JobService.ListCustomJobs call. + /** 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; } /** - * The standard list page token. Typically obtained via - * ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call. - */ + * 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; } - /** 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. + * Updates cached content configurations * - *

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.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 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 Operations operations() { - return new Operations(); + 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; } - /** - * The "operations" collection of methods. - */ - public class Operations { + 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/[^/]+/cachedContents/[^/]+$"); /** - * 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`. + * Updates cached content configurations * - * Create a request for the method "operations.cancel". + * 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 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 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 cancelled. - * @return the request + * @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 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + 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/[^/]+$"); + } } - public class Cancel extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$"); + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - /** - * 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 Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** + * 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 Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + /** 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 Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + /** + * 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; + } - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + /** Required. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } - /** 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; - } + /** Required. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) 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. + * + *

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(); + } + + /** + * The "customJobs" collection of methods. + */ + public class 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 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/[^/]+$"); + /** - * 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`. + * 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 "operations.delete". + * 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 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 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 deleted. - * @return the request + * @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 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + 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/[^/]+$"); + } } - 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 Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) 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; - /** The name of the operation resource to be deleted. */ - @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; + } - /** The name of the operation resource to be deleted. - */ - 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; + } - /** 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); - } + @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/[^/]+$"); + /** - * 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. + * Creates a CustomJob. A created CustomJob right away will be attempted to be run. * - * Create a request for the method "operations.get". + * 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 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 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. - * @return the request + * @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 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + 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/[^/]+$"); + } } - 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/[^/]+$"); + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) 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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); - } - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * 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; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The resource name of the Location to create the CustomJob in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * Required. The 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 Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @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; + } - /** 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/[^/]+/customJobs/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); - @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`. + * Deletes a CustomJob. * - * Create a request for the method "operations.list". + * 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 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 Delete#execute()} method to invoke the remote operation. + *

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

* - * @param name The name of the operation's parent resource. - * @return the request + * @param name Required. The name of the CustomJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(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.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/[^/]+$"); + } } - public class List 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}/operations"; + @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/[^/]+/customJobs/[^/]+$"); + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** - * 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 Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** + * 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; - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** 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; + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + /** + * 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 List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @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; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + public class Get extends AiplatformRequest { - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; + /** + * 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/[^/]+$"); } + } - /** 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); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - } - } - /** - * 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 com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + 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}` + * 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 DataLabelingJob. Format: - `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + /** 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 DataLabelingJob. Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * Required. The name of the CustomJob resource. Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` */ - public Cancel 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/[^/]+/dataLabelingJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$"); } this.name = name; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a DataLabelingJob. + * Lists CustomJobs in a Location. * - * Create a request for the method "dataLabelingJobs.create". + * 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 Create#execute()} method to invoke the remote operation. + * 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 content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob} + * @param parent Required. The resource name of the Location to list the CustomJobs from. Format: + * `projects/{project}/locations/{location}` * @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); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Create extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/dataLabelingJobs"; + 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 DataLabelingJob. + * Lists CustomJobs in a Location. * - * Create a request for the method "dataLabelingJobs.create". + * 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 Create#execute()} method to invoke the remote operation. - *

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

+ * optional parameters, call the {@link 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 content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DataLabelingJob} + * @param parent Required. The resource name of the Location to list the CustomJobs from. Format: + * `projects/{project}/locations/{location}` * @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 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(), @@ -52157,507 +51753,89 @@ protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1b } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) 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 parent of the DataLabelingJob. Format: + * 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 parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` + /** 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 parent of the DataLabelingJob. Format: + * Required. The resource name of the Location to list the CustomJobs from. 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) { + 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 " + @@ -52707,29 +51885,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; @@ -52746,45 +51901,40 @@ public List setPageSize(java.lang.Integer pageSize) { return this; } - /** The standard list page token. */ + /** + * 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. + /** 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. */ + /** + * 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. 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; @@ -52844,7 +51994,7 @@ public class Cancel extends AiplatformRequestThe typical use is:

*
        *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.Datasets.List request = aiplatform.datasets().list(parameters ...)}
+       *   {@code Aiplatform.DataLabelingJobs.List request = aiplatform.dataLabelingJobs().list(parameters ...)}
        * 
* * @return the resource collection */ - public Datasets datasets() { - return new Datasets(); + public DataLabelingJobs dataLabelingJobs() { + return new DataLabelingJobs(); } /** - * The "datasets" collection of methods. + * The "dataLabelingJobs" collection of methods. */ - public class Datasets { + public class DataLabelingJobs { /** - * Assembles each row of a multimodal dataset and writes the result into a BigQuery table. + * Cancels a DataLabelingJob. Success of cancellation is not guaranteed. * - * 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". + * 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 Assess#execute()} method to invoke the remote operation. + * parameters, call the {@link Cancel#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 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 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 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 Assess extends AiplatformRequest { + public class Cancel extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:assess"; + 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/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); /** - * Assesses the state or validity of the dataset with respect to a given use case. + * Cancels a DataLabelingJob. Success of cancellation is not guaranteed. * - * Create a request for the method "datasets.assess". + * 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 Assess#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. *

{@link - * Assess#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 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 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 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 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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); } } @Override - public Assess set$Xgafv(java.lang.String $Xgafv) { - return (Assess) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Assess setAccessToken(java.lang.String accessToken) { - return (Assess) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Assess setAlt(java.lang.String alt) { - return (Assess) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Assess setCallback(java.lang.String callback) { - return (Assess) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Assess setFields(java.lang.String fields) { - return (Assess) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Assess setKey(java.lang.String key) { - return (Assess) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Assess setOauthToken(java.lang.String oauthToken) { - return (Assess) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Assess setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Assess) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Assess setQuotaUser(java.lang.String quotaUser) { - return (Assess) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Assess setUploadType(java.lang.String uploadType) { - return (Assess) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Assess setUploadProtocol(java.lang.String uploadProtocol) { - return (Assess) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * 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 Dataset resource. Used only for MULTIMODAL datasets. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** 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 Dataset resource. Used only for MULTIMODAL datasets. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` */ - public Assess setName(java.lang.String name) { + 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); } this.name = name; return this; } @Override - public Assess set(String parameterName, Object value) { - return (Assess) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Creates a Dataset. + * Creates a DataLabelingJob. * - * Create a request for the method "datasets.create". + * 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 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 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.GoogleCloudAiplatformV1beta1Dataset content) throws java.io.IOException { + 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 { + public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/datasets"; + 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 Dataset. + * Creates a DataLabelingJob. * - * Create a request for the method "datasets.create". + * 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. @@ -53959,13 +52968,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 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.GoogleCloudAiplatformV1beta1Dataset 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.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(), @@ -54030,21 +53038,20 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Location to create the Dataset in. Format: + * Required. The parent of the DataLabelingJob. 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}` + /** Required. The parent of the DataLabelingJob. 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: + * Required. The parent of the DataLabelingJob. Format: * `projects/{project}/locations/{location}` */ public Create setParent(java.lang.String parent) { @@ -54063,15 +53070,15 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes a Dataset. + * Deletes a DataLabelingJob. * - * Create a request for the method "datasets.delete". + * 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 resource name of the Dataset to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * @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 { @@ -54085,12 +53092,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 DataLabelingJob to be deleted. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @since 1.13 */ protected Delete(java.lang.String name) { @@ -54108,7 +53115,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/[^/]+/dataLabelingJobs/[^/]+$"); } } @@ -54168,28 +53175,28 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Dataset to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * 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 resource name of the Dataset to delete. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** 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 resource name of the Dataset to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * 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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); } this.name = name; return this; @@ -54201,189 +53208,196 @@ public Delete set(String parameterName, Object value) { } } /** - * Exports data from a Dataset. + * Gets a DataLabelingJob. * - * Create a request for the method "datasets.export". + * 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 Export#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#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} + * @param name Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @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); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Export extends AiplatformRequest { + public class Get extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:export"; + 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/[^/]+/dataLabelingJobs/[^/]+$"); /** - * Exports data from a Dataset. + * Gets a DataLabelingJob. * - * Create a request for the method "datasets.export". + * 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 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.

+ * 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. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportDataRequest} + * @param name Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @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); + 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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); } } @Override - public Export set$Xgafv(java.lang.String $Xgafv) { - return (Export) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Export setAccessToken(java.lang.String accessToken) { - return (Export) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Export setAlt(java.lang.String alt) { - return (Export) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Export setCallback(java.lang.String callback) { - return (Export) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Export setFields(java.lang.String fields) { - return (Export) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Export setKey(java.lang.String key) { - return (Export) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Export setOauthToken(java.lang.String oauthToken) { - return (Export) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Export setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Export) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Export setQuotaUser(java.lang.String quotaUser) { - return (Export) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Export setUploadType(java.lang.String uploadType) { - return (Export) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Export setUploadProtocol(java.lang.String uploadProtocol) { - return (Export) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * 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 Dataset resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` + /** 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 Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` + * Required. The name of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` */ - public Export 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/[^/]+/datasets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); } this.name = name; return this; } @Override - public Export set(String parameterName, Object value) { - return (Export) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Gets a Dataset. + * Lists DataLabelingJobs in a Location. * - * Create a request for the method "datasets.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Dataset resource. + * @param parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Get extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+parent}/dataLabelingJobs"; - private final java.util.regex.Pattern NAME_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 a Dataset. + * Lists DataLabelingJobs in a Location. * - * Create a request for the method "datasets.get". + * 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 Get#execute()} method to invoke the remote operation.

- * {@link Get#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 name Required. The name of the Dataset resource. + * @param parent Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` * @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."); + 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name 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/[^/]+$"); } } @@ -54398,4030 +53412,3680 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the Dataset resource. */ + /** + * Required. The parent of the DataLabelingJob. Format: + * `projects/{project}/locations/{location}` + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The name of the Dataset resource. + /** Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** Required. The name of the Dataset resource. */ - public Get setName(java.lang.String name) { + /** + * 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name 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.name = name; + this.parent = parent; return this; } - /** Mask specifying which fields to read. */ + /** + * 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 String readMask; + private java.lang.String filter; - /** Mask specifying which fields to read. + /** 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 String getReadMask() { - return readMask; + public java.lang.String getFilter() { + return filter; } - /** Mask specifying which fields to read. */ - public Get setReadMask(String readMask) { - this.readMask = readMask; + /** + * 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; } - @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 + * A comma-separated list of fields to order by, sorted in ascending order by default. Use + * `desc` after a field name for descending. */ - 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); - } + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + /** 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; } - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + /** + * 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; } - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } - /** - * 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. - */ + /** The standard list page token. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String pageToken; - /** 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. + /** The standard list page token. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getPageToken() { + return pageToken; } - /** - * 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; + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; 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). + * 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("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; + @com.google.api.client.util.Key + private String readMask; - /** 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). + /** 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 java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public String getReadMask() { + return readMask; } /** - * 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). + * 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 GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + public List setReadMask(String readMask) { + this.readMask = readMask; 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. - * - * Create a request for the method "datasets.import". + * 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 AiplatformImport#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 Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest} - * @return the request + * @return the resource collection */ - 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 Operations operations() { + return new Operations(); } - 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/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class Operations { /** - * Imports data into a Dataset. + * 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.import". + * 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 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.

+ * 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 Dataset resource. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportDataRequest} - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - 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/[^/]+$"); - } + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public AiplatformImport set$Xgafv(java.lang.String $Xgafv) { - return (AiplatformImport) super.set$Xgafv($Xgafv); - } + public class Cancel extends AiplatformRequest { - @Override - public AiplatformImport setAccessToken(java.lang.String accessToken) { - return (AiplatformImport) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - @Override - public AiplatformImport setAlt(java.lang.String alt) { - return (AiplatformImport) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); - @Override - public AiplatformImport setCallback(java.lang.String callback) { - return (AiplatformImport) 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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); + } + } - @Override - public AiplatformImport setFields(java.lang.String fields) { - return (AiplatformImport) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public AiplatformImport setKey(java.lang.String key) { - return (AiplatformImport) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public AiplatformImport setOauthToken(java.lang.String oauthToken) { - return (AiplatformImport) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AiplatformImport) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public AiplatformImport setQuotaUser(java.lang.String quotaUser) { - return (AiplatformImport) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public AiplatformImport setUploadType(java.lang.String uploadType) { - return (AiplatformImport) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { - return (AiplatformImport) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** - * 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; + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the Dataset resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - /** - * 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/[^/]+$"); + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } - 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; - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - public class List 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/{+parent}/datasets"; + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** 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); + } + } /** - * Lists Datasets in a Location. + * 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.list". + * 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 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 Delete#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 name The name of the operation resource to be deleted. + * @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/[^/]+$"); - } + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Delete 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}"; - @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/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * 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 List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * 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 Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - /** Required. The name of the Dataset's parent resource. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - /** - * 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/[^/]+$"); + /** 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; } - 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; + /** 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; + } - /** 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; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } } - /** - * 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"` + * 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 List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - /** - * 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; + public class Get extends AiplatformRequest { - /** 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; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** - * 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; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$"); - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** + * 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/[^/]+$"); + } + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @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 Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - public class Patch extends AiplatformRequest { + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + @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); + } + } /** - * Updates 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 "datasets.patch". + * 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 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.

+ * 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 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 + * @param name The name of the operation's parent resource. + * @return the request */ - 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/[^/]+$"); - } + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class List extends AiplatformRequest { - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$"); - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + /** + * 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 Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** - * 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; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Output only. Identifier. The resource name of the Dataset. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getName() { - return name; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * 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/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - 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; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** 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; - } + @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); + } + } /** - * Required. The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * - * `labels` + * 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 Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + 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 { + /** - * Searches DataItems in a Dataset. + * Assembles each row of a multimodal dataset and writes the result into a BigQuery table. * - * Create a request for the method "datasets.searchDataItems". + * 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 SearchDataItems#execute()} method to invoke the remote operation. + * parameters, call the {@link Assemble#execute()} method to invoke the remote operation. * - * @param dataset Required. The resource name of the Dataset from which to search DataItems. Format: + * @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 SearchDataItems searchDataItems(java.lang.String dataset) throws java.io.IOException { - SearchDataItems result = new SearchDataItems(dataset); + 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 SearchDataItems extends AiplatformRequest { + public class Assemble extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+dataset}:searchDataItems"; + private static final String REST_PATH = "v1beta1/{+name}:assemble"; - private final java.util.regex.Pattern DATASET_PATTERN = + private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); /** - * Searches DataItems in a Dataset. + * Assembles each row of a multimodal dataset and writes the result into a BigQuery table. * - * Create a request for the method "datasets.searchDataItems". + * 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 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.

+ * 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 dataset Required. The resource name of the Dataset from which to search DataItems. Format: + * @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 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."); + 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(DATASET_PATTERN.matcher(dataset).matches(), - "Parameter dataset 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/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Assemble set$Xgafv(java.lang.String $Xgafv) { + return (Assemble) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Assemble setAccessToken(java.lang.String accessToken) { + return (Assemble) super.setAccessToken(accessToken); } @Override - public SearchDataItems set$Xgafv(java.lang.String $Xgafv) { - return (SearchDataItems) super.set$Xgafv($Xgafv); + public Assemble setAlt(java.lang.String alt) { + return (Assemble) super.setAlt(alt); } @Override - public SearchDataItems setAccessToken(java.lang.String accessToken) { - return (SearchDataItems) super.setAccessToken(accessToken); + public Assemble setCallback(java.lang.String callback) { + return (Assemble) super.setCallback(callback); } @Override - public SearchDataItems setAlt(java.lang.String alt) { - return (SearchDataItems) super.setAlt(alt); + public Assemble setFields(java.lang.String fields) { + return (Assemble) super.setFields(fields); } @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); + public Assemble setKey(java.lang.String key) { + return (Assemble) super.setKey(key); } @Override - public SearchDataItems setOauthToken(java.lang.String oauthToken) { - return (SearchDataItems) super.setOauthToken(oauthToken); + public Assemble setOauthToken(java.lang.String oauthToken) { + return (Assemble) super.setOauthToken(oauthToken); } @Override - public SearchDataItems setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchDataItems) super.setPrettyPrint(prettyPrint); + public Assemble setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Assemble) super.setPrettyPrint(prettyPrint); } @Override - public SearchDataItems setQuotaUser(java.lang.String quotaUser) { - return (SearchDataItems) super.setQuotaUser(quotaUser); + public Assemble setQuotaUser(java.lang.String quotaUser) { + return (Assemble) super.setQuotaUser(quotaUser); } @Override - public SearchDataItems setUploadType(java.lang.String uploadType) { - return (SearchDataItems) super.setUploadType(uploadType); + public Assemble setUploadType(java.lang.String uploadType) { + return (Assemble) super.setUploadType(uploadType); } @Override - public SearchDataItems setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchDataItems) super.setUploadProtocol(uploadProtocol); + public Assemble setUploadProtocol(java.lang.String uploadProtocol) { + return (Assemble) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Dataset from which to search DataItems. Format: + * 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 dataset; + private java.lang.String name; - /** Required. The resource name of the Dataset from which to search DataItems. Format: + /** Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: `projects/{project}/locations/{location}/datasets/{dataset}` */ - public java.lang.String getDataset() { - return dataset; + public java.lang.String getName() { + return name; } /** - * Required. The resource name of the Dataset from which to search DataItems. Format: + * Required. The name of the Dataset resource (used only for MULTIMODAL datasets). Format: * `projects/{project}/locations/{location}/datasets/{dataset}` */ - public SearchDataItems setDataset(java.lang.String dataset) { + public Assemble setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DATASET_PATTERN.matcher(dataset).matches(), - "Parameter dataset 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.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; + this.name = name; 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; + @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; + } - /** Mask specifying which fields of DataItemView to read. */ - @com.google.api.client.util.Key - private String fieldMask; + public class Assess extends AiplatformRequest { - /** Mask specifying which fields of DataItemView to read. - */ - public String getFieldMask() { - return fieldMask; - } + private static final String REST_PATH = "v1beta1/{+name}:assess"; - /** Mask specifying which fields of DataItemView to read. */ - public SearchDataItems setFieldMask(String fieldMask) { - this.fieldMask = fieldMask; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); /** - * 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. + * 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 */ - public java.lang.String getOrderBy() { - return orderBy; + 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/[^/]+$"); + } } - /** - * 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 Assess set$Xgafv(java.lang.String $Xgafv) { + return (Assess) super.set$Xgafv($Xgafv); } - /** - * 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; + @Override + public Assess setAccessToken(java.lang.String accessToken) { + return (Assess) super.setAccessToken(accessToken); } - /** - * 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 Assess setAlt(java.lang.String alt) { + return (Assess) super.setAlt(alt); } - /** - * 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; + @Override + public Assess setCallback(java.lang.String callback) { + return (Assess) super.setCallback(callback); } - /** - * 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 Assess setFields(java.lang.String fields) { + return (Assess) super.setFields(fields); } - /** - * 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; + @Override + public Assess setKey(java.lang.String key) { + return (Assess) super.setKey(key); } - /** - * 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; + @Override + public Assess setOauthToken(java.lang.String oauthToken) { + return (Assess) super.setOauthToken(oauthToken); } - /** - * 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; + @Override + public Assess setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Assess) super.setPrettyPrint(prettyPrint); } - /** - * 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; + @Override + public Assess setQuotaUser(java.lang.String quotaUser) { + return (Assess) super.setQuotaUser(quotaUser); } - /** - * 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 Assess setUploadType(java.lang.String uploadType) { + return (Assess) super.setUploadType(uploadType); } - /** - * 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; + @Override + public Assess setUploadProtocol(java.lang.String uploadProtocol) { + return (Assess) super.setUploadProtocol(uploadProtocol); } /** - * 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. + * 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 savedQuery; + private java.lang.String name; - /** 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. + /** Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` */ - public java.lang.String getSavedQuery() { - return savedQuery; + public java.lang.String getName() { + return name; } /** - * 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. + * Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` */ - public SearchDataItems setSavedQuery(java.lang.String savedQuery) { - this.savedQuery = savedQuery; + 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 SearchDataItems set(String parameterName, Object value) { - return (SearchDataItems) super.set(parameterName, value); + public Assess set(String parameterName, Object value) { + return (Assess) 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. + * Creates a Dataset. * - * Create a request for the method "datasets.setIamPolicy". + * 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 SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#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} + * @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 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); + 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 SetIamPolicy extends AiplatformRequest { + public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; + private static final String REST_PATH = "v1beta1/{+parent}/datasets"; - 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/[^/]+$"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Creates a Dataset. * - * Create a request for the method "datasets.setIamPolicy". + * 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 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.

+ * 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 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} + * @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 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."); + 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(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 SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The 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 resource; + private java.lang.String parent; - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The resource name of the Location to create the Dataset in. Format: + `projects/{project}/locations/{location}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getParent() { + return parent; } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The resource name of the Location to create the Dataset in. Format: + * `projects/{project}/locations/{location}` */ - public SetIamPolicy setResource(java.lang.String resource) { + public Create 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; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) 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 Dataset. * - * Create a request for the method "datasets.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param name Required. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class TestIamPermissions extends AiplatformRequest { + public class Delete extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+resource}:testIamPermissions"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern NAME_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. + * Deletes a Dataset. * - * Create a request for the method "datasets.testIamPermissions". + * 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 TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param name Required. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` * @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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource 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/[^/]+$"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String name; - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The resource name of the Dataset to delete. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getName() { + return name; } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The resource name of the Dataset to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` */ - public TestIamPermissions setResource(java.lang.String resource) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } - this.resource = resource; + 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/[^/]+$"); + /** - * 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). + * 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.util.List permissions; + private java.lang.String name; - /** 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). + /** Required. The name of the Dataset resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` */ - public java.util.List getPermissions() { - return permissions; + public java.lang.String getName() { + return name; } /** - * 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). + * Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` */ - public TestIamPermissions setPermissions(java.util.List permissions) { - this.permissions = permissions; + 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Export set(String parameterName, Object value) { + return (Export) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the AnnotationSpecs collection. + * Gets a Dataset. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.AnnotationSpecs.List request = aiplatform.annotationSpecs().list(parameters ...)}
-         * 
+ * Create a request for the method "datasets.get". * - * @return the resource collection + * 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 AnnotationSpecs annotationSpecs() { - return new AnnotationSpecs(); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - /** - * The "annotationSpecs" collection of methods. - */ - public class AnnotationSpecs { + 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 an AnnotationSpec. + * Gets a Dataset. * - * Create a request for the method "annotationSpecs.get". + * 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. + * 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}` - * @return the request + * @param name Required. The name of the Dataset resource. + * @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.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/[^/]+$"); + } } - public class Get extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; + @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/[^/]+/annotationSpecs/[^/]+$"); + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * 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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Required. The name of the Dataset resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Required. The name of the Dataset resource. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** 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; + } - /** - * 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; + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - /** Required. The name of the AnnotationSpec resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` - */ - public java.lang.String getName() { - return name; - } + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - /** - * 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. */ + public Get setReadMask(String readMask) { + this.readMask = readMask; + return this; + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @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; + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + public class GetIamPolicy extends AiplatformRequest { - /** Mask specifying which fields to read. */ - public Get setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + private static final String REST_PATH = "v1beta1/{+resource}:getIamPolicy"; - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); /** - * An accessor for creating requests from the Operations collection. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. * - *

The typical use is:

- *
-           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-           *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-           * 
+ * Create a request for the method "datasets.getIamPolicy". * - * @return the resource collection + * 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 */ - public Operations operations() { - return new Operations(); + 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/[^/]+$"); + } } - /** - * The "operations" collection of methods. - */ - public class Operations { + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } - /** - * 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; - } + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } - public class Cancel extends AiplatformRequest { + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } - /** - * 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 GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + /** + * 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; - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + /** 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; + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + /** + * 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; + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** + * 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; - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + /** 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; + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + /** + * 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; + } - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + @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; + } - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + public class AiplatformImport extends AiplatformRequest { - /** 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; - } + private static final String REST_PATH = "v1beta1/{+name}:import"; - @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; + 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/[^/]+$"); } + } - public class Delete extends AiplatformRequest { + @Override + public AiplatformImport set$Xgafv(java.lang.String $Xgafv) { + return (AiplatformImport) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public AiplatformImport setAccessToken(java.lang.String accessToken) { + return (AiplatformImport) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + @Override + public AiplatformImport setAlt(java.lang.String alt) { + return (AiplatformImport) 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/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); - } - } + @Override + public AiplatformImport setCallback(java.lang.String callback) { + return (AiplatformImport) super.setCallback(callback); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public AiplatformImport setFields(java.lang.String fields) { + return (AiplatformImport) super.setFields(fields); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public AiplatformImport setKey(java.lang.String key) { + return (AiplatformImport) super.setKey(key); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public AiplatformImport setOauthToken(java.lang.String oauthToken) { + return (AiplatformImport) super.setOauthToken(oauthToken); + } - @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 AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AiplatformImport) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public AiplatformImport setQuotaUser(java.lang.String quotaUser) { + return (AiplatformImport) super.setQuotaUser(quotaUser); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public AiplatformImport setUploadType(java.lang.String uploadType) { + return (AiplatformImport) super.setUploadType(uploadType); + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { + return (AiplatformImport) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + /** + * 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; - /** 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; - } + /** Required. The name of the Dataset resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return name; + } - @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; + /** + * 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; + } - public class Get extends AiplatformRequest { + @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; + } - private static final String REST_PATH = "v1beta1/{+name}"; + public class List extends AiplatformRequest { - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); + private static final String REST_PATH = "v1beta1/{+parent}/datasets"; - /** - * 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/[^/]+$"); - } - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * 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.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 Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + /** + * 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; - /** 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; - } + /** Required. The name of the Dataset's parent resource. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - @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; + /** + * 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; + } - public class List extends AiplatformRequest { + /** + * 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; - private static final String REST_PATH = "v1beta1/{+name}/operations"; + /** 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; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); + /** + * 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; + } - /** - * 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/[^/]+$"); - } - } + /** + * 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; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** 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 com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * 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; + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - @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; - } + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } - /** The standard list 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); + } + } + /** + * 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; + } - /** - * 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; + public class Patch 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 java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** - * 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 final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - @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; + /** + * 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/[^/]+$"); } + } - 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 Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + /** + * 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; - /** 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; - } + /** Output only. Identifier. The resource name of the Dataset. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getName() { + return 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. - */ - @com.google.api.client.util.Key - private String timeout; + /** + * 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; + } - /** 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; - } + /** + * 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; - /** - * 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; - } + /** 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; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } + /** + * 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); } } /** - * An accessor for creating requests from the DataItems collection. + * Searches DataItems in a Dataset. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.DataItems.List request = aiplatform.dataItems().list(parameters ...)}
-         * 
+ * Create a request for the method "datasets.searchDataItems". * - * @return the resource collection + * 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 DataItems dataItems() { - return new DataItems(); + public SearchDataItems searchDataItems(java.lang.String dataset) throws java.io.IOException { + SearchDataItems result = new SearchDataItems(dataset); + initialize(result); + return result; } - /** - * The "dataItems" collection of methods. - */ - public class DataItems { + 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/[^/]+$"); /** - * Lists DataItems in a Dataset. + * Searches DataItems in a Dataset. * - * Create a request for the method "dataItems.list". + * 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 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 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 parent Required. The resource name of the Dataset to list DataItems from. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}` - * @return the request + * @param dataset Required. The resource name of the Dataset from which to search DataItems. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @since 1.13 */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + 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 class List 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/{+parent}/dataItems"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + @Override + public SearchDataItems set$Xgafv(java.lang.String $Xgafv) { + return (SearchDataItems) super.set$Xgafv($Xgafv); + } - /** - * 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 SearchDataItems setAccessToken(java.lang.String accessToken) { + return (SearchDataItems) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public SearchDataItems setAlt(java.lang.String alt) { + return (SearchDataItems) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public SearchDataItems setCallback(java.lang.String callback) { + return (SearchDataItems) super.setCallback(callback); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public SearchDataItems setFields(java.lang.String fields) { + return (SearchDataItems) super.setFields(fields); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public SearchDataItems setKey(java.lang.String key) { + return (SearchDataItems) super.setKey(key); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public SearchDataItems setOauthToken(java.lang.String oauthToken) { + return (SearchDataItems) super.setOauthToken(oauthToken); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public SearchDataItems setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchDataItems) super.setPrettyPrint(prettyPrint); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public SearchDataItems setQuotaUser(java.lang.String quotaUser) { + return (SearchDataItems) super.setQuotaUser(quotaUser); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public SearchDataItems setUploadType(java.lang.String uploadType) { + return (SearchDataItems) super.setUploadType(uploadType); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public SearchDataItems setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchDataItems) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** + * 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 List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** 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 List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** + * 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; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) 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. + */ + @com.google.api.client.util.Key + private java.util.List annotationFilters; - /** - * 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; + /** 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 resource name of the Dataset to list DataItems from. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getParent() { - return 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 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; - } + /** + * 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; - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** An expression for filtering the Annotations that will be returned per DataItem. * + `annotation_spec_id` - for = or !=. + */ + public java.lang.String getAnnotationsFilter() { + return annotationsFilter; + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + /** + * 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; + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - 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; - /** - * 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; + /** 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; + } - /** 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; - } + /** + * 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; + } - /** - * 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; - } + /** + * 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; - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** 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; + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** + * 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 standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - 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 standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** 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 standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * 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; + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Mask specifying which fields of DataItemView to read. */ + @com.google.api.client.util.Key + private String fieldMask; - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + /** Mask specifying which fields of DataItemView to read. + */ + public String getFieldMask() { + return fieldMask; + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + /** Mask specifying which fields of DataItemView to read. */ + public SearchDataItems setFieldMask(String fieldMask) { + this.fieldMask = fieldMask; + return this; + } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - 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; - @Override - public List set(String parameterName, Object value) { - return (List) 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. + */ + public java.lang.String getOrderBy() { + return orderBy; } /** - * 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 + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. */ - public Annotations annotations() { - return new Annotations(); + public SearchDataItems setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } /** - * The "annotations" collection of methods. + * 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 class Annotations { + @com.google.api.client.util.Key("orderByAnnotation.orderBy") + private java.lang.String orderByAnnotationOrderBy; - /** - * 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; - } + /** 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; + } - public class List extends AiplatformRequest { + /** + * 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; + } - private static final String REST_PATH = "v1beta1/{+parent}/annotations"; + /** + * 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; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); + /** 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; + } - /** - * 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/[^/]+$"); - } - } + /** + * 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * 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; - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** 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; + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** + * 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; + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * 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; - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** Requested page size. Server may return fewer results than requested. Default and maximum page size + is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @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); - } + /** + * 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; + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** + * 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; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** 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 List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** + * 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; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** + * 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; - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** 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 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; + /** + * 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; + } - /** 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; - } + @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; + } - /** - * 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; - } + public class SetIamPolicy extends AiplatformRequest { - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** + * 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/[^/]+$"); + } + } - /** - * 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 SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) 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. - */ - public java.lang.String getOrderBy() { - return orderBy; - } + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) 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 List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + /** + * 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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** 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; + } - /** - * 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(); + /** + * 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; + } - /** - * The "operations" collection of methods. - */ - public class Operations { + @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; + } - /** - * 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 TestIamPermissions extends AiplatformRequest { - public class Cancel extends AiplatformRequest { + private static final String REST_PATH = "v1beta1/{+resource}:testIamPermissions"; - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + /** + * 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/[^/]+$"); + } + } - /** - * 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 TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) 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; - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** 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; + } - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + /** + * 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 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; - } + /** + * 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 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; - } + /** 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; + } - public class Delete extends AiplatformRequest { + /** + * 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; + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + /** + * 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(); + } - /** - * 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/[^/]+$"); - } - } + /** + * The "annotationSpecs" collection of methods. + */ + public class AnnotationSpecs { - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** + * 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; + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + public class Get extends AiplatformRequest { - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$"); - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + /** + * 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 Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** 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 Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @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; - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - public class Get extends AiplatformRequest { + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$"); + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) 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 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/[^/]+$"); - } - } + /** + * 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; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** Required. The name of the AnnotationSpec resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + */ + public java.lang.String getName() { + return name; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * 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; + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + /** Mask specifying which fields to read. */ + public Get setReadMask(String readMask) { + this.readMask = readMask; + return this; + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** + * 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(); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** + * The "operations" collection of methods. + */ + public class Operations { - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** + * 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; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + public class Cancel extends AiplatformRequest { - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - @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/[^/]+$"); + 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 @@ -58449,7 +57113,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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); } } @@ -58523,7 +57187,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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -58558,7 +57222,7 @@ public class Delete extends AiplatformRequestThe typical use is:

*
          *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.DatasetVersions.List request = aiplatform.datasetVersions().list(parameters ...)}
+         *   {@code Aiplatform.DataItems.List request = aiplatform.dataItems().list(parameters ...)}
          * 
* * @return the resource collection */ - public DatasetVersions datasetVersions() { - return new DatasetVersions(); + public DataItems dataItems() { + return new DataItems(); } /** - * The "datasetVersions" collection of methods. + * The "dataItems" collection of methods. */ - public class DatasetVersions { + public class DataItems { /** - * Create a version from a Dataset. + * Lists DataItems in 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". + * 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 DatasetVersions from. Format: + * @param parent Required. The resource name of the Dataset to list DataItems from. Format: * `projects/{project}/locations/{location}/datasets/{dataset}` * @return the request */ @@ -59682,29 +57901,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}/datasetVersions"; + 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 DatasetVersions in a Dataset. + * Lists DataItems in a Dataset. * - * Create a request for the method "datasetVersions.list". + * 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 DatasetVersions from. Format: + * @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.GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse.class); + 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(), @@ -59779,13 +57998,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Dataset to list DatasetVersions from. Format: + * 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 DatasetVersions from. Format: + /** Required. The resource name of the Dataset to list DataItems from. Format: `projects/{project}/locations/{location}/datasets/{dataset}` */ public java.lang.String getParent() { @@ -59793,7 +58012,7 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Dataset to list DatasetVersions from. Format: + * 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) { @@ -59806,88 +58025,88 @@ public List setParent(java.lang.String parent) { return this; } - /** Optional. The standard list filter. */ + /** The standard list filter. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. The standard list filter. + /** The standard list filter. */ public java.lang.String getFilter() { return filter; } - /** Optional. The standard list filter. */ + /** 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. + * 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. + /** 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. + * 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. */ + /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The standard list page size. + /** The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** Optional. The standard list page size. */ + /** The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** Optional. The standard list page token. */ + /** The standard list page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. The standard list page token. + /** The standard list page token. */ public java.lang.String getPageToken() { return pageToken; } - /** Optional. The standard list page token. */ + /** The standard list page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** Optional. Mask specifying which fields to read. */ + /** Mask specifying which fields to read. */ @com.google.api.client.util.Key private String readMask; - /** Optional. Mask specifying which fields to read. + /** Mask specifying which fields to read. */ public String getReadMask() { return readMask; } - /** Optional. Mask specifying which fields to read. */ + /** Mask specifying which fields to read. */ public List setReadMask(String readMask) { this.readMask = readMask; return this; @@ -59898,1655 +58117,1202 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + /** - * Updates a DatasetVersion. + * An accessor for creating requests from the Annotations collection. * - * Create a request for the method "datasetVersions.patch". + *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.Annotations.List request = aiplatform.annotations().list(parameters ...)}
+           * 
* - * 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 + * @return the resource collection */ - 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 Annotations annotations() { + return new Annotations(); } - 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/[^/]+$"); + /** + * The "annotations" collection of methods. + */ + public class Annotations { /** - * Updates a DatasetVersion. + * Lists Annotations belongs to a dataitem. * - * Create a request for the method "datasetVersions.patch". + * 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 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.

+ * 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 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 + * @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 */ - 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/[^/]+$"); - } + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class List extends AiplatformRequest { - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+parent}/annotations"; - @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/[^/]+/datasets/[^/]+/dataItems/[^/]+$"); - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + /** + * 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 Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** - * 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; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** 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; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * 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/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - 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; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** 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; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** - * 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 List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) 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; - } + /** + * 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; - public class Restore extends AiplatformRequest { + /** 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; + } - private static final String REST_PATH = "v1beta1/{+name}:restore"; + /** + * 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; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** - * 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/[^/]+$"); + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * 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 Restore set$Xgafv(java.lang.String $Xgafv) { - return (Restore) 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. + */ + public java.lang.String getOrderBy() { + return orderBy; + } - @Override - public Restore setAccessToken(java.lang.String accessToken) { - return (Restore) 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 List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } - @Override - public Restore setAlt(java.lang.String alt) { - return (Restore) super.setAlt(alt); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Restore setCallback(java.lang.String callback) { - return (Restore) super.setCallback(callback); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Restore setFields(java.lang.String fields) { - return (Restore) super.setFields(fields); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Restore setKey(java.lang.String key) { - return (Restore) super.setKey(key); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Restore setOauthToken(java.lang.String oauthToken) { - return (Restore) super.setOauthToken(oauthToken); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Restore) super.setPrettyPrint(prettyPrint); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Restore setQuotaUser(java.lang.String quotaUser) { - return (Restore) super.setQuotaUser(quotaUser); - } + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - @Override - public Restore setUploadType(java.lang.String uploadType) { - return (Restore) super.setUploadType(uploadType); - } + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - @Override - public Restore setUploadProtocol(java.lang.String uploadProtocol) { - return (Restore) super.setUploadProtocol(uploadProtocol); + /** 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); + } } /** - * 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; - - /** Required. The name of the DatasetVersion resource. Format: - `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * 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 java.lang.String getName() { - return name; + public Operations operations() { + return new Operations(); } /** - * Required. The name of the DatasetVersion resource. Format: `projects/{project}/locati - * ons/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * The "operations" collection of methods. */ - 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/[^/]+$"); + 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; } - this.name = name; - return this; - } - @Override - public Restore set(String parameterName, Object value) { - return (Restore) super.set(parameterName, value); - } - } + public class Cancel extends AiplatformRequest { - } - /** - * 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(); - } + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - /** - * The "operations" collection of methods. - */ - public class Operations { + 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 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/[^/]+$"); + /** + * 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/[^/]+$"); + } + } - /** - * 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 Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @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 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 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 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 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 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 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 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 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 setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - @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. */ - @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 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; + } - /** 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/[^/]+$"); + @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; } - 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 { - public class Delete extends AiplatformRequest { + private static final String REST_PATH = "v1beta1/{+name}"; - 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/[^/]+$"); - 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/[^/]+/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/[^/]+/operations/[^/]+$"); - } - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @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 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 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 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 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 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 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 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 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 setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @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. */ - @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 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; + } - /** 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/[^/]+$"); + @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; } - 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 { - public class Get extends AiplatformRequest { + private static final String REST_PATH = "v1beta1/{+name}"; - 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/[^/]+$"); - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/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/[^/]+$"); + } + } - /** - * 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @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 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 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 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 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 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 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 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 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 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 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 setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @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. */ - @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 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; + } - /** 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/[^/]+$"); + @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; } - 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 { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}/operations"; + 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/[^/]+$"); + 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/[^/]+$"); - } - } + /** + * 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.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 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 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 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 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 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 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 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 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 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 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 setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @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. */ + @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 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/[^/]+$"); - } - this.name = name; - return this; - } + /** 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. */ + @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 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 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. */ + @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 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 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. */ + @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 java.lang.String getPageToken() { + return pageToken; + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** 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. + */ + @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 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; - } + /** + * 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; - } + @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 { + public class Wait extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:wait"; + 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/[^/]+$"); + 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/[^/]+/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 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/[^/]+/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/[^/]+/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. + */ + @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 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; - } + /** + * 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 Wait set(String parameterName, Object value) { - return (Wait) 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. - * - * Create a request for the method "savedQueries.delete". + * 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 Delete#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 resource name of the SavedQuery to delete. Format: - * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - * @return the request + * @return the resource collection */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public Operations operations() { + return new Operations(); } - 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/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class Operations { /** - * Deletes a SavedQuery. + * 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 "savedQueries.delete". + * 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 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 Cancel#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}` - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @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/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); - } + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Cancel extends AiplatformRequest { - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - @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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) 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/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); + } + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - 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}` - */ - @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}` - */ - 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 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; - } - - @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; - } - - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/savedQueries"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - - /** - * 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/[^/]+$"); - } - } - - @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 SavedQueries 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 SavedQueries from. Format: - `projects/{project}/locations/{location}/datasets/{dataset}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * 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; - } - - /** 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/[^/]+/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 setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } @Override public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { @@ -61583,7 +59349,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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -61618,7 +59384,7 @@ public class Delete extends AiplatformRequestThe 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(); - } - - /** - * The "deploymentResourcePools" collection of methods. - */ - public class DeploymentResourcePools { - /** - * Create a DeploymentResourcePool. - * - * Create a request for the method "deploymentResourcePools.create". + * An accessor for creating requests from the DatasetVersions 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. + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.DatasetVersions.List request = aiplatform.datasetVersions().list(parameters ...)}
+         * 
* - * @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 + * @return the resource collection */ - 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; + public DatasetVersions datasetVersions() { + return new DatasetVersions(); } - public class Create 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/[^/]+$"); + /** + * The "datasetVersions" collection of methods. + */ + public class DatasetVersions { /** - * Create a DeploymentResourcePool. + * Create a version from a Dataset. * - * Create a request for the method "deploymentResourcePools.create". + * 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.

+ * 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} - * @since 1.13 + * @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 */ - 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/[^/]+$"); - } + 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; } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + public class Create extends AiplatformRequest { - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+parent}/datasetVersions"; - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + /** + * 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 setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - /** - * 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; + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** Required. The parent location resource where this DeploymentResourcePool will be created. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** - * 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/[^/]+$"); + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } - this.parent = parent; - 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; - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - public class Delete extends AiplatformRequest { + /** + * 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; - private static final String REST_PATH = "v1beta1/{+name}"; + /** Required. The name of the Dataset resource. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` + */ + public java.lang.String getParent() { + return parent; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); + /** + * 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); + } + } /** - * Delete a DeploymentResourcePool. + * Deletes a Dataset version. * - * Create a request for the method "deploymentResourcePools.delete". + * 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.

+ * 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 - * }` - * @since 1.13 + * @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 */ - 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 Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Delete extends AiplatformRequest { - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @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/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** + * 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 setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * 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; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the DeploymentResourcePool to delete. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * 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/[^/]+$"); + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } - 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; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - public class Get extends AiplatformRequest { + /** + * 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; - private static final String REST_PATH = "v1beta1/{+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; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); + /** + * 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); + } + } /** - * Get a DeploymentResourcePool. + * Gets a Dataset version. * - * Create a request for the method "deploymentResourcePools.get". + * 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.

+ * 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 - * }` - * @since 1.13 + * @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 */ - 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/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Get 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}"; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** + * 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 Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * 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; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** 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 Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * 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/[^/]+$"); + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * List DeploymentResourcePools in a location. - * - * 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 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 List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - public class List extends AiplatformRequest { + /** + * 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; - private static final String REST_PATH = "v1beta1/{+parent}/deploymentResourcePools"; + /** 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; + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * 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); + } + } /** - * List DeploymentResourcePools in a location. + * Lists DatasetVersions in a Dataset. * - * Create a request for the method "deploymentResourcePools.list". + * 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.

+ * 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}` - * @since 1.13 + * @param parent Required. The resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @return the request */ - 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/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class List extends AiplatformRequest { - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + private static final String REST_PATH = "v1beta1/{+parent}/datasetVersions"; - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** + * 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 List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** - * 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; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** Required. The parent Location which owns this collection of DeploymentResourcePools. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** - * 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/[^/]+$"); + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - 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; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** The maximum number of DeploymentResourcePools to return. The service may return fewer than this - value. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** - * 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; - } + /** + * 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; - /** - * 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; + /** 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; + } - /** 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; - } + /** + * 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; + } - /** - * 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; - } + /** Optional. The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @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; - } + /** Optional. The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - public class Patch extends AiplatformRequest { + /** Optional. The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - private static final String REST_PATH = "v1beta1/{+name}"; + /** + * 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; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); + /** 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; + } - /** - * 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/[^/]+$"); + /** + * 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 Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + /** Optional. The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + /** Optional. The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + /** Optional. The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @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); - } - - /** - * 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; - - /** Immutable. The resource name of the DeploymentResourcePool. Format: - `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - */ - public java.lang.String getName() { - return name; - } + /** Optional. The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * 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/[^/]+$"); + /** Optional. The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; } - 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); - } - } - /** - * 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; - } - public class QueryDeployedModels extends AiplatformRequest { - - 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/[^/]+$"); - - /** - * 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 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 deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. Format: - * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool - * }` - * @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."); - 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/[^/]+$"); + /** Optional. The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - } - - @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 QueryDeployedModels set$Xgafv(java.lang.String $Xgafv) { - return (QueryDeployedModels) super.set$Xgafv($Xgafv); - } - - @Override - public QueryDeployedModels setAccessToken(java.lang.String accessToken) { - return (QueryDeployedModels) super.setAccessToken(accessToken); - } - - @Override - public QueryDeployedModels setAlt(java.lang.String alt) { - return (QueryDeployedModels) super.setAlt(alt); - } - - @Override - public QueryDeployedModels setCallback(java.lang.String callback) { - return (QueryDeployedModels) super.setCallback(callback); - } - - @Override - public QueryDeployedModels setFields(java.lang.String fields) { - return (QueryDeployedModels) super.setFields(fields); - } - - @Override - public QueryDeployedModels setKey(java.lang.String key) { - return (QueryDeployedModels) super.setKey(key); - } - - @Override - public QueryDeployedModels setOauthToken(java.lang.String oauthToken) { - return (QueryDeployedModels) super.setOauthToken(oauthToken); - } - @Override - public QueryDeployedModels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (QueryDeployedModels) super.setPrettyPrint(prettyPrint); - } - - @Override - public QueryDeployedModels setQuotaUser(java.lang.String quotaUser) { - return (QueryDeployedModels) super.setQuotaUser(quotaUser); - } - - @Override - public QueryDeployedModels setUploadType(java.lang.String uploadType) { - return (QueryDeployedModels) super.setUploadType(uploadType); - } - - @Override - public QueryDeployedModels setUploadProtocol(java.lang.String uploadProtocol) { - return (QueryDeployedModels) super.setUploadProtocol(uploadProtocol); - } - - /** - * 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; - - /** 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; - } + /** Optional. Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - /** - * 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/[^/]+$"); + /** Optional. Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; } - this.deploymentResourcePool = deploymentResourcePool; - return this; - } - - /** - * 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 maximum number of DeployedModels to return. The service may return fewer than this value. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * 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; - } - - /** - * 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; - - /** 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; - } - /** - * 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; - } + /** Optional. Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } - @Override - public QueryDeployedModels set(String parameterName, Object value) { - return (QueryDeployedModels) super.set(parameterName, value); + @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`. + * Updates a DatasetVersion. * - * Create a request for the method "operations.cancel". + * 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 Cancel#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be cancelled. + * @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 Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); + 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 Cancel extends AiplatformRequest { + public class Patch extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + 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/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); /** - * 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`. + * Updates a DatasetVersion. * - * Create a request for the method "operations.cancel". + * 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 Cancel#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. *

{@link - * Cancel#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 The name of the operation resource to be cancelled. + * @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 Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + 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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be cancelled. */ + /** + * 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; - /** The name of the operation resource to be cancelled. + /** 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; } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String 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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + "^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 Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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`. + * Restores a dataset version. * - * Create a request for the method "operations.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Restore#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 DatasetVersion resource. 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); + public Restore restore(java.lang.String name) throws java.io.IOException { + Restore result = new Restore(name); initialize(result); return result; } - public class Delete extends AiplatformRequest { + public class Restore extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+name}:restore"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); /** - * 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`. + * Restores a dataset version. * - * Create a request for the method "operations.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Restore#execute()} method to invoke the remote operation. *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 to be deleted. + * @param name Required. The name of the DatasetVersion resource. 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.GoogleProtobufEmpty.class); + 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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Restore set$Xgafv(java.lang.String $Xgafv) { + return (Restore) super.set$Xgafv($Xgafv); + } + + @Override + public Restore setAccessToken(java.lang.String accessToken) { + return (Restore) super.setAccessToken(accessToken); + } + + @Override + public Restore setAlt(java.lang.String alt) { + return (Restore) super.setAlt(alt); + } + + @Override + public Restore setCallback(java.lang.String callback) { + return (Restore) super.setCallback(callback); + } + + @Override + public Restore setFields(java.lang.String fields) { + return (Restore) super.setFields(fields); + } + + @Override + public Restore setKey(java.lang.String key) { + return (Restore) super.setKey(key); + } + + @Override + public Restore setOauthToken(java.lang.String oauthToken) { + return (Restore) super.setOauthToken(oauthToken); + } + + @Override + public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Restore) super.setPrettyPrint(prettyPrint); + } + + @Override + public Restore setQuotaUser(java.lang.String quotaUser) { + return (Restore) super.setQuotaUser(quotaUser); + } + + @Override + public Restore setUploadType(java.lang.String uploadType) { + return (Restore) super.setUploadType(uploadType); + } + + @Override + public Restore setUploadProtocol(java.lang.String uploadProtocol) { + return (Restore) super.setUploadProtocol(uploadProtocol); + } + + /** + * 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; + + /** 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 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 Restore set(String parameterName, Object value) { + return (Restore) 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/[^/]+/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/[^/]+/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/[^/]+/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/[^/]+/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); } @@ -63545,7 +61324,7 @@ 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -63579,7 +61358,7 @@ public class Get extends AiplatformRequestThe typical use is:

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

The typical use is:

*
          *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+         *   {@code Aiplatform.SavedQueries.List request = aiplatform.savedQueries().list(parameters ...)}
          * 
* * @return the resource collection */ - public Operations operations() { - return new Operations(); + public SavedQueries savedQueries() { + return new SavedQueries(); } /** - * The "operations" collection of methods. + * The "savedQueries" collection of methods. */ - public class Operations { + public class SavedQueries { /** - * 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`. + * Deletes a SavedQuery. * - * Create a request for the method "operations.cancel". + * 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 Cancel#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be cancelled. + * @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 Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Cancel extends AiplatformRequest { + public class Delete extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); /** - * 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`. + * Deletes a SavedQuery. * - * Create a request for the method "operations.cancel". + * 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 Cancel#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 cancelled. + * @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 Cancel(java.lang.String name) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be cancelled. */ + /** + * 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 resource to be cancelled. + /** 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 resource to be cancelled. */ - public Cancel setName(java.lang.String name) { + /** + * 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); } this.name = name; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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`. + * Lists SavedQueries in a Dataset. * - * Create a request for the method "operations.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be deleted. + * @param parent Required. The resource name of the Dataset to list SavedQueries from. 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); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Delete extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+parent}/savedQueries"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); /** - * 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`. + * Lists SavedQueries in a Dataset. * - * 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/[^/]+/edgeDevices/[^/]+/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/[^/]+/edgeDevices/[^/]+/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/[^/]+/edgeDevices/[^/]+/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/[^/]+/edgeDevices/[^/]+/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/[^/]+/edgeDevices/[^/]+/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/[^/]+/edgeDevices/[^/]+$"); - - /** - * 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". + * 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 name The name of the operation's parent resource. + * @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 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.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } } @@ -64656,24 +62138,31 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * 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 name; + private java.lang.String parent; - /** The name of the operation's parent resource. + /** Required. The resource name of the Dataset to list SavedQueries from. Format: + `projects/{project}/locations/{location}/datasets/{dataset}` */ - 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 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } @@ -64693,6 +62182,29 @@ 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; @@ -64725,38 +62237,19 @@ public List setPageToken(java.lang.String 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. - */ + /** Mask specifying which fields to read. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private String 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. + /** Mask specifying which fields to read. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public String getReadMask() { + return 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; + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; return this; } @@ -64765,1689 +62258,1686 @@ 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". + * 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 Wait#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 The name of the operation resource to wait on. - * @return the request + * @return the resource collection */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + public Operations operations() { + return new 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class 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.

+ * 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 wait on. - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); - } + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + public class Cancel extends AiplatformRequest { - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) 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/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); + } + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) 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 Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } - 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 setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) 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 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); + } + } /** - * 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. + * 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 Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } + public class Delete extends AiplatformRequest { - } - } - /** - * An accessor for creating requests from the Endpoints collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.Endpoints.List request = aiplatform.endpoints().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Endpoints endpoints() { - return new Endpoints(); - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** - * The "endpoints" collection of methods. - */ - public class Endpoints { + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - /** - * Return a list of tokens based on the input text. - * - * Create a request for the method "endpoints.computeTokens". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link ComputeTokens#execute()} method to invoke the remote operation. - * - * @param endpoint Required. The name of the Endpoint requested to get lists of tokens and token ids. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest} - * @return the request - */ - public ComputeTokens computeTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest content) throws java.io.IOException { - ComputeTokens result = new ComputeTokens(endpoint, content); - initialize(result); - return result; - } + /** + * 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/[^/]+$"); + } + } - public class ComputeTokens extends AiplatformRequest { + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+endpoint}:computeTokens"; + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** - * Return a list of tokens based on the input text. - * - * Create a request for the method "endpoints.computeTokens". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link ComputeTokens#execute()} method to invoke the remote - * operation.

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

- * - * @param endpoint Required. The name of the Endpoint requested to get lists of tokens and token ids. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest} - * @since 1.13 - */ - protected ComputeTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensResponse.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public ComputeTokens set$Xgafv(java.lang.String $Xgafv) { - return (ComputeTokens) super.set$Xgafv($Xgafv); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public ComputeTokens setAccessToken(java.lang.String accessToken) { - return (ComputeTokens) super.setAccessToken(accessToken); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public ComputeTokens setAlt(java.lang.String alt) { - return (ComputeTokens) super.setAlt(alt); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public ComputeTokens setCallback(java.lang.String callback) { - return (ComputeTokens) super.setCallback(callback); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public ComputeTokens setFields(java.lang.String fields) { - return (ComputeTokens) super.setFields(fields); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public ComputeTokens setKey(java.lang.String key) { - return (ComputeTokens) super.setKey(key); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public ComputeTokens setOauthToken(java.lang.String oauthToken) { - return (ComputeTokens) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public ComputeTokens setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ComputeTokens) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public ComputeTokens setQuotaUser(java.lang.String quotaUser) { - return (ComputeTokens) super.setQuotaUser(quotaUser); - } + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - @Override - public ComputeTokens setUploadType(java.lang.String uploadType) { - return (ComputeTokens) super.setUploadType(uploadType); - } + /** 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 ComputeTokens setUploadProtocol(java.lang.String uploadProtocol) { - return (ComputeTokens) super.setUploadProtocol(uploadProtocol); - } + @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; + } - /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + public class Get extends AiplatformRequest { - /** Required. The name of the Endpoint requested to get lists of tokens and token ids. - */ - public java.lang.String getEndpoint() { - return endpoint; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */ - public ComputeTokens setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - this.endpoint = endpoint; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$"); - @Override - public ComputeTokens set(String parameterName, Object value) { - return (ComputeTokens) super.set(parameterName, value); - } - } - /** - * Perform a token counting. - * - * Create a request for the method "endpoints.countTokens". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link CountTokens#execute()} method to invoke the remote operation. - * - * @param endpoint Required. The name of the Endpoint requested to perform token counting. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest} - * @return the request - */ - public CountTokens countTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest content) throws java.io.IOException { - CountTokens result = new CountTokens(endpoint, content); - initialize(result); - return result; - } + /** + * 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/[^/]+$"); + } + } - public class CountTokens 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/{+endpoint}:countTokens"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** - * Perform a token counting. - * - * Create a request for the method "endpoints.countTokens". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link CountTokens#execute()} method to invoke the remote - * operation.

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

- * - * @param endpoint Required. The name of the Endpoint requested to perform token counting. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest} - * @since 1.13 - */ - protected CountTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensResponse.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public CountTokens set$Xgafv(java.lang.String $Xgafv) { - return (CountTokens) super.set$Xgafv($Xgafv); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public CountTokens setAccessToken(java.lang.String accessToken) { - return (CountTokens) super.setAccessToken(accessToken); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public CountTokens setAlt(java.lang.String alt) { - return (CountTokens) super.setAlt(alt); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public CountTokens setCallback(java.lang.String callback) { - return (CountTokens) super.setCallback(callback); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public CountTokens setFields(java.lang.String fields) { - return (CountTokens) super.setFields(fields); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public CountTokens setKey(java.lang.String key) { - return (CountTokens) super.setKey(key); - } - - @Override - public CountTokens setOauthToken(java.lang.String oauthToken) { - return (CountTokens) super.setOauthToken(oauthToken); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public CountTokens setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CountTokens) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public CountTokens setQuotaUser(java.lang.String quotaUser) { - return (CountTokens) super.setQuotaUser(quotaUser); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public CountTokens setUploadType(java.lang.String uploadType) { - return (CountTokens) super.setUploadType(uploadType); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public CountTokens setUploadProtocol(java.lang.String uploadProtocol) { - return (CountTokens) super.setUploadProtocol(uploadProtocol); - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Required. The name of the Endpoint requested to perform token counting. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } - /** Required. The name of the Endpoint requested to perform token counting. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; - } + /** 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; + } - /** - * Required. The name of the Endpoint requested to perform token counting. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public CountTokens setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } - this.endpoint = endpoint; - return this; - } - - @Override - public CountTokens set(String parameterName, Object value) { - return (CountTokens) super.set(parameterName, value); - } - } - /** - * Creates an Endpoint. - * - * Create a request for the method "endpoints.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 Endpoint in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint 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}/endpoints"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Creates an Endpoint. - * - * Create a request for the method "endpoints.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 Endpoint in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint 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/[^/]+$"); + /** + * 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; } - } - - @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); - } + public class List extends AiplatformRequest { - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$"); - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + /** + * 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 Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * Required. The resource name of the Location to create the Endpoint in. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** Required. The resource name of the Location to create the Endpoint in. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** - * Required. The resource name of the Location to create the Endpoint 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 List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Immutable. The ID to use for endpoint, which will become the final component of the - * endpoint resource name. If not provided, Vertex AI will generate a value for this ID. - * If the first character is a letter, this value may be up to 63 characters, and valid - * characters are `[a-z0-9-]`. The last character must be a letter or number. If the first - * character is a number, this value may be up to 9 characters, and valid characters are - * `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a - * query string argument, such as `?endpoint_id=12345`. This is the fallback for fields - * that are not included in either the URI or the body. - */ - @com.google.api.client.util.Key - private java.lang.String endpointId; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** Immutable. The ID to use for endpoint, which will become the final component of the endpoint - resource name. If not provided, Vertex AI will generate a value for this ID. If the first character - is a letter, this value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The last - character must be a letter or number. If the first character is a number, this value may be up to 9 - characters, and valid characters are `[0-9]` with no leading zeros. When using HTTP/JSON, this - field is populated based on a query string argument, such as `?endpoint_id=12345`. This is the - fallback for fields that are not included in either the URI or the body. - */ - public java.lang.String getEndpointId() { - return endpointId; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** - * Immutable. The ID to use for endpoint, which will become the final component of the - * endpoint resource name. If not provided, Vertex AI will generate a value for this ID. - * If the first character is a letter, this value may be up to 63 characters, and valid - * characters are `[a-z0-9-]`. The last character must be a letter or number. If the first - * character is a number, this value may be up to 9 characters, and valid characters are - * `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a - * query string argument, such as `?endpoint_id=12345`. This is the fallback for fields - * that are not included in either the URI or the body. - */ - public Create setEndpointId(java.lang.String endpointId) { - this.endpointId = endpointId; - return this; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes an Endpoint. - * - * Create a request for the method "endpoints.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 Endpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @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/[^/]+/endpoints/[^/]+$"); + /** 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; + } - /** - * Deletes an Endpoint. - * - * Create a request for the method "endpoints.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 Endpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @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/[^/]+/endpoints/[^/]+$"); - } - } + /** 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; + } - /** - * Required. The name of the Endpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @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 + */ + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; + } - /** Required. The name of the Endpoint resource to be deleted. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getName() { - return name; - } + public class Wait extends AiplatformRequest { - /** - * Required. The name of the Endpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - 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/[^/]+/endpoints/[^/]+$"); + 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/[^/]+$"); + } + } + + @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/[^/]+/savedQueries/[^/]+/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); + } } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); } } + } + /** + * 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(); + } + + /** + * The "deploymentResourcePools" collection of methods. + */ + public class DeploymentResourcePools { + /** - * Deploys a Model into this Endpoint, creating a DeployedModel within it. + * Create a DeploymentResourcePool. * - * Create a request for the method "endpoints.deployModel". + * 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 DeployModel#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param endpoint Required. The name of the Endpoint resource into which to deploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest} + * @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 DeployModel deployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest content) throws java.io.IOException { - DeployModel result = new DeployModel(endpoint, content); + 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; } - public class DeployModel extends AiplatformRequest { + public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+endpoint}:deployModel"; + private static final String REST_PATH = "v1beta1/{+parent}/deploymentResourcePools"; - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Deploys a Model into this Endpoint, creating a DeployedModel within it. + * Create a DeploymentResourcePool. * - * Create a request for the method "endpoints.deployModel". + * 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 DeployModel#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param endpoint Required. The name of the Endpoint resource into which to deploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest} + * @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 DeployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest content) { + 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.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + 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(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public DeployModel set$Xgafv(java.lang.String $Xgafv) { - return (DeployModel) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public DeployModel setAccessToken(java.lang.String accessToken) { - return (DeployModel) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public DeployModel setAlt(java.lang.String alt) { - return (DeployModel) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public DeployModel setCallback(java.lang.String callback) { - return (DeployModel) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public DeployModel setFields(java.lang.String fields) { - return (DeployModel) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public DeployModel setKey(java.lang.String key) { - return (DeployModel) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public DeployModel setOauthToken(java.lang.String oauthToken) { - return (DeployModel) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public DeployModel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeployModel) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public DeployModel setQuotaUser(java.lang.String quotaUser) { - return (DeployModel) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public DeployModel setUploadType(java.lang.String uploadType) { - return (DeployModel) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public DeployModel setUploadProtocol(java.lang.String uploadProtocol) { - return (DeployModel) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Endpoint resource into which to deploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * 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 endpoint; + private java.lang.String parent; - /** Required. The name of the Endpoint resource into which to deploy a Model. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + /** Required. The parent location resource where this DeploymentResourcePool will be created. Format: + `projects/{project}/locations/{location}` */ - public java.lang.String getEndpoint() { - return endpoint; + public java.lang.String getParent() { + return parent; } /** - * Required. The name of the Endpoint resource into which to deploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The parent location resource where this DeploymentResourcePool will be + * created. Format: `projects/{project}/locations/{location}` */ - public DeployModel setEndpoint(java.lang.String endpoint) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.endpoint = endpoint; + this.parent = parent; return this; } @Override - public DeployModel set(String parameterName, Object value) { - return (DeployModel) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Perform an unary online prediction request to a gRPC model server for Vertex first-party products - * and frameworks. + * Delete a DeploymentResourcePool. * - * Create a request for the method "endpoints.directPredict". + * 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 DirectPredict#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictRequest} + * @param name Required. The name of the DeploymentResourcePool to delete. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` * @return the request */ - public DirectPredict directPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictRequest content) throws java.io.IOException { - DirectPredict result = new DirectPredict(endpoint, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class DirectPredict extends AiplatformRequest { + public class Delete extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+endpoint}:directPredict"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); /** - * Perform an unary online prediction request to a gRPC model server for Vertex first-party - * products and frameworks. + * Delete a DeploymentResourcePool. * - * Create a request for the method "endpoints.directPredict". + * Create a request for the method "deploymentResourcePools.delete". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link DirectPredict#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictRequest} + * @param name Required. The name of the DeploymentResourcePool to delete. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` * @since 1.13 */ - protected DirectPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictResponse.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + 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(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } } @Override - public DirectPredict set$Xgafv(java.lang.String $Xgafv) { - return (DirectPredict) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public DirectPredict setAccessToken(java.lang.String accessToken) { - return (DirectPredict) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public DirectPredict setAlt(java.lang.String alt) { - return (DirectPredict) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public DirectPredict setCallback(java.lang.String callback) { - return (DirectPredict) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public DirectPredict setFields(java.lang.String fields) { - return (DirectPredict) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public DirectPredict setKey(java.lang.String key) { - return (DirectPredict) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public DirectPredict setOauthToken(java.lang.String oauthToken) { - return (DirectPredict) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public DirectPredict setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DirectPredict) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public DirectPredict setQuotaUser(java.lang.String quotaUser) { - return (DirectPredict) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public DirectPredict setUploadType(java.lang.String uploadType) { - return (DirectPredict) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public DirectPredict setUploadProtocol(java.lang.String uploadProtocol) { - return (DirectPredict) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * 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 endpoint; + private java.lang.String name; - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + /** Required. The name of the DeploymentResourcePool to delete. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public java.lang.String getEndpoint() { - return endpoint; + public java.lang.String getName() { + return name; } /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project} + * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public DirectPredict setEndpoint(java.lang.String endpoint) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } - this.endpoint = endpoint; + this.name = name; return this; } @Override - public DirectPredict set(String parameterName, Object value) { - return (DirectPredict) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Perform an unary online prediction request to a gRPC model server for custom containers. + * Get a DeploymentResourcePool. * - * Create a request for the method "endpoints.directRawPredict". + * 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 DirectRawPredict#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictRequest} + * @param name Required. The name of the DeploymentResourcePool to retrieve. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` * @return the request */ - public DirectRawPredict directRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictRequest content) throws java.io.IOException { - DirectRawPredict result = new DirectRawPredict(endpoint, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class DirectRawPredict extends AiplatformRequest { + public class Get extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+endpoint}:directRawPredict"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); /** - * Perform an unary online prediction request to a gRPC model server for custom containers. + * Get a DeploymentResourcePool. * - * Create a request for the method "endpoints.directRawPredict". + * Create a request for the method "deploymentResourcePools.get". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link DirectRawPredict#execute()} method to invoke the remote - * operation.

{@link DirectRawPredict#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 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 endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictRequest} + * @param name Required. The name of the DeploymentResourcePool to retrieve. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` * @since 1.13 */ - protected DirectRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictResponse.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + 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(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } } @Override - public DirectRawPredict set$Xgafv(java.lang.String $Xgafv) { - return (DirectRawPredict) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DirectRawPredict setAccessToken(java.lang.String accessToken) { - return (DirectRawPredict) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public DirectRawPredict setAlt(java.lang.String alt) { - return (DirectRawPredict) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public DirectRawPredict setCallback(java.lang.String callback) { - return (DirectRawPredict) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public DirectRawPredict setFields(java.lang.String fields) { - return (DirectRawPredict) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public DirectRawPredict setKey(java.lang.String key) { - return (DirectRawPredict) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public DirectRawPredict setOauthToken(java.lang.String oauthToken) { - return (DirectRawPredict) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public DirectRawPredict setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DirectRawPredict) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public DirectRawPredict setQuotaUser(java.lang.String quotaUser) { - return (DirectRawPredict) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public DirectRawPredict setUploadType(java.lang.String uploadType) { - return (DirectRawPredict) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public DirectRawPredict setUploadProtocol(java.lang.String uploadProtocol) { - return (DirectRawPredict) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * 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 endpoint; + private java.lang.String name; - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + /** Required. The name of the DeploymentResourcePool to retrieve. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public java.lang.String getEndpoint() { - return endpoint; + public java.lang.String getName() { + return name; } /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{projec + * t}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public DirectRawPredict setEndpoint(java.lang.String endpoint) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } - this.endpoint = endpoint; + this.name = name; return this; } @Override - public DirectRawPredict set(String parameterName, Object value) { - return (DirectRawPredict) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Perform an online explanation. If deployed_model_id is specified, the corresponding DeployModel - * must have explanation_spec populated. If deployed_model_id is not specified, all DeployedModels - * must have explanation_spec populated. + * List DeploymentResourcePools in a location. * - * Create a request for the method "endpoints.explain". + * 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 Explain#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param endpoint Required. The name of the Endpoint requested to serve the explanation. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest} + * @param parent Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + * `projects/{project}/locations/{location}` * @return the request */ - public Explain explain(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest content) throws java.io.IOException { - Explain result = new Explain(endpoint, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Explain extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+endpoint}:explain"; + private static final String REST_PATH = "v1beta1/{+parent}/deploymentResourcePools"; - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Perform an online explanation. If deployed_model_id is specified, the corresponding DeployModel - * must have explanation_spec populated. If deployed_model_id is not specified, all DeployedModels - * must have explanation_spec populated. + * List DeploymentResourcePools in a location. * - * Create a request for the method "endpoints.explain". + * Create a request for the method "deploymentResourcePools.list". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Explain#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param endpoint Required. The name of the Endpoint requested to serve the explanation. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest} + * @param parent Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + * `projects/{project}/locations/{location}` * @since 1.13 */ - protected Explain(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainResponse.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + 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(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Explain set$Xgafv(java.lang.String $Xgafv) { - return (Explain) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Explain setAccessToken(java.lang.String accessToken) { - return (Explain) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Explain setAlt(java.lang.String alt) { - return (Explain) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Explain setCallback(java.lang.String callback) { - return (Explain) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Explain setFields(java.lang.String fields) { - return (Explain) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Explain setKey(java.lang.String key) { - return (Explain) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Explain setOauthToken(java.lang.String oauthToken) { - return (Explain) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Explain setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Explain) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Explain setQuotaUser(java.lang.String quotaUser) { - return (Explain) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Explain setUploadType(java.lang.String uploadType) { - return (Explain) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Explain setUploadProtocol(java.lang.String uploadProtocol) { - return (Explain) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Endpoint requested to serve the explanation. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * 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 endpoint; + private java.lang.String parent; - /** Required. The name of the Endpoint requested to serve the explanation. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + /** Required. The parent Location which owns this collection of DeploymentResourcePools. Format: + `projects/{project}/locations/{location}` */ - public java.lang.String getEndpoint() { - return endpoint; + public java.lang.String getParent() { + return parent; } /** - * Required. The name of the Endpoint requested to serve the explanation. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The parent Location which owns this collection of DeploymentResourcePools. + * Format: `projects/{project}/locations/{location}` */ - public Explain setEndpoint(java.lang.String endpoint) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.endpoint = endpoint; + 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 Explain set(String parameterName, Object value) { - return (Explain) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Fetch an asynchronous online prediction operation. + * Update a DeploymentResourcePool. * - * Create a request for the method "endpoints.fetchPredictOperation". + * 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 FetchPredictOperation#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest} + * @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 FetchPredictOperation fetchPredictOperation(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest content) throws java.io.IOException { - FetchPredictOperation result = new FetchPredictOperation(endpoint, content); + 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 FetchPredictOperation extends AiplatformRequest { + public class Patch extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+endpoint}:fetchPredictOperation"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); /** - * Fetch an asynchronous online prediction operation. + * Update a DeploymentResourcePool. * - * Create a request for the method "endpoints.fetchPredictOperation". + * 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 FetchPredictOperation#execute()} method to invoke the - * remote operation.

{@link FetchPredictOperation#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 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 endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest} + * @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 FetchPredictOperation(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + 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(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } } @Override - public FetchPredictOperation set$Xgafv(java.lang.String $Xgafv) { - return (FetchPredictOperation) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public FetchPredictOperation setAccessToken(java.lang.String accessToken) { - return (FetchPredictOperation) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public FetchPredictOperation setAlt(java.lang.String alt) { - return (FetchPredictOperation) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public FetchPredictOperation setCallback(java.lang.String callback) { - return (FetchPredictOperation) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public FetchPredictOperation setFields(java.lang.String fields) { - return (FetchPredictOperation) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public FetchPredictOperation setKey(java.lang.String key) { - return (FetchPredictOperation) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public FetchPredictOperation setOauthToken(java.lang.String oauthToken) { - return (FetchPredictOperation) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public FetchPredictOperation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (FetchPredictOperation) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public FetchPredictOperation setQuotaUser(java.lang.String quotaUser) { - return (FetchPredictOperation) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public FetchPredictOperation setUploadType(java.lang.String uploadType) { - return (FetchPredictOperation) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public FetchPredictOperation setUploadProtocol(java.lang.String uploadProtocol) { - return (FetchPredictOperation) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * 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 endpoint; + private java.lang.String name; - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` or - `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /** Immutable. The resource name of the DeploymentResourcePool. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public java.lang.String getEndpoint() { - return endpoint; + public java.lang.String getName() { + return name; } /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project} + * /locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public FetchPredictOperation setEndpoint(java.lang.String endpoint) { + public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } - this.endpoint = endpoint; + 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 FetchPredictOperation set(String parameterName, Object value) { - return (FetchPredictOperation) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Generate content with multimodal inputs. + * List DeployedModels that have been deployed on this DeploymentResourcePool. * - * Create a request for the method "endpoints.generateContent". + * 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 GenerateContent#execute()} method to invoke the remote operation. + * parameters, call the {@link QueryDeployedModels#execute()} method to invoke the remote operation. * - * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model - * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} + * @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` * @return the request */ - public GenerateContent generateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) throws java.io.IOException { - GenerateContent result = new GenerateContent(model, content); + public QueryDeployedModels queryDeployedModels(java.lang.String deploymentResourcePool) throws java.io.IOException { + QueryDeployedModels result = new QueryDeployedModels(deploymentResourcePool); initialize(result); return result; } - public class GenerateContent extends AiplatformRequest { + public class QueryDeployedModels extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+model}:generateContent"; + private static final String REST_PATH = "v1beta1/{+deploymentResourcePool}:queryDeployedModels"; - private final java.util.regex.Pattern MODEL_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + private final java.util.regex.Pattern DEPLOYMENT_RESOURCE_POOL_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); /** - * Generate content with multimodal inputs. + * List DeployedModels that have been deployed on this DeploymentResourcePool. * - * Create a request for the method "endpoints.generateContent". + * Create a request for the method "deploymentResourcePools.queryDeployedModels". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link GenerateContent#execute()} method to invoke the remote - * operation.

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

+ * 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 model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model - * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} + * @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. Format: + * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool + * }` * @since 1.13 */ - protected GenerateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentResponse.class); - this.model = com.google.api.client.util.Preconditions.checkNotNull(model, "Required parameter model must be specified."); + 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(MODEL_PATTERN.matcher(model).matches(), - "Parameter model must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - } - - @Override - public GenerateContent set$Xgafv(java.lang.String $Xgafv) { - return (GenerateContent) super.set$Xgafv($Xgafv); - } - - @Override - public GenerateContent setAccessToken(java.lang.String accessToken) { - return (GenerateContent) super.setAccessToken(accessToken); - } - - @Override - public GenerateContent setAlt(java.lang.String alt) { - return (GenerateContent) super.setAlt(alt); - } - - @Override - public GenerateContent setCallback(java.lang.String callback) { - return (GenerateContent) super.setCallback(callback); - } - - @Override - public GenerateContent setFields(java.lang.String fields) { - return (GenerateContent) super.setFields(fields); - } - - @Override - public GenerateContent setKey(java.lang.String key) { - return (GenerateContent) super.setKey(key); - } - - @Override - public GenerateContent setOauthToken(java.lang.String oauthToken) { - return (GenerateContent) super.setOauthToken(oauthToken); - } - - @Override - public GenerateContent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GenerateContent) super.setPrettyPrint(prettyPrint); - } - - @Override - public GenerateContent setQuotaUser(java.lang.String quotaUser) { - return (GenerateContent) super.setQuotaUser(quotaUser); - } - - @Override - public GenerateContent setUploadType(java.lang.String uploadType) { - return (GenerateContent) super.setUploadType(uploadType); - } - - @Override - public GenerateContent setUploadProtocol(java.lang.String uploadProtocol) { - return (GenerateContent) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The fully qualified name of the publisher model or tuned model endpoint to - * use. Publisher model format: - * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint - * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String model; - - /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - model format: `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint - format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getModel() { - return model; - } - - /** - * Required. The fully qualified name of the publisher model or tuned model endpoint to - * use. Publisher model format: - * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint - * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public GenerateContent setModel(java.lang.String model) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), - "Parameter model must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - this.model = model; - return this; - } - - @Override - public GenerateContent set(String parameterName, Object value) { - return (GenerateContent) super.set(parameterName, value); - } - } - /** - * Gets an Endpoint. - * - * Create a request for the method "endpoints.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 Endpoint resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @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/[^/]+/endpoints/[^/]+$"); - - /** - * Gets an Endpoint. - * - * Create a request for the method "endpoints.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 Endpoint resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint.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/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(DEPLOYMENT_RESOURCE_POOL_PATTERN.matcher(deploymentResourcePool).matches(), + "Parameter deploymentResourcePool must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); } } @@ -66462,1745 +63952,1876 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public QueryDeployedModels set$Xgafv(java.lang.String $Xgafv) { + return (QueryDeployedModels) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public QueryDeployedModels setAccessToken(java.lang.String accessToken) { + return (QueryDeployedModels) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public QueryDeployedModels setAlt(java.lang.String alt) { + return (QueryDeployedModels) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public QueryDeployedModels setCallback(java.lang.String callback) { + return (QueryDeployedModels) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public QueryDeployedModels setFields(java.lang.String fields) { + return (QueryDeployedModels) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public QueryDeployedModels setKey(java.lang.String key) { + return (QueryDeployedModels) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public QueryDeployedModels setOauthToken(java.lang.String oauthToken) { + return (QueryDeployedModels) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public QueryDeployedModels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryDeployedModels) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public QueryDeployedModels setQuotaUser(java.lang.String quotaUser) { + return (QueryDeployedModels) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public QueryDeployedModels setUploadType(java.lang.String uploadType) { + return (QueryDeployedModels) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public QueryDeployedModels setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryDeployedModels) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Endpoint resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * 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 name; + private java.lang.String deploymentResourcePool; - /** Required. The name of the Endpoint resource. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + /** Required. The name of the target DeploymentResourcePool to query. Format: + `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public java.lang.String getName() { - return name; + public java.lang.String getDeploymentResourcePool() { + return deploymentResourcePool; } /** - * Required. The name of the Endpoint resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The name of the target DeploymentResourcePool to query. Format: `projects/{pr + * oject}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` */ - public Get setName(java.lang.String name) { + public QueryDeployedModels setDeploymentResourcePool(java.lang.String deploymentResourcePool) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + 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.name = name; + this.deploymentResourcePool = deploymentResourcePool; 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 "endpoints.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/[^/]+/endpoints/[^/]+$"); - - /** - * 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 "endpoints.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/[^/]+/endpoints/[^/]+$"); - } - } - - @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. + * The maximum number of DeployedModels to return. The service may return fewer than this + * value. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Integer pageSize; - /** 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. + /** The maximum number of DeployedModels to return. The service may return fewer than this value. */ - public java.lang.String getResource() { - return resource; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * 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. + * The maximum number of DeployedModels to return. The service may return fewer than this + * value. */ - 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/[^/]+/endpoints/[^/]+$"); - } - this.resource = resource; + public QueryDeployedModels setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; 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). + * 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("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** 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). + /** 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.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getPageToken() { + return pageToken; } /** - * 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). + * 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 GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + public QueryDeployedModels 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 QueryDeployedModels set(String parameterName, Object value) { + return (QueryDeployedModels) super.set(parameterName, value); } } + /** - * Lists Endpoints in a Location. - * - * Create a request for the method "endpoints.list". + * 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 List#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 parent Required. The resource name of the Location from which to list the Endpoints. 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 Operations operations() { + return new Operations(); } - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/endpoints"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class Operations { /** - * Lists Endpoints in a Location. + * 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 "endpoints.list". + * 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 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 Cancel#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location from which to list the Endpoints. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEndpointsResponse.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); + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + public class Cancel extends AiplatformRequest { - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + /** + * 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 List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - /** - * Required. The resource name of the Location from which to list the Endpoints. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** Required. The resource name of the Location from which to list the Endpoints. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The resource name of the Location from which to list the Endpoints. 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 Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } - this.parent = parent; - return this; - } - /** - * Optional. An expression for filtering the results of the request. For field names both - * snake_case and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` - * represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * - * `display_name` 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"`. * - * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * - * `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - /** Optional. An expression for filtering the results of the request. For field names both snake_case - and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint - ID, i.e. the last segment of the Endpoint's resource name. * `display_name` 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"`. * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * - `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. An expression for filtering the results of the request. For field names both - * snake_case and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` - * represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * - * `display_name` 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"`. * - * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * - * `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Optional. Configures the Google Distributed Cloud (GDC) environment for online - * prediction. Only set this field when the Endpoint is to be deployed in a GDC - * environment. - */ - @com.google.api.client.util.Key - private java.lang.String gdcZone; + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } - /** Optional. Configures the Google Distributed Cloud (GDC) environment for online prediction. Only set - this field when the Endpoint is to be deployed in a GDC environment. - */ - public java.lang.String getGdcZone() { - return gdcZone; - } + /** 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; + } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } /** - * Optional. Configures the Google Distributed Cloud (GDC) environment for online - * prediction. Only set this field when the Endpoint is to be deployed in a GDC - * environment. + * 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 List setGdcZone(java.lang.String gdcZone) { - this.gdcZone = gdcZone; - return this; + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - /** Optional. The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + public class Delete extends AiplatformRequest { - /** Optional. The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** Optional. The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - /** - * Optional. The standard list page token. Typically obtained via - * ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints - * call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * 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/[^/]+$"); + } + } - /** Optional. The standard list page token. Typically obtained via - ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints call. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - /** - * Optional. The standard list page token. Typically obtained via - * ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints - * call. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - /** Optional. Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** Optional. Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - /** Optional. Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an existing deployed model. Updatable fields include `min_replica_count`, - * `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, - * `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). - * - * Create a request for the method "endpoints.mutateDeployedModel". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link MutateDeployedModel#execute()} method to invoke the remote operation. - * - * @param endpoint Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest} - * @return the request - */ - public MutateDeployedModel mutateDeployedModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest content) throws java.io.IOException { - MutateDeployedModel result = new MutateDeployedModel(endpoint, content); - initialize(result); - return result; - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - public class MutateDeployedModel extends AiplatformRequest { + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - private static final String REST_PATH = "v1beta1/{+endpoint}:mutateDeployedModel"; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + @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/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Updates an existing deployed model. Updatable fields include `min_replica_count`, - * `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, - * `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). + * 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 "endpoints.mutateDeployedModel". + * 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 MutateDeployedModel#execute()} method to invoke the remote - * operation.

{@link MutateDeployedModel#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 Get#execute()} method to invoke the remote operation. * - * @param endpoint Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest} - * @since 1.13 + * @param name The name of the operation resource. + * @return the request */ - protected MutateDeployedModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public MutateDeployedModel set$Xgafv(java.lang.String $Xgafv) { - return (MutateDeployedModel) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest { - @Override - public MutateDeployedModel setAccessToken(java.lang.String accessToken) { - return (MutateDeployedModel) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public MutateDeployedModel setAlt(java.lang.String alt) { - return (MutateDeployedModel) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - @Override - public MutateDeployedModel setCallback(java.lang.String callback) { - return (MutateDeployedModel) super.setCallback(callback); - } + /** + * 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 MutateDeployedModel setFields(java.lang.String fields) { - return (MutateDeployedModel) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public MutateDeployedModel setKey(java.lang.String key) { - return (MutateDeployedModel) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public MutateDeployedModel setOauthToken(java.lang.String oauthToken) { - return (MutateDeployedModel) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public MutateDeployedModel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MutateDeployedModel) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public MutateDeployedModel setQuotaUser(java.lang.String quotaUser) { - return (MutateDeployedModel) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public MutateDeployedModel setUploadType(java.lang.String uploadType) { - return (MutateDeployedModel) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public MutateDeployedModel setUploadProtocol(java.lang.String uploadProtocol) { - return (MutateDeployedModel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * Required. The name of the Endpoint resource into which to mutate a DeployedModel. - * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the Endpoint resource into which to mutate a DeployedModel. - * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public MutateDeployedModel setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - this.endpoint = endpoint; - return this; - } - @Override - public MutateDeployedModel set(String parameterName, Object value) { - return (MutateDeployedModel) super.set(parameterName, value); - } - } - /** - * Updates an Endpoint. - * - * Create a request for the method "endpoints.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 Endpoint. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - public class Patch extends AiplatformRequest { + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + /** 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; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Updates an Endpoint. + * 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 "endpoints.patch". + * 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 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.

+ * 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 Identifier. The resource name of the Endpoint. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} - * @since 1.13 + * @param name The name of the operation's parent resource. + * @return the request */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint.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/[^/]+/endpoints/[^/]+$"); - } + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class List extends AiplatformRequest { - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$"); - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + /** + * 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 Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** Identifier. The resource name of the Endpoint. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Identifier. The resource name of the Endpoint. - */ - public java.lang.String getName() { - return name; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** Identifier. The resource name of the Endpoint. */ - 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/[^/]+/endpoints/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - this.name = name; - return this; - } - /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ - @com.google.api.client.util.Key - private String updateMask; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. - */ - public String getUpdateMask() { - return updateMask; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Create a request for the method "endpoints.predict". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Predict#execute()} method to invoke the remote operation. - * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictRequest} - * @return the request - */ - public Predict predict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictRequest content) throws java.io.IOException { - Predict result = new Predict(endpoint, content); - initialize(result); - return result; - } + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - public class Predict extends AiplatformRequest { + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - private static final String REST_PATH = "v1beta1/{+endpoint}:predict"; + /** 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; + } - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** - * Create a request for the method "endpoints.predict". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Predict#execute()} method to invoke the remote operation. - *

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

- * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictRequest} - * @since 1.13 - */ - protected Predict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictResponse.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; } - } - @Override - public Predict set$Xgafv(java.lang.String $Xgafv) { - return (Predict) super.set$Xgafv($Xgafv); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Predict setAccessToken(java.lang.String accessToken) { - return (Predict) super.setAccessToken(accessToken); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Predict setAlt(java.lang.String alt) { - return (Predict) super.setAlt(alt); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Predict setCallback(java.lang.String callback) { - return (Predict) super.setCallback(callback); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Predict setFields(java.lang.String fields) { - return (Predict) super.setFields(fields); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Predict setKey(java.lang.String key) { - return (Predict) super.setKey(key); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Predict setOauthToken(java.lang.String oauthToken) { - return (Predict) super.setOauthToken(oauthToken); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Predict setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Predict) super.setPrettyPrint(prettyPrint); - } + /** + * 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 Predict setQuotaUser(java.lang.String quotaUser) { - return (Predict) 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. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } - @Override - public Predict setUploadType(java.lang.String uploadType) { - return (Predict) 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 List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } - @Override - public Predict setUploadProtocol(java.lang.String uploadProtocol) { - return (Predict) super.setUploadProtocol(uploadProtocol); + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; - - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + * 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 java.lang.String getEndpoint() { - return endpoint; + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public Predict setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - this.endpoint = endpoint; - return this; - } + public class Wait extends AiplatformRequest { - @Override - public Predict set(String parameterName, Object value) { - return (Predict) super.set(parameterName, value); - } - } - /** - * Create a request for the method "endpoints.predictLongRunning". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link PredictLongRunning#execute()} method to invoke the remote operation. - * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest} - * @return the request - */ - public PredictLongRunning predictLongRunning(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest content) throws java.io.IOException { - PredictLongRunning result = new PredictLongRunning(endpoint, content); - initialize(result); - return result; - } + private static final String REST_PATH = "v1beta1/{+name}:wait"; - public class PredictLongRunning extends AiplatformRequest { + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$"); - private static final String REST_PATH = "v1beta1/{+endpoint}:predictLongRunning"; + /** + * 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/[^/]+$"); + } + } - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - /** - * Create a request for the method "endpoints.predictLongRunning". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link PredictLongRunning#execute()} method to invoke the remote - * operation.

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

- * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest} - * @since 1.13 - */ - protected PredictLongRunning(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } - } - @Override - public PredictLongRunning set$Xgafv(java.lang.String $Xgafv) { - return (PredictLongRunning) super.set$Xgafv($Xgafv); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @Override - public PredictLongRunning setAccessToken(java.lang.String accessToken) { - return (PredictLongRunning) super.setAccessToken(accessToken); - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public PredictLongRunning setAlt(java.lang.String alt) { - return (PredictLongRunning) super.setAlt(alt); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public PredictLongRunning setCallback(java.lang.String callback) { - return (PredictLongRunning) super.setCallback(callback); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public PredictLongRunning setFields(java.lang.String fields) { - return (PredictLongRunning) super.setFields(fields); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - @Override - public PredictLongRunning setKey(java.lang.String key) { - return (PredictLongRunning) super.setKey(key); - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @Override - public PredictLongRunning setOauthToken(java.lang.String oauthToken) { - return (PredictLongRunning) super.setOauthToken(oauthToken); - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - @Override - public PredictLongRunning setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PredictLongRunning) super.setPrettyPrint(prettyPrint); - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public PredictLongRunning setQuotaUser(java.lang.String quotaUser) { - return (PredictLongRunning) super.setQuotaUser(quotaUser); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - @Override - public PredictLongRunning setUploadType(java.lang.String uploadType) { - return (PredictLongRunning) super.setUploadType(uploadType); - } + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public PredictLongRunning setUploadProtocol(java.lang.String uploadProtocol) { - return (PredictLongRunning) super.setUploadProtocol(uploadProtocol); - } + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + /** 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; + } - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` or - `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - */ - public java.lang.String getEndpoint() { - return endpoint; - } + /** + * 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; - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - */ - public PredictLongRunning setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + /** 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; } - this.endpoint = endpoint; - return this; - } - @Override - public PredictLongRunning set(String parameterName, Object value) { - return (PredictLongRunning) 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 EdgeDevices collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.EdgeDevices.List request = aiplatform.edgeDevices().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public EdgeDevices edgeDevices() { + return new EdgeDevices(); + } + + /** + * The "edgeDevices" collection of methods. + */ + public class EdgeDevices { + /** - * Perform an online prediction with an arbitrary HTTP payload. The response includes the following - * HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * - * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction. - * - * Create a request for the method "endpoints.rawPredict". + * 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 RawPredict#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 endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RawPredictRequest} - * @return the request + * @return the resource collection */ - public RawPredict rawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RawPredictRequest content) throws java.io.IOException { - RawPredict result = new RawPredict(endpoint, content); - initialize(result); - return result; + public Operations operations() { + return new Operations(); } - public class RawPredict extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+endpoint}:rawPredict"; - - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class Operations { /** - * Perform an online prediction with an arbitrary HTTP payload. The response includes the - * following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this - * prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served - * this prediction. + * 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 "endpoints.rawPredict". + * 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 RawPredict#execute()} method to invoke the remote - * operation.

{@link - * RawPredict#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 endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RawPredictRequest} - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - protected RawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RawPredictRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - } - - @Override - public RawPredict set$Xgafv(java.lang.String $Xgafv) { - return (RawPredict) 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 RawPredict setAccessToken(java.lang.String accessToken) { - return (RawPredict) super.setAccessToken(accessToken); - } + public class Cancel extends AiplatformRequest { - @Override - public RawPredict setAlt(java.lang.String alt) { - return (RawPredict) super.setAlt(alt); - } + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - @Override - public RawPredict setCallback(java.lang.String callback) { - return (RawPredict) super.setCallback(callback); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); - @Override - public RawPredict setFields(java.lang.String fields) { - return (RawPredict) super.setFields(fields); - } + /** + * 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + } + } - @Override - public RawPredict setKey(java.lang.String key) { - return (RawPredict) super.setKey(key); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public RawPredict setOauthToken(java.lang.String oauthToken) { - return (RawPredict) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public RawPredict setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RawPredict) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public RawPredict setQuotaUser(java.lang.String quotaUser) { - return (RawPredict) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public RawPredict setUploadType(java.lang.String uploadType) { - return (RawPredict) super.setUploadType(uploadType); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public RawPredict setUploadProtocol(java.lang.String uploadProtocol) { - return (RawPredict) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public RawPredict setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } - this.endpoint = endpoint; - return this; - } - @Override - public RawPredict set(String parameterName, Object value) { - return (RawPredict) super.set(parameterName, value); - } - } - /** - * Perform a server-side streaming online prediction request for Vertex LLM streaming. - * - * Create a request for the method "endpoints.serverStreamingPredict". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link ServerStreamingPredict#execute()} method to invoke the remote - * operation. - * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictRequest} - * @return the request - */ - public ServerStreamingPredict serverStreamingPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictRequest content) throws java.io.IOException { - ServerStreamingPredict result = new ServerStreamingPredict(endpoint, content); - initialize(result); - return result; - } + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - public class ServerStreamingPredict extends AiplatformRequest { + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - private static final String REST_PATH = "v1beta1/{+endpoint}:serverStreamingPredict"; + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + /** 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } /** - * Perform a server-side streaming online prediction request for Vertex LLM streaming. + * 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 "endpoints.serverStreamingPredict". + * 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 ServerStreamingPredict#execute()} method to invoke the - * remote operation.

{@link ServerStreamingPredict#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 Delete#execute()} method to invoke the remote operation. * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictRequest} - * @since 1.13 + * @param name The name of the operation resource to be deleted. + * @return the request */ - protected ServerStreamingPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictResponse.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public ServerStreamingPredict set$Xgafv(java.lang.String $Xgafv) { - return (ServerStreamingPredict) super.set$Xgafv($Xgafv); - } + public class Delete extends AiplatformRequest { - @Override - public ServerStreamingPredict setAccessToken(java.lang.String accessToken) { - return (ServerStreamingPredict) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public ServerStreamingPredict setAlt(java.lang.String alt) { - return (ServerStreamingPredict) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); - @Override - public ServerStreamingPredict setCallback(java.lang.String callback) { - return (ServerStreamingPredict) super.setCallback(callback); - } + /** + * 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + } + } - @Override - public ServerStreamingPredict setFields(java.lang.String fields) { - return (ServerStreamingPredict) super.setFields(fields); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public ServerStreamingPredict setKey(java.lang.String key) { - return (ServerStreamingPredict) super.setKey(key); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public ServerStreamingPredict setOauthToken(java.lang.String oauthToken) { - return (ServerStreamingPredict) super.setOauthToken(oauthToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public ServerStreamingPredict setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ServerStreamingPredict) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public ServerStreamingPredict setQuotaUser(java.lang.String quotaUser) { - return (ServerStreamingPredict) super.setQuotaUser(quotaUser); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public ServerStreamingPredict setUploadType(java.lang.String uploadType) { - return (ServerStreamingPredict) super.setUploadType(uploadType); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public ServerStreamingPredict setUploadProtocol(java.lang.String uploadProtocol) { - return (ServerStreamingPredict) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public ServerStreamingPredict setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } - this.endpoint = endpoint; - return this; - } - @Override - public ServerStreamingPredict set(String parameterName, Object value) { - return (ServerStreamingPredict) 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 "endpoints.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; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - public class SetIamPolicy extends AiplatformRequest { + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + /** 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Gets 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 "endpoints.setIamPolicy". + * 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 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 Get#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} - * @since 1.13 + * @param name The name of the operation resource. + * @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/[^/]+/endpoints/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest { - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } + /** + * 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + } + } - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * 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 Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** 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 Get setOauthToken(java.lang.String oauthToken) { + return (Get) 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. - */ - 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/[^/]+/endpoints/[^/]+$"); + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - this.resource = resource; - return this; - } - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Generate content with multimodal inputs with streaming support. - * - * Create a request for the method "endpoints.streamGenerateContent". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link StreamGenerateContent#execute()} method to invoke the remote - * operation. - * - * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model - * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} - * @return the request - */ - public StreamGenerateContent streamGenerateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) throws java.io.IOException { - StreamGenerateContent result = new StreamGenerateContent(model, content); - initialize(result); - return result; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - public class StreamGenerateContent extends AiplatformRequest { + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v1beta1/{+model}:streamGenerateContent"; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - private final java.util.regex.Pattern MODEL_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + /** 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/[^/]+/edgeDevices/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Generate content with multimodal inputs with streaming support. + * 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 "endpoints.streamGenerateContent". + * 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 StreamGenerateContent#execute()} method to invoke the - * remote operation.

{@link StreamGenerateContent#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 List#execute()} method to invoke the remote operation. * - * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model - * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} - * @since 1.13 + * @param name The name of the operation's parent resource. + * @return the request */ - protected StreamGenerateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentResponse.class); - this.model = com.google.api.client.util.Preconditions.checkNotNull(model, "Required parameter model must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), - "Parameter model must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - } - - @Override - public StreamGenerateContent set$Xgafv(java.lang.String $Xgafv) { - return (StreamGenerateContent) super.set$Xgafv($Xgafv); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public StreamGenerateContent setAccessToken(java.lang.String accessToken) { - return (StreamGenerateContent) super.setAccessToken(accessToken); - } + public class List extends AiplatformRequest { - @Override - public StreamGenerateContent setAlt(java.lang.String alt) { - return (StreamGenerateContent) super.setAlt(alt); - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - @Override - public StreamGenerateContent setCallback(java.lang.String callback) { - return (StreamGenerateContent) super.setCallback(callback); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+$"); - @Override - public StreamGenerateContent setFields(java.lang.String fields) { - return (StreamGenerateContent) super.setFields(fields); - } + /** + * 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/[^/]+/edgeDevices/[^/]+$"); + } + } - @Override - public StreamGenerateContent setKey(java.lang.String key) { - return (StreamGenerateContent) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public StreamGenerateContent setOauthToken(java.lang.String oauthToken) { - return (StreamGenerateContent) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public StreamGenerateContent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StreamGenerateContent) super.setPrettyPrint(prettyPrint); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public StreamGenerateContent setQuotaUser(java.lang.String quotaUser) { - return (StreamGenerateContent) super.setQuotaUser(quotaUser); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public StreamGenerateContent setUploadType(java.lang.String uploadType) { - return (StreamGenerateContent) super.setUploadType(uploadType); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public StreamGenerateContent setUploadProtocol(java.lang.String uploadProtocol) { - return (StreamGenerateContent) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * Required. The fully qualified name of the publisher model or tuned model endpoint to - * use. Publisher model format: - * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint - * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String model; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - model format: `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint - format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getModel() { - return model; - } + @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/[^/]+/edgeDevices/[^/]+$"); + } + 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); + } + } /** - * Required. The fully qualified name of the publisher model or tuned model endpoint to - * use. Publisher model format: - * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint - * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + * 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 StreamGenerateContent setModel(java.lang.String model) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), - "Parameter model must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - this.model = model; - return this; + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - @Override - public StreamGenerateContent set(String parameterName, Object value) { - return (StreamGenerateContent) super.set(parameterName, value); + 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/[^/]+/edgeDevices/[^/]+/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/[^/]+/edgeDevices/[^/]+/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/[^/]+/edgeDevices/[^/]+/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 Endpoints collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.Endpoints.List request = aiplatform.endpoints().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Endpoints endpoints() { + return new Endpoints(); + } + + /** + * The "endpoints" collection of methods. + */ + public class Endpoints { + /** - * Perform a streaming online prediction with an arbitrary HTTP payload. + * Return a list of tokens based on the input text. * - * Create a request for the method "endpoints.streamRawPredict". + * Create a request for the method "endpoints.computeTokens". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link StreamRawPredict#execute()} method to invoke the remote operation. + * parameters, call the {@link ComputeTokens#execute()} method to invoke the remote operation. * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest} + * @param endpoint Required. The name of the Endpoint requested to get lists of tokens and token ids. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest} * @return the request */ - public StreamRawPredict streamRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest content) throws java.io.IOException { - StreamRawPredict result = new StreamRawPredict(endpoint, content); + public ComputeTokens computeTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest content) throws java.io.IOException { + ComputeTokens result = new ComputeTokens(endpoint, content); initialize(result); return result; } - public class StreamRawPredict extends AiplatformRequest { + public class ComputeTokens extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+endpoint}:streamRawPredict"; + private static final String REST_PATH = "v1beta1/{+endpoint}:computeTokens"; private final java.util.regex.Pattern ENDPOINT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * Perform a streaming online prediction with an arbitrary HTTP payload. + * Return a list of tokens based on the input text. * - * Create a request for the method "endpoints.streamRawPredict". + * Create a request for the method "endpoints.computeTokens". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link StreamRawPredict#execute()} method to invoke the remote - * operation.

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

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

* - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest} + * @param endpoint Required. The name of the Endpoint requested to get lists of tokens and token ids. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest} * @since 1.13 */ - protected StreamRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + protected ComputeTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ComputeTokensResponse.class); this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), @@ -68210,82 +65831,72 @@ protected StreamRawPredict(java.lang.String endpoint, com.google.api.services.ai } @Override - public StreamRawPredict set$Xgafv(java.lang.String $Xgafv) { - return (StreamRawPredict) super.set$Xgafv($Xgafv); + public ComputeTokens set$Xgafv(java.lang.String $Xgafv) { + return (ComputeTokens) super.set$Xgafv($Xgafv); } @Override - public StreamRawPredict setAccessToken(java.lang.String accessToken) { - return (StreamRawPredict) super.setAccessToken(accessToken); + public ComputeTokens setAccessToken(java.lang.String accessToken) { + return (ComputeTokens) super.setAccessToken(accessToken); } @Override - public StreamRawPredict setAlt(java.lang.String alt) { - return (StreamRawPredict) super.setAlt(alt); + public ComputeTokens setAlt(java.lang.String alt) { + return (ComputeTokens) super.setAlt(alt); } @Override - public StreamRawPredict setCallback(java.lang.String callback) { - return (StreamRawPredict) super.setCallback(callback); + public ComputeTokens setCallback(java.lang.String callback) { + return (ComputeTokens) super.setCallback(callback); } @Override - public StreamRawPredict setFields(java.lang.String fields) { - return (StreamRawPredict) super.setFields(fields); + public ComputeTokens setFields(java.lang.String fields) { + return (ComputeTokens) super.setFields(fields); } @Override - public StreamRawPredict setKey(java.lang.String key) { - return (StreamRawPredict) super.setKey(key); + public ComputeTokens setKey(java.lang.String key) { + return (ComputeTokens) super.setKey(key); } @Override - public StreamRawPredict setOauthToken(java.lang.String oauthToken) { - return (StreamRawPredict) super.setOauthToken(oauthToken); + public ComputeTokens setOauthToken(java.lang.String oauthToken) { + return (ComputeTokens) super.setOauthToken(oauthToken); } @Override - public StreamRawPredict setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StreamRawPredict) super.setPrettyPrint(prettyPrint); + public ComputeTokens setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ComputeTokens) super.setPrettyPrint(prettyPrint); } @Override - public StreamRawPredict setQuotaUser(java.lang.String quotaUser) { - return (StreamRawPredict) super.setQuotaUser(quotaUser); + public ComputeTokens setQuotaUser(java.lang.String quotaUser) { + return (ComputeTokens) super.setQuotaUser(quotaUser); } @Override - public StreamRawPredict setUploadType(java.lang.String uploadType) { - return (StreamRawPredict) super.setUploadType(uploadType); + public ComputeTokens setUploadType(java.lang.String uploadType) { + return (ComputeTokens) super.setUploadType(uploadType); } @Override - public StreamRawPredict setUploadProtocol(java.lang.String uploadProtocol) { - return (StreamRawPredict) super.setUploadProtocol(uploadProtocol); + public ComputeTokens setUploadProtocol(java.lang.String uploadProtocol) { + return (ComputeTokens) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - */ + /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */ @com.google.api.client.util.Key private java.lang.String endpoint; - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` or - `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */ public java.lang.String getEndpoint() { return endpoint; } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` or - * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - */ - public StreamRawPredict setEndpoint(java.lang.String endpoint) { + /** Required. The name of the Endpoint requested to get lists of tokens and token ids. */ + public ComputeTokens setEndpoint(java.lang.String endpoint) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), "Parameter endpoint must conform to the pattern " + @@ -68296,369 +65907,372 @@ public StreamRawPredict setEndpoint(java.lang.String endpoint) { } @Override - public StreamRawPredict set(String parameterName, Object value) { - return (StreamRawPredict) super.set(parameterName, value); + public ComputeTokens set(String parameterName, Object value) { + return (ComputeTokens) 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. + * Perform a token counting. * - * Create a request for the method "endpoints.testIamPermissions". + * Create a request for the method "endpoints.countTokens". * * 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. + * parameters, call the {@link CountTokens#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param endpoint Required. The name of the Endpoint requested to perform token counting. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource); + public CountTokens countTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest content) throws java.io.IOException { + CountTokens result = new CountTokens(endpoint, content); initialize(result); return result; } - public class TestIamPermissions extends AiplatformRequest { + public class CountTokens extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+resource}:testIamPermissions"; + private static final String REST_PATH = "v1beta1/{+endpoint}:countTokens"; - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern ENDPOINT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * 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. + * Perform a token counting. * - * Create a request for the method "endpoints.testIamPermissions". + * Create a request for the method "endpoints.countTokens". * * 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.

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

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

* - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param endpoint Required. The name of the Endpoint requested to perform token counting. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest} * @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."); + protected CountTokens(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CountTokensResponse.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public CountTokens set$Xgafv(java.lang.String $Xgafv) { + return (CountTokens) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public CountTokens setAccessToken(java.lang.String accessToken) { + return (CountTokens) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public CountTokens setAlt(java.lang.String alt) { + return (CountTokens) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public CountTokens setCallback(java.lang.String callback) { + return (CountTokens) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public CountTokens setFields(java.lang.String fields) { + return (CountTokens) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public CountTokens setKey(java.lang.String key) { + return (CountTokens) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public CountTokens setOauthToken(java.lang.String oauthToken) { + return (CountTokens) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public CountTokens setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CountTokens) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public CountTokens setQuotaUser(java.lang.String quotaUser) { + return (CountTokens) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public CountTokens setUploadType(java.lang.String uploadType) { + return (CountTokens) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public CountTokens setUploadProtocol(java.lang.String uploadProtocol) { + return (CountTokens) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The name of the Endpoint requested to perform token counting. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String endpoint; - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The name of the Endpoint requested to perform token counting. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getEndpoint() { + return endpoint; } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The name of the Endpoint requested to perform token counting. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public TestIamPermissions setResource(java.lang.String resource) { + public CountTokens setEndpoint(java.lang.String endpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } - 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; + this.endpoint = endpoint; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public CountTokens set(String parameterName, Object value) { + return (CountTokens) super.set(parameterName, value); } } /** - * Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources - * it's using. + * Creates an Endpoint. * - * Create a request for the method "endpoints.undeployModel". + * Create a request for the method "endpoints.create". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link UndeployModel#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param endpoint Required. The name of the Endpoint resource from which to undeploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployModelRequest} + * @param parent Required. The resource name of the Location to create the Endpoint in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} * @return the request */ - public UndeployModel undeployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployModelRequest content) throws java.io.IOException { - UndeployModel result = new UndeployModel(endpoint, content); + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class UndeployModel extends AiplatformRequest { + public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+endpoint}:undeployModel"; + private static final String REST_PATH = "v1beta1/{+parent}/endpoints"; - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources - * it's using. + * Creates an Endpoint. * - * Create a request for the method "endpoints.undeployModel". + * Create a request for the method "endpoints.create". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link UndeployModel#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param endpoint Required. The name of the Endpoint resource from which to undeploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployModelRequest} + * @param parent Required. The resource name of the Location to create the Endpoint in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} * @since 1.13 */ - protected UndeployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployModelRequest content) { + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) { super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + 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(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public UndeployModel set$Xgafv(java.lang.String $Xgafv) { - return (UndeployModel) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public UndeployModel setAccessToken(java.lang.String accessToken) { - return (UndeployModel) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public UndeployModel setAlt(java.lang.String alt) { - return (UndeployModel) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public UndeployModel setCallback(java.lang.String callback) { - return (UndeployModel) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public UndeployModel setFields(java.lang.String fields) { - return (UndeployModel) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public UndeployModel setKey(java.lang.String key) { - return (UndeployModel) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public UndeployModel setOauthToken(java.lang.String oauthToken) { - return (UndeployModel) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public UndeployModel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UndeployModel) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public UndeployModel setQuotaUser(java.lang.String quotaUser) { - return (UndeployModel) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public UndeployModel setUploadType(java.lang.String uploadType) { - return (UndeployModel) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public UndeployModel setUploadProtocol(java.lang.String uploadProtocol) { - return (UndeployModel) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Endpoint resource from which to undeploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The resource name of the Location to create the Endpoint in. Format: + * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String endpoint; + private java.lang.String parent; - /** Required. The name of the Endpoint resource from which to undeploy a Model. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` + /** Required. The resource name of the Location to create the Endpoint in. Format: + `projects/{project}/locations/{location}` */ - public java.lang.String getEndpoint() { - return endpoint; + public java.lang.String getParent() { + return parent; } /** - * Required. The name of the Endpoint resource from which to undeploy a Model. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * Required. The resource name of the Location to create the Endpoint in. Format: + * `projects/{project}/locations/{location}` */ - public UndeployModel setEndpoint(java.lang.String endpoint) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.endpoint = endpoint; + this.parent = parent; + return this; + } + + /** + * Immutable. The ID to use for endpoint, which will become the final component of the + * endpoint resource name. If not provided, Vertex AI will generate a value for this ID. + * If the first character is a letter, this value may be up to 63 characters, and valid + * characters are `[a-z0-9-]`. The last character must be a letter or number. If the first + * character is a number, this value may be up to 9 characters, and valid characters are + * `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a + * query string argument, such as `?endpoint_id=12345`. This is the fallback for fields + * that are not included in either the URI or the body. + */ + @com.google.api.client.util.Key + private java.lang.String endpointId; + + /** Immutable. The ID to use for endpoint, which will become the final component of the endpoint + resource name. If not provided, Vertex AI will generate a value for this ID. If the first character + is a letter, this value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The last + character must be a letter or number. If the first character is a number, this value may be up to 9 + characters, and valid characters are `[0-9]` with no leading zeros. When using HTTP/JSON, this + field is populated based on a query string argument, such as `?endpoint_id=12345`. This is the + fallback for fields that are not included in either the URI or the body. + */ + public java.lang.String getEndpointId() { + return endpointId; + } + + /** + * Immutable. The ID to use for endpoint, which will become the final component of the + * endpoint resource name. If not provided, Vertex AI will generate a value for this ID. + * If the first character is a letter, this value may be up to 63 characters, and valid + * characters are `[a-z0-9-]`. The last character must be a letter or number. If the first + * character is a number, this value may be up to 9 characters, and valid characters are + * `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a + * query string argument, such as `?endpoint_id=12345`. This is the fallback for fields + * that are not included in either the URI or the body. + */ + public Create setEndpointId(java.lang.String endpointId) { + this.endpointId = endpointId; return this; } @Override - public UndeployModel set(String parameterName, Object value) { - return (UndeployModel) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Updates an Endpoint with a long running operation. + * Deletes an Endpoint. * - * Create a request for the method "endpoints.update". + * Create a request for the method "endpoints.delete". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Identifier. The resource name of the Endpoint. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest} + * @param name Required. The name of the Endpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @return the request */ - public Update update(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest content) throws java.io.IOException { - Update result = new Update(name, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Update extends AiplatformRequest { + public class Delete extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:update"; + private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * Updates an Endpoint with a long running operation. + * Deletes an Endpoint. * - * Create a request for the method "endpoints.update". + * Create a request for the method "endpoints.delete". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#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 Endpoint. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest} + * @param name Required. The name of the Endpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @since 1.13 */ - protected Update(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + 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(), @@ -68668,72 +66282,79 @@ protected Update(java.lang.String name, com.google.api.services.aiplatform.v1bet } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Identifier. The resource name of the Endpoint. */ + /** + * Required. The name of the Endpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. The resource name of the Endpoint. + /** Required. The name of the Endpoint resource to be deleted. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` */ public java.lang.String getName() { return name; } - /** Identifier. The resource name of the Endpoint. */ - public Update setName(java.lang.String name) { + /** + * Required. The name of the Endpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + 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 " + @@ -68744,5862 +66365,5340 @@ public Update setName(java.lang.String name) { } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Chat collection. + * Deploys a Model into this Endpoint, creating a DeployedModel within it. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Chat.List request = aiplatform.chat().list(parameters ...)}
-         * 
+ * Create a request for the method "endpoints.deployModel". * - * @return the resource collection + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link DeployModel#execute()} method to invoke the remote operation. + * + * @param endpoint Required. The name of the Endpoint resource into which to deploy a Model. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest} + * @return the request */ - public Chat chat() { - return new Chat(); + public DeployModel deployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest content) throws java.io.IOException { + DeployModel result = new DeployModel(endpoint, content); + initialize(result); + return result; } - /** - * The "chat" collection of methods. - */ - public class Chat { + public class DeployModel extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+endpoint}:deployModel"; + + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * Exposes an OpenAI-compatible endpoint for chat completions. + * Deploys a Model into this Endpoint, creating a DeployedModel within it. * - * Create a request for the method "chat.completions". + * Create a request for the method "endpoints.deployModel". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Completions#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 DeployModel#execute()} method to invoke the remote + * operation.

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

* - * @param endpoint Required. The name of the endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} - * @return the request + * @param endpoint Required. The name of the Endpoint resource into which to deploy a Model. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest} + * @since 1.13 */ - public Completions completions(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { - Completions result = new Completions(endpoint, content); - initialize(result); - return result; - } - - public class Completions extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+endpoint}/chat/completions"; - - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - - /** - * Exposes an OpenAI-compatible endpoint for chat completions. - * - * Create a request for the method "chat.completions". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Completions#execute()} method to invoke the remote - * operation.

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

- * - * @param endpoint Required. The name of the endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} - * @since 1.13 - */ - protected Completions(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - } - - @Override - public Completions set$Xgafv(java.lang.String $Xgafv) { - return (Completions) super.set$Xgafv($Xgafv); + protected DeployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployModelRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + } - @Override - public Completions setAccessToken(java.lang.String accessToken) { - return (Completions) super.setAccessToken(accessToken); - } + @Override + public DeployModel set$Xgafv(java.lang.String $Xgafv) { + return (DeployModel) super.set$Xgafv($Xgafv); + } - @Override - public Completions setAlt(java.lang.String alt) { - return (Completions) super.setAlt(alt); - } + @Override + public DeployModel setAccessToken(java.lang.String accessToken) { + return (DeployModel) super.setAccessToken(accessToken); + } - @Override - public Completions setCallback(java.lang.String callback) { - return (Completions) super.setCallback(callback); - } + @Override + public DeployModel setAlt(java.lang.String alt) { + return (DeployModel) super.setAlt(alt); + } - @Override - public Completions setFields(java.lang.String fields) { - return (Completions) super.setFields(fields); - } + @Override + public DeployModel setCallback(java.lang.String callback) { + return (DeployModel) super.setCallback(callback); + } - @Override - public Completions setKey(java.lang.String key) { - return (Completions) super.setKey(key); - } + @Override + public DeployModel setFields(java.lang.String fields) { + return (DeployModel) super.setFields(fields); + } - @Override - public Completions setOauthToken(java.lang.String oauthToken) { - return (Completions) super.setOauthToken(oauthToken); - } + @Override + public DeployModel setKey(java.lang.String key) { + return (DeployModel) super.setKey(key); + } - @Override - public Completions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Completions) super.setPrettyPrint(prettyPrint); - } + @Override + public DeployModel setOauthToken(java.lang.String oauthToken) { + return (DeployModel) super.setOauthToken(oauthToken); + } - @Override - public Completions setQuotaUser(java.lang.String quotaUser) { - return (Completions) super.setQuotaUser(quotaUser); - } + @Override + public DeployModel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeployModel) super.setPrettyPrint(prettyPrint); + } - @Override - public Completions setUploadType(java.lang.String uploadType) { - return (Completions) super.setUploadType(uploadType); - } + @Override + public DeployModel setQuotaUser(java.lang.String quotaUser) { + return (DeployModel) super.setQuotaUser(quotaUser); + } - @Override - public Completions setUploadProtocol(java.lang.String uploadProtocol) { - return (Completions) super.setUploadProtocol(uploadProtocol); - } + @Override + public DeployModel setUploadType(java.lang.String uploadType) { + return (DeployModel) super.setUploadType(uploadType); + } - /** - * Required. The name of the endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + @Override + public DeployModel setUploadProtocol(java.lang.String uploadProtocol) { + return (DeployModel) super.setUploadProtocol(uploadProtocol); + } - /** Required. The name of the endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; - } + /** + * Required. The name of the Endpoint resource into which to deploy a Model. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - /** - * Required. The name of the endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public Completions setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - this.endpoint = endpoint; - return this; - } + /** Required. The name of the Endpoint resource into which to deploy a Model. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - @Override - public Completions set(String parameterName, Object value) { - return (Completions) super.set(parameterName, value); + /** + * Required. The name of the Endpoint resource into which to deploy a Model. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public DeployModel setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; } + @Override + public DeployModel set(String parameterName, Object value) { + return (DeployModel) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the DeployedModels collection. + * Perform an unary online prediction request to a gRPC model server for Vertex first-party products + * and frameworks. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.DeployedModels.List request = aiplatform.deployedModels().list(parameters ...)}
-         * 
+ * Create a request for the method "endpoints.directPredict". * - * @return the resource collection + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link DirectPredict#execute()} method to invoke the remote operation. + * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictRequest} + * @return the request */ - public DeployedModels deployedModels() { - return new DeployedModels(); + public DirectPredict directPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictRequest content) throws java.io.IOException { + DirectPredict result = new DirectPredict(endpoint, content); + initialize(result); + return result; } - /** - * The "deployedModels" collection of methods. - */ - public class DeployedModels { + public class DirectPredict extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+endpoint}:directPredict"; + + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * An accessor for creating requests from the Invoke collection. + * Perform an unary online prediction request to a gRPC model server for Vertex first-party + * products and frameworks. * - *

The typical use is:

- *
-           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-           *   {@code Aiplatform.Invoke.List request = aiplatform.invoke().list(parameters ...)}
-           * 
+ * Create a request for the method "endpoints.directPredict". * - * @return the resource collection - */ - public Invoke invoke() { - return new Invoke(); - } - - /** - * The "invoke" collection of methods. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link DirectPredict#execute()} method to invoke the remote + * operation.

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

+ * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictRequest} + * @since 1.13 */ - public class Invoke { - - /** - * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, - * invoke_route_prefix must be set to allow the paths that will be specified in the request. - * - * Create a request for the method "invoke.invoke". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link InvokeRequest#execute()} method to invoke the remote operation. - * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param deployedModelId ID of the DeployedModel that serves the invoke request. - * @param invokeId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest} - * @return the request - */ - public InvokeRequest invoke(java.lang.String endpoint, java.lang.String deployedModelId, java.lang.String invokeId, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest content) throws java.io.IOException { - InvokeRequest result = new InvokeRequest(endpoint, deployedModelId, invokeId, content); - initialize(result); - return result; + protected DirectPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectPredictResponse.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + } - public class InvokeRequest extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+endpoint}/deployedModels/{deployedModelId}/invoke/{+invokeId}"; - - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - - /** - * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this - * method, invoke_route_prefix must be set to allow the paths that will be specified in the - * request. - * - * Create a request for the method "invoke.invoke". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link InvokeRequest#execute()} method to invoke the remote - * operation.

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

- * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param deployedModelId ID of the DeployedModel that serves the invoke request. - * @param invokeId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest} - * @since 1.13 - */ - protected InvokeRequest(java.lang.String endpoint, java.lang.String deployedModelId, java.lang.String invokeId, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - this.deployedModelId = com.google.api.client.util.Preconditions.checkNotNull(deployedModelId, "Required parameter deployedModelId must be specified."); - this.invokeId = com.google.api.client.util.Preconditions.checkNotNull(invokeId, "Required parameter invokeId must be specified."); - } - - @Override - public InvokeRequest set$Xgafv(java.lang.String $Xgafv) { - return (InvokeRequest) super.set$Xgafv($Xgafv); - } - - @Override - public InvokeRequest setAccessToken(java.lang.String accessToken) { - return (InvokeRequest) super.setAccessToken(accessToken); - } - - @Override - public InvokeRequest setAlt(java.lang.String alt) { - return (InvokeRequest) super.setAlt(alt); - } - - @Override - public InvokeRequest setCallback(java.lang.String callback) { - return (InvokeRequest) super.setCallback(callback); - } - - @Override - public InvokeRequest setFields(java.lang.String fields) { - return (InvokeRequest) super.setFields(fields); - } - - @Override - public InvokeRequest setKey(java.lang.String key) { - return (InvokeRequest) super.setKey(key); - } - - @Override - public InvokeRequest setOauthToken(java.lang.String oauthToken) { - return (InvokeRequest) super.setOauthToken(oauthToken); - } - - @Override - public InvokeRequest setPrettyPrint(java.lang.Boolean prettyPrint) { - return (InvokeRequest) super.setPrettyPrint(prettyPrint); - } - - @Override - public InvokeRequest setQuotaUser(java.lang.String quotaUser) { - return (InvokeRequest) super.setQuotaUser(quotaUser); - } + @Override + public DirectPredict set$Xgafv(java.lang.String $Xgafv) { + return (DirectPredict) super.set$Xgafv($Xgafv); + } - @Override - public InvokeRequest setUploadType(java.lang.String uploadType) { - return (InvokeRequest) super.setUploadType(uploadType); - } + @Override + public DirectPredict setAccessToken(java.lang.String accessToken) { + return (DirectPredict) super.setAccessToken(accessToken); + } - @Override - public InvokeRequest setUploadProtocol(java.lang.String uploadProtocol) { - return (InvokeRequest) super.setUploadProtocol(uploadProtocol); - } + @Override + public DirectPredict setAlt(java.lang.String alt) { + return (DirectPredict) super.setAlt(alt); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + @Override + public DirectPredict setCallback(java.lang.String callback) { + return (DirectPredict) super.setCallback(callback); + } - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; - } + @Override + public DirectPredict setFields(java.lang.String fields) { + return (DirectPredict) super.setFields(fields); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public InvokeRequest setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - this.endpoint = endpoint; - return this; - } + @Override + public DirectPredict setKey(java.lang.String key) { + return (DirectPredict) super.setKey(key); + } - /** ID of the DeployedModel that serves the invoke request. */ - @com.google.api.client.util.Key - private java.lang.String deployedModelId; + @Override + public DirectPredict setOauthToken(java.lang.String oauthToken) { + return (DirectPredict) super.setOauthToken(oauthToken); + } - /** ID of the DeployedModel that serves the invoke request. - */ - public java.lang.String getDeployedModelId() { - return deployedModelId; - } + @Override + public DirectPredict setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DirectPredict) super.setPrettyPrint(prettyPrint); + } - /** ID of the DeployedModel that serves the invoke request. */ - public InvokeRequest setDeployedModelId(java.lang.String deployedModelId) { - this.deployedModelId = deployedModelId; - return this; - } + @Override + public DirectPredict setQuotaUser(java.lang.String quotaUser) { + return (DirectPredict) super.setQuotaUser(quotaUser); + } - @com.google.api.client.util.Key - private java.lang.String invokeId; + @Override + public DirectPredict setUploadType(java.lang.String uploadType) { + return (DirectPredict) super.setUploadType(uploadType); + } - /** + @Override + public DirectPredict setUploadProtocol(java.lang.String uploadProtocol) { + return (DirectPredict) super.setUploadProtocol(uploadProtocol); + } - */ - public java.lang.String getInvokeId() { - return invokeId; - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - public InvokeRequest setInvokeId(java.lang.String invokeId) { - this.invokeId = invokeId; - return this; - } + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - @Override - public InvokeRequest set(String parameterName, Object value) { - return (InvokeRequest) super.set(parameterName, value); - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public DirectPredict setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } + @Override + public DirectPredict set(String parameterName, Object value) { + return (DirectPredict) super.set(parameterName, value); } } /** - * An accessor for creating requests from the Google collection. + * Perform an unary online prediction request to a gRPC model server for custom containers. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Google.List request = aiplatform.google().list(parameters ...)}
-         * 
+ * Create a request for the method "endpoints.directRawPredict". * - * @return the resource collection + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link DirectRawPredict#execute()} method to invoke the remote operation. + * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictRequest} + * @return the request */ - public Google google() { - return new Google(); + public DirectRawPredict directRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictRequest content) throws java.io.IOException { + DirectRawPredict result = new DirectRawPredict(endpoint, content); + initialize(result); + return result; } - /** - * The "google" collection of methods. - */ - public class Google { + public class DirectRawPredict extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+endpoint}:directRawPredict"; + + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * An accessor for creating requests from the Science collection. + * Perform an unary online prediction request to a gRPC model server for custom containers. * - *

The typical use is:

- *
-           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-           *   {@code Aiplatform.Science.List request = aiplatform.science().list(parameters ...)}
-           * 
+ * Create a request for the method "endpoints.directRawPredict". * - * @return the resource collection - */ - public Science science() { - return new Science(); - } - - /** - * The "science" collection of methods. + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link DirectRawPredict#execute()} method to invoke the remote + * operation.

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

+ * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictRequest} + * @since 1.13 */ - public class Science { - - /** - * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, - * invoke_route_prefix must be set to allow the paths that will be specified in the request. - * - * Create a request for the method "science.inference". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Inference#execute()} method to invoke the remote operation. - * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} - * @return the request - */ - public Inference inference(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { - Inference result = new Inference(endpoint, content); - initialize(result); - return result; + protected DirectRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DirectRawPredictResponse.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + } - public class Inference extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+endpoint}/science/inference"; - - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/google$"); - - /** - * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this - * method, invoke_route_prefix must be set to allow the paths that will be specified in the - * request. - * - * Create a request for the method "science.inference". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Inference#execute()} method to invoke the remote - * operation.

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

- * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} - * @since 1.13 - */ - protected Inference(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/google$"); - } - } - - @Override - public Inference set$Xgafv(java.lang.String $Xgafv) { - return (Inference) super.set$Xgafv($Xgafv); - } - - @Override - public Inference setAccessToken(java.lang.String accessToken) { - return (Inference) super.setAccessToken(accessToken); - } - - @Override - public Inference setAlt(java.lang.String alt) { - return (Inference) super.setAlt(alt); - } - - @Override - public Inference setCallback(java.lang.String callback) { - return (Inference) super.setCallback(callback); - } - - @Override - public Inference setFields(java.lang.String fields) { - return (Inference) super.setFields(fields); - } + @Override + public DirectRawPredict set$Xgafv(java.lang.String $Xgafv) { + return (DirectRawPredict) super.set$Xgafv($Xgafv); + } - @Override - public Inference setKey(java.lang.String key) { - return (Inference) super.setKey(key); - } + @Override + public DirectRawPredict setAccessToken(java.lang.String accessToken) { + return (DirectRawPredict) super.setAccessToken(accessToken); + } - @Override - public Inference setOauthToken(java.lang.String oauthToken) { - return (Inference) super.setOauthToken(oauthToken); - } + @Override + public DirectRawPredict setAlt(java.lang.String alt) { + return (DirectRawPredict) super.setAlt(alt); + } - @Override - public Inference setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Inference) super.setPrettyPrint(prettyPrint); - } + @Override + public DirectRawPredict setCallback(java.lang.String callback) { + return (DirectRawPredict) super.setCallback(callback); + } - @Override - public Inference setQuotaUser(java.lang.String quotaUser) { - return (Inference) super.setQuotaUser(quotaUser); - } + @Override + public DirectRawPredict setFields(java.lang.String fields) { + return (DirectRawPredict) super.setFields(fields); + } - @Override - public Inference setUploadType(java.lang.String uploadType) { - return (Inference) super.setUploadType(uploadType); - } + @Override + public DirectRawPredict setKey(java.lang.String key) { + return (DirectRawPredict) super.setKey(key); + } - @Override - public Inference setUploadProtocol(java.lang.String uploadProtocol) { - return (Inference) super.setUploadProtocol(uploadProtocol); - } + @Override + public DirectRawPredict setOauthToken(java.lang.String oauthToken) { + return (DirectRawPredict) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + @Override + public DirectRawPredict setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DirectRawPredict) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; - } + @Override + public DirectRawPredict setQuotaUser(java.lang.String quotaUser) { + return (DirectRawPredict) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public Inference setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/google$"); - } - this.endpoint = endpoint; - return this; - } + @Override + public DirectRawPredict setUploadType(java.lang.String uploadType) { + return (DirectRawPredict) super.setUploadType(uploadType); + } - /** ID of the DeployedModel that serves the invoke request. */ - @com.google.api.client.util.Key - private java.lang.String deployedModelId; + @Override + public DirectRawPredict setUploadProtocol(java.lang.String uploadProtocol) { + return (DirectRawPredict) super.setUploadProtocol(uploadProtocol); + } - /** ID of the DeployedModel that serves the invoke request. - */ - public java.lang.String getDeployedModelId() { - return deployedModelId; - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - /** ID of the DeployedModel that serves the invoke request. */ - public Inference setDeployedModelId(java.lang.String deployedModelId) { - this.deployedModelId = deployedModelId; - return this; - } + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - @Override - public Inference set(String parameterName, Object value) { - return (Inference) super.set(parameterName, value); - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public DirectRawPredict setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } + @Override + public DirectRawPredict set(String parameterName, Object value) { + return (DirectRawPredict) super.set(parameterName, value); } } /** - * An accessor for creating requests from the Invoke collection. + * Perform an online explanation. If deployed_model_id is specified, the corresponding DeployModel + * must have explanation_spec populated. If deployed_model_id is not specified, all DeployedModels + * must have explanation_spec populated. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Invoke.List request = aiplatform.invoke().list(parameters ...)}
-         * 
+ * Create a request for the method "endpoints.explain". * - * @return the resource collection + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Explain#execute()} method to invoke the remote operation. + * + * @param endpoint Required. The name of the Endpoint requested to serve the explanation. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest} + * @return the request */ - public Invoke invoke() { - return new Invoke(); + public Explain explain(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest content) throws java.io.IOException { + Explain result = new Explain(endpoint, content); + initialize(result); + return result; } - /** - * The "invoke" collection of methods. - */ - public class Invoke { + public class Explain extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+endpoint}:explain"; + + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, - * invoke_route_prefix must be set to allow the paths that will be specified in the request. + * Perform an online explanation. If deployed_model_id is specified, the corresponding DeployModel + * must have explanation_spec populated. If deployed_model_id is not specified, all DeployedModels + * must have explanation_spec populated. * - * Create a request for the method "invoke.invoke". + * Create a request for the method "endpoints.explain". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link InvokeRequest#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 Explain#execute()} method to invoke the remote operation. + *

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

* - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param invokeId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest} - * @return the request + * @param endpoint Required. The name of the Endpoint requested to serve the explanation. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest} + * @since 1.13 */ - public InvokeRequest invoke(java.lang.String endpoint, java.lang.String invokeId, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest content) throws java.io.IOException { - InvokeRequest result = new InvokeRequest(endpoint, invokeId, content); - initialize(result); - return result; + protected Explain(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExplainResponse.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } } - public class InvokeRequest extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+endpoint}/invoke/{+invokeId}"; - - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - - /** - * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this - * method, invoke_route_prefix must be set to allow the paths that will be specified in the - * request. - * - * Create a request for the method "invoke.invoke". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link InvokeRequest#execute()} method to invoke the remote - * operation.

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

- * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param invokeId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest} - * @since 1.13 - */ - protected InvokeRequest(java.lang.String endpoint, java.lang.String invokeId, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - this.invokeId = com.google.api.client.util.Preconditions.checkNotNull(invokeId, "Required parameter invokeId must be specified."); - } + @Override + public Explain set$Xgafv(java.lang.String $Xgafv) { + return (Explain) super.set$Xgafv($Xgafv); + } - @Override - public InvokeRequest set$Xgafv(java.lang.String $Xgafv) { - return (InvokeRequest) super.set$Xgafv($Xgafv); - } + @Override + public Explain setAccessToken(java.lang.String accessToken) { + return (Explain) super.setAccessToken(accessToken); + } - @Override - public InvokeRequest setAccessToken(java.lang.String accessToken) { - return (InvokeRequest) super.setAccessToken(accessToken); - } + @Override + public Explain setAlt(java.lang.String alt) { + return (Explain) super.setAlt(alt); + } - @Override - public InvokeRequest setAlt(java.lang.String alt) { - return (InvokeRequest) super.setAlt(alt); - } + @Override + public Explain setCallback(java.lang.String callback) { + return (Explain) super.setCallback(callback); + } - @Override - public InvokeRequest setCallback(java.lang.String callback) { - return (InvokeRequest) super.setCallback(callback); - } + @Override + public Explain setFields(java.lang.String fields) { + return (Explain) super.setFields(fields); + } - @Override - public InvokeRequest setFields(java.lang.String fields) { - return (InvokeRequest) super.setFields(fields); - } + @Override + public Explain setKey(java.lang.String key) { + return (Explain) super.setKey(key); + } - @Override - public InvokeRequest setKey(java.lang.String key) { - return (InvokeRequest) super.setKey(key); - } + @Override + public Explain setOauthToken(java.lang.String oauthToken) { + return (Explain) super.setOauthToken(oauthToken); + } - @Override - public InvokeRequest setOauthToken(java.lang.String oauthToken) { - return (InvokeRequest) super.setOauthToken(oauthToken); - } + @Override + public Explain setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Explain) super.setPrettyPrint(prettyPrint); + } - @Override - public InvokeRequest setPrettyPrint(java.lang.Boolean prettyPrint) { - return (InvokeRequest) super.setPrettyPrint(prettyPrint); - } + @Override + public Explain setQuotaUser(java.lang.String quotaUser) { + return (Explain) super.setQuotaUser(quotaUser); + } - @Override - public InvokeRequest setQuotaUser(java.lang.String quotaUser) { - return (InvokeRequest) super.setQuotaUser(quotaUser); - } + @Override + public Explain setUploadType(java.lang.String uploadType) { + return (Explain) super.setUploadType(uploadType); + } - @Override - public InvokeRequest setUploadType(java.lang.String uploadType) { - return (InvokeRequest) super.setUploadType(uploadType); - } + @Override + public Explain setUploadProtocol(java.lang.String uploadProtocol) { + return (Explain) super.setUploadProtocol(uploadProtocol); + } - @Override - public InvokeRequest setUploadProtocol(java.lang.String uploadProtocol) { - return (InvokeRequest) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The name of the Endpoint requested to serve the explanation. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + /** Required. The name of the Endpoint requested to serve the explanation. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; + /** + * Required. The name of the Endpoint requested to serve the explanation. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public Explain setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public InvokeRequest setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - } - this.endpoint = endpoint; - return this; - } - - @com.google.api.client.util.Key - private java.lang.String invokeId; - - /** - - */ - public java.lang.String getInvokeId() { - return invokeId; - } - - public InvokeRequest setInvokeId(java.lang.String invokeId) { - this.invokeId = invokeId; - return this; - } - - @Override - public InvokeRequest set(String parameterName, Object value) { - return (InvokeRequest) super.set(parameterName, value); - } + @Override + public Explain set(String parameterName, Object value) { + return (Explain) super.set(parameterName, value); } - } /** - * An accessor for creating requests from the Openapi collection. + * Fetch an asynchronous online prediction operation. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Openapi.List request = aiplatform.openapi().list(parameters ...)}
-         * 
+ * Create a request for the method "endpoints.fetchPredictOperation". * - * @return the resource collection + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link FetchPredictOperation#execute()} method to invoke the remote + * operation. + * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest} + * @return the request */ - public Openapi openapi() { - return new Openapi(); + public FetchPredictOperation fetchPredictOperation(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest content) throws java.io.IOException { + FetchPredictOperation result = new FetchPredictOperation(endpoint, content); + initialize(result); + return result; } - /** - * The "openapi" collection of methods. - */ - public class Openapi { + public class FetchPredictOperation extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+endpoint}:fetchPredictOperation"; + + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, - * invoke_route_prefix must be set to allow the paths that will be specified in the request. + * Fetch an asynchronous online prediction operation. * - * Create a request for the method "openapi.completions". + * Create a request for the method "endpoints.fetchPredictOperation". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Completions#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 FetchPredictOperation#execute()} method to invoke the + * remote operation.

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

* * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} - * @return the request + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest} + * @since 1.13 */ - public Completions completions(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { - Completions result = new Completions(endpoint, content); - initialize(result); - return result; + protected FetchPredictOperation(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } } - public class Completions extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+endpoint}/completions"; - - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); - - /** - * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this - * method, invoke_route_prefix must be set to allow the paths that will be specified in the - * request. - * - * Create a request for the method "openapi.completions". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Completions#execute()} method to invoke the remote - * operation.

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

- * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} - * @since 1.13 - */ - protected Completions(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); - } - } + @Override + public FetchPredictOperation set$Xgafv(java.lang.String $Xgafv) { + return (FetchPredictOperation) super.set$Xgafv($Xgafv); + } - @Override - public Completions set$Xgafv(java.lang.String $Xgafv) { - return (Completions) super.set$Xgafv($Xgafv); - } + @Override + public FetchPredictOperation setAccessToken(java.lang.String accessToken) { + return (FetchPredictOperation) super.setAccessToken(accessToken); + } - @Override - public Completions setAccessToken(java.lang.String accessToken) { - return (Completions) super.setAccessToken(accessToken); - } + @Override + public FetchPredictOperation setAlt(java.lang.String alt) { + return (FetchPredictOperation) super.setAlt(alt); + } - @Override - public Completions setAlt(java.lang.String alt) { - return (Completions) super.setAlt(alt); - } + @Override + public FetchPredictOperation setCallback(java.lang.String callback) { + return (FetchPredictOperation) super.setCallback(callback); + } - @Override - public Completions setCallback(java.lang.String callback) { - return (Completions) super.setCallback(callback); - } + @Override + public FetchPredictOperation setFields(java.lang.String fields) { + return (FetchPredictOperation) super.setFields(fields); + } - @Override - public Completions setFields(java.lang.String fields) { - return (Completions) super.setFields(fields); - } + @Override + public FetchPredictOperation setKey(java.lang.String key) { + return (FetchPredictOperation) super.setKey(key); + } - @Override - public Completions setKey(java.lang.String key) { - return (Completions) super.setKey(key); - } + @Override + public FetchPredictOperation setOauthToken(java.lang.String oauthToken) { + return (FetchPredictOperation) super.setOauthToken(oauthToken); + } - @Override - public Completions setOauthToken(java.lang.String oauthToken) { - return (Completions) super.setOauthToken(oauthToken); - } + @Override + public FetchPredictOperation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FetchPredictOperation) super.setPrettyPrint(prettyPrint); + } - @Override - public Completions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Completions) super.setPrettyPrint(prettyPrint); - } + @Override + public FetchPredictOperation setQuotaUser(java.lang.String quotaUser) { + return (FetchPredictOperation) super.setQuotaUser(quotaUser); + } - @Override - public Completions setQuotaUser(java.lang.String quotaUser) { - return (Completions) super.setQuotaUser(quotaUser); - } + @Override + public FetchPredictOperation setUploadType(java.lang.String uploadType) { + return (FetchPredictOperation) super.setUploadType(uploadType); + } - @Override - public Completions setUploadType(java.lang.String uploadType) { - return (Completions) super.setUploadType(uploadType); - } + @Override + public FetchPredictOperation setUploadProtocol(java.lang.String uploadProtocol) { + return (FetchPredictOperation) super.setUploadProtocol(uploadProtocol); + } - @Override - public Completions setUploadProtocol(java.lang.String uploadProtocol) { - return (Completions) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` or + `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + */ + public FetchPredictOperation setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public Completions setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); - } - this.endpoint = endpoint; - return this; - } + @Override + public FetchPredictOperation set(String parameterName, Object value) { + return (FetchPredictOperation) super.set(parameterName, value); + } + } + /** + * Generate content with multimodal inputs. + * + * Create a request for the method "endpoints.generateContent". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link GenerateContent#execute()} method to invoke the remote operation. + * + * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model + * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} + * @return the request + */ + public GenerateContent generateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) throws java.io.IOException { + GenerateContent result = new GenerateContent(model, content); + initialize(result); + return result; + } - /** ID of the DeployedModel that serves the invoke request. */ - @com.google.api.client.util.Key - private java.lang.String deployedModelId; + public class GenerateContent extends AiplatformRequest { - /** ID of the DeployedModel that serves the invoke request. - */ - public java.lang.String getDeployedModelId() { - return deployedModelId; - } + private static final String REST_PATH = "v1beta1/{+model}:generateContent"; - /** ID of the DeployedModel that serves the invoke request. */ - public Completions setDeployedModelId(java.lang.String deployedModelId) { - this.deployedModelId = deployedModelId; - return this; - } + private final java.util.regex.Pattern MODEL_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - @Override - public Completions set(String parameterName, Object value) { - return (Completions) super.set(parameterName, value); - } - } /** - * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, - * invoke_route_prefix must be set to allow the paths that will be specified in the request. + * Generate content with multimodal inputs. * - * Create a request for the method "openapi.embeddings". + * Create a request for the method "endpoints.generateContent". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Embeddings#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 GenerateContent#execute()} method to invoke the remote + * operation.

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

* - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} - * @return the request + * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model + * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} + * @since 1.13 */ - public Embeddings embeddings(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { - Embeddings result = new Embeddings(endpoint, content); - initialize(result); - return result; + protected GenerateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentResponse.class); + this.model = com.google.api.client.util.Preconditions.checkNotNull(model, "Required parameter model must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), + "Parameter model must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } } - public class Embeddings extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+endpoint}/embeddings"; - - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); - - /** - * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this - * method, invoke_route_prefix must be set to allow the paths that will be specified in the - * request. - * - * Create a request for the method "openapi.embeddings". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Embeddings#execute()} method to invoke the remote - * operation.

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

- * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} - * @since 1.13 - */ - protected Embeddings(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); - } - } + @Override + public GenerateContent set$Xgafv(java.lang.String $Xgafv) { + return (GenerateContent) super.set$Xgafv($Xgafv); + } - @Override - public Embeddings set$Xgafv(java.lang.String $Xgafv) { - return (Embeddings) super.set$Xgafv($Xgafv); - } + @Override + public GenerateContent setAccessToken(java.lang.String accessToken) { + return (GenerateContent) super.setAccessToken(accessToken); + } - @Override - public Embeddings setAccessToken(java.lang.String accessToken) { - return (Embeddings) super.setAccessToken(accessToken); - } + @Override + public GenerateContent setAlt(java.lang.String alt) { + return (GenerateContent) super.setAlt(alt); + } - @Override - public Embeddings setAlt(java.lang.String alt) { - return (Embeddings) super.setAlt(alt); - } + @Override + public GenerateContent setCallback(java.lang.String callback) { + return (GenerateContent) super.setCallback(callback); + } - @Override - public Embeddings setCallback(java.lang.String callback) { - return (Embeddings) super.setCallback(callback); - } + @Override + public GenerateContent setFields(java.lang.String fields) { + return (GenerateContent) super.setFields(fields); + } - @Override - public Embeddings setFields(java.lang.String fields) { - return (Embeddings) super.setFields(fields); - } + @Override + public GenerateContent setKey(java.lang.String key) { + return (GenerateContent) super.setKey(key); + } - @Override - public Embeddings setKey(java.lang.String key) { - return (Embeddings) super.setKey(key); - } + @Override + public GenerateContent setOauthToken(java.lang.String oauthToken) { + return (GenerateContent) super.setOauthToken(oauthToken); + } - @Override - public Embeddings setOauthToken(java.lang.String oauthToken) { - return (Embeddings) super.setOauthToken(oauthToken); - } + @Override + public GenerateContent setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerateContent) super.setPrettyPrint(prettyPrint); + } - @Override - public Embeddings setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Embeddings) super.setPrettyPrint(prettyPrint); - } + @Override + public GenerateContent setQuotaUser(java.lang.String quotaUser) { + return (GenerateContent) super.setQuotaUser(quotaUser); + } - @Override - public Embeddings setQuotaUser(java.lang.String quotaUser) { - return (Embeddings) super.setQuotaUser(quotaUser); - } + @Override + public GenerateContent setUploadType(java.lang.String uploadType) { + return (GenerateContent) super.setUploadType(uploadType); + } - @Override - public Embeddings setUploadType(java.lang.String uploadType) { - return (Embeddings) super.setUploadType(uploadType); - } + @Override + public GenerateContent setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerateContent) super.setUploadProtocol(uploadProtocol); + } - @Override - public Embeddings setUploadProtocol(java.lang.String uploadProtocol) { - return (Embeddings) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The fully qualified name of the publisher model or tuned model endpoint to + * use. Publisher model format: + * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint + * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String model; - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + model format: `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint + format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getModel() { + return model; + } - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; + /** + * Required. The fully qualified name of the publisher model or tuned model endpoint to + * use. Publisher model format: + * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint + * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public GenerateContent setModel(java.lang.String model) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), + "Parameter model must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.model = model; + return this; + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public Embeddings setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); - } - this.endpoint = endpoint; - return this; - } + @Override + public GenerateContent set(String parameterName, Object value) { + return (GenerateContent) super.set(parameterName, value); + } + } + /** + * Gets an Endpoint. + * + * Create a request for the method "endpoints.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 Endpoint resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** ID of the DeployedModel that serves the invoke request. */ - @com.google.api.client.util.Key - private java.lang.String deployedModelId; + public class Get extends AiplatformRequest { - /** ID of the DeployedModel that serves the invoke request. - */ - public java.lang.String getDeployedModelId() { - return deployedModelId; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** ID of the DeployedModel that serves the invoke request. */ - public Embeddings setDeployedModelId(java.lang.String deployedModelId) { - this.deployedModelId = deployedModelId; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - @Override - public Embeddings set(String parameterName, Object value) { - return (Embeddings) super.set(parameterName, value); - } - } /** - * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, - * invoke_route_prefix must be set to allow the paths that will be specified in the request. + * Gets an Endpoint. * - * Create a request for the method "openapi.responses". + * Create a request for the method "endpoints.get". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Responses#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 endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} - * @return the request + * @param name Required. The name of the Endpoint resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @since 1.13 */ - public Responses responses(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { - Responses result = new Responses(endpoint, content); - initialize(result); - return result; - } - - public class Responses extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+endpoint}/responses"; - - private final java.util.regex.Pattern ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); - - /** - * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this - * method, invoke_route_prefix must be set to allow the paths that will be specified in the - * request. - * - * Create a request for the method "openapi.responses". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Responses#execute()} method to invoke the remote - * operation.

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

- * - * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} - * @since 1.13 - */ - protected Responses(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); - this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); - } - } - - @Override - public Responses set$Xgafv(java.lang.String $Xgafv) { - return (Responses) super.set$Xgafv($Xgafv); - } - - @Override - public Responses setAccessToken(java.lang.String accessToken) { - return (Responses) super.setAccessToken(accessToken); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint.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/[^/]+/endpoints/[^/]+$"); } + } - @Override - public Responses setAlt(java.lang.String alt) { - return (Responses) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Responses setCallback(java.lang.String callback) { - return (Responses) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Responses setFields(java.lang.String fields) { - return (Responses) super.setFields(fields); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Responses setKey(java.lang.String key) { - return (Responses) super.setKey(key); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Responses setOauthToken(java.lang.String oauthToken) { - return (Responses) super.setOauthToken(oauthToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Responses setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Responses) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Responses setQuotaUser(java.lang.String quotaUser) { - return (Responses) super.setQuotaUser(quotaUser); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Responses setUploadType(java.lang.String uploadType) { - return (Responses) super.setUploadType(uploadType); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Responses setUploadProtocol(java.lang.String uploadProtocol) { - return (Responses) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String endpoint; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the Endpoint requested to serve the prediction. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public java.lang.String getEndpoint() { - return endpoint; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the Endpoint requested to serve the prediction. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}` - */ - public Responses setEndpoint(java.lang.String endpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), - "Parameter endpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); - } - this.endpoint = endpoint; - return this; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** ID of the DeployedModel that serves the invoke request. */ - @com.google.api.client.util.Key - private java.lang.String deployedModelId; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** ID of the DeployedModel that serves the invoke request. - */ - public java.lang.String getDeployedModelId() { - return deployedModelId; - } + /** + * Required. The name of the Endpoint resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** ID of the DeployedModel that serves the invoke request. */ - public Responses setDeployedModelId(java.lang.String deployedModelId) { - this.deployedModelId = deployedModelId; - return this; - } + /** Required. The name of the Endpoint resource. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Responses set(String parameterName, Object value) { - return (Responses) super.set(parameterName, value); + /** + * Required. The name of the Endpoint resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + 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/[^/]+/endpoints/[^/]+$"); } + 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. + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-         * 
+ * Create a request for the method "endpoints.getIamPolicy". * - * @return the resource collection + * 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 Operations operations() { - return new Operations(); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); + initialize(result); + return result; } - /** - * The "operations" collection of methods. - */ - public class Operations { + 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/[^/]+/endpoints/[^/]+$"); /** - * 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`. + * 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 "operations.cancel". + * Create a request for the method "endpoints.getIamPolicy". * - * 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 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 name The name of the operation resource to be cancelled. - * @return the request + * @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 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + 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/[^/]+/endpoints/[^/]+$"); + } } - public class Cancel extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$"); + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } - /** - * 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - } - } + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** + * 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; - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + /** 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; + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) 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. + */ + 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/[^/]+/endpoints/[^/]+$"); } + this.resource = resource; + return this; + } - /** 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; - } + /** + * 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; - /** 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } + } + /** + * Lists Endpoints in a Location. + * + * Create a request for the method "endpoints.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 from which to list the Endpoints. 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}/endpoints"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Lists Endpoints in a Location. * - * Create a request for the method "operations.delete". + * Create a request for the method "endpoints.list". * - * 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 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 deleted. - * @return the request + * @param parent Required. The resource name of the Location from which to list the Endpoints. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(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.GoogleCloudAiplatformV1beta1ListEndpointsResponse.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 Delete extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; + @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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - } - } + @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); - } + /** + * Required. The resource name of the Location from which to list the Endpoints. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** 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 Location from which to list the Endpoints. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; + /** + * Required. The resource name of the Location from which to list the Endpoints. 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 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Optional. An expression for filtering the results of the request. For field names both + * snake_case and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` + * represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * + * `display_name` 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"`. * + * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * + * `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` + */ + @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); - } + /** Optional. An expression for filtering the results of the request. For field names both snake_case + and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` represents the Endpoint + ID, i.e. the last segment of the Endpoint's resource name. * `display_name` 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"`. * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * + `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` + */ + public java.lang.String getFilter() { + return filter; } + /** - * 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 + * Optional. An expression for filtering the results of the request. For field names both + * snake_case and camelCase are supported. * `endpoint` supports `=` and `!=`. `endpoint` + * represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * + * `display_name` 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"`. * + * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * + * `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - public class Get extends AiplatformRequest { + /** + * Optional. Configures the Google Distributed Cloud (GDC) environment for online + * prediction. Only set this field when the Endpoint is to be deployed in a GDC + * environment. + */ + @com.google.api.client.util.Key + private java.lang.String gdcZone; - private static final String REST_PATH = "v1beta1/{+name}"; + /** Optional. Configures the Google Distributed Cloud (GDC) environment for online prediction. Only set + this field when the Endpoint is to be deployed in a GDC environment. + */ + public java.lang.String getGdcZone() { + return gdcZone; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$"); + /** + * Optional. Configures the Google Distributed Cloud (GDC) environment for online + * prediction. Only set this field when the Endpoint is to be deployed in a GDC + * environment. + */ + public List setGdcZone(java.lang.String gdcZone) { + this.gdcZone = gdcZone; + return this; + } - /** - * 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - } - } + /** Optional. The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** Optional. The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** Optional. The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** + * Optional. The standard list page token. Typically obtained via + * ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints + * call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** Optional. The standard list page token. Typically obtained via + ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints call. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + /** + * Optional. The standard list page token. Typically obtained via + * ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints + * call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + /** Optional. Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** Optional. Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** Optional. Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an existing deployed model. Updatable fields include `min_replica_count`, + * `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, + * `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). + * + * Create a request for the method "endpoints.mutateDeployedModel". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link MutateDeployedModel#execute()} method to invoke the remote operation. + * + * @param endpoint Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest} + * @return the request + */ + public MutateDeployedModel mutateDeployedModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest content) throws java.io.IOException { + MutateDeployedModel result = new MutateDeployedModel(endpoint, content); + initialize(result); + return result; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + public class MutateDeployedModel extends AiplatformRequest { - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + private static final String REST_PATH = "v1beta1/{+endpoint}:mutateDeployedModel"; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - @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/[^/]+/endpoints/[^/]+/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`. + * Updates an existing deployed model. Updatable fields include `min_replica_count`, + * `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, + * `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). * - * Create a request for the method "operations.list". + * Create a request for the method "endpoints.mutateDeployedModel". * - * 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 MutateDeployedModel#execute()} method to invoke the remote + * operation.

{@link MutateDeployedModel#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 endpoint Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest} + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected MutateDeployedModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MutateDeployedModelRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } } - public class List extends AiplatformRequest { + @Override + public MutateDeployedModel set$Xgafv(java.lang.String $Xgafv) { + return (MutateDeployedModel) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}/operations"; + @Override + public MutateDeployedModel setAccessToken(java.lang.String accessToken) { + return (MutateDeployedModel) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + @Override + public MutateDeployedModel setAlt(java.lang.String alt) { + return (MutateDeployedModel) super.setAlt(alt); + } - /** - * 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/[^/]+/endpoints/[^/]+$"); - } - } + @Override + public MutateDeployedModel setCallback(java.lang.String callback) { + return (MutateDeployedModel) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public MutateDeployedModel setFields(java.lang.String fields) { + return (MutateDeployedModel) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public MutateDeployedModel setKey(java.lang.String key) { + return (MutateDeployedModel) super.setKey(key); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public MutateDeployedModel setOauthToken(java.lang.String oauthToken) { + return (MutateDeployedModel) super.setOauthToken(oauthToken); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public MutateDeployedModel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MutateDeployedModel) super.setPrettyPrint(prettyPrint); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public MutateDeployedModel setQuotaUser(java.lang.String quotaUser) { + return (MutateDeployedModel) super.setQuotaUser(quotaUser); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public MutateDeployedModel setUploadType(java.lang.String uploadType) { + return (MutateDeployedModel) super.setUploadType(uploadType); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public MutateDeployedModel setUploadProtocol(java.lang.String uploadProtocol) { + return (MutateDeployedModel) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** + * Required. The name of the Endpoint resource into which to mutate a DeployedModel. + * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + /** + * Required. The name of the Endpoint resource into which to mutate a DeployedModel. + * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public MutateDeployedModel setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public MutateDeployedModel set(String parameterName, Object value) { + return (MutateDeployedModel) super.set(parameterName, value); + } + } + /** + * Updates an Endpoint. + * + * Create a request for the method "endpoints.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 Endpoint. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + public class Patch extends AiplatformRequest { - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; + /** + * Updates an Endpoint. + * + * Create a request for the method "endpoints.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 Endpoint. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Endpoint.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/[^/]+/endpoints/[^/]+$"); } + } - /** 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/[^/]+/endpoints/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) 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. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) 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 java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + /** Identifier. The resource name of the Endpoint. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * 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; - } + /** Identifier. The resource name of the Endpoint. + */ + public java.lang.String getName() { + return name; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** Identifier. The resource name of the Endpoint. */ + 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/[^/]+/endpoints/[^/]+$"); } + this.name = name; + return this; + } + + /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } + } + /** + * Create a request for the method "endpoints.predict". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Predict#execute()} method to invoke the remote operation. + * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictRequest} + * @return the request + */ + public Predict predict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictRequest content) throws java.io.IOException { + Predict result = new Predict(endpoint, content); + initialize(result); + return result; + } + + public class Predict extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+endpoint}:predict"; + + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + /** - * 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". + * Create a request for the method "endpoints.predict". * - * 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 Predict#execute()} method to invoke the remote operation. + *

{@link + * Predict#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 + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictRequest} + * @since 1.13 */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + protected Predict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictResponse.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } } - public class Wait extends AiplatformRequest { + @Override + public Predict set$Xgafv(java.lang.String $Xgafv) { + return (Predict) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}:wait"; + @Override + public Predict setAccessToken(java.lang.String accessToken) { + return (Predict) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$"); + @Override + public Predict setAlt(java.lang.String alt) { + return (Predict) super.setAlt(alt); + } - /** - * 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/[^/]+/endpoints/[^/]+/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 Predict setCallback(java.lang.String callback) { + return (Predict) super.setCallback(callback); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Predict setFields(java.lang.String fields) { + return (Predict) super.setFields(fields); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Predict setKey(java.lang.String key) { + return (Predict) super.setKey(key); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Predict setOauthToken(java.lang.String oauthToken) { + return (Predict) 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 Predict setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Predict) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public Predict setQuotaUser(java.lang.String quotaUser) { + return (Predict) 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Predict setUploadType(java.lang.String uploadType) { + return (Predict) 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 Predict setUploadProtocol(java.lang.String uploadProtocol) { + return (Predict) 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; - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - /** - * 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; - } + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public Predict setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; } + @Override + public Predict set(String parameterName, Object value) { + return (Predict) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the Responses collection. + * Create a request for the method "endpoints.predictLongRunning". * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Responses.List request = aiplatform.responses().list(parameters ...)}
-         * 
+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link PredictLongRunning#execute()} method to invoke the remote operation. * - * @return the resource collection + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest} + * @return the request */ - public Responses responses() { - return new Responses(); + public PredictLongRunning predictLongRunning(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest content) throws java.io.IOException { + PredictLongRunning result = new PredictLongRunning(endpoint, content); + initialize(result); + return result; } - /** - * The "responses" collection of methods. - */ - public class Responses { + public class PredictLongRunning extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+endpoint}:predictLongRunning"; + + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * Deletes the response from the endpoint. - * - * Create a request for the method "responses.delete". + * Create a request for the method "endpoints.predictLongRunning". * - * 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 PredictLongRunning#execute()} method to invoke the remote + * operation.

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

* - * @param name Required. The name of the Response resource to be deleted. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` - * @return the request + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest} + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + protected PredictLongRunning(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PredictLongRunningRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } } - public class Delete extends AiplatformRequest { + @Override + public PredictLongRunning set$Xgafv(java.lang.String $Xgafv) { + return (PredictLongRunning) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public PredictLongRunning setAccessToken(java.lang.String accessToken) { + return (PredictLongRunning) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/responses/[^/]+$"); + @Override + public PredictLongRunning setAlt(java.lang.String alt) { + return (PredictLongRunning) super.setAlt(alt); + } - /** - * Deletes the response from the endpoint. - * - * Create a request for the method "responses.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 Response resource to be deleted. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.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/[^/]+/endpoints/[^/]+/responses/[^/]+$"); - } - } + @Override + public PredictLongRunning setCallback(java.lang.String callback) { + return (PredictLongRunning) super.setCallback(callback); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public PredictLongRunning setFields(java.lang.String fields) { + return (PredictLongRunning) super.setFields(fields); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public PredictLongRunning setKey(java.lang.String key) { + return (PredictLongRunning) super.setKey(key); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public PredictLongRunning setOauthToken(java.lang.String oauthToken) { + return (PredictLongRunning) super.setOauthToken(oauthToken); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public PredictLongRunning setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PredictLongRunning) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public PredictLongRunning setQuotaUser(java.lang.String quotaUser) { + return (PredictLongRunning) super.setQuotaUser(quotaUser); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public PredictLongRunning setUploadType(java.lang.String uploadType) { + return (PredictLongRunning) super.setUploadType(uploadType); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public PredictLongRunning setUploadProtocol(java.lang.String uploadProtocol) { + return (PredictLongRunning) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` or + `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + */ + public PredictLongRunning setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public PredictLongRunning set(String parameterName, Object value) { + return (PredictLongRunning) super.set(parameterName, value); + } + } + /** + * Perform an online prediction with an arbitrary HTTP payload. The response includes the following + * HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * + * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction. + * + * Create a request for the method "endpoints.rawPredict". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link RawPredict#execute()} method to invoke the remote operation. + * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RawPredictRequest} + * @return the request + */ + public RawPredict rawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RawPredictRequest content) throws java.io.IOException { + RawPredict result = new RawPredict(endpoint, content); + initialize(result); + return result; + } - /** - * Required. The name of the Response resource to be deleted. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + public class RawPredict extends AiplatformRequest { - /** Required. The name of the Response resource to be deleted. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1beta1/{+endpoint}:rawPredict"; - /** - * Required. The name of the Response resource to be deleted. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` - */ - 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/[^/]+/endpoints/[^/]+/responses/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } /** - * Gets the response from the endpoint. + * Perform an online prediction with an arbitrary HTTP payload. The response includes the + * following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this + * prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served + * this prediction. * - * Create a request for the method "responses.get". + * Create a request for the method "endpoints.rawPredict". * - * 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 RawPredict#execute()} method to invoke the remote + * operation.

{@link + * RawPredict#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 Response resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` - * @return the request + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RawPredictRequest} + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected RawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RawPredictRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } } - public class Get extends AiplatformRequest { + @Override + public RawPredict set$Xgafv(java.lang.String $Xgafv) { + return (RawPredict) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public RawPredict setAccessToken(java.lang.String accessToken) { + return (RawPredict) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/responses/[^/]+$"); + @Override + public RawPredict setAlt(java.lang.String alt) { + return (RawPredict) super.setAlt(alt); + } - /** - * Gets the response from the endpoint. - * - * Create a request for the method "responses.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 Response resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.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/[^/]+/endpoints/[^/]+/responses/[^/]+$"); - } - } + @Override + public RawPredict setCallback(java.lang.String callback) { + return (RawPredict) super.setCallback(callback); + } - @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 RawPredict setFields(java.lang.String fields) { + return (RawPredict) super.setFields(fields); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public RawPredict setKey(java.lang.String key) { + return (RawPredict) super.setKey(key); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public RawPredict setOauthToken(java.lang.String oauthToken) { + return (RawPredict) super.setOauthToken(oauthToken); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public RawPredict setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RawPredict) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public RawPredict setQuotaUser(java.lang.String quotaUser) { + return (RawPredict) super.setQuotaUser(quotaUser); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public RawPredict setUploadType(java.lang.String uploadType) { + return (RawPredict) super.setUploadType(uploadType); + } - /** - * Required. The name of the Response resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public RawPredict setUploadProtocol(java.lang.String uploadProtocol) { + return (RawPredict) super.setUploadProtocol(uploadProtocol); + } - /** Required. The name of the Response resource. Format: - `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` - */ - public java.lang.String getName() { - return name; - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - /** - * Required. The name of the Response resource. Format: - * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` - */ - 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/[^/]+/endpoints/[^/]+/responses/[^/]+$"); - } - this.name = name; - return this; - } + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public RawPredict setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; } + @Override + public RawPredict set(String parameterName, Object value) { + return (RawPredict) super.set(parameterName, value); + } } - } - /** - * An accessor for creating requests from the EvaluationItems collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.EvaluationItems.List request = aiplatform.evaluationItems().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public EvaluationItems evaluationItems() { - return new EvaluationItems(); - } - - /** - * The "evaluationItems" collection of methods. - */ - public class EvaluationItems { - /** - * Creates an Evaluation Item. + * Perform a server-side streaming online prediction request for Vertex LLM streaming. * - * Create a request for the method "evaluationItems.create". + * Create a request for the method "endpoints.serverStreamingPredict". * * 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. + * parameters, call the {@link ServerStreamingPredict#execute()} method to invoke the remote + * operation. * - * @param parent Required. The resource name of the Location to create the Evaluation Item in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem} + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictRequest} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem content) throws java.io.IOException { - Create result = new Create(parent, content); + public ServerStreamingPredict serverStreamingPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictRequest content) throws java.io.IOException { + ServerStreamingPredict result = new ServerStreamingPredict(endpoint, content); initialize(result); return result; } - public class Create extends AiplatformRequest { + public class ServerStreamingPredict extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/evaluationItems"; + private static final String REST_PATH = "v1beta1/{+endpoint}:serverStreamingPredict"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * Creates an Evaluation Item. + * Perform a server-side streaming online prediction request for Vertex LLM streaming. * - * Create a request for the method "evaluationItems.create". + * Create a request for the method "endpoints.serverStreamingPredict". * * 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.

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

{@link ServerStreamingPredict#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 Evaluation Item in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem} + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictRequest} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected ServerStreamingPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingPredictResponse.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public ServerStreamingPredict set$Xgafv(java.lang.String $Xgafv) { + return (ServerStreamingPredict) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public ServerStreamingPredict setAccessToken(java.lang.String accessToken) { + return (ServerStreamingPredict) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public ServerStreamingPredict setAlt(java.lang.String alt) { + return (ServerStreamingPredict) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public ServerStreamingPredict setCallback(java.lang.String callback) { + return (ServerStreamingPredict) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public ServerStreamingPredict setFields(java.lang.String fields) { + return (ServerStreamingPredict) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public ServerStreamingPredict setKey(java.lang.String key) { + return (ServerStreamingPredict) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public ServerStreamingPredict setOauthToken(java.lang.String oauthToken) { + return (ServerStreamingPredict) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public ServerStreamingPredict setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ServerStreamingPredict) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public ServerStreamingPredict setQuotaUser(java.lang.String quotaUser) { + return (ServerStreamingPredict) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public ServerStreamingPredict setUploadType(java.lang.String uploadType) { + return (ServerStreamingPredict) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public ServerStreamingPredict setUploadProtocol(java.lang.String uploadProtocol) { + return (ServerStreamingPredict) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Location to create the Evaluation Item in. Format: - * `projects/{project}/locations/{location}` + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String endpoint; - /** Required. The resource name of the Location to create the Evaluation Item in. Format: - `projects/{project}/locations/{location}` + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getEndpoint() { + return endpoint; } /** - * Required. The resource name of the Location to create the Evaluation Item in. Format: - * `projects/{project}/locations/{location}` + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public Create setParent(java.lang.String parent) { + public ServerStreamingPredict setEndpoint(java.lang.String endpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } - this.parent = parent; + this.endpoint = endpoint; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public ServerStreamingPredict set(String parameterName, Object value) { + return (ServerStreamingPredict) super.set(parameterName, value); } } /** - * Deletes an Evaluation Item. + * 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 "evaluationItems.delete". + * Create a request for the method "endpoints.setIamPolicy". * * 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. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * - * @param name Required. The name of the EvaluationItem resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * @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 Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + 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 Delete extends AiplatformRequest { + public class SetIamPolicy extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * Deletes an Evaluation Item. + * 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 "evaluationItems.delete". + * Create a request for the method "endpoints.setIamPolicy". * * 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.

+ * 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 name Required. The name of the EvaluationItem resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * @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 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."); + 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the EvaluationItem resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * 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 name; + private java.lang.String resource; - /** Required. The name of the EvaluationItem resource to be deleted. Format: - `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + /** 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 getName() { - return name; + public java.lang.String getResource() { + return resource; } /** - * Required. The name of the EvaluationItem resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * 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 Delete setName(java.lang.String name) { + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } - this.name = name; + this.resource = resource; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Gets an Evaluation Item. + * Generate content with multimodal inputs with streaming support. * - * Create a request for the method "evaluationItems.get". + * Create a request for the method "endpoints.streamGenerateContent". * * 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. + * parameters, call the {@link StreamGenerateContent#execute()} method to invoke the remote + * operation. * - * @param name Required. The name of the EvaluationItem resource. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model + * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public StreamGenerateContent streamGenerateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) throws java.io.IOException { + StreamGenerateContent result = new StreamGenerateContent(model, content); initialize(result); return result; } - public class Get extends AiplatformRequest { + public class StreamGenerateContent extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+model}:streamGenerateContent"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); + private final java.util.regex.Pattern MODEL_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * Gets an Evaluation Item. + * Generate content with multimodal inputs with streaming support. * - * Create a request for the method "evaluationItems.get". + * Create a request for the method "endpoints.streamGenerateContent". * * 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.

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

{@link StreamGenerateContent#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 EvaluationItem resource. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * @param model Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + * model format: `projects/{project}/locations/{location}/publishers/models` Tuned model + * endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected StreamGenerateContent(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateContentResponse.class); + this.model = com.google.api.client.util.Preconditions.checkNotNull(model, "Required parameter model 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), + "Parameter model must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public StreamGenerateContent set$Xgafv(java.lang.String $Xgafv) { + return (StreamGenerateContent) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public StreamGenerateContent setAccessToken(java.lang.String accessToken) { + return (StreamGenerateContent) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public StreamGenerateContent setAlt(java.lang.String alt) { + return (StreamGenerateContent) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public StreamGenerateContent setCallback(java.lang.String callback) { + return (StreamGenerateContent) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public StreamGenerateContent setFields(java.lang.String fields) { + return (StreamGenerateContent) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public StreamGenerateContent setKey(java.lang.String key) { + return (StreamGenerateContent) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public StreamGenerateContent setOauthToken(java.lang.String oauthToken) { + return (StreamGenerateContent) super.setOauthToken(oauthToken); } @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); + public StreamGenerateContent setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StreamGenerateContent) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public StreamGenerateContent setQuotaUser(java.lang.String quotaUser) { + return (StreamGenerateContent) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public StreamGenerateContent setUploadType(java.lang.String uploadType) { + return (StreamGenerateContent) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public StreamGenerateContent setUploadProtocol(java.lang.String uploadProtocol) { + return (StreamGenerateContent) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the EvaluationItem resource. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * Required. The fully qualified name of the publisher model or tuned model endpoint to + * use. Publisher model format: + * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint + * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String model; - /** Required. The name of the EvaluationItem resource. Format: - `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + /** Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + model format: `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint + format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public java.lang.String getName() { - return name; + public java.lang.String getModel() { + return model; } /** - * Required. The name of the EvaluationItem resource. Format: - * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + * Required. The fully qualified name of the publisher model or tuned model endpoint to + * use. Publisher model format: + * `projects/{project}/locations/{location}/publishers/models` Tuned model endpoint + * format: `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public Get setName(java.lang.String name) { + public StreamGenerateContent setModel(java.lang.String model) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), + "Parameter model must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } - this.name = name; + this.model = model; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public StreamGenerateContent set(String parameterName, Object value) { + return (StreamGenerateContent) super.set(parameterName, value); } } /** - * Lists Evaluation Items. + * Perform a streaming online prediction with an arbitrary HTTP payload. * - * Create a request for the method "evaluationItems.list". + * Create a request for the method "endpoints.streamRawPredict". * * 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 StreamRawPredict#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location from which to list the Evaluation Items. Format: - * `projects/{project}/locations/{location}` + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest} * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public StreamRawPredict streamRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest content) throws java.io.IOException { + StreamRawPredict result = new StreamRawPredict(endpoint, content); initialize(result); return result; } - public class List extends AiplatformRequest { + public class StreamRawPredict extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/evaluationItems"; + private static final String REST_PATH = "v1beta1/{+endpoint}:streamRawPredict"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * Lists Evaluation Items. + * Perform a streaming online prediction with an arbitrary HTTP payload. * - * Create a request for the method "evaluationItems.list". + * Create a request for the method "endpoints.streamRawPredict". * * 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 StreamRawPredict#execute()} method to invoke the remote + * operation.

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

* - * @param parent Required. The resource name of the Location from which to list the Evaluation Items. Format: - * `projects/{project}/locations/{location}` + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected StreamRawPredict(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamRawPredictRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public StreamRawPredict set$Xgafv(java.lang.String $Xgafv) { + return (StreamRawPredict) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public StreamRawPredict setAccessToken(java.lang.String accessToken) { + return (StreamRawPredict) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public StreamRawPredict setAlt(java.lang.String alt) { + return (StreamRawPredict) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public StreamRawPredict setCallback(java.lang.String callback) { + return (StreamRawPredict) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public StreamRawPredict setFields(java.lang.String fields) { + return (StreamRawPredict) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public StreamRawPredict setKey(java.lang.String key) { + return (StreamRawPredict) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public StreamRawPredict setOauthToken(java.lang.String oauthToken) { + return (StreamRawPredict) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public StreamRawPredict setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StreamRawPredict) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public StreamRawPredict setQuotaUser(java.lang.String quotaUser) { + return (StreamRawPredict) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public StreamRawPredict setUploadType(java.lang.String uploadType) { + return (StreamRawPredict) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public StreamRawPredict setUploadProtocol(java.lang.String uploadProtocol) { + return (StreamRawPredict) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Location from which to list the Evaluation Items. - * Format: `projects/{project}/locations/{location}` + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String endpoint; - /** Required. The resource name of the Location from which to list the Evaluation Items. Format: - `projects/{project}/locations/{location}` + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` or + `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getEndpoint() { + return endpoint; } /** - * Required. The resource name of the Location from which to list the Evaluation Items. - * Format: `projects/{project}/locations/{location}` + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` or + * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` */ - public List setParent(java.lang.String parent) { + public StreamRawPredict setEndpoint(java.lang.String endpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } - this.parent = parent; + this.endpoint = endpoint; return this; } + @Override + public StreamRawPredict set(String parameterName, Object value) { + return (StreamRawPredict) 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 "endpoints.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/[^/]+/endpoints/[^/]+$"); + /** - * Optional. Filter expression that matches a subset of the EvaluationItems to show. For - * field names both snake_case and camelCase are supported. For more information about - * filter syntax, see [AIP-160](https://google.aip.dev/160). + * 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 "endpoints.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 */ - @com.google.api.client.util.Key - private java.lang.String filter; + 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/[^/]+/endpoints/[^/]+$"); + } + } - /** Optional. Filter expression that matches a subset of the EvaluationItems to show. For field names - both snake_case and camelCase are supported. For more information about filter syntax, see - [AIP-160](https://google.aip.dev/160). - */ - public java.lang.String getFilter() { - return filter; + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } - /** - * Optional. Filter expression that matches a subset of the EvaluationItems to show. For - * field names both snake_case and camelCase are supported. For more information about - * filter syntax, see [AIP-160](https://google.aip.dev/160). - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } - /** - * Optional. 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; + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } - /** Optional. 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; + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } - /** - * Optional. 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; + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } - /** Optional. The maximum number of Evaluation Items to return. */ + @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.Integer pageSize; + private java.lang.String resource; - /** Optional. The maximum number of Evaluation Items to return. + /** 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.Integer getPageSize() { - return pageSize; + public java.lang.String getResource() { + return resource; } - /** Optional. The maximum number of Evaluation Items to return. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + /** + * 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/[^/]+/endpoints/[^/]+$"); + } + this.resource = resource; return this; } /** - * Optional. A page token, received from a previous `ListEvaluationItems` call. Provide - * this to retrieve the subsequent page. + * 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.lang.String pageToken; + private java.util.List permissions; - /** Optional. A page token, received from a previous `ListEvaluationItems` call. Provide this to - retrieve the subsequent page. + /** 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.lang.String getPageToken() { - return pageToken; + public java.util.List getPermissions() { + return permissions; } /** - * Optional. A page token, received from a previous `ListEvaluationItems` call. Provide - * this to retrieve the subsequent page. + * 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 List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public TestIamPermissions setPermissions(java.util.List permissions) { + this.permissions = permissions; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Operations collection. + * Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources + * it's using. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-         * 
+ * Create a request for the method "endpoints.undeployModel". * - * @return the resource collection + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link UndeployModel#execute()} method to invoke the remote operation. + * + * @param endpoint Required. The name of the Endpoint resource from which to undeploy a Model. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployModelRequest} + * @return the request */ - public Operations operations() { - return new Operations(); + public UndeployModel undeployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployModelRequest content) throws java.io.IOException { + UndeployModel result = new UndeployModel(endpoint, content); + initialize(result); + return result; } - /** - * The "operations" collection of methods. - */ - public class Operations { + public class UndeployModel extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+endpoint}:undeployModel"; + + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * 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`. + * Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources + * it's using. * - * Create a request for the method "operations.delete". + * Create a request for the method "endpoints.undeployModel". * - * 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 UndeployModel#execute()} method to invoke the remote + * operation.

{@link UndeployModel#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 be deleted. - * @return the request + * @param endpoint Required. The name of the Endpoint resource from which to undeploy a Model. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployModelRequest} + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + protected UndeployModel(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployModelRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } } - public class Delete extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public UndeployModel set$Xgafv(java.lang.String $Xgafv) { + return (UndeployModel) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); + @Override + public UndeployModel setAccessToken(java.lang.String accessToken) { + return (UndeployModel) super.setAccessToken(accessToken); + } - /** - * 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/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); - } - } + @Override + public UndeployModel setAlt(java.lang.String alt) { + return (UndeployModel) super.setAlt(alt); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public UndeployModel setCallback(java.lang.String callback) { + return (UndeployModel) super.setCallback(callback); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public UndeployModel setFields(java.lang.String fields) { + return (UndeployModel) super.setFields(fields); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public UndeployModel setKey(java.lang.String key) { + return (UndeployModel) super.setKey(key); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public UndeployModel setOauthToken(java.lang.String oauthToken) { + return (UndeployModel) super.setOauthToken(oauthToken); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public UndeployModel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UndeployModel) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public UndeployModel setQuotaUser(java.lang.String quotaUser) { + return (UndeployModel) super.setQuotaUser(quotaUser); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public UndeployModel setUploadType(java.lang.String uploadType) { + return (UndeployModel) super.setUploadType(uploadType); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public UndeployModel setUploadProtocol(java.lang.String uploadProtocol) { + return (UndeployModel) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** + * Required. The name of the Endpoint resource from which to undeploy a Model. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** Required. The name of the Endpoint resource from which to undeploy a Model. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + /** + * Required. The name of the Endpoint resource from which to undeploy a Model. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public UndeployModel setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } + this.endpoint = endpoint; + return this; + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public UndeployModel set(String parameterName, Object value) { + return (UndeployModel) super.set(parameterName, value); + } + } + /** + * Updates an Endpoint with a long running operation. + * + * Create a request for the method "endpoints.update". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of the Endpoint. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest} + * @return the request + */ + public Update update(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest content) throws java.io.IOException { + Update result = new Update(name, content); + initialize(result); + return result; + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + public class Update 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/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private static final String REST_PATH = "v1beta1/{+name}:update"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - @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. + * Updates an Endpoint with a long running operation. * - * Create a request for the method "operations.get". + * Create a request for the method "endpoints.update". * - * 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 Update#execute()} method to invoke the remote operation. + *

{@link + * Update#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 Identifier. The resource name of the Endpoint. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest} + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Update(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest 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/[^/]+/endpoints/[^/]+$"); + } } - 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/[^/]+/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/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); - } - } + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Identifier. The resource name of the Endpoint. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Identifier. The resource name of the Endpoint. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** Identifier. The resource name of the Endpoint. */ + public Update 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/[^/]+/endpoints/[^/]+$"); } + this.name = name; + return this; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + /** + * An accessor for creating requests from the Chat collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Chat.List request = aiplatform.chat().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Chat chat() { + return new Chat(); + } - /** 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; - } + /** + * The "chat" collection of methods. + */ + public class Chat { - @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`. + * Exposes an OpenAI-compatible endpoint for chat completions. * - * Create a request for the method "operations.list". + * Create a request for the method "chat.completions". * * 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 Completions#execute()} method to invoke the remote operation. * - * @param name The name of the operation's parent resource. + * @param endpoint Required. The name of the endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} * @return the request */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); + public Completions completions(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { + Completions result = new Completions(endpoint, content); initialize(result); return result; } - public class List extends AiplatformRequest { + public class Completions extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}/operations"; + private static final String REST_PATH = "v1beta1/{+endpoint}/chat/completions"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Exposes an OpenAI-compatible endpoint for chat completions. * - * Create a request for the method "operations.list". + * Create a request for the method "chat.completions". * * 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 Completions#execute()} method to invoke the remote + * operation.

{@link + * Completions#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 endpoint Required. The name of the endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} * @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 Completions(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Completions set$Xgafv(java.lang.String $Xgafv) { + return (Completions) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Completions setAccessToken(java.lang.String accessToken) { + return (Completions) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Completions setAlt(java.lang.String alt) { + return (Completions) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Completions setCallback(java.lang.String callback) { + return (Completions) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Completions setFields(java.lang.String fields) { + return (Completions) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Completions setKey(java.lang.String key) { + return (Completions) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Completions setOauthToken(java.lang.String oauthToken) { + return (Completions) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Completions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Completions) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Completions setQuotaUser(java.lang.String quotaUser) { + return (Completions) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Completions setUploadType(java.lang.String uploadType) { + return (Completions) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Completions setUploadProtocol(java.lang.String uploadProtocol) { + return (Completions) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Required. The name of the endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String endpoint; - /** The name of the operation's parent resource. + /** Required. The name of the endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public java.lang.String getName() { - return name; + public java.lang.String getEndpoint() { + return endpoint; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { + /** + * Required. The name of the endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public Completions setEndpoint(java.lang.String endpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); } - this.name = name; + this.endpoint = endpoint; 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; + @Override + public Completions set(String parameterName, Object value) { + return (Completions) super.set(parameterName, value); } + } - /** 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; - } + } + /** + * An accessor for creating requests from the DeployedModels collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.DeployedModels.List request = aiplatform.deployedModels().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public DeployedModels deployedModels() { + return new DeployedModels(); + } - /** - * 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 "deployedModels" collection of methods. + */ + public class DeployedModels { - @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". + * An accessor for creating requests from the Invoke 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. + *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.Invoke.List request = aiplatform.invoke().list(parameters ...)}
+           * 
* - * @param name The name of the operation resource to wait on. - * @return the request + * @return the resource collection */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + public Invoke invoke() { + return new Invoke(); } - 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/[^/]+$"); + /** + * The "invoke" collection of methods. + */ + public class Invoke { /** - * 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. + * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, + * invoke_route_prefix must be set to allow the paths that will be specified in the request. * - * Create a request for the method "operations.wait". + * Create a request for the method "invoke.invoke". * - * 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.

+ * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link InvokeRequest#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to wait on. - * @since 1.13 + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param deployedModelId ID of the DeployedModel that serves the invoke request. + * @param invokeId + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest} + * @return the request */ - 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/[^/]+$"); - } + public InvokeRequest invoke(java.lang.String endpoint, java.lang.String deployedModelId, java.lang.String invokeId, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest content) throws java.io.IOException { + InvokeRequest result = new InvokeRequest(endpoint, deployedModelId, invokeId, content); + initialize(result); + return result; } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + public class InvokeRequest extends AiplatformRequest { - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+endpoint}/deployedModels/{deployedModelId}/invoke/{+invokeId}"; - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + /** + * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this + * method, invoke_route_prefix must be set to allow the paths that will be specified in the + * request. + * + * Create a request for the method "invoke.invoke". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link InvokeRequest#execute()} method to invoke the remote + * operation.

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

+ * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param deployedModelId ID of the DeployedModel that serves the invoke request. + * @param invokeId + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest} + * @since 1.13 + */ + protected InvokeRequest(java.lang.String endpoint, java.lang.String deployedModelId, java.lang.String invokeId, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } + this.deployedModelId = com.google.api.client.util.Preconditions.checkNotNull(deployedModelId, "Required parameter deployedModelId must be specified."); + this.invokeId = com.google.api.client.util.Preconditions.checkNotNull(invokeId, "Required parameter invokeId must be specified."); + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public InvokeRequest set$Xgafv(java.lang.String $Xgafv) { + return (InvokeRequest) super.set$Xgafv($Xgafv); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public InvokeRequest setAccessToken(java.lang.String accessToken) { + return (InvokeRequest) super.setAccessToken(accessToken); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public InvokeRequest setAlt(java.lang.String alt) { + return (InvokeRequest) super.setAlt(alt); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public InvokeRequest setCallback(java.lang.String callback) { + return (InvokeRequest) super.setCallback(callback); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public InvokeRequest setFields(java.lang.String fields) { + return (InvokeRequest) super.setFields(fields); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public InvokeRequest setKey(java.lang.String key) { + return (InvokeRequest) super.setKey(key); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public InvokeRequest setOauthToken(java.lang.String oauthToken) { + return (InvokeRequest) 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 InvokeRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + return (InvokeRequest) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public InvokeRequest setQuotaUser(java.lang.String quotaUser) { + return (InvokeRequest) 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/[^/]+/evaluationItems/[^/]+/operations/[^/]+$"); + @Override + public InvokeRequest setUploadType(java.lang.String uploadType) { + return (InvokeRequest) super.setUploadType(uploadType); } - 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 InvokeRequest setUploadProtocol(java.lang.String uploadProtocol) { + return (InvokeRequest) 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; - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; - /** - * 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; - } + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public InvokeRequest setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } + this.endpoint = endpoint; + return this; + } - } - } - /** - * An accessor for creating requests from the EvaluationMetrics collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.EvaluationMetrics.List request = aiplatform.evaluationMetrics().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public EvaluationMetrics evaluationMetrics() { - return new EvaluationMetrics(); - } + /** ID of the DeployedModel that serves the invoke request. */ + @com.google.api.client.util.Key + private java.lang.String deployedModelId; - /** - * The "evaluationMetrics" collection of methods. - */ - public class EvaluationMetrics { + /** ID of the DeployedModel that serves the invoke request. + */ + public java.lang.String getDeployedModelId() { + return deployedModelId; + } + + /** ID of the DeployedModel that serves the invoke request. */ + public InvokeRequest setDeployedModelId(java.lang.String deployedModelId) { + this.deployedModelId = deployedModelId; + return this; + } + + @com.google.api.client.util.Key + private java.lang.String invokeId; + + /** + + */ + public java.lang.String getInvokeId() { + return invokeId; + } + + public InvokeRequest setInvokeId(java.lang.String invokeId) { + this.invokeId = invokeId; + return this; + } + + @Override + public InvokeRequest set(String parameterName, Object value) { + return (InvokeRequest) super.set(parameterName, value); + } + } + } + } /** - * Creates an EvaluationMetric. - * - * Create a request for the method "evaluationMetrics.create". + * An accessor for creating requests from the Google 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. + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Google.List request = aiplatform.google().list(parameters ...)}
+         * 
* - * @param parent Required. The resource name of the Location to create the EvaluationMetric in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationMetric} - * @return the request + * @return the resource collection */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationMetric content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; + public Google google() { + return new Google(); } - public class Create extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/evaluationMetrics"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * The "google" collection of methods. + */ + public class Google { /** - * Creates an EvaluationMetric. - * - * Create a request for the method "evaluationMetrics.create". + * An accessor for creating requests from the Science collection. * - * 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.

+ *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.Science.List request = aiplatform.science().list(parameters ...)}
+           * 
* - * @param parent Required. The resource name of the Location to create the EvaluationMetric in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationMetric} - * @since 1.13 + * @return the resource collection */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationMetric content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationMetric.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 Science science() { + return new Science(); } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + /** + * The "science" collection of methods. + */ + public class Science { - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + /** + * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, + * invoke_route_prefix must be set to allow the paths that will be specified in the request. + * + * Create a request for the method "science.inference". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Inference#execute()} method to invoke the remote operation. + * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} + * @return the request + */ + public Inference inference(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { + Inference result = new Inference(endpoint, content); + initialize(result); + return result; + } - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + public class Inference extends AiplatformRequest { - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + private static final String REST_PATH = "v1beta1/{+endpoint}/science/inference"; - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/google$"); - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + /** + * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this + * method, invoke_route_prefix must be set to allow the paths that will be specified in the + * request. + * + * Create a request for the method "science.inference". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Inference#execute()} method to invoke the remote + * operation.

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

+ * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} + * @since 1.13 + */ + protected Inference(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/google$"); + } + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Inference set$Xgafv(java.lang.String $Xgafv) { + return (Inference) super.set$Xgafv($Xgafv); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Inference setAccessToken(java.lang.String accessToken) { + return (Inference) super.setAccessToken(accessToken); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Inference setAlt(java.lang.String alt) { + return (Inference) super.setAlt(alt); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Inference setCallback(java.lang.String callback) { + return (Inference) super.setCallback(callback); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Inference setFields(java.lang.String fields) { + return (Inference) super.setFields(fields); + } - /** - * Required. The resource name of the Location to create the EvaluationMetric in. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Inference setKey(java.lang.String key) { + return (Inference) super.setKey(key); + } - /** Required. The resource name of the Location to create the EvaluationMetric in. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Inference setOauthToken(java.lang.String oauthToken) { + return (Inference) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the Location to create the EvaluationMetric 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 Inference setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Inference) super.setPrettyPrint(prettyPrint); + } - /** - * Optional. The ID to use for the EvaluationMetric, which will become the final component - * of the EvaluationMetric's resource name. This value should be 1-63 characters, and - * valid characters are /a-z-/. The first character must be a lowercase letter, and the - * last character must be a lowercase letter or number. - */ - @com.google.api.client.util.Key - private java.lang.String evaluationMetricId; + @Override + public Inference setQuotaUser(java.lang.String quotaUser) { + return (Inference) super.setQuotaUser(quotaUser); + } - /** Optional. The ID to use for the EvaluationMetric, which will become the final component of the - EvaluationMetric's resource name. This value should be 1-63 characters, and valid characters are - /a-z-/. The first character must be a lowercase letter, and the last character must be a lowercase - letter or number. - */ - public java.lang.String getEvaluationMetricId() { - return evaluationMetricId; - } + @Override + public Inference setUploadType(java.lang.String uploadType) { + return (Inference) super.setUploadType(uploadType); + } - /** - * Optional. The ID to use for the EvaluationMetric, which will become the final component - * of the EvaluationMetric's resource name. This value should be 1-63 characters, and - * valid characters are /a-z-/. The first character must be a lowercase letter, and the - * last character must be a lowercase letter or number. - */ - public Create setEvaluationMetricId(java.lang.String evaluationMetricId) { - this.evaluationMetricId = evaluationMetricId; - return this; - } + @Override + public Inference setUploadProtocol(java.lang.String uploadProtocol) { + return (Inference) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; + + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } + + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public Inference setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/google$"); + } + this.endpoint = endpoint; + return this; + } + + /** ID of the DeployedModel that serves the invoke request. */ + @com.google.api.client.util.Key + private java.lang.String deployedModelId; + + /** ID of the DeployedModel that serves the invoke request. + */ + public java.lang.String getDeployedModelId() { + return deployedModelId; + } + + /** ID of the DeployedModel that serves the invoke request. */ + public Inference setDeployedModelId(java.lang.String deployedModelId) { + this.deployedModelId = deployedModelId; + return this; + } + + @Override + public Inference set(String parameterName, Object value) { + return (Inference) super.set(parameterName, value); + } + } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); } } /** - * Deletes an EvaluationMetric. - * - * Create a request for the method "evaluationMetrics.delete". + * An accessor for creating requests from the Invoke collection. * - * 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. + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Invoke.List request = aiplatform.invoke().list(parameters ...)}
+         * 
* - * @param name Required. The name of the EvaluationMetric resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` - * @return the request + * @return the resource collection */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public Invoke invoke() { + return new Invoke(); } - 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/[^/]+/evaluationMetrics/[^/]+$"); + /** + * The "invoke" collection of methods. + */ + public class Invoke { /** - * Deletes an EvaluationMetric. + * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, + * invoke_route_prefix must be set to allow the paths that will be specified in the request. * - * Create a request for the method "evaluationMetrics.delete". + * Create a request for the method "invoke.invoke". * - * 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 InvokeRequest#execute()} method to invoke the remote operation. * - * @param name Required. The name of the EvaluationMetric resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` - * @since 1.13 + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param invokeId + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest} + * @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/[^/]+/evaluationMetrics/[^/]+$"); - } + public InvokeRequest invoke(java.lang.String endpoint, java.lang.String invokeId, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest content) throws java.io.IOException { + InvokeRequest result = new InvokeRequest(endpoint, invokeId, content); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class InvokeRequest extends AiplatformRequest { - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+endpoint}/invoke/{+invokeId}"; - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** + * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this + * method, invoke_route_prefix must be set to allow the paths that will be specified in the + * request. + * + * Create a request for the method "invoke.invoke". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link InvokeRequest#execute()} method to invoke the remote + * operation.

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

+ * + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param invokeId + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest} + * @since 1.13 + */ + protected InvokeRequest(java.lang.String endpoint, java.lang.String invokeId, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1InvokeRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } + this.invokeId = com.google.api.client.util.Preconditions.checkNotNull(invokeId, "Required parameter invokeId must be specified."); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public InvokeRequest set$Xgafv(java.lang.String $Xgafv) { + return (InvokeRequest) super.set$Xgafv($Xgafv); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public InvokeRequest setAccessToken(java.lang.String accessToken) { + return (InvokeRequest) super.setAccessToken(accessToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public InvokeRequest setAlt(java.lang.String alt) { + return (InvokeRequest) super.setAlt(alt); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public InvokeRequest setCallback(java.lang.String callback) { + return (InvokeRequest) super.setCallback(callback); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public InvokeRequest setFields(java.lang.String fields) { + return (InvokeRequest) super.setFields(fields); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public InvokeRequest setKey(java.lang.String key) { + return (InvokeRequest) super.setKey(key); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public InvokeRequest setOauthToken(java.lang.String oauthToken) { + return (InvokeRequest) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the EvaluationMetric resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public InvokeRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + return (InvokeRequest) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the EvaluationMetric resource to be deleted. Format: - `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` - */ - public java.lang.String getName() { - return name; - } + @Override + public InvokeRequest setQuotaUser(java.lang.String quotaUser) { + return (InvokeRequest) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the EvaluationMetric resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` - */ - 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/[^/]+/evaluationMetrics/[^/]+$"); + @Override + public InvokeRequest setUploadType(java.lang.String uploadType) { + return (InvokeRequest) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + @Override + public InvokeRequest setUploadProtocol(java.lang.String uploadProtocol) { + return (InvokeRequest) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; + + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; + } + + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public InvokeRequest setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); + } + this.endpoint = endpoint; + return this; + } + + @com.google.api.client.util.Key + private java.lang.String invokeId; + + /** + + */ + public java.lang.String getInvokeId() { + return invokeId; + } + + public InvokeRequest setInvokeId(java.lang.String invokeId) { + this.invokeId = invokeId; + return this; + } + + @Override + public InvokeRequest set(String parameterName, Object value) { + return (InvokeRequest) super.set(parameterName, value); + } } + } /** - * Gets an EvaluationMetric. - * - * Create a request for the method "evaluationMetrics.get". + * An accessor for creating requests from the Openapi collection. * - * 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. + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Openapi.List request = aiplatform.openapi().list(parameters ...)}
+         * 
* - * @param name Required. The name of the EvaluationMetric resource. Format: - * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` - * @return the request + * @return the resource collection */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + public Openapi openapi() { + return new Openapi(); } - 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/[^/]+/evaluationMetrics/[^/]+$"); + /** + * The "openapi" collection of methods. + */ + public class Openapi { /** - * Gets an EvaluationMetric. + * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, + * invoke_route_prefix must be set to allow the paths that will be specified in the request. * - * Create a request for the method "evaluationMetrics.get". + * Create a request for the method "openapi.completions". * - * 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 Completions#execute()} method to invoke the remote operation. * - * @param name Required. The name of the EvaluationMetric resource. Format: - * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationMetric.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/[^/]+/evaluationMetrics/[^/]+$"); - } - } - - @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 EvaluationMetric resource. Format: - * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the EvaluationMetric resource. Format: - `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the EvaluationMetric resource. Format: - * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` - */ - 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/[^/]+/evaluationMetrics/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists EvaluationMetrics. - * - * Create a request for the method "evaluationMetrics.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 from which to list the EvaluationMetrics. 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}/evaluationMetrics"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Lists EvaluationMetrics. - * - * Create a request for the method "evaluationMetrics.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 from which to list the EvaluationMetrics. 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.GoogleCloudAiplatformV1beta1ListEvaluationMetricsResponse.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 from which to list the EvaluationMetrics. - * Format: `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the Location from which to list the EvaluationMetrics. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the Location from which to list the EvaluationMetrics. - * Format: `projects/{project}/locations/{location}` - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. Filter expression that matches a subset of the EvaluationMetrics to show. For - * field names both snake_case and camelCase are supported. For more information about - * filter syntax, see [AIP-160](https://google.aip.dev/160). - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Filter expression that matches a subset of the EvaluationMetrics to show. For field names - both snake_case and camelCase are supported. For more information about filter syntax, see - [AIP-160](https://google.aip.dev/160). - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. Filter expression that matches a subset of the EvaluationMetrics to show. For - * field names both snake_case and camelCase are supported. For more information about - * filter syntax, see [AIP-160](https://google.aip.dev/160). - */ - 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 by - * default. 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 by default. 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 by - * default. Use `desc` after a field name for descending. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** Optional. The maximum number of EvaluationMetrics to return. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The maximum number of EvaluationMetrics to return. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** Optional. The maximum number of EvaluationMetrics to return. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. A page token, received from a previous `ListEvaluationMetrics` 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 `ListEvaluationMetrics` call. Provide this to - retrieve the subsequent page. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. A page token, received from a previous `ListEvaluationMetrics` 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 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 { - - /** - * 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. + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Completions completions(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { + Completions result = new Completions(endpoint, content); initialize(result); return result; } - public class Delete extends AiplatformRequest { + public class Completions extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+endpoint}/completions"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationMetrics/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); /** - * 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`. + * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this + * method, invoke_route_prefix must be set to allow the paths that will be specified in the + * request. * - * Create a request for the method "operations.delete". + * Create a request for the method "openapi.completions". * * 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.

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

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

* - * @param name The name of the operation resource to be deleted. + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} * @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."); + protected Completions(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint 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/[^/]+/evaluationMetrics/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Completions set$Xgafv(java.lang.String $Xgafv) { + return (Completions) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Completions setAccessToken(java.lang.String accessToken) { + return (Completions) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Completions setAlt(java.lang.String alt) { + return (Completions) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Completions setCallback(java.lang.String callback) { + return (Completions) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Completions setFields(java.lang.String fields) { + return (Completions) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Completions setKey(java.lang.String key) { + return (Completions) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Completions setOauthToken(java.lang.String oauthToken) { + return (Completions) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Completions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Completions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Completions setQuotaUser(java.lang.String quotaUser) { + return (Completions) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Completions setUploadType(java.lang.String uploadType) { + return (Completions) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Completions setUploadProtocol(java.lang.String uploadProtocol) { + return (Completions) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be deleted. */ + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String endpoint; - /** The name of the operation resource to be deleted. + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` */ - public java.lang.String getName() { - return name; + public java.lang.String getEndpoint() { + return endpoint; } - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public Completions setEndpoint(java.lang.String endpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/evaluationMetrics/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); } - this.name = name; + this.endpoint = endpoint; return this; } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + /** ID of the DeployedModel that serves the invoke request. */ + @com.google.api.client.util.Key + private java.lang.String deployedModelId; + + /** ID of the DeployedModel that serves the invoke request. + */ + public java.lang.String getDeployedModelId() { + return deployedModelId; } - } - /** - * 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. + + /** ID of the DeployedModel that serves the invoke request. */ + public Completions setDeployedModelId(java.lang.String deployedModelId) { + this.deployedModelId = deployedModelId; + return this; + } + + @Override + public Completions set(String parameterName, Object value) { + return (Completions) super.set(parameterName, value); + } + } + /** + * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, + * invoke_route_prefix must be set to allow the paths that will be specified in the request. * - * Create a request for the method "operations.get". + * Create a request for the method "openapi.embeddings". * * 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. + * parameters, call the {@link Embeddings#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource. + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Embeddings embeddings(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { + Embeddings result = new Embeddings(endpoint, content); initialize(result); return result; } - public class Get extends AiplatformRequest { + public class Embeddings extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+endpoint}/embeddings"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationMetrics/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); /** - * 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. + * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this + * method, invoke_route_prefix must be set to allow the paths that will be specified in the + * request. * - * Create a request for the method "operations.get". + * Create a request for the method "openapi.embeddings". * * 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)} + * optional parameters, call the {@link Embeddings#execute()} method to invoke the remote + * operation.

{@link + * Embeddings#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 endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} * @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."); + protected Embeddings(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint 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/[^/]+/evaluationMetrics/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Embeddings set$Xgafv(java.lang.String $Xgafv) { + return (Embeddings) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Embeddings setAccessToken(java.lang.String accessToken) { + return (Embeddings) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Embeddings setAlt(java.lang.String alt) { + return (Embeddings) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Embeddings setCallback(java.lang.String callback) { + return (Embeddings) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Embeddings setFields(java.lang.String fields) { + return (Embeddings) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Embeddings setKey(java.lang.String key) { + return (Embeddings) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Embeddings setOauthToken(java.lang.String oauthToken) { + return (Embeddings) super.setOauthToken(oauthToken); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Embeddings setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Embeddings) super.setPrettyPrint(prettyPrint); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Embeddings setQuotaUser(java.lang.String quotaUser) { + return (Embeddings) super.setQuotaUser(quotaUser); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Embeddings setUploadType(java.lang.String uploadType) { + return (Embeddings) super.setUploadType(uploadType); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Embeddings setUploadProtocol(java.lang.String uploadProtocol) { + return (Embeddings) super.setUploadProtocol(uploadProtocol); } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; + + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public Embeddings setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); + } + this.endpoint = endpoint; + return this; } - /** The name of the operation resource. */ + /** ID of the DeployedModel that serves the invoke request. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String deployedModelId; - /** The name of the operation resource. + /** ID of the DeployedModel that serves the invoke request. */ - public java.lang.String getName() { - return name; + public java.lang.String getDeployedModelId() { + return deployedModelId; } - /** 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/[^/]+/evaluationMetrics/[^/]+/operations/[^/]+$"); - } - this.name = name; + /** ID of the DeployedModel that serves the invoke request. */ + public Embeddings setDeployedModelId(java.lang.String deployedModelId) { + this.deployedModelId = deployedModelId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Embeddings set(String parameterName, Object value) { + return (Embeddings) 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`. + * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, + * invoke_route_prefix must be set to allow the paths that will be specified in the request. * - * Create a request for the method "operations.list". + * Create a request for the method "openapi.responses". * * 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 Responses#execute()} method to invoke the remote operation. * - * @param name The name of the operation's parent resource. + * @param endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} * @return the request */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); + public Responses responses(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) throws java.io.IOException { + Responses result = new Responses(endpoint, content); initialize(result); return result; } - public class List extends AiplatformRequest { + public class Responses extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}/operations"; + private static final String REST_PATH = "v1beta1/{+endpoint}/responses"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationMetrics/[^/]+$"); + private final java.util.regex.Pattern ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this + * method, invoke_route_prefix must be set to allow the paths that will be specified in the + * request. * - * Create a request for the method "operations.list". + * Create a request for the method "openapi.responses". * * 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 Responses#execute()} method to invoke the remote + * operation.

{@link + * Responses#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 endpoint Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody} * @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 Responses(java.lang.String endpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleApiHttpBody.class); + this.endpoint = com.google.api.client.util.Preconditions.checkNotNull(endpoint, "Required parameter endpoint 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/[^/]+/evaluationMetrics/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Responses set$Xgafv(java.lang.String $Xgafv) { + return (Responses) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Responses setAccessToken(java.lang.String accessToken) { + return (Responses) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Responses setAlt(java.lang.String alt) { + return (Responses) super.setAlt(alt); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Responses setCallback(java.lang.String callback) { + return (Responses) super.setCallback(callback); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Responses setFields(java.lang.String fields) { + return (Responses) super.setFields(fields); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Responses setKey(java.lang.String key) { + return (Responses) super.setKey(key); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Responses setOauthToken(java.lang.String oauthToken) { + return (Responses) super.setOauthToken(oauthToken); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Responses setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Responses) super.setPrettyPrint(prettyPrint); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Responses setQuotaUser(java.lang.String quotaUser) { + return (Responses) super.setQuotaUser(quotaUser); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Responses setUploadType(java.lang.String uploadType) { + return (Responses) super.setUploadType(uploadType); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Responses setUploadProtocol(java.lang.String uploadProtocol) { + return (Responses) super.setUploadProtocol(uploadProtocol); } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String endpoint; + + /** Required. The name of the Endpoint requested to serve the prediction. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public java.lang.String getEndpoint() { + return endpoint; } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** + * Required. The name of the Endpoint requested to serve the prediction. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + public Responses setEndpoint(java.lang.String endpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENDPOINT_PATTERN.matcher(endpoint).matches(), + "Parameter endpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/endpoints/openapi$"); + } + this.endpoint = endpoint; + return this; } - /** The name of the operation's parent resource. */ + /** ID of the DeployedModel that serves the invoke request. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String deployedModelId; - /** The name of the operation's parent resource. + /** ID of the DeployedModel that serves the invoke request. */ - public java.lang.String getName() { - return name; + public java.lang.String getDeployedModelId() { + return deployedModelId; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { + /** ID of the DeployedModel that serves the invoke request. */ + public Responses setDeployedModelId(java.lang.String deployedModelId) { + this.deployedModelId = deployedModelId; + return this; + } + + @Override + public Responses set(String parameterName, Object value) { + return (Responses) 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/[^/]+/endpoints/[^/]+/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/[^/]+/evaluationMetrics/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$"); } - this.name = name; - return this; } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) 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. - */ + @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.Boolean returnPartialSuccess; + private java.lang.String name; - /** 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. + /** The name of the operation resource to be cancelled. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getName() { + return name; } - /** - * 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; + /** 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); + } + this.name = name; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } - - } - } - /** - * An accessor for creating requests from the EvaluationRuns collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.EvaluationRuns.List request = aiplatform.evaluationRuns().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public EvaluationRuns evaluationRuns() { - return new EvaluationRuns(); - } - - /** - * The "evaluationRuns" collection of methods. - */ - public class EvaluationRuns { - - /** - * Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of - * run can be checked via GetEvaluationRun. - * - * Create a request for the method "evaluationRuns.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 EvaluationRun resource to be cancelled. Format: - * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest} - * @return the request - */ - public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest 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/[^/]+/evaluationRuns/[^/]+$"); - /** - * Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status - * of run can be checked via GetEvaluationRun. + * 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 "evaluationRuns.cancel". + * 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 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 Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the EvaluationRun resource to be cancelled. Format: - * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest} - * @since 1.13 + * @param name The name of the operation resource to be deleted. + * @return the request */ - protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest 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/[^/]+/evaluationRuns/[^/]+$"); - } + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + public class Delete 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + /** + * 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); + } + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the EvaluationRun resource to be cancelled. Format: - * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the EvaluationRun resource to be cancelled. Format: - `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the EvaluationRun resource to be cancelled. Format: - * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - */ - 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/[^/]+/evaluationRuns/[^/]+$"); + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Creates an Evaluation Run. - * - * Create a request for the method "evaluationRuns.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 Evaluation Run in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationRun} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationRun content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - public class Create extends AiplatformRequest { + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1beta1/{+parent}/evaluationRuns"; + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Creates an Evaluation Run. + * 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 "evaluationRuns.create". + * 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 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 Get#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location to create the Evaluation Run in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationRun} - * @since 1.13 + * @param name The name of the operation resource. + * @return the request */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationRun content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationRun.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 Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest { - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + /** + * 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); + } + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * Required. The resource name of the Location to create the Evaluation Run in. Format: - * `projects/{project}/locations/{location}` - */ - @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 resource name of the Location to create the Evaluation Run in. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the Location to create the Evaluation Run 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 Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - this.parent = parent; - return this; - } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes an Evaluation Run. - * - * Create a request for the method "evaluationRuns.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 EvaluationRun resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - * @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 Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - public class Delete extends AiplatformRequest { + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$"); + /** 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Deletes an Evaluation Run. + * 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 "evaluationRuns.delete". + * 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 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 List#execute()} method to invoke the remote operation. * - * @param name Required. The name of the EvaluationRun resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - * @since 1.13 + * @param name The name of the operation's parent resource. + * @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/[^/]+/evaluationRuns/[^/]+$"); - } - } - - @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); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + public class List extends AiplatformRequest { - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$"); - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + /** + * 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/[^/]+/endpoints/[^/]+$"); + } + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** - * Required. The name of the EvaluationRun resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** Required. The name of the EvaluationRun resource to be deleted. Format: - `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - */ - public java.lang.String getName() { - return name; - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * Required. The name of the EvaluationRun resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - */ - 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/[^/]+/evaluationRuns/[^/]+$"); + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets an Evaluation Run. - * - * Create a request for the method "evaluationRuns.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 EvaluationRun resource. Format: - * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - * @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 setKey(java.lang.String key) { + return (List) super.setKey(key); + } - public class Get extends AiplatformRequest { + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @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/[^/]+/evaluationRuns/[^/]+$"); + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** - * Gets an Evaluation Run. - * - * Create a request for the method "evaluationRuns.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 EvaluationRun resource. Format: - * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationRun.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/[^/]+/evaluationRuns/[^/]+$"); + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** 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/[^/]+/endpoints/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * Required. The name of the EvaluationRun resource. Format: - * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * 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; - /** Required. The name of the EvaluationRun resource. Format: - `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - */ - public java.lang.String getName() { - return name; - } + /** 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; + } - /** - * Required. The name of the EvaluationRun resource. Format: - * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - */ - 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/[^/]+/evaluationRuns/[^/]+$"); + /** + * 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; } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - } - /** - * Lists Evaluation Runs. - * - * Create a request for the method "evaluationRuns.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 from which to list the Evaluation Runs. 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}/evaluationRuns"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - /** - * Lists Evaluation Runs. + * 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 "evaluationRuns.list". + * 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 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 Wait#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location from which to list the Evaluation Runs. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 + * @param name The name of the operation resource to wait on. + * @return the request */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse.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 Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Wait 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}:wait"; - @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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); + } + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @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 from which to list the Evaluation Runs. - * Format: `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - /** Required. The resource name of the Location from which to list the Evaluation Runs. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - /** - * Required. The resource name of the Location from which to list the Evaluation Runs. - * 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 Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } - this.parent = parent; - return this; - } - /** - * Optional. Filter expression that matches a subset of the EvaluationRuns to show. For - * field names both snake_case and camelCase are supported. For more information about - * filter syntax, see [AIP-160](https://google.aip.dev/160). - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - /** Optional. Filter expression that matches a subset of the EvaluationRuns to show. For field names - both snake_case and camelCase are supported. For more information about filter syntax, see - [AIP-160](https://google.aip.dev/160). - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - /** - * Optional. Filter expression that matches a subset of the EvaluationRuns to show. For - * field names both snake_case and camelCase are supported. For more information about - * filter syntax, see [AIP-160](https://google.aip.dev/160). - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - /** - * Optional. 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; + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - /** Optional. 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; - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. 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 name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Optional. The maximum number of Evaluation Runs to return. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - /** Optional. The maximum number of Evaluation Runs to return. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** 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/[^/]+/endpoints/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - /** Optional. The maximum number of Evaluation Runs to return. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - 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; - /** - * Optional. A page token, received from a previous `ListEvaluationRuns` call. Provide - * this to retrieve the subsequent page. - */ - @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. + */ + public String getTimeout() { + return timeout; + } - /** Optional. A page token, received from a previous `ListEvaluationRuns` call. Provide this to - retrieve the subsequent page. - */ - 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 Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; + } - /** - * Optional. A page token, received from a previous `ListEvaluationRuns` call. Provide - * this to retrieve the subsequent page. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } } - /** - * An accessor for creating requests from the Operations collection. + * An accessor for creating requests from the Responses collection. * *

The typical use is:

*
          *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+         *   {@code Aiplatform.Responses.List request = aiplatform.responses().list(parameters ...)}
          * 
* * @return the resource collection */ - public Operations operations() { - return new Operations(); + public Responses responses() { + return new Responses(); } /** - * The "operations" collection of methods. + * The "responses" collection of methods. */ - public class Operations { + public class Responses { /** - * 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 the response from the endpoint. * - * Create a request for the method "operations.delete". + * Create a request for the method "responses.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 Response resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -74608,19 +71707,17 @@ 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/[^/]+/evaluationRuns/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/responses/[^/]+$"); /** - * 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 the response from the endpoint. * - * Create a request for the method "operations.delete". + * Create a request for the method "responses.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. @@ -74628,16 +71725,17 @@ public class Delete extends AiplatformRequest * - * @param name The name of the operation resource to be deleted. + * @param name Required. The name of the Response resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` * @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.GoogleApiHttpBody.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/[^/]+/evaluationRuns/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/responses/[^/]+$"); } } @@ -74696,22 +71794,29 @@ 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 Response resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + */ @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 Response resource to be deleted. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource to be deleted. */ + /** + * Required. The name of the Response resource to be deleted. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + */ 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/[^/]+/evaluationRuns/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/responses/[^/]+$"); } this.name = name; return this; @@ -74723,15 +71828,15 @@ public Delete set(String parameterName, Object 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 the response from the endpoint. * - * Create a request for the method "operations.get". + * Create a request for the method "responses.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 Response resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -74740,34 +71845,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/[^/]+/evaluationRuns/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/responses/[^/]+$"); /** - * 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 the response from the endpoint. * - * Create a request for the method "operations.get". + * Create a request for the method "responses.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 Response resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` * @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.GoogleApiHttpBody.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/[^/]+/evaluationRuns/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/responses/[^/]+$"); } } @@ -74836,22 +71941,29 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Required. The name of the Response resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. The name of the Response resource. Format: + `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ + /** + * Required. The name of the Response resource. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}/responses/{response}` + */ 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/[^/]+/evaluationRuns/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/responses/[^/]+$"); } this.name = name; return this; @@ -74862,552 +71974,163 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } + + } + } + /** + * An accessor for creating requests from the EvaluationItems collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.EvaluationItems.List request = aiplatform.evaluationItems().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public EvaluationItems evaluationItems() { + return new EvaluationItems(); + } + + /** + * The "evaluationItems" collection of methods. + */ + public class EvaluationItems { + + /** + * Creates an Evaluation Item. + * + * Create a request for the method "evaluationItems.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 Evaluation Item in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem 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}/evaluationItems"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Creates an Evaluation Item. * - * Create a request for the method "operations.list". + * Create a request for the method "evaluationItems.create". * - * 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 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's parent resource. - * @return the request + * @param parent Required. The resource name of the Location to create the Evaluation Item in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem} + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem.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 { + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}/operations"; + @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/[^/]+/evaluationRuns/[^/]+$"); + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - /** - * 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/[^/]+/evaluationRuns/[^/]+$"); - } - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** + * Required. The resource name of the Location to create the Evaluation Item in. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** Required. The resource name of the Location to create the Evaluation Item in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + /** + * Required. The resource name of the Location to create the Evaluation Item 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 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/[^/]+/evaluationRuns/[^/]+$"); - } - 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/[^/]+/evaluationRuns/[^/]+/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/[^/]+/evaluationRuns/[^/]+/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/[^/]+/evaluationRuns/[^/]+/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 EvaluationSets collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.EvaluationSets.List request = aiplatform.evaluationSets().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public EvaluationSets evaluationSets() { - return new EvaluationSets(); - } - - /** - * The "evaluationSets" collection of methods. - */ - public class EvaluationSets { - - /** - * Creates an Evaluation Set. - * - * Create a request for the method "evaluationSets.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 Evaluation Set in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet 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}/evaluationSets"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Creates an Evaluation Set. - * - * Create a request for the method "evaluationSets.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 Evaluation Set in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet.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 Evaluation Set 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 Evaluation Set in. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the Location to create the Evaluation Set 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; - } + this.parent = parent; + return this; + } @Override public Create set(String parameterName, Object value) { @@ -75415,15 +72138,15 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes an Evaluation Set. + * Deletes an Evaluation Item. * - * Create a request for the method "evaluationSets.delete". + * Create a request for the method "evaluationItems.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 EvaluationSet resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @param name Required. The name of the EvaluationItem resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -75437,12 +72160,12 @@ public class Delete extends AiplatformRequest * - * @param name Required. The name of the EvaluationSet resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @param name Required. The name of the EvaluationItem resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` * @since 1.13 */ protected Delete(java.lang.String name) { @@ -75460,7 +72183,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/[^/]+/evaluationSets/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); } } @@ -75520,28 +72243,28 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the EvaluationSet resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * Required. The name of the EvaluationItem resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the EvaluationSet resource to be deleted. Format: - `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + /** Required. The name of the EvaluationItem resource to be deleted. Format: + `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the EvaluationSet resource to be deleted. Format: - * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * Required. The name of the EvaluationItem resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` */ 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); } this.name = name; return this; @@ -75553,15 +72276,15 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets an Evaluation Set. + * Gets an Evaluation Item. * - * Create a request for the method "evaluationSets.get". + * Create a request for the method "evaluationItems.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 EvaluationSet resource. Format: - * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @param name Required. The name of the EvaluationItem resource. Format: + * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -75570,34 +72293,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/[^/]+/evaluationSets/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); /** - * Gets an Evaluation Set. + * Gets an Evaluation Item. * - * Create a request for the method "evaluationSets.get". + * Create a request for the method "evaluationItems.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 EvaluationSet resource. Format: - * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @param name Required. The name of the EvaluationItem resource. Format: + * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationItem.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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); } } @@ -75667,28 +72390,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the EvaluationSet resource. Format: - * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * Required. The name of the EvaluationItem resource. Format: + * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the EvaluationSet resource. Format: - `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + /** Required. The name of the EvaluationItem resource. Format: + `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the EvaluationSet resource. Format: - * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * Required. The name of the EvaluationItem resource. Format: + * `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` */ 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$"); } this.name = name; return this; @@ -75700,14 +72423,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists Evaluation Sets. + * Lists Evaluation Items. * - * Create a request for the method "evaluationSets.list". + * Create a request for the method "evaluationItems.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 from which to list the Evaluation Sets. Format: + * @param parent Required. The resource name of the Location from which to list the Evaluation Items. Format: * `projects/{project}/locations/{location}` * @return the request */ @@ -75717,29 +72440,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}/evaluationSets"; + private static final String REST_PATH = "v1beta1/{+parent}/evaluationItems"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Lists Evaluation Sets. + * Lists Evaluation Items. * - * Create a request for the method "evaluationSets.list". + * Create a request for the method "evaluationItems.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 from which to list the Evaluation Sets. Format: + * @param parent Required. The resource name of the Location from which to list the Evaluation Items. 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.GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse.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(), @@ -75814,13 +72537,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Location from which to list the Evaluation Sets. + * Required. The resource name of the Location from which to list the Evaluation Items. * Format: `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the Location from which to list the Evaluation Sets. Format: + /** Required. The resource name of the Location from which to list the Evaluation Items. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -75828,7 +72551,7 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Location from which to list the Evaluation Sets. + * Required. The resource name of the Location from which to list the Evaluation Items. * Format: `projects/{project}/locations/{location}` */ public List setParent(java.lang.String parent) { @@ -75842,14 +72565,14 @@ public List setParent(java.lang.String parent) { } /** - * Optional. Filter expression that matches a subset of the EvaluationSets to show. For + * Optional. Filter expression that matches a subset of the EvaluationItems to show. For * field names both snake_case and camelCase are supported. For more information about * filter syntax, see [AIP-160](https://google.aip.dev/160). */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. Filter expression that matches a subset of the EvaluationSets to show. For field names + /** Optional. Filter expression that matches a subset of the EvaluationItems to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160). */ @@ -75858,7 +72581,7 @@ public java.lang.String getFilter() { } /** - * Optional. Filter expression that matches a subset of the EvaluationSets to show. For + * Optional. Filter expression that matches a subset of the EvaluationItems to show. For * field names both snake_case and camelCase are supported. For more information about * filter syntax, see [AIP-160](https://google.aip.dev/160). */ @@ -75890,30 +72613,30 @@ public List setOrderBy(java.lang.String orderBy) { return this; } - /** Optional. The maximum number of Evaluation Sets to return. */ + /** Optional. The maximum number of Evaluation Items to return. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The maximum number of Evaluation Sets to return. + /** Optional. The maximum number of Evaluation Items to return. */ public java.lang.Integer getPageSize() { return pageSize; } - /** Optional. The maximum number of Evaluation Sets to return. */ + /** Optional. The maximum number of Evaluation Items to return. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. A page token, received from a previous `ListEvaluationSets` call. Provide + * Optional. A page token, received from a previous `ListEvaluationItems` 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 `ListEvaluationSets` call. Provide this to + /** Optional. A page token, received from a previous `ListEvaluationItems` call. Provide this to retrieve the subsequent page. */ public java.lang.String getPageToken() { @@ -75921,7 +72644,7 @@ public java.lang.String getPageToken() { } /** - * Optional. A page token, received from a previous `ListEvaluationSets` call. Provide + * Optional. A page token, received from a previous `ListEvaluationItems` call. Provide * this to retrieve the subsequent page. */ public List setPageToken(java.lang.String pageToken) { @@ -75934,169 +72657,6 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - /** - * Updates an Evaluation Set. - * - * Create a request for the method "evaluationSets.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 EvaluationSet. Format: - * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet 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/[^/]+/evaluationSets/[^/]+$"); - - /** - * Updates an Evaluation Set. - * - * Create a request for the method "evaluationSets.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 EvaluationSet. Format: - * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet.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/[^/]+$"); - } - } - - @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 EvaluationSet. Format: - * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. The resource name of the EvaluationSet. Format: - `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The resource name of the EvaluationSet. Format: - * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` - */ - 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/[^/]+/evaluationSets/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Optional. The update mask applies to the resource. For the `FieldMask` definition, see - google.protobuf.FieldMask. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Optional. The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. - */ - 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. @@ -76142,7 +72702,7 @@ public class Delete extends AiplatformRequestThe typical use is:

*
        *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.EvaluationTasks.List request = aiplatform.evaluationTasks().list(parameters ...)}
+       *   {@code Aiplatform.EvaluationMetrics.List request = aiplatform.evaluationMetrics().list(parameters ...)}
        * 
* * @return the resource collection */ - public EvaluationTasks evaluationTasks() { - return new EvaluationTasks(); + public EvaluationMetrics evaluationMetrics() { + return new EvaluationMetrics(); } /** - * The "evaluationTasks" collection of methods. + * The "evaluationMetrics" collection of methods. */ - public class EvaluationTasks { + public class EvaluationMetrics { /** - * An accessor for creating requests from the Operations collection. + * Creates an EvaluationMetric. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-         * 
+ * Create a request for the method "evaluationMetrics.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 resource name of the Location to create the EvaluationMetric in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationMetric} + * @return the request */ - public Operations operations() { - return new Operations(); + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationMetric 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}/evaluationMetrics"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * Creates an EvaluationMetric. * - * Create a request for the method "operations.delete". + * Create a request for the method "evaluationMetrics.create". * - * 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 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 deleted. - * @return the request + * @param parent Required. The resource name of the Location to create the EvaluationMetric in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationMetric} + * @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/[^/]+/evaluationTasks/[^/]+/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/[^/]+/evaluationTasks/[^/]+/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); + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationMetric content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationMetric.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 Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - /** 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/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Required. The resource name of the Location to create the EvaluationMetric in. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } + /** Required. The resource name of the Location to create the EvaluationMetric in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; } + /** - * 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 + * Required. The resource name of the Location to create the EvaluationMetric in. Format: + * `projects/{project}/locations/{location}` */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; } - public class Get extends AiplatformRequest { + /** + * Optional. The ID to use for the EvaluationMetric, which will become the final component + * of the EvaluationMetric's resource name. This value should be 1-63 characters, and + * valid characters are /a-z-/. The first character must be a lowercase letter, and the + * last character must be a lowercase letter or number. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationMetricId; - private static final String REST_PATH = "v1beta1/{+name}"; + /** Optional. The ID to use for the EvaluationMetric, which will become the final component of the + EvaluationMetric's resource name. This value should be 1-63 characters, and valid characters are + /a-z-/. The first character must be a lowercase letter, and the last character must be a lowercase + letter or number. + */ + public java.lang.String getEvaluationMetricId() { + return evaluationMetricId; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$"); + /** + * Optional. The ID to use for the EvaluationMetric, which will become the final component + * of the EvaluationMetric's resource name. This value should be 1-63 characters, and + * valid characters are /a-z-/. The first character must be a lowercase letter, and the + * last character must be a lowercase letter or number. + */ + public Create setEvaluationMetricId(java.lang.String evaluationMetricId) { + this.evaluationMetricId = evaluationMetricId; + return this; + } - /** - * 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/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$"); - } - } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an EvaluationMetric. + * + * Create a request for the method "evaluationMetrics.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 EvaluationMetric resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` + * @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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Delete 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}"; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationMetrics/[^/]+$"); - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + /** + * Deletes an EvaluationMetric. + * + * Create a request for the method "evaluationMetrics.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 EvaluationMetric resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` + * @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/[^/]+/evaluationMetrics/[^/]+$"); } + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - /** 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/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Required. The name of the EvaluationMetric resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` + */ + @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); - } + /** Required. The name of the EvaluationMetric resource to be deleted. Format: + `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` + */ + public java.lang.String getName() { + return name; } + /** - * 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 + * Required. The name of the EvaluationMetric resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + 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/[^/]+/evaluationMetrics/[^/]+$"); + } + this.name = name; + return this; } - 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/[^/]+/evaluationTasks/[^/]+$"); + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets an EvaluationMetric. + * + * Create a request for the method "evaluationMetrics.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 EvaluationMetric resource. Format: + * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** - * 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/[^/]+/evaluationTasks/[^/]+$"); - } - } + 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/[^/]+/evaluationMetrics/[^/]+$"); - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + /** + * Gets an EvaluationMetric. + * + * Create a request for the method "evaluationMetrics.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 EvaluationMetric resource. Format: + * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationMetric.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/[^/]+/evaluationMetrics/[^/]+$"); } + } - @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) 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/[^/]+/evaluationTasks/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** + * Required. The name of the EvaluationMetric resource. Format: + * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + /** Required. The name of the EvaluationMetric resource. Format: + `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` + */ + public java.lang.String getName() { + return name; + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + /** + * Required. The name of the EvaluationMetric resource. Format: + * `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}` + */ + 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/[^/]+/evaluationMetrics/[^/]+$"); } + this.name = name; + return this; + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists EvaluationMetrics. + * + * Create a request for the method "evaluationMetrics.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 from which to list the EvaluationMetrics. 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; + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + public class List extends AiplatformRequest { - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + private static final String REST_PATH = "v1beta1/{+parent}/evaluationMetrics"; - /** 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/[^/]+/evaluationTasks/[^/]+/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/[^/]+/evaluationTasks/[^/]+/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/[^/]+/evaluationTasks/[^/]+/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 ExampleStores collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.ExampleStores.List request = aiplatform.exampleStores().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public ExampleStores exampleStores() { - return new ExampleStores(); - } - - /** - * The "exampleStores" collection of methods. - */ - public class ExampleStores { - - /** - * Create an ExampleStore. - * - * Create a request for the method "exampleStores.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 ExampleStore in. Format: - * `projects/{project}/locations/{location}` - * @return the request - */ - public Create create(java.lang.String parent) throws java.io.IOException { - Create result = new Create(parent); - initialize(result); - return result; - } - - public class Create extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/exampleStores:create"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Create an ExampleStore. + * Lists EvaluationMetrics. * - * Create a request for the method "exampleStores.create". + * Create a request for the method "evaluationMetrics.list". * * 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.

+ * 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 create the ExampleStore in. Format: + * @param parent Required. The resource name of the Location from which to list the EvaluationMetrics. Format: * `projects/{project}/locations/{location}` * @since 1.13 */ - protected Create(java.lang.String parent) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEvaluationMetricsResponse.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(), @@ -77559,68 +73867,78 @@ protected Create(java.lang.String parent) { } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) 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 name of the Location to create the ExampleStore in. Format: - * `projects/{project}/locations/{location}` + * Required. The resource name of the Location from which to list the EvaluationMetrics. + * 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 ExampleStore in. Format: + /** Required. The resource name of the Location from which to list the EvaluationMetrics. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -77628,10 +73946,10 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Location to create the ExampleStore in. Format: - * `projects/{project}/locations/{location}` + * Required. The resource name of the Location from which to list the EvaluationMetrics. + * Format: `projects/{project}/locations/{location}` */ - public Create setParent(java.lang.String parent) { + 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 " + @@ -77641,587 +73959,825 @@ public Create setParent(java.lang.String parent) { return this; } - /** Output only. Timestamp when this ExampleStore was created. */ - @com.google.api.client.util.Key("exampleStore.createTime") - private String exampleStoreCreateTime; - - /** Output only. Timestamp when this ExampleStore was created. + /** + * Optional. Filter expression that matches a subset of the EvaluationMetrics to show. For + * field names both snake_case and camelCase are supported. For more information about + * filter syntax, see [AIP-160](https://google.aip.dev/160). */ - public String getExampleStoreCreateTime() { - return exampleStoreCreateTime; - } - - /** Output only. Timestamp when this ExampleStore was created. */ - public Create setExampleStoreCreateTime(String exampleStoreCreateTime) { - this.exampleStoreCreateTime = exampleStoreCreateTime; - return this; - } - - /** Optional. Description of the ExampleStore. */ - @com.google.api.client.util.Key("exampleStore.description") - private java.lang.String exampleStoreDescription; + @com.google.api.client.util.Key + private java.lang.String filter; - /** Optional. Description of the ExampleStore. + /** Optional. Filter expression that matches a subset of the EvaluationMetrics to show. For field names + both snake_case and camelCase are supported. For more information about filter syntax, see + [AIP-160](https://google.aip.dev/160). */ - public java.lang.String getExampleStoreDescription() { - return exampleStoreDescription; - } - - /** Optional. Description of the ExampleStore. */ - public Create setExampleStoreDescription(java.lang.String exampleStoreDescription) { - this.exampleStoreDescription = exampleStoreDescription; - return this; + public java.lang.String getFilter() { + return filter; } - /** Required. Display name of the ExampleStore. */ - @com.google.api.client.util.Key("exampleStore.displayName") - private java.lang.String exampleStoreDisplayName; - - /** Required. Display name of the ExampleStore. + /** + * Optional. Filter expression that matches a subset of the EvaluationMetrics to show. For + * field names both snake_case and camelCase are supported. For more information about + * filter syntax, see [AIP-160](https://google.aip.dev/160). */ - public java.lang.String getExampleStoreDisplayName() { - return exampleStoreDisplayName; - } - - /** Required. Display name of the ExampleStore. */ - public Create setExampleStoreDisplayName(java.lang.String exampleStoreDisplayName) { - this.exampleStoreDisplayName = exampleStoreDisplayName; + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } /** - * Required. The embedding model to be used for vector embedding. Immutable. Supported - * models: * "text-embedding-005" * "text-multilingual-embedding-002" + * Optional. 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("exampleStore.exampleStoreConfig.vertexEmbeddingModel") - private java.lang.String exampleStoreExampleStoreConfigVertexEmbeddingModel; + @com.google.api.client.util.Key + private java.lang.String orderBy; - /** Required. The embedding model to be used for vector embedding. Immutable. Supported models: * - "text-embedding-005" * "text-multilingual-embedding-002" + /** Optional. 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 getExampleStoreExampleStoreConfigVertexEmbeddingModel() { - return exampleStoreExampleStoreConfigVertexEmbeddingModel; + public java.lang.String getOrderBy() { + return orderBy; } /** - * Required. The embedding model to be used for vector embedding. Immutable. Supported - * models: * "text-embedding-005" * "text-multilingual-embedding-002" + * Optional. A comma-separated list of fields to order by, sorted in ascending order by + * default. Use `desc` after a field name for descending. */ - public Create setExampleStoreExampleStoreConfigVertexEmbeddingModel(java.lang.String exampleStoreExampleStoreConfigVertexEmbeddingModel) { - this.exampleStoreExampleStoreConfigVertexEmbeddingModel = exampleStoreExampleStoreConfigVertexEmbeddingModel; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } - /** - * Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: - * projects/{project}/locations/{location}/exampleStores/{example_store} - */ - @com.google.api.client.util.Key("exampleStore.name") - private java.lang.String exampleStoreName; + /** Optional. The maximum number of EvaluationMetrics to return. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: - projects/{project}/locations/{location}/exampleStores/{example_store} + /** Optional. The maximum number of EvaluationMetrics to return. */ - public java.lang.String getExampleStoreName() { - return exampleStoreName; + public java.lang.Integer getPageSize() { + return pageSize; } - /** - * Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: - * projects/{project}/locations/{location}/exampleStores/{example_store} - */ - public Create setExampleStoreName(java.lang.String exampleStoreName) { - this.exampleStoreName = exampleStoreName; + /** Optional. The maximum number of EvaluationMetrics to return. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - /** Output only. Timestamp when this ExampleStore was most recently updated. */ - @com.google.api.client.util.Key("exampleStore.updateTime") - private String exampleStoreUpdateTime; + /** + * Optional. A page token, received from a previous `ListEvaluationMetrics` call. Provide + * this to retrieve the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** Output only. Timestamp when this ExampleStore was most recently updated. + /** Optional. A page token, received from a previous `ListEvaluationMetrics` call. Provide this to + retrieve the subsequent page. */ - public String getExampleStoreUpdateTime() { - return exampleStoreUpdateTime; + public java.lang.String getPageToken() { + return pageToken; } - /** Output only. Timestamp when this ExampleStore was most recently updated. */ - public Create setExampleStoreUpdateTime(String exampleStoreUpdateTime) { - this.exampleStoreUpdateTime = exampleStoreUpdateTime; + /** + * Optional. A page token, received from a previous `ListEvaluationMetrics` call. Provide + * this to retrieve the subsequent page. + */ + 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); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + /** - * Delete an ExampleStore. - * - * Create a request for the method "exampleStores.delete". + * 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 Delete#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 resource name of the ExampleStore to be deleted. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - * @return the request + * @return the resource collection */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public Operations operations() { + return new Operations(); } - 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/[^/]+/exampleStores/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class Operations { /** - * Delete an ExampleStore. + * 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 "exampleStores.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. - *

{@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 Delete#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the ExampleStore to be deleted. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - * @since 1.13 + * @param name The name of the operation resource to be deleted. + * @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/[^/]+/exampleStores/[^/]+$"); - } + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Delete extends AiplatformRequest { - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @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/[^/]+/evaluationMetrics/[^/]+/operations/[^/]+$"); - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** + * 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/[^/]+/evaluationMetrics/[^/]+/operations/[^/]+$"); + } + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the ExampleStore to be deleted. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** Required. The resource name of the ExampleStore to be deleted. Format: - `projects/{project}/locations/{location}/exampleStores/{example_store}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * Required. The resource name of the ExampleStore to be deleted. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - */ - 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/[^/]+/exampleStores/[^/]+$"); + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Get Examples from the Example Store. - * - * Create a request for the method "exampleStores.fetchExamples". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link FetchExamples#execute()} method to invoke the remote operation. - * - * @param exampleStore Required. The name of the ExampleStore resource that the examples should be fetched from. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchExamplesRequest} - * @return the request - */ - public FetchExamples fetchExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchExamplesRequest content) throws java.io.IOException { - FetchExamples result = new FetchExamples(exampleStore, content); - initialize(result); - return result; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - public class FetchExamples extends AiplatformRequest { + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1beta1/{+exampleStore}:fetchExamples"; + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern EXAMPLE_STORE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + /** 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/[^/]+/evaluationMetrics/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Get Examples from the Example Store. + * 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 "exampleStores.fetchExamples". + * 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 FetchExamples#execute()} method to invoke the remote - * operation.

{@link FetchExamples#initialize(com.google.api.client.googleapis.services.Abstra - * ctGoogleClientRequest)} 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 Get#execute()} method to invoke the remote operation. * - * @param exampleStore Required. The name of the ExampleStore resource that the examples should be fetched from. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchExamplesRequest} - * @since 1.13 + * @param name The name of the operation resource. + * @return the request */ - protected FetchExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchExamplesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchExamplesResponse.class); - this.exampleStore = com.google.api.client.util.Preconditions.checkNotNull(exampleStore, "Required parameter exampleStore must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), - "Parameter exampleStore must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public FetchExamples set$Xgafv(java.lang.String $Xgafv) { - return (FetchExamples) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest { - @Override - public FetchExamples setAccessToken(java.lang.String accessToken) { - return (FetchExamples) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public FetchExamples setAlt(java.lang.String alt) { - return (FetchExamples) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationMetrics/[^/]+/operations/[^/]+$"); - @Override - public FetchExamples setCallback(java.lang.String callback) { - return (FetchExamples) super.setCallback(callback); - } + /** + * 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/[^/]+/evaluationMetrics/[^/]+/operations/[^/]+$"); + } + } - @Override - public FetchExamples setFields(java.lang.String fields) { - return (FetchExamples) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public FetchExamples setKey(java.lang.String key) { - return (FetchExamples) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public FetchExamples setOauthToken(java.lang.String oauthToken) { - return (FetchExamples) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public FetchExamples setPrettyPrint(java.lang.Boolean prettyPrint) { - return (FetchExamples) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public FetchExamples setQuotaUser(java.lang.String quotaUser) { - return (FetchExamples) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public FetchExamples setUploadType(java.lang.String uploadType) { - return (FetchExamples) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public FetchExamples setUploadProtocol(java.lang.String uploadProtocol) { - return (FetchExamples) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * Required. The name of the ExampleStore resource that the examples should be fetched - * from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` - */ - @com.google.api.client.util.Key - private java.lang.String exampleStore; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** Required. The name of the ExampleStore resource that the examples should be fetched from. Format: - `projects/{project}/locations/{location}/exampleStores/{example_store}` - */ - public java.lang.String getExampleStore() { - return exampleStore; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the ExampleStore resource that the examples should be fetched - * from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` - */ - public FetchExamples setExampleStore(java.lang.String exampleStore) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), - "Parameter exampleStore must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - this.exampleStore = exampleStore; - return this; - } - @Override - public FetchExamples set(String parameterName, Object value) { - return (FetchExamples) super.set(parameterName, value); - } - } - /** - * Get an ExampleStore. - * - * Create a request for the method "exampleStores.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 ExampleStore. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - * @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 Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - public class Get extends AiplatformRequest { + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + /** 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/[^/]+/evaluationMetrics/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Get an ExampleStore. + * 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 "exampleStores.get". + * 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 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 List#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the ExampleStore. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - * @since 1.13 + * @param name The name of the operation's parent resource. + * @return the request */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExampleStore.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/[^/]+/exampleStores/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + public class List extends AiplatformRequest { - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationMetrics/[^/]+$"); - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + /** + * 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/[^/]+/evaluationMetrics/[^/]+$"); + } + } + + @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/[^/]+/evaluationMetrics/[^/]+$"); + } + 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); + } + } + + } + } + /** + * An accessor for creating requests from the EvaluationRuns collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.EvaluationRuns.List request = aiplatform.evaluationRuns().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public EvaluationRuns evaluationRuns() { + return new EvaluationRuns(); + } + + /** + * The "evaluationRuns" collection of methods. + */ + public class EvaluationRuns { + + /** + * Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of + * run can be checked via GetEvaluationRun. + * + * Create a request for the method "evaluationRuns.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 EvaluationRun resource to be cancelled. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest} + * @return the request + */ + public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest 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/[^/]+/evaluationRuns/[^/]+$"); + + /** + * Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status + * of run can be checked via GetEvaluationRun. + * + * Create a request for the method "evaluationRuns.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 EvaluationRun resource to be cancelled. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest 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/[^/]+/evaluationRuns/[^/]+$"); + } } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + 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 resource name of the ExampleStore. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` + * Required. The name of the EvaluationRun resource to be cancelled. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the ExampleStore. Format: - `projects/{project}/locations/{location}/exampleStores/{example_store}` + /** Required. The name of the EvaluationRun resource to be cancelled. Format: + `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the ExampleStore. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` + * Required. The name of the EvaluationRun resource to be cancelled. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */ - public Get setName(java.lang.String name) { + 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/[^/]+/exampleStores/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$"); } this.name = name; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * List ExampleStores in a Location. + * Creates an Evaluation Run. * - * Create a request for the method "exampleStores.list". + * Create a request for the method "evaluationRuns.create". * * 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 Create#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location to list the ExampleStores from. Format: + * @param parent Required. The resource name of the Location to create the Evaluation Run in. Format: * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationRun} * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationRun content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class List extends AiplatformRequest { + public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/exampleStores"; + private static final String REST_PATH = "v1beta1/{+parent}/evaluationRuns"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * List ExampleStores in a Location. + * Creates an Evaluation Run. * - * Create a request for the method "exampleStores.list". + * Create a request for the method "evaluationRuns.create". * * 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 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 list the ExampleStores from. Format: + * @param parent Required. The resource name of the Location to create the Evaluation Run in. Format: * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationRun} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListExampleStoresResponse.class); + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationRun content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationRun.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(), @@ -78231,78 +74787,68 @@ protected List(java.lang.String parent) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Location to list the ExampleStores from. Format: + * Required. The resource name of the Location to create the Evaluation Run 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 list the ExampleStores from. Format: + /** Required. The resource name of the Location to create the Evaluation Run in. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -78310,10 +74856,10 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Location to list the ExampleStores from. Format: + * Required. The resource name of the Location to create the Evaluation Run in. Format: * `projects/{project}/locations/{location}` */ - public List setParent(java.lang.String parent) { + 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 " + @@ -78323,646 +74869,529 @@ public List setParent(java.lang.String parent) { return this; } - /** - * Optional. The standard list filter. More detail in - * [AIP-160](https://google.aip.dev/160). - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. The standard list filter. More detail in - * [AIP-160](https://google.aip.dev/160). - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - 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; - } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Update an ExampleStore. + * Deletes an Evaluation Run. * - * Create a request for the method "exampleStores.patch". + * Create a request for the method "evaluationRuns.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. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: - * projects/{project}/locations/{location}/exampleStores/{example_store} - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExampleStore} + * @param name Required. The name of the EvaluationRun resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExampleStore content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Patch 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/[^/]+/exampleStores/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$"); /** - * Update an ExampleStore. + * Deletes an Evaluation Run. * - * Create a request for the method "exampleStores.patch". + * Create a request for the method "evaluationRuns.delete". * * 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. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#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 ExampleStore. This is a unique identifier. Format: - * projects/{project}/locations/{location}/exampleStores/{example_store} - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExampleStore} + * @param name Required. The name of the EvaluationRun resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExampleStore content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + 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/[^/]+/exampleStores/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: - * projects/{project}/locations/{location}/exampleStores/{example_store} + * Required. The name of the EvaluationRun resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: - projects/{project}/locations/{location}/exampleStores/{example_store} + /** Required. The name of the EvaluationRun resource to be deleted. Format: + `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */ public java.lang.String getName() { return name; } /** - * Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: - * projects/{project}/locations/{location}/exampleStores/{example_store} + * Required. The name of the EvaluationRun resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */ - public Patch setName(java.lang.String name) { + 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/[^/]+/exampleStores/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$"); } this.name = name; return this; } - /** - * Optional. Mask specifying which fields to update. Supported fields: * `display_name` * - * `description` - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Optional. Mask specifying which fields to update. Supported fields: * `display_name` * - `description` - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Optional. Mask specifying which fields to update. Supported fields: * `display_name` * - * `description` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Remove Examples from the Example Store. + * Gets an Evaluation Run. * - * Create a request for the method "exampleStores.removeExamples". + * Create a request for the method "evaluationRuns.get". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link RemoveExamples#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param exampleStore Required. The name of the ExampleStore resource that the examples should be removed from. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveExamplesRequest} + * @param name Required. The name of the EvaluationRun resource. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` * @return the request */ - public RemoveExamples removeExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveExamplesRequest content) throws java.io.IOException { - RemoveExamples result = new RemoveExamples(exampleStore, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class RemoveExamples extends AiplatformRequest { + public class Get extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+exampleStore}:removeExamples"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern EXAMPLE_STORE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$"); /** - * Remove Examples from the Example Store. + * Gets an Evaluation Run. * - * Create a request for the method "exampleStores.removeExamples". + * Create a request for the method "evaluationRuns.get". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link RemoveExamples#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param exampleStore Required. The name of the ExampleStore resource that the examples should be removed from. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveExamplesRequest} + * @param name Required. The name of the EvaluationRun resource. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` * @since 1.13 */ - protected RemoveExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveExamplesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveExamplesResponse.class); - this.exampleStore = com.google.api.client.util.Preconditions.checkNotNull(exampleStore, "Required parameter exampleStore must be specified."); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationRun.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(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), - "Parameter exampleStore must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$"); } } @Override - public RemoveExamples set$Xgafv(java.lang.String $Xgafv) { - return (RemoveExamples) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveExamples setAccessToken(java.lang.String accessToken) { - return (RemoveExamples) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveExamples setAlt(java.lang.String alt) { - return (RemoveExamples) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public RemoveExamples setCallback(java.lang.String callback) { - return (RemoveExamples) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public RemoveExamples setFields(java.lang.String fields) { - return (RemoveExamples) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public RemoveExamples setKey(java.lang.String key) { - return (RemoveExamples) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public RemoveExamples setOauthToken(java.lang.String oauthToken) { - return (RemoveExamples) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public RemoveExamples setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveExamples) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public RemoveExamples setQuotaUser(java.lang.String quotaUser) { - return (RemoveExamples) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public RemoveExamples setUploadType(java.lang.String uploadType) { - return (RemoveExamples) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public RemoveExamples setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveExamples) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the ExampleStore resource that the examples should be removed - * from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` + * Required. The name of the EvaluationRun resource. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */ @com.google.api.client.util.Key - private java.lang.String exampleStore; + private java.lang.String name; - /** Required. The name of the ExampleStore resource that the examples should be removed from. Format: - `projects/{project}/locations/{location}/exampleStores/{example_store}` + /** Required. The name of the EvaluationRun resource. Format: + `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */ - public java.lang.String getExampleStore() { - return exampleStore; + public java.lang.String getName() { + return name; } /** - * Required. The name of the ExampleStore resource that the examples should be removed - * from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` + * Required. The name of the EvaluationRun resource. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` */ - public RemoveExamples setExampleStore(java.lang.String exampleStore) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), - "Parameter exampleStore must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$"); } - this.exampleStore = exampleStore; + this.name = name; return this; } @Override - public RemoveExamples set(String parameterName, Object value) { - return (RemoveExamples) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Search for similar Examples for given selection criteria. + * Lists Evaluation Runs. * - * Create a request for the method "exampleStores.searchExamples". + * Create a request for the method "evaluationRuns.list". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link SearchExamples#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param exampleStore Required. The name of the ExampleStore resource that examples are retrieved from. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchExamplesRequest} + * @param parent Required. The resource name of the Location from which to list the Evaluation Runs. Format: + * `projects/{project}/locations/{location}` * @return the request */ - public SearchExamples searchExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchExamplesRequest content) throws java.io.IOException { - SearchExamples result = new SearchExamples(exampleStore, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class SearchExamples extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+exampleStore}:searchExamples"; + private static final String REST_PATH = "v1beta1/{+parent}/evaluationRuns"; - private final java.util.regex.Pattern EXAMPLE_STORE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Search for similar Examples for given selection criteria. + * Lists Evaluation Runs. * - * Create a request for the method "exampleStores.searchExamples". + * Create a request for the method "evaluationRuns.list". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link SearchExamples#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param exampleStore Required. The name of the ExampleStore resource that examples are retrieved from. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchExamplesRequest} + * @param parent Required. The resource name of the Location from which to list the Evaluation Runs. Format: + * `projects/{project}/locations/{location}` * @since 1.13 */ - protected SearchExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchExamplesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchExamplesResponse.class); - this.exampleStore = com.google.api.client.util.Preconditions.checkNotNull(exampleStore, "Required parameter exampleStore must be specified."); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse.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(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), - "Parameter exampleStore must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public SearchExamples set$Xgafv(java.lang.String $Xgafv) { - return (SearchExamples) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SearchExamples setAccessToken(java.lang.String accessToken) { - return (SearchExamples) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SearchExamples setAlt(java.lang.String alt) { - return (SearchExamples) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public SearchExamples setCallback(java.lang.String callback) { - return (SearchExamples) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public SearchExamples setFields(java.lang.String fields) { - return (SearchExamples) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public SearchExamples setKey(java.lang.String key) { - return (SearchExamples) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public SearchExamples setOauthToken(java.lang.String oauthToken) { - return (SearchExamples) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public SearchExamples setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchExamples) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public SearchExamples setQuotaUser(java.lang.String quotaUser) { - return (SearchExamples) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public SearchExamples setUploadType(java.lang.String uploadType) { - return (SearchExamples) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public SearchExamples setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchExamples) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the ExampleStore resource that examples are retrieved from. - * Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` + * Required. The resource name of the Location from which to list the Evaluation Runs. + * Format: `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String exampleStore; + private java.lang.String parent; - /** Required. The name of the ExampleStore resource that examples are retrieved from. Format: - `projects/{project}/locations/{location}/exampleStores/{example_store}` + /** Required. The resource name of the Location from which to list the Evaluation Runs. Format: + `projects/{project}/locations/{location}` */ - public java.lang.String getExampleStore() { - return exampleStore; + public java.lang.String getParent() { + return parent; } /** - * Required. The name of the ExampleStore resource that examples are retrieved from. - * Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` + * Required. The resource name of the Location from which to list the Evaluation Runs. + * Format: `projects/{project}/locations/{location}` */ - public SearchExamples setExampleStore(java.lang.String exampleStore) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), - "Parameter exampleStore must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.exampleStore = exampleStore; + this.parent = parent; return this; } - @Override - public SearchExamples set(String parameterName, Object value) { - return (SearchExamples) super.set(parameterName, value); + /** + * Optional. Filter expression that matches a subset of the EvaluationRuns to show. For + * field names both snake_case and camelCase are supported. For more information about + * filter syntax, see [AIP-160](https://google.aip.dev/160). + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter expression that matches a subset of the EvaluationRuns to show. For field names + both snake_case and camelCase are supported. For more information about filter syntax, see + [AIP-160](https://google.aip.dev/160). + */ + public java.lang.String getFilter() { + return filter; } - } - /** - * Create or update Examples in the Example Store. - * - * Create a request for the method "exampleStores.upsertExamples". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link UpsertExamples#execute()} method to invoke the remote operation. - * - * @param exampleStore Required. The name of the ExampleStore resource that examples are added to or updated in. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertExamplesRequest} - * @return the request - */ - public UpsertExamples upsertExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertExamplesRequest content) throws java.io.IOException { - UpsertExamples result = new UpsertExamples(exampleStore, content); - initialize(result); - return result; - } - public class UpsertExamples extends AiplatformRequest { + /** + * Optional. Filter expression that matches a subset of the EvaluationRuns to show. For + * field names both snake_case and camelCase are supported. For more information about + * filter syntax, see [AIP-160](https://google.aip.dev/160). + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - private static final String REST_PATH = "v1beta1/{+exampleStore}:upsertExamples"; + /** + * Optional. 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; - private final java.util.regex.Pattern EXAMPLE_STORE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + /** Optional. 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; + } /** - * Create or update Examples in the Example Store. - * - * Create a request for the method "exampleStores.upsertExamples". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link UpsertExamples#execute()} method to invoke the remote - * operation.

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

- * - * @param exampleStore Required. The name of the ExampleStore resource that examples are added to or updated in. Format: - * `projects/{project}/locations/{location}/exampleStores/{example_store}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertExamplesRequest} - * @since 1.13 + * Optional. A comma-separated list of fields to order by, sorted in ascending order by + * default. Use `desc` after a field name for descending. */ - protected UpsertExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertExamplesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertExamplesResponse.class); - this.exampleStore = com.google.api.client.util.Preconditions.checkNotNull(exampleStore, "Required parameter exampleStore must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), - "Parameter exampleStore must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); - } + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - @Override - public UpsertExamples set$Xgafv(java.lang.String $Xgafv) { - return (UpsertExamples) super.set$Xgafv($Xgafv); + /** Optional. The maximum number of Evaluation Runs to return. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of Evaluation Runs to return. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - @Override - public UpsertExamples setAccessToken(java.lang.String accessToken) { - return (UpsertExamples) super.setAccessToken(accessToken); + /** Optional. The maximum number of Evaluation Runs to return. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } - @Override - public UpsertExamples setAlt(java.lang.String alt) { - return (UpsertExamples) super.setAlt(alt); + /** + * Optional. A page token, received from a previous `ListEvaluationRuns` 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 `ListEvaluationRuns` call. Provide this to + retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; } - @Override - public UpsertExamples setCallback(java.lang.String callback) { - return (UpsertExamples) super.setCallback(callback); + /** + * Optional. A page token, received from a previous `ListEvaluationRuns` call. Provide + * this to retrieve the subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } @Override - public UpsertExamples setFields(java.lang.String fields) { - return (UpsertExamples) super.setFields(fields); - } - - @Override - public UpsertExamples setKey(java.lang.String key) { - return (UpsertExamples) super.setKey(key); - } - - @Override - public UpsertExamples setOauthToken(java.lang.String oauthToken) { - return (UpsertExamples) super.setOauthToken(oauthToken); - } - - @Override - public UpsertExamples setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpsertExamples) super.setPrettyPrint(prettyPrint); - } - - @Override - public UpsertExamples setQuotaUser(java.lang.String quotaUser) { - return (UpsertExamples) super.setQuotaUser(quotaUser); - } - - @Override - public UpsertExamples setUploadType(java.lang.String uploadType) { - return (UpsertExamples) super.setUploadType(uploadType); - } - - @Override - public UpsertExamples setUploadProtocol(java.lang.String uploadProtocol) { - return (UpsertExamples) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the ExampleStore resource that examples are added to or updated - * in. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` - */ - @com.google.api.client.util.Key - private java.lang.String exampleStore; - - /** Required. The name of the ExampleStore resource that examples are added to or updated in. Format: - `projects/{project}/locations/{location}/exampleStores/{example_store}` - */ - public java.lang.String getExampleStore() { - return exampleStore; - } - - /** - * Required. The name of the ExampleStore resource that examples are added to or updated - * in. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` - */ - public UpsertExamples setExampleStore(java.lang.String exampleStore) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), - "Parameter exampleStore must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); - } - this.exampleStore = exampleStore; - return this; - } - - @Override - public UpsertExamples set(String parameterName, Object value) { - return (UpsertExamples) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } @@ -78986,147 +75415,6 @@ public Operations operations() { */ 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/[^/]+/exampleStores/[^/]+/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/[^/]+/exampleStores/[^/]+/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/[^/]+/exampleStores/[^/]+/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 @@ -79151,7 +75439,7 @@ public class Delete extends AiplatformRequestThe typical use is:

*
        *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.ExtensionControllers.List request = aiplatform.extensionControllers().list(parameters ...)}
+       *   {@code Aiplatform.EvaluationSets.List request = aiplatform.evaluationSets().list(parameters ...)}
        * 
* * @return the resource collection */ - public ExtensionControllers extensionControllers() { - return new ExtensionControllers(); + public EvaluationSets evaluationSets() { + return new EvaluationSets(); } /** - * The "extensionControllers" collection of methods. + * The "evaluationSets" collection of methods. */ - public class ExtensionControllers { + public class EvaluationSets { /** - * An accessor for creating requests from the Operations collection. + * Creates an Evaluation Set. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-         * 
+ * Create a request for the method "evaluationSets.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 resource name of the Location to create the Evaluation Set in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet} + * @return the request */ - public Operations operations() { - return new Operations(); + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet 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}/evaluationSets"; + + 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 an Evaluation Set. * - * Create a request for the method "operations.cancel". + * Create a request for the method "evaluationSets.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 resource name of the Location to create the Evaluation Set in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet} + * @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.GoogleCloudAiplatformV1beta1EvaluationSet content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet.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/[^/]+/extensionControllers/[^/]+/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/[^/]+/extensionControllers/[^/]+/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 resource name of the Location to create the Evaluation Set in. Format: + * `projects/{project}/locations/{location}` + */ + @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 resource name of the Location to create the Evaluation Set in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + /** + * Required. The resource name of the Location to create the Evaluation Set 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 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 an Evaluation Set. + * + * Create a request for the method "evaluationSets.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 EvaluationSet resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @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/[^/]+/extensionControllers/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$"); - @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". + * Deletes an Evaluation Set. * - * 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. + * Create a request for the method "evaluationSets.delete". * - * @param name The name of the operation resource to be deleted. - * @return the request + * 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 EvaluationSet resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @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.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/[^/]+$"); + } } - 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/[^/]+/extensionControllers/[^/]+/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/[^/]+/extensionControllers/[^/]+/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 name of the EvaluationSet resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + @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 name of the EvaluationSet resource to be deleted. Format: + `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** + * Required. The name of the EvaluationSet resource to be deleted. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + 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/[^/]+$"); } + 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 an Evaluation Set. + * + * Create a request for the method "evaluationSets.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 EvaluationSet resource. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @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/[^/]+/extensionControllers/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$"); - @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 an Evaluation Set. * - * Create a request for the method "operations.get". + * Create a request for the method "evaluationSets.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 name of the EvaluationSet resource. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @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.GoogleCloudAiplatformV1beta1EvaluationSet.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/[^/]+$"); + } } - 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/[^/]+/extensionControllers/[^/]+/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/[^/]+/extensionControllers/[^/]+/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 name of the EvaluationSet resource. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + @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 EvaluationSet resource. Format: + `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + 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 EvaluationSet resource. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + */ + 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/[^/]+$"); } + 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 Evaluation Sets. + * + * Create a request for the method "evaluationSets.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 from which to list the Evaluation Sets. 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; + } - /** 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}/evaluationSets"; - /** 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/[^/]+/extensionControllers/[^/]+/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 Evaluation Sets. * - * Create a request for the method "operations.list". + * Create a request for the method "evaluationSets.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 resource name of the Location from which to list the Evaluation Sets. Format: + * `projects/{project}/locations/{location}` + * @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.GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse.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/[^/]+/extensionControllers/[^/]+$"); + @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/[^/]+/extensionControllers/[^/]+$"); - } - } + @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 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; - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** 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/[^/]+/extensionControllers/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** + * Required. The resource name of the Location from which to list the Evaluation Sets. + * Format: `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * 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; + /** Required. The resource name of the Location from which to list the Evaluation Sets. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** 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; + /** + * Required. The resource name of the Location from which to list the Evaluation Sets. + * 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; + } - /** - * 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. Filter expression that matches a subset of the EvaluationSets to show. For + * field names both snake_case and camelCase are supported. For more information about + * filter syntax, see [AIP-160](https://google.aip.dev/160). + */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + /** Optional. Filter expression that matches a subset of the EvaluationSets to show. For field names + both snake_case and camelCase are supported. For more information about filter syntax, see + [AIP-160](https://google.aip.dev/160). + */ + public java.lang.String getFilter() { + return filter; } + /** - * 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. Filter expression that matches a subset of the EvaluationSets to show. For + * field names both snake_case and camelCase are supported. For more information about + * filter syntax, see [AIP-160](https://google.aip.dev/160). */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + public List setFilter(java.lang.String filter) { + this.filter = filter; + 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/[^/]+/extensionControllers/[^/]+/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/[^/]+/extensionControllers/[^/]+/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); - } + /** + * Optional. 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; - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + /** Optional. 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; + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Optional. 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 name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + /** Optional. The maximum number of Evaluation Sets to return. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** 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/[^/]+/extensionControllers/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** Optional. The maximum number of Evaluation Sets to return. + */ + 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. - */ - @com.google.api.client.util.Key - private String timeout; + /** Optional. The maximum number of Evaluation Sets to return. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + 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; - } + /** + * Optional. A page token, received from a previous `ListEvaluationSets` call. Provide + * this to retrieve the subsequent page. + */ + @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. - */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } + /** Optional. A page token, received from a previous `ListEvaluationSets` call. Provide this to + retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } + /** + * Optional. A page token, received from a previous `ListEvaluationSets` 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 Extensions collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.Extensions.List request = aiplatform.extensions().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Extensions extensions() { - return new Extensions(); - } - - /** - * The "extensions" collection of methods. - */ - public class Extensions { - /** - * Deletes an Extension. + * Updates an Evaluation Set. * - * Create a request for the method "extensions.delete". + * Create a request for the method "evaluationSets.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. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Extension resource to be deleted. Format: - * `projects/{project}/locations/{location}/extensions/{extension}` + * @param name Identifier. The resource name of the EvaluationSet. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Delete extends AiplatformRequest { + 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/[^/]+/extensions/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$"); /** - * Deletes an Extension. + * Updates an Evaluation Set. * - * Create a request for the method "extensions.delete". + * Create a request for the method "evaluationSets.patch". * * 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. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. *

{@link - * Delete#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 Extension resource to be deleted. Format: - * `projects/{project}/locations/{location}/extensions/{extension}` + * @param name Identifier. The resource name of the EvaluationSet. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet} * @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); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EvaluationSet.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/[^/]+/extensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Extension resource to be deleted. Format: - * `projects/{project}/locations/{location}/extensions/{extension}` + * Identifier. The resource name of the EvaluationSet. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Extension resource to be deleted. Format: - `projects/{project}/locations/{location}/extensions/{extension}` + /** Identifier. The resource name of the EvaluationSet. Format: + `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the Extension resource to be deleted. Format: - * `projects/{project}/locations/{location}/extensions/{extension}` + * Identifier. The resource name of the EvaluationSet. Format: + * `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` */ - public Delete 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/[^/]+/extensions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$"); } this.name = name; return this; } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Executes the request against a given extension. - * - * Create a request for the method "extensions.execute". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Execute#execute()} method to invoke the remote operation. - * - * @param name Required. Name (identifier) of the extension; Format: - * `projects/{project}/locations/{location}/extensions/{extension}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExecuteExtensionRequest} - * @return the request - */ - public Execute execute(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExecuteExtensionRequest content) throws java.io.IOException { - Execute result = new Execute(name, content); - initialize(result); - return result; - } - - public class Execute extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:execute"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensions/[^/]+$"); - - /** - * Executes the request against a given extension. - * - * Create a request for the method "extensions.execute". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Execute#execute()} method to invoke the remote operation. - *

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

- * - * @param name Required. Name (identifier) of the extension; Format: - * `projects/{project}/locations/{location}/extensions/{extension}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExecuteExtensionRequest} - * @since 1.13 - */ - protected Execute(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExecuteExtensionRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExecuteExtensionResponse.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/[^/]+/extensions/[^/]+$"); - } - } - - @Override - public Execute set$Xgafv(java.lang.String $Xgafv) { - return (Execute) super.set$Xgafv($Xgafv); - } - - @Override - public Execute setAccessToken(java.lang.String accessToken) { - return (Execute) super.setAccessToken(accessToken); - } - - @Override - public Execute setAlt(java.lang.String alt) { - return (Execute) super.setAlt(alt); - } - - @Override - public Execute setCallback(java.lang.String callback) { - return (Execute) super.setCallback(callback); - } - - @Override - public Execute setFields(java.lang.String fields) { - return (Execute) super.setFields(fields); - } - - @Override - public Execute setKey(java.lang.String key) { - return (Execute) super.setKey(key); - } - - @Override - public Execute setOauthToken(java.lang.String oauthToken) { - return (Execute) super.setOauthToken(oauthToken); - } - - @Override - public Execute setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Execute) super.setPrettyPrint(prettyPrint); - } - - @Override - public Execute setQuotaUser(java.lang.String quotaUser) { - return (Execute) super.setQuotaUser(quotaUser); - } - - @Override - public Execute setUploadType(java.lang.String uploadType) { - return (Execute) super.setUploadType(uploadType); - } - - @Override - public Execute setUploadProtocol(java.lang.String uploadProtocol) { - return (Execute) super.setUploadProtocol(uploadProtocol); - } - /** - * Required. Name (identifier) of the extension; Format: - * `projects/{project}/locations/{location}/extensions/{extension}` + * Optional. The update mask applies to the resource. For the `FieldMask` definition, see + * google.protobuf.FieldMask. */ @com.google.api.client.util.Key - private java.lang.String name; + private String updateMask; - /** Required. Name (identifier) of the extension; Format: - `projects/{project}/locations/{location}/extensions/{extension}` + /** Optional. The update mask applies to the resource. For the `FieldMask` definition, see + google.protobuf.FieldMask. */ - public java.lang.String getName() { - return name; + public String getUpdateMask() { + return updateMask; } /** - * Required. Name (identifier) of the extension; Format: - * `projects/{project}/locations/{location}/extensions/{extension}` + * Optional. The update mask applies to the resource. For the `FieldMask` definition, see + * google.protobuf.FieldMask. */ - public Execute 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/[^/]+/extensions/[^/]+$"); - } - this.name = name; + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public Execute set(String parameterName, Object value) { - return (Execute) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + /** - * Gets an Extension. - * - * Create a request for the method "extensions.get". + * 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 Get#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 Extension resource. Format: - * `projects/{project}/locations/{location}/extensions/{extension}` - * @return the request + * @return the resource collection */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + public Operations operations() { + return new Operations(); } - 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/[^/]+/extensions/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class Operations { /** - * Gets an Extension. + * 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 "extensions.get". + * 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 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 Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Extension resource. Format: - * `projects/{project}/locations/{location}/extensions/{extension}` - * @since 1.13 + * @param name The name of the operation resource to be deleted. + * @return the request */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension.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/[^/]+/extensions/[^/]+$"); - } - } - - @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 Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + public class Delete extends AiplatformRequest { - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+/operations/[^/]+$"); - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + /** + * 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/[^/]+/evaluationSets/[^/]+/operations/[^/]+$"); + } + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the Extension resource. Format: - * `projects/{project}/locations/{location}/extensions/{extension}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the Extension resource. Format: - `projects/{project}/locations/{location}/extensions/{extension}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the Extension resource. Format: - * `projects/{project}/locations/{location}/extensions/{extension}` - */ - 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/[^/]+/extensions/[^/]+$"); + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Imports an Extension. - * - * Create a request for the method "extensions.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 parent Required. The resource name of the Location to import the Extension in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension} - * @return the request - */ - public AiplatformImport aiplatformImport(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension content) throws java.io.IOException { - AiplatformImport result = new AiplatformImport(parent, content); - initialize(result); - return result; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - public class AiplatformImport extends AiplatformRequest { + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1beta1/{+parent}/extensions:import"; + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** 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/[^/]+/evaluationSets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Imports an Extension. + * 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 "extensions.import". + * 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 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.

+ * 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 parent Required. The resource name of the Location to import the Extension in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension} - * @since 1.13 + * @param name The name of the operation resource. + * @return the request */ - protected AiplatformImport(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension 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/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public AiplatformImport set$Xgafv(java.lang.String $Xgafv) { - return (AiplatformImport) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest { - @Override - public AiplatformImport setAccessToken(java.lang.String accessToken) { - return (AiplatformImport) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public AiplatformImport setAlt(java.lang.String alt) { - return (AiplatformImport) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+/operations/[^/]+$"); - @Override - public AiplatformImport setCallback(java.lang.String callback) { - return (AiplatformImport) super.setCallback(callback); - } + /** + * 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/[^/]+/evaluationSets/[^/]+/operations/[^/]+$"); + } + } - @Override - public AiplatformImport setFields(java.lang.String fields) { - return (AiplatformImport) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public AiplatformImport setKey(java.lang.String key) { - return (AiplatformImport) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public AiplatformImport setOauthToken(java.lang.String oauthToken) { - return (AiplatformImport) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AiplatformImport) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public AiplatformImport setQuotaUser(java.lang.String quotaUser) { - return (AiplatformImport) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public AiplatformImport setUploadType(java.lang.String uploadType) { - return (AiplatformImport) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { - return (AiplatformImport) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * Required. The resource name of the Location to import the Extension in. Format: - * `projects/{project}/locations/{location}` - */ - @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 resource name of the Location to import the Extension in. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the Location to import the Extension in. Format: - * `projects/{project}/locations/{location}` - */ - public AiplatformImport 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 Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - this.parent = parent; - return this; - } - @Override - public AiplatformImport set(String parameterName, Object value) { - return (AiplatformImport) super.set(parameterName, value); - } - } - /** - * Lists Extensions in a location. - * - * Create a request for the method "extensions.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 Extensions 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; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - public class List extends AiplatformRequest { + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v1beta1/{+parent}/extensions"; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** 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/[^/]+/evaluationSets/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Lists Extensions in a location. + * 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 "extensions.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.

+ * 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 Extensions from. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 + * @param name The name of the operation's parent resource. + * @return the request */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListExtensionsResponse.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 List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + public class List extends AiplatformRequest { - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - @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/[^/]+/evaluationSets/[^/]+$"); - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + /** + * 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/[^/]+/evaluationSets/[^/]+$"); + } + } - @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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** - * Required. The resource name of the Location to list the Extensions from. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Required. The resource name of the Location to list the Extensions from. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the Location to list the Extensions 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 List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - this.parent = parent; - return this; - } - /** - * Optional. The standard list filter. Supported fields: * `display_name` * `create_time` - * * `update_time` More detail in [AIP-160](https://google.aip.dev/160). - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** Optional. The standard list filter. Supported fields: * `display_name` * `create_time` * - `update_time` More detail in [AIP-160](https://google.aip.dev/160). - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** - * Optional. The standard list filter. Supported fields: * `display_name` * `create_time` - * * `update_time` More detail in [AIP-160](https://google.aip.dev/160). - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. 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` Example: `display_name, create_time desc`. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Optional. 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` - Example: `display_name, create_time desc`. - */ - public java.lang.String getOrderBy() { - return orderBy; - } + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - /** - * Optional. 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` Example: `display_name, create_time desc`. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + /** 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/[^/]+/evaluationSets/[^/]+$"); + } + this.name = name; + return this; + } - /** Optional. The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** Optional. The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - /** Optional. The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** Optional. The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** Optional. The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** Optional. The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an Extension. - * - * Create a request for the method "extensions.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 Extension. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - public class Patch extends AiplatformRequest { + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - private static final String REST_PATH = "v1beta1/{+name}"; + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensions/[^/]+$"); - - /** - * Updates an Extension. - * - * Create a request for the method "extensions.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 Extension. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension.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/[^/]+/extensions/[^/]+$"); - } - } - - @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 Extension. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. The resource name of the Extension. - */ - public java.lang.String getName() { - return name; - } + /** + * 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; - /** Identifier. The resource name of the Extension. */ - 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/[^/]+/extensions/[^/]+$"); + /** 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; } - this.name = name; - return this; - } - - /** - * Required. Mask specifying which fields to update. Supported fields: * `display_name` * - * `description` * `runtime_config` * `tool_use_examples` * `manifest.description` - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. Mask specifying which fields to update. Supported fields: * `display_name` * - `description` * `runtime_config` * `tool_use_examples` * `manifest.description` - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Required. Mask specifying which fields to update. Supported fields: * `display_name` * - * `description` * `runtime_config` * `tool_use_examples` * `manifest.description` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Queries an extension with a default controller. - * - * Create a request for the method "extensions.query". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Query#execute()} method to invoke the remote operation. - * - * @param name Required. Name (identifier) of the extension; Format: - * `projects/{project}/locations/{location}/extensions/{extension}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryExtensionRequest} - * @return the request - */ - public Query query(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryExtensionRequest content) throws java.io.IOException { - Query result = new Query(name, content); - initialize(result); - return result; - } - - public class Query extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:query"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensions/[^/]+$"); - /** - * Queries an extension with a default controller. - * - * Create a request for the method "extensions.query". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. - *

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

- * - * @param name Required. Name (identifier) of the extension; Format: - * `projects/{project}/locations/{location}/extensions/{extension}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryExtensionRequest} - * @since 1.13 - */ - protected Query(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryExtensionRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryExtensionResponse.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/[^/]+/extensions/[^/]+$"); + /** + * 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 Query set$Xgafv(java.lang.String $Xgafv) { - return (Query) super.set$Xgafv($Xgafv); - } - - @Override - public Query setAccessToken(java.lang.String accessToken) { - return (Query) super.setAccessToken(accessToken); - } - - @Override - public Query setAlt(java.lang.String alt) { - return (Query) super.setAlt(alt); - } - - @Override - public Query setCallback(java.lang.String callback) { - return (Query) super.setCallback(callback); - } - - @Override - public Query setFields(java.lang.String fields) { - return (Query) super.setFields(fields); - } - - @Override - public Query setKey(java.lang.String key) { - return (Query) super.setKey(key); - } - - @Override - public Query setOauthToken(java.lang.String oauthToken) { - return (Query) super.setOauthToken(oauthToken); - } - - @Override - public Query setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Query) super.setPrettyPrint(prettyPrint); - } - - @Override - public Query setQuotaUser(java.lang.String quotaUser) { - return (Query) super.setQuotaUser(quotaUser); - } - - @Override - public Query setUploadType(java.lang.String uploadType) { - return (Query) super.setUploadType(uploadType); - } - - @Override - public Query setUploadProtocol(java.lang.String uploadProtocol) { - return (Query) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. Name (identifier) of the extension; Format: - * `projects/{project}/locations/{location}/extensions/{extension}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. Name (identifier) of the extension; Format: - `projects/{project}/locations/{location}/extensions/{extension}` - */ - public java.lang.String getName() { - return name; - } - /** - * Required. Name (identifier) of the extension; Format: - * `projects/{project}/locations/{location}/extensions/{extension}` - */ - public Query 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/[^/]+/extensions/[^/]+$"); + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } - this.name = name; - return this; - } - - @Override - public Query set(String parameterName, Object value) { - return (Query) 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`. + * 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. + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be cancelled. + * @param name The name of the operation resource to wait on. * @return the request */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); initialize(result); return result; } - public class Cancel extends AiplatformRequest { + public class Wait extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + private static final String REST_PATH = "v1beta1/{+name}:wait"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+/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 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.

+ * 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. + * @param name The name of the operation resource to wait on. * @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 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/[^/]+/extensions/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+/operations/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be cancelled. */ + /** 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. + /** 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 Cancel setName(java.lang.String 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/[^/]+/extensions/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+/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 Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); } } + + } + } + /** + * An accessor for creating requests from the EvaluationTasks collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.EvaluationTasks.List request = aiplatform.evaluationTasks().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public EvaluationTasks evaluationTasks() { + return new EvaluationTasks(); + } + + /** + * The "evaluationTasks" collection of methods. + */ + public class EvaluationTasks { + + /** + * 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 { + /** * 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 @@ -81931,7 +77673,7 @@ public class Delete extends AiplatformRequestThe typical use is:

*
        *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.FeatureGroups.List request = aiplatform.featureGroups().list(parameters ...)}
+       *   {@code Aiplatform.ExampleStores.List request = aiplatform.exampleStores().list(parameters ...)}
        * 
* * @return the resource collection */ - public FeatureGroups featureGroups() { - return new FeatureGroups(); + public ExampleStores exampleStores() { + return new ExampleStores(); } /** - * The "featureGroups" collection of methods. + * The "exampleStores" collection of methods. */ - public class FeatureGroups { + public class ExampleStores { /** - * Creates a new FeatureGroup in a given project and location. + * Create an ExampleStore. * - * Create a request for the method "featureGroups.create". + * Create a request for the method "exampleStores.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 FeatureGroups. Format: + * @param parent Required. The resource name of the Location to create the ExampleStore in. Format: * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup content) throws java.io.IOException { - Create result = new Create(parent, content); + public Create create(java.lang.String parent) throws java.io.IOException { + Create result = new Create(parent); initialize(result); return result; } public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/featureGroups"; + private static final String REST_PATH = "v1beta1/{+parent}/exampleStores:create"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates a new FeatureGroup in a given project and location. + * Create an ExampleStore. * - * Create a request for the method "featureGroups.create". + * Create a request for the method "exampleStores.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. @@ -82629,13 +78370,12 @@ public class Create extends AiplatformRequest * - * @param parent Required. The resource name of the Location to create FeatureGroups. Format: + * @param parent Required. The resource name of the Location to create the ExampleStore in. Format: * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + protected Create(java.lang.String parent) { + super(Aiplatform.this, "POST", REST_PATH, null, 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(), @@ -82700,13 +78440,13 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Location to create FeatureGroups. Format: + * Required. The resource name of the Location to create the ExampleStore 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 FeatureGroups. Format: + /** Required. The resource name of the Location to create the ExampleStore in. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -82714,7 +78454,7 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Location to create FeatureGroups. Format: + * Required. The resource name of the Location to create the ExampleStore in. Format: * `projects/{project}/locations/{location}` */ public Create setParent(java.lang.String parent) { @@ -82727,32 +78467,113 @@ public Create setParent(java.lang.String parent) { return this; } + /** Output only. Timestamp when this ExampleStore was created. */ + @com.google.api.client.util.Key("exampleStore.createTime") + private String exampleStoreCreateTime; + + /** Output only. Timestamp when this ExampleStore was created. + */ + public String getExampleStoreCreateTime() { + return exampleStoreCreateTime; + } + + /** Output only. Timestamp when this ExampleStore was created. */ + public Create setExampleStoreCreateTime(String exampleStoreCreateTime) { + this.exampleStoreCreateTime = exampleStoreCreateTime; + return this; + } + + /** Optional. Description of the ExampleStore. */ + @com.google.api.client.util.Key("exampleStore.description") + private java.lang.String exampleStoreDescription; + + /** Optional. Description of the ExampleStore. + */ + public java.lang.String getExampleStoreDescription() { + return exampleStoreDescription; + } + + /** Optional. Description of the ExampleStore. */ + public Create setExampleStoreDescription(java.lang.String exampleStoreDescription) { + this.exampleStoreDescription = exampleStoreDescription; + return this; + } + + /** Required. Display name of the ExampleStore. */ + @com.google.api.client.util.Key("exampleStore.displayName") + private java.lang.String exampleStoreDisplayName; + + /** Required. Display name of the ExampleStore. + */ + public java.lang.String getExampleStoreDisplayName() { + return exampleStoreDisplayName; + } + + /** Required. Display name of the ExampleStore. */ + public Create setExampleStoreDisplayName(java.lang.String exampleStoreDisplayName) { + this.exampleStoreDisplayName = exampleStoreDisplayName; + return this; + } + /** - * Required. The ID to use for this FeatureGroup, which will become the final component of - * the FeatureGroup's resource name. This value may be up to 128 characters, and valid - * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be - * unique within the project and location. + * Required. The embedding model to be used for vector embedding. Immutable. Supported + * models: * "text-embedding-005" * "text-multilingual-embedding-002" */ - @com.google.api.client.util.Key - private java.lang.String featureGroupId; + @com.google.api.client.util.Key("exampleStore.exampleStoreConfig.vertexEmbeddingModel") + private java.lang.String exampleStoreExampleStoreConfigVertexEmbeddingModel; - /** Required. The ID to use for this FeatureGroup, which will become the final component of the - FeatureGroup's resource name. This value may be up to 128 characters, and valid characters are - `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project - and location. + /** Required. The embedding model to be used for vector embedding. Immutable. Supported models: * + "text-embedding-005" * "text-multilingual-embedding-002" */ - public java.lang.String getFeatureGroupId() { - return featureGroupId; + public java.lang.String getExampleStoreExampleStoreConfigVertexEmbeddingModel() { + return exampleStoreExampleStoreConfigVertexEmbeddingModel; } /** - * Required. The ID to use for this FeatureGroup, which will become the final component of - * the FeatureGroup's resource name. This value may be up to 128 characters, and valid - * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be - * unique within the project and location. + * Required. The embedding model to be used for vector embedding. Immutable. Supported + * models: * "text-embedding-005" * "text-multilingual-embedding-002" */ - public Create setFeatureGroupId(java.lang.String featureGroupId) { - this.featureGroupId = featureGroupId; + public Create setExampleStoreExampleStoreConfigVertexEmbeddingModel(java.lang.String exampleStoreExampleStoreConfigVertexEmbeddingModel) { + this.exampleStoreExampleStoreConfigVertexEmbeddingModel = exampleStoreExampleStoreConfigVertexEmbeddingModel; + return this; + } + + /** + * Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: + * projects/{project}/locations/{location}/exampleStores/{example_store} + */ + @com.google.api.client.util.Key("exampleStore.name") + private java.lang.String exampleStoreName; + + /** Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: + projects/{project}/locations/{location}/exampleStores/{example_store} + */ + public java.lang.String getExampleStoreName() { + return exampleStoreName; + } + + /** + * Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: + * projects/{project}/locations/{location}/exampleStores/{example_store} + */ + public Create setExampleStoreName(java.lang.String exampleStoreName) { + this.exampleStoreName = exampleStoreName; + return this; + } + + /** Output only. Timestamp when this ExampleStore was most recently updated. */ + @com.google.api.client.util.Key("exampleStore.updateTime") + private String exampleStoreUpdateTime; + + /** Output only. Timestamp when this ExampleStore was most recently updated. + */ + public String getExampleStoreUpdateTime() { + return exampleStoreUpdateTime; + } + + /** Output only. Timestamp when this ExampleStore was most recently updated. */ + public Create setExampleStoreUpdateTime(String exampleStoreUpdateTime) { + this.exampleStoreUpdateTime = exampleStoreUpdateTime; return this; } @@ -82762,15 +78583,15 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes a single FeatureGroup. + * Delete an ExampleStore. * - * Create a request for the method "featureGroups.delete". + * Create a request for the method "exampleStores.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 FeatureGroup to be deleted. Format: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param name Required. The resource name of the ExampleStore to be deleted. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -82784,12 +78605,12 @@ public class Delete extends AiplatformRequest * - * @param name Required. The name of the FeatureGroup to be deleted. Format: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param name Required. The resource name of the ExampleStore to be deleted. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` * @since 1.13 */ protected Delete(java.lang.String name) { @@ -82807,7 +78628,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/[^/]+/featureGroups/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); } } @@ -82867,70 +78688,188 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the FeatureGroup to be deleted. Format: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * Required. The resource name of the ExampleStore to be deleted. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the FeatureGroup to be deleted. Format: - `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /** Required. The resource name of the ExampleStore to be deleted. Format: + `projects/{project}/locations/{location}/exampleStores/{example_store}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the FeatureGroup to be deleted. Format: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * Required. The resource name of the ExampleStore to be deleted. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` */ 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/[^/]+/featureGroups/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); } this.name = name; return this; } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Get Examples from the Example Store. + * + * Create a request for the method "exampleStores.fetchExamples". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link FetchExamples#execute()} method to invoke the remote operation. + * + * @param exampleStore Required. The name of the ExampleStore resource that the examples should be fetched from. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchExamplesRequest} + * @return the request + */ + public FetchExamples fetchExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchExamplesRequest content) throws java.io.IOException { + FetchExamples result = new FetchExamples(exampleStore, content); + initialize(result); + return result; + } + + public class FetchExamples extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+exampleStore}:fetchExamples"; + + private final java.util.regex.Pattern EXAMPLE_STORE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + /** - * If set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, - * the request will only work if the FeatureGroup has no Features.) + * Get Examples from the Example Store. + * + * Create a request for the method "exampleStores.fetchExamples". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link FetchExamples#execute()} method to invoke the remote + * operation.

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

+ * + * @param exampleStore Required. The name of the ExampleStore resource that the examples should be fetched from. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchExamplesRequest} + * @since 1.13 + */ + protected FetchExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchExamplesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchExamplesResponse.class); + this.exampleStore = com.google.api.client.util.Preconditions.checkNotNull(exampleStore, "Required parameter exampleStore must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), + "Parameter exampleStore must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + } + } + + @Override + public FetchExamples set$Xgafv(java.lang.String $Xgafv) { + return (FetchExamples) super.set$Xgafv($Xgafv); + } + + @Override + public FetchExamples setAccessToken(java.lang.String accessToken) { + return (FetchExamples) super.setAccessToken(accessToken); + } + + @Override + public FetchExamples setAlt(java.lang.String alt) { + return (FetchExamples) super.setAlt(alt); + } + + @Override + public FetchExamples setCallback(java.lang.String callback) { + return (FetchExamples) super.setCallback(callback); + } + + @Override + public FetchExamples setFields(java.lang.String fields) { + return (FetchExamples) super.setFields(fields); + } + + @Override + public FetchExamples setKey(java.lang.String key) { + return (FetchExamples) super.setKey(key); + } + + @Override + public FetchExamples setOauthToken(java.lang.String oauthToken) { + return (FetchExamples) super.setOauthToken(oauthToken); + } + + @Override + public FetchExamples setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FetchExamples) super.setPrettyPrint(prettyPrint); + } + + @Override + public FetchExamples setQuotaUser(java.lang.String quotaUser) { + return (FetchExamples) super.setQuotaUser(quotaUser); + } + + @Override + public FetchExamples setUploadType(java.lang.String uploadType) { + return (FetchExamples) super.setUploadType(uploadType); + } + + @Override + public FetchExamples setUploadProtocol(java.lang.String uploadProtocol) { + return (FetchExamples) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the ExampleStore resource that the examples should be fetched + * from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` */ @com.google.api.client.util.Key - private java.lang.Boolean force; + private java.lang.String exampleStore; - /** If set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request - will only work if the FeatureGroup has no Features.) + /** Required. The name of the ExampleStore resource that the examples should be fetched from. Format: + `projects/{project}/locations/{location}/exampleStores/{example_store}` */ - public java.lang.Boolean getForce() { - return force; + public java.lang.String getExampleStore() { + return exampleStore; } /** - * If set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, - * the request will only work if the FeatureGroup has no Features.) + * Required. The name of the ExampleStore resource that the examples should be fetched + * from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; + public FetchExamples setExampleStore(java.lang.String exampleStore) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), + "Parameter exampleStore must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + } + this.exampleStore = exampleStore; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public FetchExamples set(String parameterName, Object value) { + return (FetchExamples) super.set(parameterName, value); } } /** - * Gets details of a single FeatureGroup. + * Get an ExampleStore. * - * Create a request for the method "featureGroups.get". + * Create a request for the method "exampleStores.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 FeatureGroup resource. + * @param name Required. The resource name of the ExampleStore. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -82939,33 +78878,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/[^/]+/featureGroups/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); /** - * Gets details of a single FeatureGroup. + * Get an ExampleStore. * - * Create a request for the method "featureGroups.get". + * Create a request for the method "exampleStores.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 FeatureGroup resource. + * @param name Required. The resource name of the ExampleStore. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExampleStore.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/[^/]+/featureGroups/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); } } @@ -83034,22 +78974,29 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the FeatureGroup resource. */ + /** + * Required. The resource name of the ExampleStore. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the FeatureGroup resource. + /** Required. The resource name of the ExampleStore. Format: + `projects/{project}/locations/{location}/exampleStores/{example_store}` */ public java.lang.String getName() { return name; } - /** Required. The name of the FeatureGroup resource. */ + /** + * Required. The resource name of the ExampleStore. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` + */ 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/[^/]+/featureGroups/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); } this.name = name; return this; @@ -83061,202 +79008,14 @@ public Get set(String parameterName, Object 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 "featureGroups.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/[^/]+/featureGroups/[^/]+$"); - - /** - * 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 "featureGroups.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/[^/]+/featureGroups/[^/]+$"); - } - } - - @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/[^/]+/featureGroups/[^/]+$"); - } - this.resource = resource; - return this; - } - - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, - and 3. Requests specifying an invalid value will be rejected. Requests for policies with any - conditional role bindings must specify version 3. Policies with no conditional role bindings may - specify any valid value or leave the field unset. The policy in the response might use the policy - version that you specified, or it might use a lower policy version. For example, if you specify - version 3, but the policy has no conditional role bindings, the response uses version 1. To learn - which resources support conditions in their IAM policies, see the [IAM - documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** - * Optional. The maximum policy version that will be used to format the policy. Valid - * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests - * for policies with any conditional role bindings must specify version 3. Policies with - * no conditional role bindings may specify any valid value or leave the field unset. The - * policy in the response might use the policy version that you specified, or it might use - * a lower policy version. For example, if you specify version 3, but the policy has no - * conditional role bindings, the response uses version 1. To learn which resources - * support conditions in their IAM policies, see the [IAM - * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Lists FeatureGroups in a given project and location. + * List ExampleStores in a Location. * - * Create a request for the method "featureGroups.list". + * Create a request for the method "exampleStores.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 FeatureGroups. Format: + * @param parent Required. The resource name of the Location to list the ExampleStores from. Format: * `projects/{project}/locations/{location}` * @return the request */ @@ -83266,29 +79025,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}/featureGroups"; + private static final String REST_PATH = "v1beta1/{+parent}/exampleStores"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Lists FeatureGroups in a given project and location. + * List ExampleStores in a Location. * - * Create a request for the method "featureGroups.list". + * Create a request for the method "exampleStores.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 FeatureGroups. Format: + * @param parent Required. The resource name of the Location to list the ExampleStores 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.GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListExampleStoresResponse.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(), @@ -83363,13 +79122,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Location to list FeatureGroups. Format: + * Required. The resource name of the Location to list the ExampleStores 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 FeatureGroups. Format: + /** Required. The resource name of the Location to list the ExampleStores from. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -83377,7 +79136,7 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Location to list FeatureGroups. Format: + * Required. The resource name of the Location to list the ExampleStores from. Format: * `projects/{project}/locations/{location}` */ public List setParent(java.lang.String parent) { @@ -83391,114 +79150,54 @@ public List setParent(java.lang.String parent) { } /** - * Lists the FeatureGroups that match the filter expression. The following fields are - * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. - * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, - * and `>=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value - * equality and key presence. Examples: * `create_time > "2020-01-01" OR update_time > - * "2020-01-01"` FeatureGroups created or updated after 2020-01-01. * `labels.env = - * "prod"` FeatureGroups with label "env" set to "prod". + * Optional. The standard list filter. More detail in + * [AIP-160](https://google.aip.dev/160). */ @com.google.api.client.util.Key private java.lang.String filter; - /** Lists the FeatureGroups that match the filter expression. The following fields are supported: * - `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 - format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be - in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * - `create_time > "2020-01-01" OR update_time > "2020-01-01"` FeatureGroups created or updated after - 2020-01-01. * `labels.env = "prod"` FeatureGroups with label "env" set to "prod". + /** Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). */ public java.lang.String getFilter() { return filter; } /** - * Lists the FeatureGroups that match the filter expression. The following fields are - * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. - * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, - * and `>=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value - * equality and key presence. Examples: * `create_time > "2020-01-01" OR update_time > - * "2020-01-01"` FeatureGroups created or updated after 2020-01-01. * `labels.env = - * "prod"` FeatureGroups with label "env" set to "prod". + * Optional. The standard list filter. More detail in + * [AIP-160](https://google.aip.dev/160). */ 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: * `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: * `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: * `create_time` * `update_time` - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * The maximum number of FeatureGroups to return. The service may return fewer than this - * value. If unspecified, at most 100 FeatureGroups will be returned. The maximum value is - * 100; any value greater than 100 will be coerced to 100. - */ + /** Optional. The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The maximum number of FeatureGroups to return. The service may return fewer than this value. If - unspecified, at most 100 FeatureGroups will be returned. The maximum value is 100; any value - greater than 100 will be coerced to 100. + /** Optional. The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** - * The maximum number of FeatureGroups to return. The service may return fewer than this - * value. If unspecified, at most 100 FeatureGroups will be returned. The maximum value is - * 100; any value greater than 100 will be coerced to 100. - */ + /** Optional. The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** - * A page token, received from a previous FeatureRegistryService.ListFeatureGroups call. - * Provide this to retrieve the subsequent page. When paginating, all other parameters - * provided to FeatureRegistryService.ListFeatureGroups must match the call that provided - * the page token. - */ + /** Optional. The standard list page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** A page token, received from a previous FeatureRegistryService.ListFeatureGroups call. Provide this - to retrieve the subsequent page. When paginating, all other parameters provided to - FeatureRegistryService.ListFeatureGroups must match the call that provided the page token. + /** Optional. The standard list page token. */ public java.lang.String getPageToken() { return pageToken; } - /** - * A page token, received from a previous FeatureRegistryService.ListFeatureGroups call. - * Provide this to retrieve the subsequent page. When paginating, all other parameters - * provided to FeatureRegistryService.ListFeatureGroups must match the call that provided - * the page token. - */ + /** Optional. The standard list page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; @@ -83510,19 +79209,19 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of a single FeatureGroup. + * Update an ExampleStore. * - * Create a request for the method "featureGroups.patch". + * Create a request for the method "exampleStores.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. Name of the FeatureGroup. Format: - * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup} + * @param name Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: + * projects/{project}/locations/{location}/exampleStores/{example_store} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExampleStore} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExampleStore content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; @@ -83533,12 +79232,12 @@ public class Patch extends AiplatformRequest * - * @param name Identifier. Name of the FeatureGroup. Format: - * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup} + * @param name Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: + * projects/{project}/locations/{location}/exampleStores/{example_store} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExampleStore} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup content) { + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExampleStore 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/[^/]+/featureGroups/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); } } @@ -83617,64 +79316,50 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Identifier. Name of the FeatureGroup. Format: - * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: + * projects/{project}/locations/{location}/exampleStores/{example_store} */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. Name of the FeatureGroup. Format: - `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + /** Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: + projects/{project}/locations/{location}/exampleStores/{example_store} */ public java.lang.String getName() { return name; } /** - * Identifier. Name of the FeatureGroup. Format: - * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * Identifier. The resource name of the ExampleStore. This is a unique identifier. Format: + * projects/{project}/locations/{location}/exampleStores/{example_store} */ 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/[^/]+/featureGroups/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); } this.name = name; return this; } /** - * Field mask is used to specify the fields to be overwritten in the FeatureGroup resource - * by the update. The fields specified in the update_mask are relative to the resource, - * not the full request. A field will be overwritten if it is in the mask. If the user - * does not provide a mask then only the non-empty fields present in the request will be - * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * - * `labels` * `description` * `big_query` * `big_query.entity_id_columns` * - * `service_agent_type` + * Optional. Mask specifying which fields to update. Supported fields: * `display_name` * + * `description` */ @com.google.api.client.util.Key private String updateMask; - /** Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the - update. The fields specified in the update_mask are relative to the resource, not the full request. - A field will be overwritten if it is in the mask. If the user does not provide a mask then only the - non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override - all fields. Updatable fields: * `labels` * `description` * `big_query` * - `big_query.entity_id_columns` * `service_agent_type` + /** Optional. Mask specifying which fields to update. Supported fields: * `display_name` * + `description` */ public String getUpdateMask() { return updateMask; } /** - * Field mask is used to specify the fields to be overwritten in the FeatureGroup resource - * by the update. The fields specified in the update_mask are relative to the resource, - * not the full request. A field will be overwritten if it is in the mask. If the user - * does not provide a mask then only the non-empty fields present in the request will be - * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * - * `labels` * `description` * `big_query` * `big_query.entity_id_columns` * - * `service_agent_type` + * Optional. Mask specifying which fields to update. Supported fields: * `display_name` * + * `description` */ public Patch setUpdateMask(String updateMask) { this.updateMask = updateMask; @@ -83687,527 +79372,598 @@ public Patch set(String parameterName, Object value) { } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Remove Examples from the Example Store. * - * Create a request for the method "featureGroups.setIamPolicy". + * Create a request for the method "exampleStores.removeExamples". * * 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. + * parameters, call the {@link RemoveExamples#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} + * @param exampleStore Required. The name of the ExampleStore resource that the examples should be removed from. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveExamplesRequest} * @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); + public RemoveExamples removeExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveExamplesRequest content) throws java.io.IOException { + RemoveExamples result = new RemoveExamples(exampleStore, content); initialize(result); return result; } - public class SetIamPolicy extends AiplatformRequest { + public class RemoveExamples extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; + private static final String REST_PATH = "v1beta1/{+exampleStore}:removeExamples"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + private final java.util.regex.Pattern EXAMPLE_STORE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Remove Examples from the Example Store. * - * Create a request for the method "featureGroups.setIamPolicy". + * Create a request for the method "exampleStores.removeExamples". * * 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.

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

{@link RemoveExamples#initialize(com.google.api.client.googleapis.services.Abstr + * actGoogleClientRequest)} 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} + * @param exampleStore Required. The name of the ExampleStore resource that the examples should be removed from. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveExamplesRequest} * @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."); + protected RemoveExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveExamplesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveExamplesResponse.class); + this.exampleStore = com.google.api.client.util.Preconditions.checkNotNull(exampleStore, "Required parameter exampleStore 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/[^/]+/featureGroups/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), + "Parameter exampleStore must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public RemoveExamples set$Xgafv(java.lang.String $Xgafv) { + return (RemoveExamples) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public RemoveExamples setAccessToken(java.lang.String accessToken) { + return (RemoveExamples) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public RemoveExamples setAlt(java.lang.String alt) { + return (RemoveExamples) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public RemoveExamples setCallback(java.lang.String callback) { + return (RemoveExamples) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public RemoveExamples setFields(java.lang.String fields) { + return (RemoveExamples) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public RemoveExamples setKey(java.lang.String key) { + return (RemoveExamples) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public RemoveExamples setOauthToken(java.lang.String oauthToken) { + return (RemoveExamples) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public RemoveExamples setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveExamples) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public RemoveExamples setQuotaUser(java.lang.String quotaUser) { + return (RemoveExamples) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public RemoveExamples setUploadType(java.lang.String uploadType) { + return (RemoveExamples) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public RemoveExamples setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveExamples) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The name of the ExampleStore resource that the examples should be removed + * from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String exampleStore; - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The name of the ExampleStore resource that the examples should be removed from. Format: + `projects/{project}/locations/{location}/exampleStores/{example_store}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getExampleStore() { + return exampleStore; } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The name of the ExampleStore resource that the examples should be removed + * from. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` */ - public SetIamPolicy setResource(java.lang.String resource) { + public RemoveExamples setExampleStore(java.lang.String exampleStore) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), + "Parameter exampleStore must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); } - this.resource = resource; + this.exampleStore = exampleStore; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public RemoveExamples set(String parameterName, Object value) { + return (RemoveExamples) 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. + * Search for similar Examples for given selection criteria. * - * Create a request for the method "featureGroups.testIamPermissions". + * Create a request for the method "exampleStores.searchExamples". * * 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. + * parameters, call the {@link SearchExamples#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param exampleStore Required. The name of the ExampleStore resource that examples are retrieved from. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchExamplesRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource); + public SearchExamples searchExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchExamplesRequest content) throws java.io.IOException { + SearchExamples result = new SearchExamples(exampleStore, content); initialize(result); return result; } - public class TestIamPermissions extends AiplatformRequest { + public class SearchExamples extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+resource}:testIamPermissions"; + private static final String REST_PATH = "v1beta1/{+exampleStore}:searchExamples"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + private final java.util.regex.Pattern EXAMPLE_STORE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); /** - * 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. + * Search for similar Examples for given selection criteria. * - * Create a request for the method "featureGroups.testIamPermissions". + * Create a request for the method "exampleStores.searchExamples". * * 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.

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

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

* - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * @param exampleStore Required. The name of the ExampleStore resource that examples are retrieved from. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchExamplesRequest} * @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."); + protected SearchExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchExamplesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchExamplesResponse.class); + this.exampleStore = com.google.api.client.util.Preconditions.checkNotNull(exampleStore, "Required parameter exampleStore 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/[^/]+/featureGroups/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), + "Parameter exampleStore must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public SearchExamples set$Xgafv(java.lang.String $Xgafv) { + return (SearchExamples) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public SearchExamples setAccessToken(java.lang.String accessToken) { + return (SearchExamples) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public SearchExamples setAlt(java.lang.String alt) { + return (SearchExamples) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public SearchExamples setCallback(java.lang.String callback) { + return (SearchExamples) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public SearchExamples setFields(java.lang.String fields) { + return (SearchExamples) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public SearchExamples setKey(java.lang.String key) { + return (SearchExamples) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public SearchExamples setOauthToken(java.lang.String oauthToken) { + return (SearchExamples) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public SearchExamples setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchExamples) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public SearchExamples setQuotaUser(java.lang.String quotaUser) { + return (SearchExamples) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public SearchExamples setUploadType(java.lang.String uploadType) { + return (SearchExamples) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public SearchExamples setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchExamples) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The name of the ExampleStore resource that examples are retrieved from. + * Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String exampleStore; - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The name of the ExampleStore resource that examples are retrieved from. Format: + `projects/{project}/locations/{location}/exampleStores/{example_store}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getExampleStore() { + return exampleStore; } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. + * Required. The name of the ExampleStore resource that examples are retrieved from. + * Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` */ - public TestIamPermissions setResource(java.lang.String resource) { + public SearchExamples setExampleStore(java.lang.String exampleStore) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), + "Parameter exampleStore must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); } - this.resource = resource; + this.exampleStore = exampleStore; return this; } + @Override + public SearchExamples set(String parameterName, Object value) { + return (SearchExamples) super.set(parameterName, value); + } + } + /** + * Create or update Examples in the Example Store. + * + * Create a request for the method "exampleStores.upsertExamples". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link UpsertExamples#execute()} method to invoke the remote operation. + * + * @param exampleStore Required. The name of the ExampleStore resource that examples are added to or updated in. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertExamplesRequest} + * @return the request + */ + public UpsertExamples upsertExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertExamplesRequest content) throws java.io.IOException { + UpsertExamples result = new UpsertExamples(exampleStore, content); + initialize(result); + return result; + } + + public class UpsertExamples extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+exampleStore}:upsertExamples"; + + private final java.util.regex.Pattern EXAMPLE_STORE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + /** - * 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). + * Create or update Examples in the Example Store. + * + * Create a request for the method "exampleStores.upsertExamples". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link UpsertExamples#execute()} method to invoke the remote + * operation.

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

+ * + * @param exampleStore Required. The name of the ExampleStore resource that examples are added to or updated in. Format: + * `projects/{project}/locations/{location}/exampleStores/{example_store}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertExamplesRequest} + * @since 1.13 + */ + protected UpsertExamples(java.lang.String exampleStore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertExamplesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertExamplesResponse.class); + this.exampleStore = com.google.api.client.util.Preconditions.checkNotNull(exampleStore, "Required parameter exampleStore must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), + "Parameter exampleStore must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + } + } + + @Override + public UpsertExamples set$Xgafv(java.lang.String $Xgafv) { + return (UpsertExamples) super.set$Xgafv($Xgafv); + } + + @Override + public UpsertExamples setAccessToken(java.lang.String accessToken) { + return (UpsertExamples) super.setAccessToken(accessToken); + } + + @Override + public UpsertExamples setAlt(java.lang.String alt) { + return (UpsertExamples) super.setAlt(alt); + } + + @Override + public UpsertExamples setCallback(java.lang.String callback) { + return (UpsertExamples) super.setCallback(callback); + } + + @Override + public UpsertExamples setFields(java.lang.String fields) { + return (UpsertExamples) super.setFields(fields); + } + + @Override + public UpsertExamples setKey(java.lang.String key) { + return (UpsertExamples) super.setKey(key); + } + + @Override + public UpsertExamples setOauthToken(java.lang.String oauthToken) { + return (UpsertExamples) super.setOauthToken(oauthToken); + } + + @Override + public UpsertExamples setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpsertExamples) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpsertExamples setQuotaUser(java.lang.String quotaUser) { + return (UpsertExamples) super.setQuotaUser(quotaUser); + } + + @Override + public UpsertExamples setUploadType(java.lang.String uploadType) { + return (UpsertExamples) super.setUploadType(uploadType); + } + + @Override + public UpsertExamples setUploadProtocol(java.lang.String uploadProtocol) { + return (UpsertExamples) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the ExampleStore resource that examples are added to or updated + * in. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` */ @com.google.api.client.util.Key - private java.util.List permissions; + private java.lang.String exampleStore; - /** 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). + /** Required. The name of the ExampleStore resource that examples are added to or updated in. Format: + `projects/{project}/locations/{location}/exampleStores/{example_store}` */ - public java.util.List getPermissions() { - return permissions; + public java.lang.String getExampleStore() { + return exampleStore; } /** - * 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). + * Required. The name of the ExampleStore resource that examples are added to or updated + * in. Format: `projects/{project}/locations/{location}/exampleStores/{example_store}` */ - public TestIamPermissions setPermissions(java.util.List permissions) { - this.permissions = permissions; + public UpsertExamples setExampleStore(java.lang.String exampleStore) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(EXAMPLE_STORE_PATTERN.matcher(exampleStore).matches(), + "Parameter exampleStore must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); + } + this.exampleStore = exampleStore; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public UpsertExamples set(String parameterName, Object value) { + return (UpsertExamples) super.set(parameterName, value); } } /** - * An accessor for creating requests from the FeatureMonitors collection. + * An accessor for creating requests from the Operations collection. * *

The typical use is:

*
          *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.FeatureMonitors.List request = aiplatform.featureMonitors().list(parameters ...)}
+         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
          * 
* * @return the resource collection */ - public FeatureMonitors featureMonitors() { - return new FeatureMonitors(); + public Operations operations() { + return new Operations(); } /** - * The "featureMonitors" collection of methods. + * The "operations" collection of methods. */ - public class FeatureMonitors { + public class Operations { /** - * Creates a new FeatureMonitor in a given project, location and FeatureGroup. + * 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 "featureMonitors.create". + * 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 Create#execute()} method to invoke the remote operation. + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of FeatureGroup to create FeatureMonitor. Format: - * `projects/{project}/locations/{location}/featureGroups/{featuregroup}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor} + * @param name The name of the operation resource to be cancelled. * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor content) throws java.io.IOException { - Create result = new Create(parent, content); + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); initialize(result); return result; } - public class Create extends AiplatformRequest { + public class Cancel extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/featureMonitors"; + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$"); /** - * Creates a new FeatureMonitor in a given project, location and FeatureGroup. + * 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 "featureMonitors.create". + * 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 Create#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. *

{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Cancel#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 FeatureGroup to create FeatureMonitor. Format: - * `projects/{project}/locations/{location}/featureGroups/{featuregroup}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor} + * @param name The name of the operation resource to be cancelled. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor 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."); + 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of FeatureGroup to create FeatureMonitor. Format: - * `projects/{project}/locations/{location}/featureGroups/{featuregroup}` - */ + /** The name of the operation resource to be cancelled. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of FeatureGroup to create FeatureMonitor. Format: - `projects/{project}/locations/{location}/featureGroups/{featuregroup}` + /** The name of the operation resource to be cancelled. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The resource name of FeatureGroup to create FeatureMonitor. Format: - * `projects/{project}/locations/{location}/featureGroups/{featuregroup}` - */ - public Create setParent(java.lang.String parent) { + /** 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$"); } - this.parent = parent; - return this; - } - - /** - * Required. The ID to use for this FeatureMonitor, which will become the final - * component of the FeatureGroup's resource name. This value may be up to 60 characters, - * and valid characters are `[a-z0-9_]`. The first character cannot be a number. The - * value must be unique within the FeatureGroup. - */ - @com.google.api.client.util.Key - private java.lang.String featureMonitorId; - - /** Required. The ID to use for this FeatureMonitor, which will become the final component of the - FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are - `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the - FeatureGroup. - */ - public java.lang.String getFeatureMonitorId() { - return featureMonitorId; - } - - /** - * Required. The ID to use for this FeatureMonitor, which will become the final - * component of the FeatureGroup's resource name. This value may be up to 60 characters, - * and valid characters are `[a-z0-9_]`. The first character cannot be a number. The - * value must be unique within the FeatureGroup. - */ - public Create setFeatureMonitorId(java.lang.String featureMonitorId) { - this.featureMonitorId = featureMonitorId; + this.name = name; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Deletes a single FeatureMonitor. + * 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 "featureMonitors.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 name of the FeatureMonitor to be deleted. Format: `projects/{project}/locations/{locat - * ion}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + * @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 { @@ -84216,17 +79972,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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$"); /** - * Deletes a single FeatureMonitor. + * 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 "featureMonitors.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. @@ -84234,17 +79992,16 @@ public class Delete extends AiplatformRequest * - * @param name Required. The name of the FeatureMonitor to be deleted. Format: `projects/{project}/locations/{locat - * ion}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + * @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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$"); } } @@ -84303,29 +80060,22 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the FeatureMonitor to be deleted. Format: `projects/{project}/l - * ocations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` - */ + /** The name of the operation resource to be deleted. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the FeatureMonitor to be deleted. Format: `projects/{project}/locations/{loca - tion}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + /** The name of the operation resource to be deleted. */ public java.lang.String getName() { return name; } - /** - * Required. The name of the FeatureMonitor to be deleted. Format: `projects/{project}/l - * ocations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` - */ + /** 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -84337,14 +80087,15 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets details of a single FeatureMonitor. + * 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 "featureMonitors.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 FeatureMonitor resource. + * @param name The name of the operation resource. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -84353,33 +80104,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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$"); /** - * Gets details of a single FeatureMonitor. + * 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 "featureMonitors.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 FeatureMonitor resource. + * @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.GoogleCloudAiplatformV1beta1FeatureMonitor.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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$"); } } @@ -84448,22 +80200,22 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the FeatureMonitor resource. */ + /** The name of the operation resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the FeatureMonitor resource. + /** The name of the operation resource. */ public java.lang.String getName() { return name; } - /** Required. The name of the FeatureMonitor resource. */ + /** 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -84475,51 +80227,51 @@ public Get set(String parameterName, Object value) { } } /** - * Lists FeatureGroups in a given project and location. + * 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 "featureMonitors.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 FeatureGroup to list FeatureMonitors. Format: - * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * @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}/featureMonitors"; + private static final String REST_PATH = "v1beta1/{+name}/operations"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); /** - * Lists FeatureGroups in a given project and location. + * 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 "featureMonitors.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 FeatureGroup to list FeatureMonitors. Format: - * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * @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.GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse.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 " + - "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); } } @@ -84588,149 +80340,107 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the FeatureGroup to list FeatureMonitors. Format: - * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` - */ + /** 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 FeatureGroup to list FeatureMonitors. Format: - `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + /** 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 FeatureGroup to list FeatureMonitors. Format: - * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` - */ - 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 " + - "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } - /** - * Optional. Lists the FeatureMonitors that match the filter expression. The following - * fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` - * comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, - * `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * `labels`: - * Supports key-value equality and key presence. Examples: * `create_time > "2020-01-01" - * OR update_time > "2020-01-01"` FeatureMonitors created or updated after 2020-01-01. * - * `labels.env = "prod"` FeatureGroups with label "env" set to "prod". - */ + /** The standard list filter. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. Lists the FeatureMonitors that match the filter expression. The following fields are - supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must - be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. - Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. - Examples: * `create_time > "2020-01-01" OR update_time > "2020-01-01"` FeatureMonitors created or - updated after 2020-01-01. * `labels.env = "prod"` FeatureGroups with label "env" set to "prod". + /** The standard list filter. */ public java.lang.String getFilter() { return filter; } - /** - * Optional. Lists the FeatureMonitors that match the filter expression. The following - * fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` - * comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, - * `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * `labels`: - * Supports key-value equality and key presence. Examples: * `create_time > "2020-01-01" - * OR update_time > "2020-01-01"` FeatureMonitors created or updated after 2020-01-01. * - * `labels.env = "prod"` FeatureGroups with label "env" set to "prod". - */ + /** 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. Supported Fields: * `create_time` * - * `update_time` - */ + /** The standard list page size. */ @com.google.api.client.util.Key - private java.lang.String orderBy; + private java.lang.Integer pageSize; - /** Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after - a field name for descending. Supported Fields: * `create_time` * `update_time` + /** The standard list page size. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.Integer getPageSize() { + return pageSize; } - /** - * Optional. A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. Supported Fields: * `create_time` * - * `update_time` - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - /** - * Optional. The maximum number of FeatureGroups to return. The service may return fewer - * than this value. If unspecified, at most 100 FeatureMonitors will be returned. The - * maximum value is 100; any value greater than 100 will be coerced to 100. - */ + /** The standard list page token. */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String pageToken; - /** Optional. The maximum number of FeatureGroups to return. The service may return fewer than this - value. If unspecified, at most 100 FeatureMonitors will be returned. The maximum value is 100; any - value greater than 100 will be coerced to 100. + /** The standard list page token. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getPageToken() { + return pageToken; } - /** - * Optional. The maximum number of FeatureGroups to return. The service may return fewer - * than this value. If unspecified, at most 100 FeatureMonitors will be returned. The - * maximum value is 100; any value greater than 100 will be coerced to 100. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * Optional. A page token, received from a previous - * FeatureRegistryService.ListFeatureMonitors call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * FeatureRegistryService.ListFeatureMonitors must match the call that provided the page - * token. + * 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.String pageToken; + private java.lang.Boolean returnPartialSuccess; - /** Optional. A page token, received from a previous FeatureRegistryService.ListFeatureMonitors call. - Provide this to retrieve the subsequent page. When paginating, all other parameters provided to - FeatureRegistryService.ListFeatureMonitors must match the call that provided the page token. + /** 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.String getPageToken() { - return pageToken; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * Optional. A page token, received from a previous - * FeatureRegistryService.ListFeatureMonitors call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * FeatureRegistryService.ListFeatureMonitors must match the call that provided the page - * token. + * 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 setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @@ -84740,4145 +80450,3671 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of a single FeatureMonitor. + * 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 "featureMonitors.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. * - * @param name Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{location}/featureGrou - * ps/{featureGroup}/featureMonitors/{featureMonitor}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor} + * @param name The name of the operation resource to wait on. * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); initialize(result); return result; } - public class Patch extends AiplatformRequest { + public class Wait extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+name}:wait"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$"); /** - * Updates the parameters of a single FeatureMonitor. + * 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 "featureMonitors.patch". + * 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 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.

+ * 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 Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{location}/featureGrou - * ps/{featureGroup}/featureMonitors/{featureMonitor}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor} + * @param name The name of the operation resource to wait on. * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); } - /** - * Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{locati - * on}/featureGroups/{featureGroup}/featureMonitors/{featureMonitor}` - */ + /** The name of the operation resource to wait on. */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{location}/featureGro - ups/{featureGroup}/featureMonitors/{featureMonitor}` + /** The name of the operation resource to wait on. */ public java.lang.String getName() { return name; } - /** - * Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{locati - * on}/featureGroups/{featureGroup}/featureMonitors/{featureMonitor}` - */ - public Patch setName(java.lang.String 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$"); } this.name = name; return this; } /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * FeatureMonitor resource by the update. The fields specified in the update_mask are - * relative to the resource, not the full request. A field will be overwritten if it is - * in the mask. If the user does not provide a mask then only the non-empty fields - * present in the request will be overwritten. Set the update_mask to `*` to override - * all fields. Updatable fields: * `labels` * `description` * `schedule_config` * - * `feature_selection_config` + * 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 updateMask; + private String timeout; - /** Optional. Field mask is used to specify the fields to be overwritten in the FeatureMonitor resource - by the update. The fields specified in the update_mask are relative to the resource, not the full - request. A field will be overwritten if it is in the mask. If the user does not provide a mask then - only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to - override all fields. Updatable fields: * `labels` * `description` * `schedule_config` * - `feature_selection_config` + /** 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 getUpdateMask() { - return updateMask; + public String getTimeout() { + return timeout; } /** - * Optional. Field mask is used to specify the fields to be overwritten in the - * FeatureMonitor resource by the update. The fields specified in the update_mask are - * relative to the resource, not the full request. A field will be overwritten if it is - * in the mask. If the user does not provide a mask then only the non-empty fields - * present in the request will be overwritten. Set the update_mask to `*` to override - * all fields. Updatable fields: * `labels` * `description` * `schedule_config` * - * `feature_selection_config` + * 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 Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + public Wait setTimeout(String timeout) { + this.timeout = timeout; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); } } + } + } + /** + * An accessor for creating requests from the ExtensionControllers collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.ExtensionControllers.List request = aiplatform.extensionControllers().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public ExtensionControllers extensionControllers() { + return new ExtensionControllers(); + } + + /** + * The "extensionControllers" collection of methods. + */ + public class ExtensionControllers { + + /** + * 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 { + /** - * An accessor for creating requests from the FeatureMonitorJobs collection. + * 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`. * - *

The typical use is:

- *
-           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-           *   {@code Aiplatform.FeatureMonitorJobs.List request = aiplatform.featureMonitorJobs().list(parameters ...)}
-           * 
+ * Create a request for the method "operations.cancel". * - * @return the resource 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. + * + * @param name The name of the operation resource to be cancelled. + * @return the request */ - public FeatureMonitorJobs featureMonitorJobs() { - return new FeatureMonitorJobs(); + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - /** - * The "featureMonitorJobs" collection of methods. - */ - public class FeatureMonitorJobs { + 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/[^/]+/extensionControllers/[^/]+/operations/[^/]+$"); /** - * Creates a new feature monitor job. + * 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 "featureMonitorJobs.create". + * 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 Create#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 parent Required. The resource name of FeatureMonitor to create FeatureMonitorJob. Format: `projects/{projec - * t}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitorJob} - * @return the request + * @param name The name of the operation resource to be cancelled. + * @since 1.13 */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitorJob content) throws java.io.IOException { - Create result = new Create(parent, content); - 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/[^/]+/extensionControllers/[^/]+/operations/[^/]+$"); + } } - public class Create extends AiplatformRequest { + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+parent}/featureMonitorJobs"; + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - /** - * Creates a new feature monitor job. - * - * Create a request for the method "featureMonitorJobs.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 FeatureMonitor to create FeatureMonitorJob. Format: `projects/{projec - * t}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitorJob} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitorJob content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitorJob.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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); - } - } - - @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 Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Required. The resource name of FeatureMonitor to create FeatureMonitorJob. Format: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonit - * ors/{feature_monitor}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } - /** Required. The resource name of FeatureMonitor to create FeatureMonitorJob. Format: `projects/{proje - ct}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` - */ - public java.lang.String getParent() { - return parent; + /** 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/[^/]+/extensionControllers/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - /** - * Required. The resource name of FeatureMonitor to create FeatureMonitorJob. Format: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonit - * ors/{feature_monitor}` - */ - 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); - } - this.parent = parent; - 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; + } - /** Optional. Output only. System-generated ID for feature monitor job. */ - @com.google.api.client.util.Key - private java.lang.Long featureMonitorJobId; + public class Delete extends AiplatformRequest { - /** Optional. Output only. System-generated ID for feature monitor job. - */ - public java.lang.Long getFeatureMonitorJobId() { - return featureMonitorJobId; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** Optional. Output only. System-generated ID for feature monitor job. */ - public Create setFeatureMonitorJobId(java.lang.Long featureMonitorJobId) { - this.featureMonitorJobId = featureMonitorJobId; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$"); - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } /** - * Get a feature monitor job. + * 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 "featureMonitorJobs.get". + * 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 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 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 FeatureMonitorJob resource. Format: `projects/{project}/locations/{locatio - * n}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{fea - * ture_monitor_job}` - * @return the request + * @param name The name of the operation resource to be deleted. + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(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/[^/]+/extensionControllers/[^/]+/operations/[^/]+$"); + } } - 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/featureMonitorJobs/[^/]+$"); + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - /** - * Get a feature monitor job. - * - * Create a request for the method "featureMonitorJobs.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 FeatureMonitorJob resource. Format: `projects/{project}/locations/{locatio - * n}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{fea - * ture_monitor_job}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitorJob.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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/featureMonitorJobs/[^/]+$"); - } - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** 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/[^/]+/extensionControllers/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @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; + } - /** - * Required. The name of the FeatureMonitorJob resource. Format: `projects/{project}/l - * ocations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor} - * /featureMonitorJobs/{feature_monitor_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Get extends AiplatformRequest { - /** Required. The name of the FeatureMonitorJob resource. Format: `projects/{project}/locations/{locati - on}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_mon - itor_job}` - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** - * Required. The name of the FeatureMonitorJob resource. Format: `projects/{project}/l - * ocations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor} - * /featureMonitorJobs/{feature_monitor_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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/featureMonitorJobs/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$"); - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * List feature monitor jobs. + * 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 "featureMonitorJobs.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. + * 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 parent Required. The resource name of the FeatureMonitor to list FeatureMonitorJobs. Format: `projects/{pro - * ject}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor} - * ` - * @return the request + * @param name The name of the operation resource. + * @since 1.13 */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + 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/[^/]+/extensionControllers/[^/]+/operations/[^/]+$"); + } } - public class List 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/{+parent}/featureMonitorJobs"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** - * List feature monitor jobs. - * - * Create a request for the method "featureMonitorJobs.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 FeatureMonitor to list FeatureMonitorJobs. Format: `projects/{pro - * ject}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor} - * ` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse.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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); - } - } + @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 List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @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 FeatureMonitor to list FeatureMonitorJobs. - * Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}/feat - * ureMonitors/{feature_monitor}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the FeatureMonitor to list FeatureMonitorJobs. Format: `projects/{pr - oject}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the FeatureMonitor to list FeatureMonitorJobs. - * Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}/feat - * ureMonitors/{feature_monitor}` - */ - 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. Lists the FeatureMonitorJobs that match the filter expression. The - * following fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, - * `<=`, and `>=` comparisons. Values must be Examples: * `create_time > "2020-01-01"` - * FeatureMonitorJobs created after 2020-01-01. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. Lists the FeatureMonitorJobs that match the filter expression. The following fields are - supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must - be Examples: * `create_time > "2020-01-01"` FeatureMonitorJobs created after 2020-01-01. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. Lists the FeatureMonitorJobs that match the filter expression. The - * following fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, - * `<=`, and `>=` comparisons. Values must be Examples: * `create_time > "2020-01-01"` - * FeatureMonitorJobs created after 2020-01-01. - */ - 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. Supported Fields: * `create_time` - */ - @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. Supported Fields: * `create_time` - */ - 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. Supported Fields: * `create_time` - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Optional. The maximum number of FeatureMonitorJobs to return. The service may - * return fewer than this value. If unspecified, at most 100 FeatureMonitorJobs will - * be returned. The maximum value is 100; any value greater than 100 will be coerced - * to 100. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** Optional. The maximum number of FeatureMonitorJobs to return. The service may return fewer than - this value. If unspecified, at most 100 FeatureMonitorJobs will be returned. The maximum value is - 100; any value greater than 100 will be coerced to 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * Optional. The maximum number of FeatureMonitorJobs to return. The service may - * return fewer than this value. If unspecified, at most 100 FeatureMonitorJobs will - * be returned. The maximum value is 100; any value greater than 100 will be coerced - * to 100. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * Optional. A page token, received from a previous - * FeatureRegistryService.ListFeatureMonitorJobs call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * FeatureRegistryService.ListFeatureMonitorJobs must match the call that provided the - * page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** Optional. A page token, received from a previous FeatureRegistryService.ListFeatureMonitorJobs - call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided - to FeatureRegistryService.ListFeatureMonitorJobs must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Optional. A page token, received from a previous - * FeatureRegistryService.ListFeatureMonitorJobs call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * FeatureRegistryService.ListFeatureMonitorJobs must match the call that provided the - * page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** The name of the operation resource. + */ + 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. */ + 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/[^/]+/extensionControllers/[^/]+/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 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 { + 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/[^/]+/extensionControllers/[^/]+$"); /** - * 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`. + * 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.delete". + * 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 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 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 deleted. - * @return the request + * @param name The name of the operation's parent resource. + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(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/[^/]+/extensionControllers/[^/]+$"); + } } - public class Delete extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; + @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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); - } - } + @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; - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+$"); } + this.name = name; + return this; + } - /** 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); - } - 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); - } - } - /** - * 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 + /** The standard list filter. */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + public java.lang.String getFilter() { + return filter; } - public class Get 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/{+name}"; + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** - * 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); - } - } + /** 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 Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) 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 Get setAlt(java.lang.String alt) { - return (Get) 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 Get setCallback(java.lang.String callback) { - return (Get) 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 Get setFields(java.lang.String fields) { - return (Get) 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 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/[^/]+/extensionControllers/[^/]+/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/[^/]+/extensionControllers/[^/]+/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); + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - /** 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } - /** - * 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; + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); } - public class List extends AiplatformRequest { + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - private static final String REST_PATH = "v1beta1/{+name}/operations"; + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - /** - * 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); - } - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - @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 java.lang.String getName() { + return name; + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + /** 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/[^/]+/extensionControllers/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - @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. + */ + @com.google.api.client.util.Key + private String 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 String getTimeout() { + return timeout; + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + /** + * 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 setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + } + } + /** + * An accessor for creating requests from the Extensions collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.Extensions.List request = aiplatform.extensions().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Extensions extensions() { + return new Extensions(); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** + * The "extensions" collection of methods. + */ + public class Extensions { - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** + * Deletes an Extension. + * + * Create a request for the method "extensions.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 Extension resource to be deleted. Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + * @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 setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + public class Delete extends AiplatformRequest { - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensions/[^/]+$"); - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Deletes an Extension. + * + * Create a request for the method "extensions.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 Extension resource to be deleted. Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + * @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/[^/]+/extensions/[^/]+$"); + } + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - /** 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** The standard list 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); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - /** 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; + @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 java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + /** + * Required. The name of the Extension resource to be deleted. Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * 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; - } + /** Required. The name of the Extension resource to be deleted. Format: + `projects/{project}/locations/{location}/extensions/{extension}` + */ + public java.lang.String getName() { + return 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 - */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + /** + * Required. The name of the Extension resource to be deleted. Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + */ + 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/[^/]+/extensions/[^/]+$"); } + this.name = name; + 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); - } - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Executes the request against a given extension. + * + * Create a request for the method "extensions.execute". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Execute#execute()} method to invoke the remote operation. + * + * @param name Required. Name (identifier) of the extension; Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExecuteExtensionRequest} + * @return the request + */ + public Execute execute(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExecuteExtensionRequest content) throws java.io.IOException { + Execute result = new Execute(name, content); + initialize(result); + return result; + } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + public class Execute extends AiplatformRequest { - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:execute"; - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensions/[^/]+$"); - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + /** + * Executes the request against a given extension. + * + * Create a request for the method "extensions.execute". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Execute#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. Name (identifier) of the extension; Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExecuteExtensionRequest} + * @since 1.13 + */ + protected Execute(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExecuteExtensionRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExecuteExtensionResponse.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/[^/]+/extensions/[^/]+$"); + } + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public Execute set$Xgafv(java.lang.String $Xgafv) { + return (Execute) super.set$Xgafv($Xgafv); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Execute setAccessToken(java.lang.String accessToken) { + return (Execute) super.setAccessToken(accessToken); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Execute setAlt(java.lang.String alt) { + return (Execute) super.setAlt(alt); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Execute setCallback(java.lang.String callback) { + return (Execute) super.setCallback(callback); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Execute setFields(java.lang.String fields) { + return (Execute) super.setFields(fields); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Execute setKey(java.lang.String key) { + return (Execute) super.setKey(key); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Execute setOauthToken(java.lang.String oauthToken) { + return (Execute) 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 Execute setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Execute) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public Execute setQuotaUser(java.lang.String quotaUser) { + return (Execute) 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Execute setUploadType(java.lang.String uploadType) { + return (Execute) 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 Execute setUploadProtocol(java.lang.String uploadProtocol) { + return (Execute) 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; - } + /** + * Required. Name (identifier) of the extension; Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + */ + @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; - } + /** Required. Name (identifier) of the extension; Format: + `projects/{project}/locations/{location}/extensions/{extension}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } + /** + * Required. Name (identifier) of the extension; Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + */ + public Execute 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/[^/]+/extensions/[^/]+$"); } + this.name = name; + return this; + } + @Override + public Execute set(String parameterName, Object value) { + return (Execute) super.set(parameterName, value); } } /** - * An accessor for creating requests from the Features collection. + * Gets an Extension. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Features.List request = aiplatform.features().list(parameters ...)}
-         * 
+ * Create a request for the method "extensions.get". * - * @return the resource collection + * 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 Extension resource. Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + * @return the request */ - public Features features() { - return new Features(); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - /** - * The "features" collection of methods. - */ - public class Features { + 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/[^/]+/extensions/[^/]+$"); /** - * Creates a batch of Features in a given FeatureGroup. + * Gets an Extension. * - * Create a request for the method "features.batchCreate". + * Create a request for the method "extensions.get". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link BatchCreate#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 parent Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. - * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/ - * {entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest} - * @return the request + * @param name Required. The name of the Extension resource. Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + * @since 1.13 */ - public BatchCreate batchCreate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest content) throws java.io.IOException { - BatchCreate result = new BatchCreate(parent, content); - initialize(result); - return result; + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension.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/[^/]+/extensions/[^/]+$"); + } } - public class BatchCreate 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/{+parent}/features:batchCreate"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** - * Creates a batch of Features in a given FeatureGroup. - * - * Create a request for the method "features.batchCreate". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link BatchCreate#execute()} method to invoke the remote - * operation.

{@link - * BatchCreate#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 EntityType/FeatureGroup to create the batch of Features under. - * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/ - * {entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest} - * @since 1.13 - */ - protected BatchCreate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest 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/[^/]+/featureGroups/[^/]+$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public BatchCreate set$Xgafv(java.lang.String $Xgafv) { - return (BatchCreate) super.set$Xgafv($Xgafv); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public BatchCreate setAccessToken(java.lang.String accessToken) { - return (BatchCreate) super.setAccessToken(accessToken); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public BatchCreate setAlt(java.lang.String alt) { - return (BatchCreate) super.setAlt(alt); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public BatchCreate setCallback(java.lang.String callback) { - return (BatchCreate) super.setCallback(callback); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public BatchCreate setFields(java.lang.String fields) { - return (BatchCreate) super.setFields(fields); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public BatchCreate setKey(java.lang.String key) { - return (BatchCreate) super.setKey(key); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchCreate setOauthToken(java.lang.String oauthToken) { - return (BatchCreate) super.setOauthToken(oauthToken); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public BatchCreate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchCreate) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public BatchCreate setQuotaUser(java.lang.String quotaUser) { - return (BatchCreate) super.setQuotaUser(quotaUser); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchCreate setUploadType(java.lang.String uploadType) { - return (BatchCreate) super.setUploadType(uploadType); - } + /** + * Required. The name of the Extension resource. Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public BatchCreate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchCreate) super.setUploadProtocol(uploadProtocol); + /** Required. The name of the Extension resource. Format: + `projects/{project}/locations/{location}/extensions/{extension}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Extension resource. Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + */ + 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/[^/]+/extensions/[^/]+$"); } + this.name = name; + return this; + } - /** - * Required. The resource name of the EntityType/FeatureGroup to create the batch of - * Features under. Format: `projects/{project}/locations/{location}/featurestores/{featu - * restore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Imports an Extension. + * + * Create a request for the method "extensions.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 parent Required. The resource name of the Location to import the Extension in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension} + * @return the request + */ + public AiplatformImport aiplatformImport(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension content) throws java.io.IOException { + AiplatformImport result = new AiplatformImport(parent, content); + initialize(result); + return result; + } - /** Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. - Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ - public java.lang.String getParent() { - return parent; - } + public class AiplatformImport extends AiplatformRequest { - /** - * Required. The resource name of the EntityType/FeatureGroup to create the batch of - * Features under. Format: `projects/{project}/locations/{location}/featurestores/{featu - * restore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ - public BatchCreate 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/[^/]+/featureGroups/[^/]+$"); - } - this.parent = parent; - return this; - } + private static final String REST_PATH = "v1beta1/{+parent}/extensions:import"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public BatchCreate set(String parameterName, Object value) { - return (BatchCreate) super.set(parameterName, value); - } - } /** - * Creates a new Feature in a given FeatureGroup. + * Imports an Extension. * - * Create a request for the method "features.create". + * Create a request for the method "extensions.import". * - * 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. + * 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 parent Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for - * entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestor - * e}/entityTypes/{entity_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} - * @return the request + * @param parent Required. The resource name of the Location to import the Extension in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension} + * @since 1.13 */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; + protected AiplatformImport(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension 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/[^/]+$"); + } } - public class Create extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/features"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); - - /** - * Creates a new Feature in a given FeatureGroup. - * - * Create a request for the method "features.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 EntityType or FeatureGroup to create a Feature. Format for - * entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestor - * e}/entityTypes/{entity_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature 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/[^/]+/featureGroups/[^/]+$"); - } - } + @Override + public AiplatformImport set$Xgafv(java.lang.String $Xgafv) { + return (AiplatformImport) super.set$Xgafv($Xgafv); + } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + @Override + public AiplatformImport setAccessToken(java.lang.String accessToken) { + return (AiplatformImport) super.setAccessToken(accessToken); + } - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + @Override + public AiplatformImport setAlt(java.lang.String alt) { + return (AiplatformImport) super.setAlt(alt); + } - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + @Override + public AiplatformImport setCallback(java.lang.String callback) { + return (AiplatformImport) super.setCallback(callback); + } - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + @Override + public AiplatformImport setFields(java.lang.String fields) { + return (AiplatformImport) super.setFields(fields); + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public AiplatformImport setKey(java.lang.String key) { + return (AiplatformImport) super.setKey(key); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public AiplatformImport setOauthToken(java.lang.String oauthToken) { + return (AiplatformImport) super.setOauthToken(oauthToken); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AiplatformImport) super.setPrettyPrint(prettyPrint); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public AiplatformImport setQuotaUser(java.lang.String quotaUser) { + return (AiplatformImport) super.setQuotaUser(quotaUser); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public AiplatformImport setUploadType(java.lang.String uploadType) { + return (AiplatformImport) super.setUploadType(uploadType); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { + return (AiplatformImport) super.setUploadProtocol(uploadProtocol); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The resource name of the Location to import the Extension in. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * Required. The resource name of the EntityType or FeatureGroup to create a Feature. - * Format for entity_type as parent: `projects/{project}/locations/{location}/featuresto - * res/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** Required. The resource name of the Location to import the Extension in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for - entity_type as parent: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - Format for feature_group as parent: - `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ - public java.lang.String getParent() { - return parent; + /** + * Required. The resource name of the Location to import the Extension in. Format: + * `projects/{project}/locations/{location}` + */ + public AiplatformImport 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; + } - /** - * Required. The resource name of the EntityType or FeatureGroup to create a Feature. - * Format for entity_type as parent: `projects/{project}/locations/{location}/featuresto - * res/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ - 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/[^/]+/featureGroups/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public AiplatformImport set(String parameterName, Object value) { + return (AiplatformImport) super.set(parameterName, value); + } + } + /** + * Lists Extensions in a location. + * + * Create a request for the method "extensions.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 Extensions 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 ID to use for the Feature, which will become the final component of the - * Feature's resource name. This value may be up to 128 characters, and valid characters - * are `[a-z0-9_]`. The first character cannot be a number. The value must be unique - * within an EntityType/FeatureGroup. - */ - @com.google.api.client.util.Key - private java.lang.String featureId; + public class List extends AiplatformRequest { - /** Required. The ID to use for the Feature, which will become the final component of the Feature's - resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The - first character cannot be a number. The value must be unique within an EntityType/FeatureGroup. - */ - public java.lang.String getFeatureId() { - return featureId; - } + private static final String REST_PATH = "v1beta1/{+parent}/extensions"; - /** - * Required. The ID to use for the Feature, which will become the final component of the - * Feature's resource name. This value may be up to 128 characters, and valid characters - * are `[a-z0-9_]`. The first character cannot be a number. The value must be unique - * within an EntityType/FeatureGroup. - */ - public Create setFeatureId(java.lang.String featureId) { - this.featureId = featureId; - return this; - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } /** - * Deletes a single Feature. + * Lists Extensions in a location. * - * Create a request for the method "features.delete". + * Create a request for the method "extensions.list". * - * 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 List#execute()} method to invoke the remote operation.

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

* - * @param name Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/f - * eaturestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - * @return the request + * @param parent Required. The resource name of the Location to list the Extensions from. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(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.GoogleCloudAiplatformV1beta1ListExtensionsResponse.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 Delete extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; + @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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Deletes a single Feature. - * - * Create a request for the method "features.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 Features to be deleted. Format: `projects/{project}/locations/{location}/f - * eaturestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - * @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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); - } - } + @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); - } + /** + * Required. The resource name of the Location to list the Extensions from. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * Required. The name of the Features to be deleted. Format: `projects/{project}/locatio - * ns/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{featur - * e}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{ - * feature}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The resource name of the Location to list the Extensions from. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/ - featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` - `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - */ - public java.lang.String getName() { - return name; + /** + * Required. The resource name of the Location to list the Extensions 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; + } - /** - * Required. The name of the Features to be deleted. Format: `projects/{project}/locatio - * ns/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{featur - * e}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{ - * feature}` - */ - 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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Optional. The standard list filter. Supported fields: * `display_name` * `create_time` + * * `update_time` More detail in [AIP-160](https://google.aip.dev/160). + */ + @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); - } + /** Optional. The standard list filter. Supported fields: * `display_name` * `create_time` * + `update_time` More detail in [AIP-160](https://google.aip.dev/160). + */ + public java.lang.String getFilter() { + return filter; } + /** - * Gets details of a single Feature. - * - * Create a request for the method "features.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 Feature resource. Format for entity_type as parent: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @return the request + * Optional. The standard list filter. Supported fields: * `display_name` * `create_time` + * * `update_time` More detail in [AIP-160](https://google.aip.dev/160). */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - public class Get extends AiplatformRequest { + /** + * Optional. 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` Example: `display_name, create_time desc`. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - private static final String REST_PATH = "v1beta1/{+name}"; + /** Optional. 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` + Example: `display_name, create_time desc`. + */ + public java.lang.String getOrderBy() { + return orderBy; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$"); + /** + * Optional. 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` Example: `display_name, create_time desc`. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } - /** - * Gets details of a single Feature. - * - * Create a request for the method "features.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 Feature resource. Format for entity_type as parent: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature.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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); - } - } + /** Optional. The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** Optional. The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** Optional. The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** Optional. The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** Optional. The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + /** Optional. The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an Extension. + * + * Create a request for the method "extensions.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 Extension. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + public class Patch extends AiplatformRequest { - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensions/[^/]+$"); - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + /** + * Updates an Extension. + * + * Create a request for the method "extensions.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 Extension. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Extension.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/[^/]+/extensions/[^/]+$"); } + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - /** - * Required. The name of the Feature resource. Format for entity_type as parent: `projec - * ts/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ty - * pe}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - /** Required. The name of the Feature resource. Format for entity_type as parent: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - Format for feature_group as parent: - `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - /** - * Required. The name of the Feature resource. Format for entity_type as parent: `projec - * ts/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ty - * pe}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ - 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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - /** - * Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If - * stats_time_range is set, return most recent count of stats within the - * stats_time_range. - */ - @com.google.api.client.util.Key("featureStatsAndAnomalySpec.latestStatsCount") - private java.lang.Integer featureStatsAndAnomalySpecLatestStatsCount; + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If - stats_time_range is set, return most recent count of stats within the stats_time_range. - */ - public java.lang.Integer getFeatureStatsAndAnomalySpecLatestStatsCount() { - return featureStatsAndAnomalySpecLatestStatsCount; - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** - * Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If - * stats_time_range is set, return most recent count of stats within the - * stats_time_range. - */ - public Get setFeatureStatsAndAnomalySpecLatestStatsCount(java.lang.Integer featureStatsAndAnomalySpecLatestStatsCount) { - this.featureStatsAndAnomalySpecLatestStatsCount = featureStatsAndAnomalySpecLatestStatsCount; - return this; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - @com.google.api.client.util.Key("featureStatsAndAnomalySpec.statsTimeRange.endTime") - private String featureStatsAndAnomalySpecStatsTimeRangeEndTime; + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have - to be before the end. - */ - public String getFeatureStatsAndAnomalySpecStatsTimeRangeEndTime() { - return featureStatsAndAnomalySpecStatsTimeRangeEndTime; - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - public Get setFeatureStatsAndAnomalySpecStatsTimeRangeEndTime(String featureStatsAndAnomalySpecStatsTimeRangeEndTime) { - this.featureStatsAndAnomalySpecStatsTimeRangeEndTime = featureStatsAndAnomalySpecStatsTimeRangeEndTime; - return this; - } + /** Identifier. The resource name of the Extension. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - @com.google.api.client.util.Key("featureStatsAndAnomalySpec.statsTimeRange.startTime") - private String featureStatsAndAnomalySpecStatsTimeRangeStartTime; + /** Identifier. The resource name of the Extension. + */ + public java.lang.String getName() { + return name; + } - /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will - have to be the same or after the start. - */ - public String getFeatureStatsAndAnomalySpecStatsTimeRangeStartTime() { - return featureStatsAndAnomalySpecStatsTimeRangeStartTime; + /** Identifier. The resource name of the Extension. */ + 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/[^/]+/extensions/[^/]+$"); } + this.name = name; + return this; + } - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - public Get setFeatureStatsAndAnomalySpecStatsTimeRangeStartTime(String featureStatsAndAnomalySpecStatsTimeRangeStartTime) { - this.featureStatsAndAnomalySpecStatsTimeRangeStartTime = featureStatsAndAnomalySpecStatsTimeRangeStartTime; - return this; - } + /** + * Required. Mask specifying which fields to update. Supported fields: * `display_name` * + * `description` * `runtime_config` * `tool_use_examples` * `manifest.description` + */ + @com.google.api.client.util.Key + private String updateMask; - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } + /** Required. Mask specifying which fields to update. Supported fields: * `display_name` * + `description` * `runtime_config` * `tool_use_examples` * `manifest.description` + */ + public String getUpdateMask() { + return updateMask; } + /** - * Lists Features in a given FeatureGroup. - * - * Create a request for the method "features.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 Features. Format for entity_type as parent: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @return the request + * Required. Mask specifying which fields to update. Supported fields: * `display_name` * + * `description` * `runtime_config` * `tool_use_examples` * `manifest.description` */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; } - public class List extends AiplatformRequest { + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Queries an extension with a default controller. + * + * Create a request for the method "extensions.query". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Query#execute()} method to invoke the remote operation. + * + * @param name Required. Name (identifier) of the extension; Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryExtensionRequest} + * @return the request + */ + public Query query(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryExtensionRequest content) throws java.io.IOException { + Query result = new Query(name, content); + initialize(result); + return result; + } - private static final String REST_PATH = "v1beta1/{+parent}/features"; + public class Query extends AiplatformRequest { - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + private static final String REST_PATH = "v1beta1/{+name}:query"; - /** - * Lists Features in a given FeatureGroup. - * - * Create a request for the method "features.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 Features. Format for entity_type as parent: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeaturesResponse.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/[^/]+/featureGroups/[^/]+$"); - } - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensions/[^/]+$"); - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + /** + * Queries an extension with a default controller. + * + * Create a request for the method "extensions.query". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Query#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. Name (identifier) of the extension; Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryExtensionRequest} + * @since 1.13 + */ + protected Query(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryExtensionRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1QueryExtensionResponse.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/[^/]+/extensions/[^/]+$"); } + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Query set$Xgafv(java.lang.String $Xgafv) { + return (Query) super.set$Xgafv($Xgafv); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Query setAccessToken(java.lang.String accessToken) { + return (Query) super.setAccessToken(accessToken); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Query setAlt(java.lang.String alt) { + return (Query) super.setAlt(alt); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Query setCallback(java.lang.String callback) { + return (Query) super.setCallback(callback); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Query setFields(java.lang.String fields) { + return (Query) super.setFields(fields); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Query setKey(java.lang.String key) { + return (Query) super.setKey(key); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Query setOauthToken(java.lang.String oauthToken) { + return (Query) super.setOauthToken(oauthToken); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Query setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Query) super.setPrettyPrint(prettyPrint); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Query setQuotaUser(java.lang.String quotaUser) { + return (Query) super.setQuotaUser(quotaUser); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Query setUploadType(java.lang.String uploadType) { + return (Query) super.setUploadType(uploadType); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Query setUploadProtocol(java.lang.String uploadProtocol) { + return (Query) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. Name (identifier) of the extension; Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Required. The resource name of the Location to list Features. Format for entity_type - * as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/enti - * tyTypes/{entity_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** Required. Name (identifier) of the extension; Format: + `projects/{project}/locations/{location}/extensions/{extension}` + */ + public java.lang.String getName() { + return name; + } - /** Required. The resource name of the Location to list Features. Format for entity_type as parent: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - Format for feature_group as parent: - `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ - public java.lang.String getParent() { - return parent; + /** + * Required. Name (identifier) of the extension; Format: + * `projects/{project}/locations/{location}/extensions/{extension}` + */ + public Query 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/[^/]+/extensions/[^/]+$"); } + this.name = name; + return this; + } + + @Override + public Query set(String parameterName, Object value) { + return (Query) 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/[^/]+/extensions/[^/]+/operations/[^/]+$"); /** - * Required. The resource name of the Location to list Features. Format for entity_type - * as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/enti - * tyTypes/{entity_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * 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 */ - public List setParent(java.lang.String parent) { + 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$"); } - this.parent = parent; - return this; } - /** - * Lists the Features that match the filter expression. The following filters are - * supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports - * =, !=, <, >, >=, and <= comparisons. Values must be in RFC 3339 format. * - * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC - * 3339 format. * `labels`: Supports key-value equality as well as key presence. - * Examples: * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `create_time > - * \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> - * EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = - * yes AND labels.env = prod` --> Features having both (active: yes) and (env: prod) - * labels. * `labels.env: *` --> Any Feature which has a label with 'env' as the key. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Lists the Features that match the filter expression. The following filters are supported: * - `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, <, >, >=, and <= - comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= - comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as - key presence. Examples: * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `create_time > - \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes - created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` - --> Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --> Any Feature - which has a label with 'env' as the key. - */ - public java.lang.String getFilter() { - return filter; + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } - /** - * Lists the Features that match the filter expression. The following filters are - * supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports - * =, !=, <, >, >=, and <= comparisons. Values must be in RFC 3339 format. * - * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC - * 3339 format. * `labels`: Supports key-value equality as well as key presence. - * Examples: * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `create_time > - * \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> - * EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = - * yes AND labels.env = prod` --> Features having both (active: yes) and (env: prod) - * labels. * `labels.env: *` --> Any Feature which has a label with 'env' as the key. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } - /** - * Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent - * ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid - * value is [0, 10]. If number of stats exists < ListFeaturesRequest.latest_stats_count, - * return all existing stats. - */ - @com.google.api.client.util.Key - private java.lang.Integer latestStatsCount; - - /** Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent - ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, - 10]. If number of stats exists < ListFeaturesRequest.latest_stats_count, return all existing stats. - */ - public java.lang.Integer getLatestStatsCount() { - return latestStatsCount; + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } - /** - * Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent - * ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid - * value is [0, 10]. If number of stats exists < ListFeaturesRequest.latest_stats_count, - * return all existing stats. - */ - public List setLatestStatsCount(java.lang.Integer latestStatsCount) { - this.latestStatsCount = latestStatsCount; - return this; + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported fields: * `feature_id` * `value_type` - * (Not supported for FeatureRegistry Feature) * `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: * `feature_id` * `value_type` (Not supported for - FeatureRegistry Feature) * `create_time` * `update_time` - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported fields: * `feature_id` * `value_type` - * (Not supported for FeatureRegistry Feature) * `create_time` * `update_time` - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } - /** - * The maximum number of Features to return. The service may return fewer than this - * value. If unspecified, at most 1000 Features will be returned. The maximum value is - * 1000; any value greater than 1000 will be coerced to 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of Features to return. The service may return fewer than this value. If - unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater - than 1000 will be coerced to 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } - /** - * The maximum number of Features to return. The service may return fewer than this - * value. If unspecified, at most 1000 Features will be returned. The maximum value is - * 1000; any value greater than 1000 will be coerced to 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } - /** - * A page token, received from a previous FeaturestoreService.ListFeatures call or - * FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match - * the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - /** A page token, received from a previous FeaturestoreService.ListFeatures call or - FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When - paginating, all other parameters provided to FeaturestoreService.ListFeatures or - FeatureRegistryService.ListFeatures must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } - /** - * A page token, received from a previous FeaturestoreService.ListFeatures call or - * FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match - * the call that provided the page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } - /** Mask specifying which fields to read. */ + /** The name of the operation resource to be cancelled. */ @com.google.api.client.util.Key - private String readMask; + private java.lang.String name; - /** Mask specifying which fields to read. + /** The name of the operation resource to be cancelled. */ - public String getReadMask() { - return readMask; + public java.lang.String getName() { + return name; } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; + /** 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/[^/]+/extensions/[^/]+/operations/[^/]+$"); + } + this.name = name; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Updates the parameters of a single Feature. + * 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 "features.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{feat - * urestore}/entityTypes/{entity_type}/features/{feature}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - * The last part feature is assigned by the client. The feature can be up to 64 characters - * long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII - * digits 0-9 starting with a letter. The value will be unique given an entity type. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} + * @param name The name of the operation resource to be deleted. * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Patch 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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$"); /** - * Updates the parameters of a single Feature. + * 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 "features.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

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

* - * @param name Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{feat - * urestore}/entityTypes/{entity_type}/features/{feature}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - * The last part feature is assigned by the client. The feature can be up to 64 characters - * long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII - * digits 0-9 starting with a letter. The value will be unique given an entity type. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} + * @param name The name of the operation resource to be deleted. * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + 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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** - * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/feat - * urestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{pro - * ject}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last - * part feature is assigned by the client. The feature can be up to 64 characters long - * and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII - * digits 0-9 starting with a letter. The value will be unique given an entity type. - */ + /** The name of the operation resource to be deleted. */ @com.google.api.client.util.Key private java.lang.String name; - /** Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{fea - turestore}/entityTypes/{entity_type}/features/{feature}` - `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last - part feature is assigned by the client. The feature can be up to 64 characters long and can consist - only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a - letter. The value will be unique given an entity type. + /** The name of the operation resource to be deleted. */ public java.lang.String getName() { return name; } - /** - * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/feat - * urestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{pro - * ject}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last - * part feature is assigned by the client. The feature can be up to 64 characters long - * and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII - * digits 0-9 starting with a letter. The value will be unique given an entity type. - */ - public Patch setName(java.lang.String name) { + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$"); } this.name = name; return this; } - /** - * Field mask is used to specify the fields to be overwritten in the Features resource - * by the update. The fields specified in the update_mask are relative to the resource, - * not the full request. A field will be overwritten if it is in the mask. If the user - * does not provide a mask then only the non-empty fields present in the request will be - * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * - * `description` * `labels` * `disable_monitoring` (Not supported for - * FeatureRegistryService Feature) * `point_of_contact` (Not supported for - * FeaturestoreService FeatureStore) - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Field mask is used to specify the fields to be overwritten in the Features resource by the update. - The fields specified in the update_mask are relative to the resource, not the full request. A field - will be overwritten if it is in the mask. If the user does not provide a mask then only the non- - empty fields present in the request will be overwritten. Set the update_mask to `*` to override all - fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for - FeatureRegistryService Feature) * `point_of_contact` (Not supported for FeaturestoreService - FeatureStore) - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Field mask is used to specify the fields to be overwritten in the Features resource - * by the update. The fields specified in the update_mask are relative to the resource, - * not the full request. A field will be overwritten if it is in the mask. If the user - * does not provide a mask then only the non-empty fields present in the request will be - * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * - * `description` * `labels` * `disable_monitoring` (Not supported for - * FeatureRegistryService Feature) * `point_of_contact` (Not supported for - * FeaturestoreService FeatureStore) - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Operations collection. + * 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. * - *

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.get". * - * @return the resource collection + * 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 Operations operations() { - return new Operations(); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - /** - * The "operations" collection of methods. - */ - public class Operations { + 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/[^/]+/extensions/[^/]+/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`. + * 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.delete". + * 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 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 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 to be deleted. - * @return the request + * @param name The name of the operation resource. + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(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.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/[^/]+/extensions/[^/]+/operations/[^/]+$"); + } } - public class Delete 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** - * 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + /** 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/[^/]+/extensions/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - /** The name of the operation resource to be deleted. */ - @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 + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + public class List 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensions/[^/]+$"); - @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. + * 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.get". + * 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 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 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. - * @return the request + * @param name The name of the operation's parent resource. + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(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/[^/]+/extensions/[^/]+$"); + } } - 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); - } - } + @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 Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @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's parent resource. + */ + public java.lang.String getName() { + return name; + } - /** The name of the operation 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/[^/]+/extensions/[^/]+$"); } + this.name = name; + return this; + } - /** 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @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 + /** The standard list filter. */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + public java.lang.String getFilter() { + return filter; } - 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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** - * 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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); - } - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @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. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + /** 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 setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** + * 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 setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @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 setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + public class Wait extends AiplatformRequest { - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + private static final String REST_PATH = "v1beta1/{+name}:wait"; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$"); - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** + * 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/[^/]+/extensions/[^/]+/operations/[^/]+$"); } + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - /** 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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * 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 name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - /** 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 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/[^/]+/extensions/[^/]+/operations/[^/]+$"); } + 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; - } + /** + * 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 set(String parameterName, Object value) { - return (List) 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; } + /** - * 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 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 wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; } - public class Wait extends AiplatformRequest { + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } - private static final String REST_PATH = "v1beta1/{+name}:wait"; + } + } + /** + * An accessor for creating requests from the FeatureGroups collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.FeatureGroups.List request = aiplatform.featureGroups().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public FeatureGroups featureGroups() { + return new FeatureGroups(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); + /** + * The "featureGroups" collection of methods. + */ + public class FeatureGroups { - /** - * 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); - } - } + /** + * Creates a new FeatureGroup in a given project and location. + * + * Create a request for the method "featureGroups.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 FeatureGroups. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + public class Create extends AiplatformRequest { - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+parent}/featureGroups"; - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + /** + * Creates a new FeatureGroup in a given project and location. + * + * Create a request for the method "featureGroups.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 FeatureGroups. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup 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 Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) 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 Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) 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 Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) 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; - } + /** + * Required. The resource name of the Location to create FeatureGroups. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * 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; - } + /** Required. The resource name of the Location to create FeatureGroups. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } + /** + * Required. The resource name of the Location to create FeatureGroups. 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; + } + + /** + * Required. The ID to use for this FeatureGroup, which will become the final component of + * the FeatureGroup's resource name. This value may be up to 128 characters, and valid + * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be + * unique within the project and location. + */ + @com.google.api.client.util.Key + private java.lang.String featureGroupId; + + /** Required. The ID to use for this FeatureGroup, which will become the final component of the + FeatureGroup's resource name. This value may be up to 128 characters, and valid characters are + `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project + and location. + */ + public java.lang.String getFeatureGroupId() { + return featureGroupId; + } + + /** + * Required. The ID to use for this FeatureGroup, which will become the final component of + * the FeatureGroup's resource name. This value may be up to 128 characters, and valid + * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be + * unique within the project and location. + */ + public Create setFeatureGroupId(java.lang.String featureGroupId) { + this.featureGroupId = featureGroupId; + return this; + } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * An accessor for creating requests from the Operations collection. + * Deletes a single FeatureGroup. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-         * 
+ * Create a request for the method "featureGroups.delete". * - * @return the resource collection + * 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 FeatureGroup to be deleted. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @return the request */ - public Operations operations() { - return new Operations(); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - /** - * The "operations" collection of methods. - */ - public class Operations { + 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/[^/]+/featureGroups/[^/]+$"); /** - * 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 single FeatureGroup. * - * Create a request for the method "operations.delete". + * Create a request for the method "featureGroups.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 name of the FeatureGroup to be deleted. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @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.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/[^/]+/featureGroups/[^/]+$"); + } } - 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/[^/]+/featureGroups/[^/]+/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/[^/]+/featureGroups/[^/]+/operations/[^/]+$"); - } - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @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 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 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 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 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 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 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 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 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 setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The name of the FeatureGroup to be deleted. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The name of the FeatureGroup to be deleted. Format: + `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + public java.lang.String getName() { + return name; + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; + /** + * Required. The name of the FeatureGroup to be deleted. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + 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/[^/]+/featureGroups/[^/]+$"); } + this.name = name; + return this; + } - /** 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/[^/]+/featureGroups/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * If set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, + * the request will only work if the FeatureGroup has no Features.) + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } + /** If set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request + will only work if the FeatureGroup has no Features.) + */ + public java.lang.Boolean getForce() { + return force; } + /** - * 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 + * If set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, + * the request will only work if the FeatureGroup has no Features.) */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; } - 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/[^/]+/featureGroups/[^/]+/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/[^/]+/featureGroups/[^/]+/operations/[^/]+$"); - } - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single FeatureGroup. + * + * Create a request for the method "featureGroups.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 FeatureGroup resource. + * @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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Get 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}"; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + /** + * Gets details of a single FeatureGroup. + * + * Create a request for the method "featureGroups.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 FeatureGroup resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup.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/[^/]+/featureGroups/[^/]+$"); } + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** The name of the operation resource. */ - @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. - */ - 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. */ - 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/[^/]+/featureGroups/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the FeatureGroup resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the FeatureGroup resource. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the FeatureGroup 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/[^/]+/featureGroups/[^/]+$"); } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "featureGroups.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/[^/]+/featureGroups/[^/]+$"); + /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * 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 "operations.list". + * Create a request for the method "featureGroups.getIamPolicy". * - * 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 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 name The name of the operation's parent resource. - * @return the request + * @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 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + 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/[^/]+/featureGroups/[^/]+$"); + } } - public class List extends AiplatformRequest { + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}/operations"; + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } - /** - * 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/[^/]+/featureGroups/[^/]+$"); - } - } + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** + * 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; - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** 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; + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + /** + * 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/[^/]+/featureGroups/[^/]+$"); } + this.resource = resource; + return this; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** + * 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; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** 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; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** + * 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; + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Lists FeatureGroups in a given project and location. + * + * Create a request for the method "featureGroups.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 FeatureGroups. 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; + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + public class List extends AiplatformRequest { - /** 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/[^/]+/featureGroups/[^/]+$"); - } - this.name = name; - return this; - } + private static final String REST_PATH = "v1beta1/{+parent}/featureGroups"; - /** 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/[^/]+/featureGroups/[^/]+/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/[^/]+/featureGroups/[^/]+/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/[^/]+/featureGroups/[^/]+/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 FeatureOnlineStores collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.FeatureOnlineStores.List request = aiplatform.featureOnlineStores().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public FeatureOnlineStores featureOnlineStores() { - return new FeatureOnlineStores(); - } - - /** - * The "featureOnlineStores" collection of methods. - */ - public class FeatureOnlineStores { - - /** - * Creates a new FeatureOnlineStore in a given project and location. - * - * Create a request for the method "featureOnlineStores.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 FeatureOnlineStores. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore 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}/featureOnlineStores"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates a new FeatureOnlineStore in a given project and location. + * Lists FeatureGroups in a given project and location. * - * Create a request for the method "featureOnlineStores.create". + * Create a request for the method "featureGroups.list". * * 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.

+ * 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 create FeatureOnlineStores. Format: + * @param parent Required. The resource name of the Location to list FeatureGroups. Format: * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse.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(), @@ -88888,68 +84124,78 @@ protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1b } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) 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 name of the Location to create FeatureOnlineStores. Format: + * Required. The resource name of the Location to list FeatureGroups. 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 FeatureOnlineStores. Format: + /** Required. The resource name of the Location to list FeatureGroups. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -88957,10 +84203,10 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Location to create FeatureOnlineStores. Format: + * Required. The resource name of the Location to list FeatureGroups. Format: * `projects/{project}/locations/{location}` */ - public Create setParent(java.lang.String parent) { + 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 " + @@ -88971,458 +84217,421 @@ public Create setParent(java.lang.String parent) { } /** - * Required. The ID to use for this FeatureOnlineStore, which will become the final - * component of the FeatureOnlineStore's resource name. This value may be up to 60 - * characters, and valid characters are `[a-z0-9_]`. The first character cannot be a - * number. The value must be unique within the project and location. + * Lists the FeatureGroups that match the filter expression. The following fields are + * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, + * and `>=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value + * equality and key presence. Examples: * `create_time > "2020-01-01" OR update_time > + * "2020-01-01"` FeatureGroups created or updated after 2020-01-01. * `labels.env = + * "prod"` FeatureGroups with label "env" set to "prod". */ @com.google.api.client.util.Key - private java.lang.String featureOnlineStoreId; + private java.lang.String filter; - /** Required. The ID to use for this FeatureOnlineStore, which will become the final component of the - FeatureOnlineStore's resource name. This value may be up to 60 characters, and valid characters are - `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project - and location. + /** Lists the FeatureGroups that match the filter expression. The following fields are supported: * + `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 + format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be + in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * + `create_time > "2020-01-01" OR update_time > "2020-01-01"` FeatureGroups created or updated after + 2020-01-01. * `labels.env = "prod"` FeatureGroups with label "env" set to "prod". */ - public java.lang.String getFeatureOnlineStoreId() { - return featureOnlineStoreId; + public java.lang.String getFilter() { + return filter; } /** - * Required. The ID to use for this FeatureOnlineStore, which will become the final - * component of the FeatureOnlineStore's resource name. This value may be up to 60 - * characters, and valid characters are `[a-z0-9_]`. The first character cannot be a - * number. The value must be unique within the project and location. + * Lists the FeatureGroups that match the filter expression. The following fields are + * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, + * and `>=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value + * equality and key presence. Examples: * `create_time > "2020-01-01" OR update_time > + * "2020-01-01"` FeatureGroups created or updated after 2020-01-01. * `labels.env = + * "prod"` FeatureGroups with label "env" set to "prod". */ - public Create setFeatureOnlineStoreId(java.lang.String featureOnlineStoreId) { - this.featureOnlineStoreId = featureOnlineStoreId; + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews. - * - * Create a request for the method "featureOnlineStores.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 FeatureOnlineStore to be deleted. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - * @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/[^/]+/featureOnlineStores/[^/]+$"); - /** - * Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews. - * - * Create a request for the method "featureOnlineStores.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 FeatureOnlineStore to be deleted. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - * @since 1.13 + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. Supported Fields: * `create_time` * `update_time` */ - 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/[^/]+/featureOnlineStores/[^/]+$"); - } - } + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) 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. Supported Fields: * `create_time` * `update_time` + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. Supported Fields: * `create_time` * `update_time` + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + /** + * The maximum number of FeatureGroups to return. The service may return fewer than this + * value. If unspecified, at most 100 FeatureGroups will be returned. The maximum value is + * 100; any value greater than 100 will be coerced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @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 FeatureOnlineStore to be deleted. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the FeatureOnlineStore to be deleted. Format: - `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - */ - public java.lang.String getName() { - return name; + /** The maximum number of FeatureGroups to return. The service may return fewer than this value. If + unspecified, at most 100 FeatureGroups will be returned. The maximum value is 100; any value + greater than 100 will be coerced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Required. The name of the FeatureOnlineStore to be deleted. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * The maximum number of FeatureGroups to return. The service may return fewer than this + * value. If unspecified, at most 100 FeatureGroups will be returned. The maximum value is + * 100; any value greater than 100 will be coerced to 100. */ - 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/[^/]+/featureOnlineStores/[^/]+$"); - } - this.name = name; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } /** - * If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be - * deleted. (Otherwise, the request will only work if the FeatureOnlineStore has no - * FeatureViews.) + * A page token, received from a previous FeatureRegistryService.ListFeatureGroups call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to FeatureRegistryService.ListFeatureGroups must match the call that provided + * the page token. */ @com.google.api.client.util.Key - private java.lang.Boolean force; + private java.lang.String pageToken; - /** If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be deleted. - (Otherwise, the request will only work if the FeatureOnlineStore has no FeatureViews.) + /** A page token, received from a previous FeatureRegistryService.ListFeatureGroups call. Provide this + to retrieve the subsequent page. When paginating, all other parameters provided to + FeatureRegistryService.ListFeatureGroups must match the call that provided the page token. */ - public java.lang.Boolean getForce() { - return force; + public java.lang.String getPageToken() { + return pageToken; } /** - * If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be - * deleted. (Otherwise, the request will only work if the FeatureOnlineStore has no - * FeatureViews.) + * A page token, received from a previous FeatureRegistryService.ListFeatureGroups call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to FeatureRegistryService.ListFeatureGroups must match the call that provided + * the page token. */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Gets details of a single FeatureOnlineStore. + * Updates the parameters of a single FeatureGroup. * - * Create a request for the method "featureOnlineStores.get". + * Create a request for the method "featureGroups.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. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. The name of the FeatureOnlineStore resource. + * @param name Identifier. Name of the FeatureGroup. Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Get extends AiplatformRequest { + 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/[^/]+/featureOnlineStores/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); /** - * Gets details of a single FeatureOnlineStore. + * Updates the parameters of a single FeatureGroup. * - * Create a request for the method "featureOnlineStores.get". + * Create a request for the method "featureGroups.patch". * * 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.

+ * 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 FeatureOnlineStore resource. + * @param name Identifier. Name of the FeatureGroup. Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore.class); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureGroup 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/[^/]+/featureOnlineStores/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the FeatureOnlineStore resource. */ + /** + * Identifier. Name of the FeatureGroup. Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the FeatureOnlineStore resource. + /** Identifier. Name of the FeatureGroup. Format: + `projects/{project}/locations/{location}/featureGroups/{featureGroup}` */ public java.lang.String getName() { return name; } - /** Required. The name of the FeatureOnlineStore resource. */ - public Get setName(java.lang.String name) { + /** + * Identifier. Name of the FeatureGroup. Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + */ + 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/[^/]+/featureOnlineStores/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); } this.name = name; return this; } + /** + * Field mask is used to specify the fields to be overwritten in the FeatureGroup resource + * by the update. The fields specified in the update_mask are relative to the resource, + * not the full request. A field will be overwritten if it is in the mask. If the user + * does not provide a mask then only the non-empty fields present in the request will be + * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * + * `labels` * `description` * `big_query` * `big_query.entity_id_columns` * + * `service_agent_type` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the + update. The fields specified in the update_mask are relative to the resource, not the full request. + A field will be overwritten if it is in the mask. If the user does not provide a mask then only the + non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override + all fields. Updatable fields: * `labels` * `description` * `big_query` * + `big_query.entity_id_columns` * `service_agent_type` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Field mask is used to specify the fields to be overwritten in the FeatureGroup resource + * by the update. The fields specified in the update_mask are relative to the resource, + * not the full request. A field will be overwritten if it is in the mask. If the user + * does not provide a mask then only the non-empty fields present in the request will be + * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * + * `labels` * `description` * `big_query` * `big_query.entity_id_columns` * + * `service_agent_type` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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. + * 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 "featureOnlineStores.getIamPolicy". + * Create a request for the method "featureGroups.setIamPolicy". * * 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 SetIamPolicy#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * @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 GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); + 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 GetIamPolicy extends AiplatformRequest { + public class SetIamPolicy extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+resource}:getIamPolicy"; + private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. + * 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 "featureOnlineStores.getIamPolicy". + * Create a request for the method "featureGroups.setIamPolicy". * * 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 + * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote * operation.

{@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 requested. See [Resource + * @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 GetIamPolicy(java.lang.String resource) { - super(Aiplatform.this, "POST", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1Policy.class); + 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/[^/]+/featureOnlineStores/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); } } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy is being requested. See [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. */ @com.google.api.client.util.Key private java.lang.String resource; - /** REQUIRED: The resource for which the policy is being requested. See [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. */ @@ -89431,4470 +84640,3156 @@ public java.lang.String getResource() { } /** - * REQUIRED: The resource for which the policy is being requested. See [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 GetIamPolicy setResource(java.lang.String resource) { + 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/[^/]+/featureOnlineStores/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); } 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); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Lists FeatureOnlineStores in a given project and location. + * 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 "featureOnlineStores.list". + * Create a request for the method "featureGroups.testIamPermissions". * * 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 TestIamPermissions#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location to list FeatureOnlineStores. Format: - * `projects/{project}/locations/{location}` + * @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 List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource); initialize(result); return result; } - public class List extends AiplatformRequest { + public class TestIamPermissions extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/featureOnlineStores"; + private static final String REST_PATH = "v1beta1/{+resource}:testIamPermissions"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); /** - * Lists FeatureOnlineStores in a given project and location. + * 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 "featureOnlineStores.list". + * Create a request for the method "featureGroups.testIamPermissions". * * 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 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 parent Required. The resource name of the Location to list FeatureOnlineStores. Format: - * `projects/{project}/locations/{location}` + * @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 List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Location to list FeatureOnlineStores. Format: - * `projects/{project}/locations/{location}` + * 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 parent; + private java.lang.String resource; - /** Required. The resource name of the Location to list FeatureOnlineStores. Format: - `projects/{project}/locations/{location}` + /** 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 getParent() { - return parent; + public java.lang.String getResource() { + return resource; } /** - * Required. The resource name of the Location to list FeatureOnlineStores. Format: - * `projects/{project}/locations/{location}` + * 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 List setParent(java.lang.String parent) { + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); } - this.parent = parent; - return this; - } - - /** - * Lists the FeatureOnlineStores that match the filter expression. The following fields - * are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` - * comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, - * `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * `labels`: - * Supports key-value equality and key presence. Examples: * `create_time > "2020-01-01" - * OR update_time > "2020-01-01"` FeatureOnlineStores created or updated after 2020-01-01. - * * `labels.env = "prod"` FeatureOnlineStores with label "env" set to "prod". - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Lists the FeatureOnlineStores that match the filter expression. The following fields are supported: - * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC - 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must - be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * - `create_time > "2020-01-01" OR update_time > "2020-01-01"` FeatureOnlineStores created or updated - after 2020-01-01. * `labels.env = "prod"` FeatureOnlineStores with label "env" set to "prod". - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Lists the FeatureOnlineStores that match the filter expression. The following fields - * are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` - * comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, - * `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * `labels`: - * Supports key-value equality and key presence. Examples: * `create_time > "2020-01-01" - * OR update_time > "2020-01-01"` FeatureOnlineStores created or updated after 2020-01-01. - * * `labels.env = "prod"` FeatureOnlineStores with label "env" set to "prod". - */ - 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: * `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: * `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: * `create_time` * `update_time` - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * The maximum number of FeatureOnlineStores to return. The service may return fewer than - * this value. If unspecified, at most 100 FeatureOnlineStores will be returned. The - * maximum value is 100; any value greater than 100 will be coerced to 100. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of FeatureOnlineStores to return. The service may return fewer than this value. - If unspecified, at most 100 FeatureOnlineStores will be returned. The maximum value is 100; any - value greater than 100 will be coerced to 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * The maximum number of FeatureOnlineStores to return. The service may return fewer than - * this value. If unspecified, at most 100 FeatureOnlineStores will be returned. The - * maximum value is 100; any value greater than 100 will be coerced to 100. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + this.resource = resource; return this; } /** - * A page token, received from a previous - * FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this to retrieve - * the subsequent page. When paginating, all other parameters provided to - * FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call that - * provided the page token. + * 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.lang.String pageToken; + private java.util.List permissions; - /** A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. - Provide this to retrieve the subsequent page. When paginating, all other parameters provided to - FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call that provided the page - token. + /** 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.lang.String getPageToken() { - return pageToken; + public java.util.List getPermissions() { + return permissions; } /** - * A page token, received from a previous - * FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this to retrieve - * the subsequent page. When paginating, all other parameters provided to - * FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call that - * provided the page token. + * 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 List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public TestIamPermissions setPermissions(java.util.List permissions) { + this.permissions = permissions; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + /** - * Updates the parameters of a single FeatureOnlineStore. - * - * Create a request for the method "featureOnlineStores.patch". + * An accessor for creating requests from the FeatureMonitors 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. + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.FeatureMonitors.List request = aiplatform.featureMonitors().list(parameters ...)}
+         * 
* - * @param name Identifier. Name of the FeatureOnlineStore. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore} - * @return the request + * @return the resource collection */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; + public FeatureMonitors featureMonitors() { + return new FeatureMonitors(); } - 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/[^/]+/featureOnlineStores/[^/]+$"); + /** + * The "featureMonitors" collection of methods. + */ + public class FeatureMonitors { /** - * Updates the parameters of a single FeatureOnlineStore. + * Creates a new FeatureMonitor in a given project, location and FeatureGroup. * - * Create a request for the method "featureOnlineStores.patch". + * Create a request for the method "featureMonitors.create". * - * 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.

+ * 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 name Identifier. Name of the FeatureOnlineStore. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore} - * @since 1.13 + * @param parent Required. The resource name of FeatureGroup to create FeatureMonitor. Format: + * `projects/{project}/locations/{location}/featureGroups/{featuregroup}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor} + * @return the request */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore 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/[^/]+/featureOnlineStores/[^/]+$"); - } + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class Create extends AiplatformRequest { - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+parent}/featureMonitors"; - @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/[^/]+/featureGroups/[^/]+$"); - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + /** + * Creates a new FeatureMonitor in a given project, location and FeatureGroup. + * + * Create a request for the method "featureMonitors.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 FeatureGroup to create FeatureMonitor. Format: + * `projects/{project}/locations/{location}/featureGroups/{featuregroup}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor 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/[^/]+/featureGroups/[^/]+$"); + } + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - /** - * Identifier. Name of the FeatureOnlineStore. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** Identifier. Name of the FeatureOnlineStore. Format: - `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** - * Identifier. Name of the FeatureOnlineStore. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` - */ - 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/[^/]+/featureOnlineStores/[^/]+$"); + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } - this.name = name; - return this; - } - /** - * Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore - * resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. If - * the user does not provide a mask then only the non-empty fields present in the request - * will be overwritten. Set the update_mask to `*` to override all fields. Updatable - * fields: * `labels` * `description` * `bigtable` * `bigtable.auto_scaling` * - * `bigtable.enable_multi_region_replica` - */ - @com.google.api.client.util.Key - private String updateMask; + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - /** Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by - the update. The fields specified in the update_mask are relative to the resource, not the full - request. A field will be overwritten if it is in the mask. If the user does not provide a mask then - only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to - override all fields. Updatable fields: * `labels` * `description` * `bigtable` * - `bigtable.auto_scaling` * `bigtable.enable_multi_region_replica` - */ - public String getUpdateMask() { - return updateMask; - } + /** + * Required. The resource name of FeatureGroup to create FeatureMonitor. Format: + * `projects/{project}/locations/{location}/featureGroups/{featuregroup}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore - * resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. If - * the user does not provide a mask then only the non-empty fields present in the request - * will be overwritten. Set the update_mask to `*` to override all fields. Updatable - * fields: * `labels` * `description` * `bigtable` * `bigtable.auto_scaling` * - * `bigtable.enable_multi_region_replica` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + /** Required. The resource name of FeatureGroup to create FeatureMonitor. Format: + `projects/{project}/locations/{location}/featureGroups/{featuregroup}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) 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 "featureOnlineStores.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; - } + /** + * Required. The resource name of FeatureGroup to create FeatureMonitor. Format: + * `projects/{project}/locations/{location}/featureGroups/{featuregroup}` + */ + 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/[^/]+/featureGroups/[^/]+$"); + } + this.parent = parent; + return this; + } - public class SetIamPolicy extends AiplatformRequest { + /** + * Required. The ID to use for this FeatureMonitor, which will become the final + * component of the FeatureGroup's resource name. This value may be up to 60 characters, + * and valid characters are `[a-z0-9_]`. The first character cannot be a number. The + * value must be unique within the FeatureGroup. + */ + @com.google.api.client.util.Key + private java.lang.String featureMonitorId; - private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; + /** Required. The ID to use for this FeatureMonitor, which will become the final component of the + FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are + `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the + FeatureGroup. + */ + public java.lang.String getFeatureMonitorId() { + return featureMonitorId; + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); + /** + * Required. The ID to use for this FeatureMonitor, which will become the final + * component of the FeatureGroup's resource name. This value may be up to 60 characters, + * and valid characters are `[a-z0-9_]`. The first character cannot be a number. The + * value must be unique within the FeatureGroup. + */ + public Create setFeatureMonitorId(java.lang.String featureMonitorId) { + this.featureMonitorId = featureMonitorId; + return this; + } + @Override + public Create set(String parameterName, Object value) { + return (Create) 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. + * Deletes a single FeatureMonitor. * - * Create a request for the method "featureOnlineStores.setIamPolicy". + * Create a request for the method "featureMonitors.delete". * - * 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 Delete#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 Required. The name of the FeatureMonitor to be deleted. Format: `projects/{project}/locations/{locat + * ion}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + * @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/[^/]+/featureOnlineStores/[^/]+$"); - } + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } + public class Delete extends AiplatformRequest { - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @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/[^/]+/featureOnlineStores/[^/]+$"); - } - 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 "featureOnlineStores.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/[^/]+/featureOnlineStores/[^/]+$"); - - /** - * 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 "featureOnlineStores.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/[^/]+/featureOnlineStores/[^/]+$"); - } - } - - @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/[^/]+/featureOnlineStores/[^/]+$"); - } - 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 FeatureViews collection. - * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.FeatureViews.List request = aiplatform.featureViews().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public FeatureViews featureViews() { - return new FeatureViews(); - } - - /** - * The "featureViews" collection of methods. - */ - public class FeatureViews { - - /** - * Creates a new FeatureView in a given FeatureOnlineStore. - * - * Create a request for the method "featureViews.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 FeatureOnlineStore to create FeatureViews. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView 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}/featureViews"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); /** - * Creates a new FeatureView in a given FeatureOnlineStore. + * Deletes a single FeatureMonitor. * - * Create a request for the method "featureViews.create". + * Create a request for the method "featureMonitors.delete". * * 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. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

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

* - * @param parent Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView} + * @param name Required. The name of the FeatureMonitor to be deleted. Format: `projects/{project}/locations/{locat + * ion}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView 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."); + 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * Required. The name of the FeatureMonitor to be deleted. Format: `projects/{project}/l + * ocations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: - `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + /** Required. The name of the FeatureMonitor to be deleted. Format: `projects/{project}/locations/{loca + tion}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * Required. The name of the FeatureMonitor to be deleted. Format: `projects/{project}/l + * ocations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` */ - public Create setParent(java.lang.String parent) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); } - this.parent = parent; - return this; - } - - /** - * Required. The ID to use for the FeatureView, which will become the final component of - * the FeatureView's resource name. This value may be up to 60 characters, and valid - * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be - * unique within a FeatureOnlineStore. - */ - @com.google.api.client.util.Key - private java.lang.String featureViewId; - - /** Required. The ID to use for the FeatureView, which will become the final component of the - FeatureView's resource name. This value may be up to 60 characters, and valid characters are - `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a - FeatureOnlineStore. - */ - public java.lang.String getFeatureViewId() { - return featureViewId; - } - - /** - * Required. The ID to use for the FeatureView, which will become the final component of - * the FeatureView's resource name. This value may be up to 60 characters, and valid - * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be - * unique within a FeatureOnlineStore. - */ - public Create setFeatureViewId(java.lang.String featureViewId) { - this.featureViewId = featureViewId; - return this; - } - - /** - * Immutable. If set to true, one on demand sync will be run immediately, regardless - * whether the FeatureView.sync_config is configured or not. - */ - @com.google.api.client.util.Key - private java.lang.Boolean runSyncImmediately; - - /** Immutable. If set to true, one on demand sync will be run immediately, regardless whether the - FeatureView.sync_config is configured or not. - */ - public java.lang.Boolean getRunSyncImmediately() { - return runSyncImmediately; - } - - /** - * Immutable. If set to true, one on demand sync will be run immediately, regardless - * whether the FeatureView.sync_config is configured or not. - */ - public Create setRunSyncImmediately(java.lang.Boolean runSyncImmediately) { - this.runSyncImmediately = runSyncImmediately; + this.name = name; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Deletes a single FeatureView. + * Gets details of a single FeatureMonitor. * - * Create a request for the method "featureViews.delete". + * Create a request for the method "featureMonitors.get". * * 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. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{location - * }/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * @param name Required. The name of the FeatureMonitor resource. * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Delete 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); /** - * Deletes a single FeatureView. + * Gets details of a single FeatureMonitor. * - * Create a request for the method "featureViews.delete". + * Create a request for the method "featureMonitors.get". * * 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.

+ * 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 FeatureView to be deleted. Format: `projects/{project}/locations/{location - * }/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + * @param name Required. The name of the FeatureMonitor resource. * @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); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor.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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** - * Required. The name of the FeatureView to be deleted. Format: `projects/{project}/loca - * tions/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_vie - * w}` - */ + @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 FeatureMonitor resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{locatio - n}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /** Required. The name of the FeatureMonitor resource. */ public java.lang.String getName() { return name; } - /** - * Required. The name of the FeatureView to be deleted. Format: `projects/{project}/loca - * tions/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_vie - * w}` - */ - public Delete setName(java.lang.String name) { + /** Required. The name of the FeatureMonitor 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); } this.name = name; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Bidirectional streaming RPC to directly write to feature values in a feature view. Requests may - * not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce - * latency. + * Lists FeatureGroups in a given project and location. * - * Create a request for the method "featureViews.directWrite". + * Create a request for the method "featureMonitors.list". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link DirectWrite#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param featureView FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnl - * ineStore}/featureViews/{featureView}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest} + * @param parent Required. The resource name of the FeatureGroup to list FeatureMonitors. Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` * @return the request */ - public DirectWrite directWrite(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest content) throws java.io.IOException { - DirectWrite result = new DirectWrite(featureView, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class DirectWrite extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+featureView}:directWrite"; + private static final String REST_PATH = "v1beta1/{+parent}/featureMonitors"; - private final java.util.regex.Pattern FEATURE_VIEW_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); /** - * Bidirectional streaming RPC to directly write to feature values in a feature view. Requests may - * not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce - * latency. + * Lists FeatureGroups in a given project and location. * - * Create a request for the method "featureViews.directWrite". + * Create a request for the method "featureMonitors.list". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link DirectWrite#execute()} method to invoke the remote - * operation.

{@link - * DirectWrite#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 featureView FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnl - * ineStore}/featureViews/{featureView}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest} + * @param parent Required. The resource name of the FeatureGroup to list FeatureMonitors. Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` * @since 1.13 */ - protected DirectWrite(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse.class); - this.featureView = com.google.api.client.util.Preconditions.checkNotNull(featureView, "Required parameter featureView must be specified."); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse.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(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), - "Parameter featureView must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); } } @Override - public DirectWrite set$Xgafv(java.lang.String $Xgafv) { - return (DirectWrite) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DirectWrite setAccessToken(java.lang.String accessToken) { - return (DirectWrite) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public DirectWrite setAlt(java.lang.String alt) { - return (DirectWrite) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public DirectWrite setCallback(java.lang.String callback) { - return (DirectWrite) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public DirectWrite setFields(java.lang.String fields) { - return (DirectWrite) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public DirectWrite setKey(java.lang.String key) { - return (DirectWrite) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public DirectWrite setOauthToken(java.lang.String oauthToken) { - return (DirectWrite) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public DirectWrite setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DirectWrite) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public DirectWrite setQuotaUser(java.lang.String quotaUser) { - return (DirectWrite) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public DirectWrite setUploadType(java.lang.String uploadType) { - return (DirectWrite) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public DirectWrite setUploadProtocol(java.lang.String uploadProtocol) { - return (DirectWrite) 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); } /** - * FeatureView resource format `projects/{project}/locations/{location}/featureOnlineSto - * res/{featureOnlineStore}/featureViews/{featureView}` + * Required. The resource name of the FeatureGroup to list FeatureMonitors. Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` */ @com.google.api.client.util.Key - private java.lang.String featureView; + private java.lang.String parent; - /** FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOn - lineStore}/featureViews/{featureView}` + /** Required. The resource name of the FeatureGroup to list FeatureMonitors. Format: + `projects/{project}/locations/{location}/featureGroups/{featureGroup}` */ - public java.lang.String getFeatureView() { - return featureView; + public java.lang.String getParent() { + return parent; } /** - * FeatureView resource format `projects/{project}/locations/{location}/featureOnlineSto - * res/{featureOnlineStore}/featureViews/{featureView}` + * Required. The resource name of the FeatureGroup to list FeatureMonitors. Format: + * `projects/{project}/locations/{location}/featureGroups/{featureGroup}` */ - public DirectWrite setFeatureView(java.lang.String featureView) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), - "Parameter featureView must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); } - this.featureView = featureView; + this.parent = parent; return this; } - @Override - public DirectWrite set(String parameterName, Object value) { - return (DirectWrite) super.set(parameterName, value); - } - } - /** - * Fetch feature values under a FeatureView. - * - * Create a request for the method "featureViews.fetchFeatureValues". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link FetchFeatureValues#execute()} method to invoke the remote operation. - * - * @param featureView Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{ - * featureOnlineStore}/featureViews/{featureView}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest} - * @return the request - */ - public FetchFeatureValues fetchFeatureValues(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest content) throws java.io.IOException { - FetchFeatureValues result = new FetchFeatureValues(featureView, content); - initialize(result); - return result; - } - - public class FetchFeatureValues extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+featureView}:fetchFeatureValues"; - - private final java.util.regex.Pattern FEATURE_VIEW_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - /** - * Fetch feature values under a FeatureView. - * - * Create a request for the method "featureViews.fetchFeatureValues". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link FetchFeatureValues#execute()} method to invoke the remote - * operation.

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

- * - * @param featureView Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{ - * featureOnlineStore}/featureViews/{featureView}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest} - * @since 1.13 + * Optional. Lists the FeatureMonitors that match the filter expression. The following + * fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` + * comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, + * `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * `labels`: + * Supports key-value equality and key presence. Examples: * `create_time > "2020-01-01" + * OR update_time > "2020-01-01"` FeatureMonitors created or updated after 2020-01-01. * + * `labels.env = "prod"` FeatureGroups with label "env" set to "prod". */ - protected FetchFeatureValues(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse.class); - this.featureView = com.google.api.client.util.Preconditions.checkNotNull(featureView, "Required parameter featureView must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), - "Parameter featureView must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - } - } - - @Override - public FetchFeatureValues set$Xgafv(java.lang.String $Xgafv) { - return (FetchFeatureValues) super.set$Xgafv($Xgafv); - } - - @Override - public FetchFeatureValues setAccessToken(java.lang.String accessToken) { - return (FetchFeatureValues) super.setAccessToken(accessToken); - } - - @Override - public FetchFeatureValues setAlt(java.lang.String alt) { - return (FetchFeatureValues) super.setAlt(alt); - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public FetchFeatureValues setCallback(java.lang.String callback) { - return (FetchFeatureValues) super.setCallback(callback); + /** Optional. Lists the FeatureMonitors that match the filter expression. The following fields are + supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must + be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. + Examples: * `create_time > "2020-01-01" OR update_time > "2020-01-01"` FeatureMonitors created or + updated after 2020-01-01. * `labels.env = "prod"` FeatureGroups with label "env" set to "prod". + */ + public java.lang.String getFilter() { + return filter; } - @Override - public FetchFeatureValues setFields(java.lang.String fields) { - return (FetchFeatureValues) super.setFields(fields); + /** + * Optional. Lists the FeatureMonitors that match the filter expression. The following + * fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` + * comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, + * `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * `labels`: + * Supports key-value equality and key presence. Examples: * `create_time > "2020-01-01" + * OR update_time > "2020-01-01"` FeatureMonitors created or updated after 2020-01-01. * + * `labels.env = "prod"` FeatureGroups with label "env" set to "prod". + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public FetchFeatureValues setKey(java.lang.String key) { - return (FetchFeatureValues) 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. Supported Fields: * `create_time` * + * `update_time` + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public FetchFeatureValues setOauthToken(java.lang.String oauthToken) { - return (FetchFeatureValues) 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. Supported Fields: * `create_time` * `update_time` + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public FetchFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { - return (FetchFeatureValues) 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. Supported Fields: * `create_time` * + * `update_time` + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - @Override - public FetchFeatureValues setQuotaUser(java.lang.String quotaUser) { - return (FetchFeatureValues) super.setQuotaUser(quotaUser); - } + /** + * Optional. The maximum number of FeatureGroups to return. The service may return fewer + * than this value. If unspecified, at most 100 FeatureMonitors will be returned. The + * maximum value is 100; any value greater than 100 will be coerced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public FetchFeatureValues setUploadType(java.lang.String uploadType) { - return (FetchFeatureValues) super.setUploadType(uploadType); + /** Optional. The maximum number of FeatureGroups to return. The service may return fewer than this + value. If unspecified, at most 100 FeatureMonitors will be returned. The maximum value is 100; any + value greater than 100 will be coerced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - @Override - public FetchFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { - return (FetchFeatureValues) super.setUploadProtocol(uploadProtocol); + /** + * Optional. The maximum number of FeatureGroups to return. The service may return fewer + * than this value. If unspecified, at most 100 FeatureMonitors will be returned. The + * maximum value is 100; any value greater than 100 will be coerced to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } /** - * Required. FeatureView resource format `projects/{project}/locations/{location}/featur - * eOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + * Optional. A page token, received from a previous + * FeatureRegistryService.ListFeatureMonitors call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * FeatureRegistryService.ListFeatureMonitors must match the call that provided the page + * token. */ @com.google.api.client.util.Key - private java.lang.String featureView; + private java.lang.String pageToken; - /** Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/ - {featureOnlineStore}/featureViews/{featureView}` + /** Optional. A page token, received from a previous FeatureRegistryService.ListFeatureMonitors call. + Provide this to retrieve the subsequent page. When paginating, all other parameters provided to + FeatureRegistryService.ListFeatureMonitors must match the call that provided the page token. */ - public java.lang.String getFeatureView() { - return featureView; + public java.lang.String getPageToken() { + return pageToken; } /** - * Required. FeatureView resource format `projects/{project}/locations/{location}/featur - * eOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + * Optional. A page token, received from a previous + * FeatureRegistryService.ListFeatureMonitors call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * FeatureRegistryService.ListFeatureMonitors must match the call that provided the page + * token. */ - public FetchFeatureValues setFeatureView(java.lang.String featureView) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), - "Parameter featureView must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - } - this.featureView = featureView; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public FetchFeatureValues set(String parameterName, Object value) { - return (FetchFeatureValues) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * RPC to generate an access token for the given feature view. FeatureViews under the same - * FeatureOnlineStore share the same access token. + * Updates the parameters of a single FeatureMonitor. * - * Create a request for the method "featureViews.generateFetchAccessToken". + * Create a request for the method "featureMonitors.patch". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link GenerateFetchAccessToken#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param featureView FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnl - * ineStore}/featureViews/{featureView}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenRequest} + * @param name Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{location}/featureGrou + * ps/{featureGroup}/featureMonitors/{featureMonitor}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor} * @return the request */ - public GenerateFetchAccessToken generateFetchAccessToken(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenRequest content) throws java.io.IOException { - GenerateFetchAccessToken result = new GenerateFetchAccessToken(featureView, content); + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class GenerateFetchAccessToken extends AiplatformRequest { + public class Patch extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+featureView}:generateFetchAccessToken"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern FEATURE_VIEW_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); /** - * RPC to generate an access token for the given feature view. FeatureViews under the same - * FeatureOnlineStore share the same access token. + * Updates the parameters of a single FeatureMonitor. * - * Create a request for the method "featureViews.generateFetchAccessToken". + * Create a request for the method "featureMonitors.patch". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link GenerateFetchAccessToken#execute()} method to invoke the - * remote operation.

{@link GenerateFetchAccessToken#initialize(com.google.api.client.googleap - * is.services.AbstractGoogleClientRequest)} 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 featureView FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnl - * ineStore}/featureViews/{featureView}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenRequest} + * @param name Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{location}/featureGrou + * ps/{featureGroup}/featureMonitors/{featureMonitor}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor} * @since 1.13 */ - protected GenerateFetchAccessToken(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenResponse.class); - this.featureView = com.google.api.client.util.Preconditions.checkNotNull(featureView, "Required parameter featureView must be specified."); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitor 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(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), - "Parameter featureView must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); } } @Override - public GenerateFetchAccessToken set$Xgafv(java.lang.String $Xgafv) { - return (GenerateFetchAccessToken) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public GenerateFetchAccessToken setAccessToken(java.lang.String accessToken) { - return (GenerateFetchAccessToken) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public GenerateFetchAccessToken setAlt(java.lang.String alt) { - return (GenerateFetchAccessToken) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public GenerateFetchAccessToken setCallback(java.lang.String callback) { - return (GenerateFetchAccessToken) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public GenerateFetchAccessToken setFields(java.lang.String fields) { - return (GenerateFetchAccessToken) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public GenerateFetchAccessToken setKey(java.lang.String key) { - return (GenerateFetchAccessToken) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public GenerateFetchAccessToken setOauthToken(java.lang.String oauthToken) { - return (GenerateFetchAccessToken) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public GenerateFetchAccessToken setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GenerateFetchAccessToken) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public GenerateFetchAccessToken setQuotaUser(java.lang.String quotaUser) { - return (GenerateFetchAccessToken) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public GenerateFetchAccessToken setUploadType(java.lang.String uploadType) { - return (GenerateFetchAccessToken) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public GenerateFetchAccessToken setUploadProtocol(java.lang.String uploadProtocol) { - return (GenerateFetchAccessToken) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * FeatureView resource format `projects/{project}/locations/{location}/featureOnlineSto - * res/{featureOnlineStore}/featureViews/{featureView}` + * Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{locati + * on}/featureGroups/{featureGroup}/featureMonitors/{featureMonitor}` */ @com.google.api.client.util.Key - private java.lang.String featureView; + private java.lang.String name; - /** FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOn - lineStore}/featureViews/{featureView}` + /** Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{location}/featureGro + ups/{featureGroup}/featureMonitors/{featureMonitor}` */ - public java.lang.String getFeatureView() { - return featureView; + public java.lang.String getName() { + return name; } /** - * FeatureView resource format `projects/{project}/locations/{location}/featureOnlineSto - * res/{featureOnlineStore}/featureViews/{featureView}` + * Identifier. Name of the FeatureMonitor. Format: `projects/{project}/locations/{locati + * on}/featureGroups/{featureGroup}/featureMonitors/{featureMonitor}` */ - public GenerateFetchAccessToken setFeatureView(java.lang.String featureView) { + public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), - "Parameter featureView must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); } - this.featureView = featureView; + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * FeatureMonitor resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is + * in the mask. If the user does not provide a mask then only the non-empty fields + * present in the request will be overwritten. Set the update_mask to `*` to override + * all fields. Updatable fields: * `labels` * `description` * `schedule_config` * + * `feature_selection_config` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the FeatureMonitor resource + by the update. The fields specified in the update_mask are relative to the resource, not the full + request. A field will be overwritten if it is in the mask. If the user does not provide a mask then + only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to + override all fields. Updatable fields: * `labels` * `description` * `schedule_config` * + `feature_selection_config` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * FeatureMonitor resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is + * in the mask. If the user does not provide a mask then only the non-empty fields + * present in the request will be overwritten. Set the update_mask to `*` to override + * all fields. Updatable fields: * `labels` * `description` * `schedule_config` * + * `feature_selection_config` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public GenerateFetchAccessToken set(String parameterName, Object value) { - return (GenerateFetchAccessToken) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + /** - * Gets details of a single FeatureView. - * - * Create a request for the method "featureViews.get". + * An accessor for creating requests from the FeatureMonitorJobs collection. * - * 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. + *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.FeatureMonitorJobs.List request = aiplatform.featureMonitorJobs().list(parameters ...)}
+           * 
* - * @param name Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/fea - * tureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - * @return the request + * @return the resource collection */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + public FeatureMonitorJobs featureMonitorJobs() { + return new FeatureMonitorJobs(); } - 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** + * The "featureMonitorJobs" collection of methods. + */ + public class FeatureMonitorJobs { /** - * Gets details of a single FeatureView. + * Creates a new feature monitor job. * - * Create a request for the method "featureViews.get". + * Create a request for the method "featureMonitorJobs.create". * - * 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 Create#execute()} method to invoke the remote operation. * - * @param name Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/fea - * tureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - * @since 1.13 + * @param parent Required. The resource name of FeatureMonitor to create FeatureMonitorJob. Format: `projects/{projec + * t}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitorJob} + * @return the request */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView.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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - } + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitorJob content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Create 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}/featureMonitorJobs"; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** + * Creates a new feature monitor job. + * + * Create a request for the method "featureMonitorJobs.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 FeatureMonitor to create FeatureMonitorJob. Format: `projects/{projec + * t}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitorJob} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitorJob content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitorJob.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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + } + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the FeatureView resource. Format: `projects/{project}/locations - * /{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - /** Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/fe - atureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The name of the FeatureView resource. Format: `projects/{project}/locations - * /{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - */ - 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** + * Required. The resource name of FeatureMonitor to create FeatureMonitorJob. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonit + * ors/{feature_monitor}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of FeatureMonitor to create FeatureMonitorJob. Format: `projects/{proje + ct}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + */ + public java.lang.String getParent() { + return parent; } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. - * - * Create a request for the method "featureViews.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; - } + /** + * Required. The resource name of FeatureMonitor to create FeatureMonitorJob. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonit + * ors/{feature_monitor}` + */ + 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + } + this.parent = parent; + return this; + } - public class GetIamPolicy extends AiplatformRequest { + /** Optional. Output only. System-generated ID for feature monitor job. */ + @com.google.api.client.util.Key + private java.lang.Long featureMonitorJobId; - private static final String REST_PATH = "v1beta1/{+resource}:getIamPolicy"; + /** Optional. Output only. System-generated ID for feature monitor job. + */ + public java.lang.Long getFeatureMonitorJobId() { + return featureMonitorJobId; + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** Optional. Output only. System-generated ID for feature monitor job. */ + public Create setFeatureMonitorJobId(java.lang.Long featureMonitorJobId) { + this.featureMonitorJobId = featureMonitorJobId; + return this; + } + @Override + public Create set(String parameterName, Object value) { + return (Create) 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. + * Get a feature monitor job. * - * Create a request for the method "featureViews.getIamPolicy". + * Create a request for the method "featureMonitorJobs.get". * - * 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.

+ * 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 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 + * @param name Required. The name of the FeatureMonitorJob resource. Format: `projects/{project}/locations/{locatio + * n}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{fea + * ture_monitor_job}` + * @return the request */ - 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest { - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/featureMonitorJobs/[^/]+$"); - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } + /** + * Get a feature monitor job. + * + * Create a request for the method "featureMonitorJobs.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 FeatureMonitorJob resource. Format: `projects/{project}/locations/{locatio + * n}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{fea + * ture_monitor_job}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureMonitorJob.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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/featureMonitorJobs/[^/]+$"); + } + } - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * 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; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** 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; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - 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; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * 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 Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Lists FeatureViews in a given FeatureOnlineStore. - * - * Create a request for the method "featureViews.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 FeatureOnlineStore to list FeatureViews. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - * @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 Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - public class List extends AiplatformRequest { + /** + * Required. The name of the FeatureMonitorJob resource. Format: `projects/{project}/l + * ocations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor} + * /featureMonitorJobs/{feature_monitor_job}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1beta1/{+parent}/featureViews"; + /** Required. The name of the FeatureMonitorJob resource. Format: `projects/{project}/locations/{locati + on}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}/featureMonitorJobs/{feature_mon + itor_job}` + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); + /** + * Required. The name of the FeatureMonitorJob resource. Format: `projects/{project}/l + * ocations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor} + * /featureMonitorJobs/{feature_monitor_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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/featureMonitorJobs/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Lists FeatureViews in a given FeatureOnlineStore. + * List feature monitor jobs. * - * Create a request for the method "featureViews.list". + * Create a request for the method "featureMonitorJobs.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.

+ * 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 FeatureOnlineStore to list FeatureViews. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - * @since 1.13 + * @param parent Required. The resource name of the FeatureMonitor to list FeatureMonitorJobs. Format: `projects/{pro + * ject}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor} + * ` + * @return the request */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeatureViewsResponse.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/[^/]+/featureOnlineStores/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class List extends AiplatformRequest { - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + private static final String REST_PATH = "v1beta1/{+parent}/featureMonitorJobs"; - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** + * List feature monitor jobs. + * + * Create a request for the method "featureMonitorJobs.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 FeatureMonitor to list FeatureMonitorJobs. Format: `projects/{pro + * ject}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor} + * ` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse.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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + } + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** - * Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: - `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: - * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - */ - 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/[^/]+/featureOnlineStores/[^/]+$"); + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - this.parent = parent; - return this; - } - /** - * Lists the FeatureViews that match the filter expression. The following filters are - * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. - * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, - * `>=`, and `<=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports - * key-value equality as well as key presence. Examples: * `create_time > - * \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> - * FeatureViews created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = - * yes AND labels.env = prod` --> FeatureViews having both (active: yes) and (env: prod) - * labels. * `labels.env: *` --> Any FeatureView which has a label with 'env' as the - * key. - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** Lists the FeatureViews that match the filter expression. The following filters are supported: * - `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 - format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be - in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * - `create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` - --> FeatureViews created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND - labels.env = prod` --> FeatureViews having both (active: yes) and (env: prod) labels. * - `labels.env: *` --> Any FeatureView which has a label with 'env' as the key. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** - * Lists the FeatureViews that match the filter expression. The following filters are - * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. - * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, - * `>=`, and `<=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports - * key-value equality as well as key presence. Examples: * `create_time > - * \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> - * FeatureViews created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = - * yes AND labels.env = prod` --> FeatureViews having both (active: yes) and (env: prod) - * labels. * `labels.env: *` --> Any FeatureView which has a label with 'env' as the - * key. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** + * Required. The resource name of the FeatureMonitor to list FeatureMonitorJobs. + * Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}/feat + * ureMonitors/{feature_monitor}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported fields: * `feature_view_id` * - * `create_time` * `update_time` - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + /** Required. The resource name of the FeatureMonitor to list FeatureMonitorJobs. Format: `projects/{pr + oject}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + */ + public java.lang.String getParent() { + return parent; + } - /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field - name for descending. Supported fields: * `feature_view_id` * `create_time` * `update_time` - */ - public java.lang.String getOrderBy() { - return orderBy; - } + /** + * Required. The resource name of the FeatureMonitor to list FeatureMonitorJobs. + * Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}/feat + * ureMonitors/{feature_monitor}` + */ + 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + } + this.parent = parent; + 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: * `feature_view_id` * - * `create_time` * `update_time` - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + /** + * Optional. Lists the FeatureMonitorJobs that match the filter expression. The + * following fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, + * `<=`, and `>=` comparisons. Values must be Examples: * `create_time > "2020-01-01"` + * FeatureMonitorJobs created after 2020-01-01. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** - * The maximum number of FeatureViews to return. The service may return fewer than this - * value. If unspecified, at most 1000 FeatureViews will be returned. The maximum value - * is 1000; any value greater than 1000 will be coerced to 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** Optional. Lists the FeatureMonitorJobs that match the filter expression. The following fields are + supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must + be Examples: * `create_time > "2020-01-01"` FeatureMonitorJobs created after 2020-01-01. + */ + public java.lang.String getFilter() { + return filter; + } - /** The maximum number of FeatureViews to return. The service may return fewer than this value. If - unspecified, at most 1000 FeatureViews will be returned. The maximum value is 1000; any value - greater than 1000 will be coerced to 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** + * Optional. Lists the FeatureMonitorJobs that match the filter expression. The + * following fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, + * `<=`, and `>=` comparisons. Values must be Examples: * `create_time > "2020-01-01"` + * FeatureMonitorJobs created after 2020-01-01. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** - * The maximum number of FeatureViews to return. The service may return fewer than this - * value. If unspecified, at most 1000 FeatureViews will be returned. The maximum value - * is 1000; any value greater than 1000 will be coerced to 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * Optional. A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. Supported Fields: * `create_time` + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - /** - * A page token, received from a previous - * FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * FeatureOnlineStoreAdminService.ListFeatureViews must match the call that provided the - * page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after + a field name for descending. Supported Fields: * `create_time` + */ + public java.lang.String getOrderBy() { + return orderBy; + } - /** A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViews call. - Provide this to retrieve the subsequent page. When paginating, all other parameters provided to - FeatureOnlineStoreAdminService.ListFeatureViews must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Optional. A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. Supported Fields: * `create_time` + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } - /** - * A page token, received from a previous - * FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to retrieve the - * subsequent page. When paginating, all other parameters provided to - * FeatureOnlineStoreAdminService.ListFeatureViews must match the call that provided the - * page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** + * Optional. The maximum number of FeatureMonitorJobs to return. The service may + * return fewer than this value. If unspecified, at most 100 FeatureMonitorJobs will + * be returned. The maximum value is 100; any value greater than 100 will be coerced + * to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the parameters of a single FeatureView. - * - * Create a request for the method "featureViews.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. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineS - * tores/{feature_online_store}/featureViews/{feature_view}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + /** Optional. The maximum number of FeatureMonitorJobs to return. The service may return fewer than + this value. If unspecified, at most 100 FeatureMonitorJobs will be returned. The maximum value is + 100; any value greater than 100 will be coerced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - - /** - * Updates the parameters of a single FeatureView. - * - * Create a request for the method "featureViews.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. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineS - * tores/{feature_online_store}/featureViews/{feature_view}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** + * Optional. The maximum number of FeatureMonitorJobs to return. The service may + * return fewer than this value. If unspecified, at most 100 FeatureMonitorJobs will + * be returned. The maximum value is 100; any value greater than 100 will be coerced + * to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } - } - - @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. Name of the FeatureView. Format: `projects/{project}/locations/{location} - * /featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - /** Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnline - Stores/{feature_online_store}/featureViews/{feature_view}` - */ - public java.lang.String getName() { - return name; - } + /** + * Optional. A page token, received from a previous + * FeatureRegistryService.ListFeatureMonitorJobs call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * FeatureRegistryService.ListFeatureMonitorJobs must match the call that provided the + * page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location} - * /featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - */ - 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** Optional. A page token, received from a previous FeatureRegistryService.ListFeatureMonitorJobs + call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided + to FeatureRegistryService.ListFeatureMonitorJobs must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; } - this.name = name; - return this; - } - - /** - * Field mask is used to specify the fields to be overwritten in the FeatureView - * resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. If - * the user does not provide a mask then only the non-empty fields present in the - * request will be overwritten. Set the update_mask to `*` to override all fields. - * Updatable fields: * `labels` * `service_agent_type` * `big_query_source` * - * `big_query_source.uri` * `big_query_source.entity_id_columns` * - * `feature_registry_source` * `feature_registry_source.feature_groups` * `sync_config` - * * `sync_config.cron` * `optimized_config.automatic_resources` - */ - @com.google.api.client.util.Key - private String updateMask; - /** Field mask is used to specify the fields to be overwritten in the FeatureView resource by the - update. The fields specified in the update_mask are relative to the resource, not the full request. - A field will be overwritten if it is in the mask. If the user does not provide a mask then only the - non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override - all fields. Updatable fields: * `labels` * `service_agent_type` * `big_query_source` * - `big_query_source.uri` * `big_query_source.entity_id_columns` * `feature_registry_source` * - `feature_registry_source.feature_groups` * `sync_config` * `sync_config.cron` * - `optimized_config.automatic_resources` - */ - public String getUpdateMask() { - return updateMask; - } + /** + * Optional. A page token, received from a previous + * FeatureRegistryService.ListFeatureMonitorJobs call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * FeatureRegistryService.ListFeatureMonitorJobs must match the call that provided the + * page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * Field mask is used to specify the fields to be overwritten in the FeatureView - * resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. If - * the user does not provide a mask then only the non-empty fields present in the - * request will be overwritten. Set the update_mask to `*` to override all fields. - * Updatable fields: * `labels` * `service_agent_type` * `big_query_source` * - * `big_query_source.uri` * `big_query_source.entity_id_columns` * - * `feature_registry_source` * `feature_registry_source.feature_groups` * `sync_config` - * * `sync_config.cron` * `optimized_config.automatic_resources` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } } /** - * Search the nearest entities under a FeatureView. Search only works for indexable feature view; if - * a feature view isn't indexable, returns Invalid argument response. - * - * Create a request for the method "featureViews.searchNearestEntities". + * 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 SearchNearestEntities#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 featureView Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{ - * featureOnlineStore}/featureViews/{featureView}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest} - * @return the request + * @return the resource collection */ - public SearchNearestEntities searchNearestEntities(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest content) throws java.io.IOException { - SearchNearestEntities result = new SearchNearestEntities(featureView, content); - initialize(result); - return result; + public Operations operations() { + return new Operations(); } - public class SearchNearestEntities extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+featureView}:searchNearestEntities"; - - private final java.util.regex.Pattern FEATURE_VIEW_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class Operations { /** - * Search the nearest entities under a FeatureView. Search only works for indexable feature view; - * if a feature view isn't indexable, returns Invalid argument response. + * 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 "featureViews.searchNearestEntities". + * 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 SearchNearestEntities#execute()} method to invoke the - * remote operation.

{@link SearchNearestEntities#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 Delete#execute()} method to invoke the remote operation. * - * @param featureView Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{ - * featureOnlineStore}/featureViews/{featureView}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest} - * @since 1.13 + * @param name The name of the operation resource to be deleted. + * @return the request */ - protected SearchNearestEntities(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse.class); - this.featureView = com.google.api.client.util.Preconditions.checkNotNull(featureView, "Required parameter featureView must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), - "Parameter featureView must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - } + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public SearchNearestEntities set$Xgafv(java.lang.String $Xgafv) { - return (SearchNearestEntities) super.set$Xgafv($Xgafv); - } + public class Delete extends AiplatformRequest { - @Override - public SearchNearestEntities setAccessToken(java.lang.String accessToken) { - return (SearchNearestEntities) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public SearchNearestEntities setAlt(java.lang.String alt) { - return (SearchNearestEntities) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); - @Override - public SearchNearestEntities setCallback(java.lang.String callback) { - return (SearchNearestEntities) super.setCallback(callback); - } + /** + * 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); + } + } - @Override - public SearchNearestEntities setFields(java.lang.String fields) { - return (SearchNearestEntities) super.setFields(fields); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public SearchNearestEntities setKey(java.lang.String key) { - return (SearchNearestEntities) super.setKey(key); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public SearchNearestEntities setOauthToken(java.lang.String oauthToken) { - return (SearchNearestEntities) super.setOauthToken(oauthToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public SearchNearestEntities setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchNearestEntities) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public SearchNearestEntities setQuotaUser(java.lang.String quotaUser) { - return (SearchNearestEntities) super.setQuotaUser(quotaUser); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public SearchNearestEntities setUploadType(java.lang.String uploadType) { - return (SearchNearestEntities) super.setUploadType(uploadType); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public SearchNearestEntities setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchNearestEntities) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * Required. FeatureView resource format `projects/{project}/locations/{location}/featur - * eOnlineStores/{featureOnlineStore}/featureViews/{featureView}` - */ - @com.google.api.client.util.Key - private java.lang.String featureView; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/ - {featureOnlineStore}/featureViews/{featureView}` - */ - public java.lang.String getFeatureView() { - return featureView; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * Required. FeatureView resource format `projects/{project}/locations/{location}/featur - * eOnlineStores/{featureOnlineStore}/featureViews/{featureView}` - */ - public SearchNearestEntities setFeatureView(java.lang.String featureView) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), - "Parameter featureView must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } - this.featureView = featureView; - return this; - } - @Override - public SearchNearestEntities set(String parameterName, Object value) { - return (SearchNearestEntities) 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 "featureViews.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; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - public class SetIamPolicy extends AiplatformRequest { + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Gets 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 "featureViews.setIamPolicy". + * 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 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 Get#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} - * @since 1.13 + * @param name The name of the operation resource. + * @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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - } - } - - @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); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } + public class Get extends AiplatformRequest { - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } + /** + * 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); + } + } - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** - * 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 Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** 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 Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } - this.resource = resource; - return this; - } - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Bidirectional streaming RPC to fetch feature values under a FeatureView. Requests may not have a - * one-to-one mapping to responses and responses may be returned out-of-order to reduce latency. - * - * Create a request for the method "featureViews.streamingFetchFeatureValues". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link StreamingFetchFeatureValues#execute()} method to invoke the remote - * operation. - * - * @param featureView Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{ - * featureOnlineStore}/featureViews/{featureView}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest} - * @return the request - */ - public StreamingFetchFeatureValues streamingFetchFeatureValues(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest content) throws java.io.IOException { - StreamingFetchFeatureValues result = new StreamingFetchFeatureValues(featureView, content); - initialize(result); - return result; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - public class StreamingFetchFeatureValues extends AiplatformRequest { + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - private static final String REST_PATH = "v1beta1/{+featureView}:streamingFetchFeatureValues"; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - private final java.util.regex.Pattern FEATURE_VIEW_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + @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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Bidirectional streaming RPC to fetch feature values under a FeatureView. Requests may not have - * a one-to-one mapping to responses and responses may be returned out-of-order to reduce latency. + * 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 "featureViews.streamingFetchFeatureValues". + * 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 StreamingFetchFeatureValues#execute()} method to invoke - * the remote operation.

{@link StreamingFetchFeatureValues#initialize(com.google.api.client.g - * oogleapis.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 List#execute()} method to invoke the remote operation. * - * @param featureView Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{ - * featureOnlineStore}/featureViews/{featureView}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest} - * @since 1.13 + * @param name The name of the operation's parent resource. + * @return the request */ - protected StreamingFetchFeatureValues(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse.class); - this.featureView = com.google.api.client.util.Preconditions.checkNotNull(featureView, "Required parameter featureView must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), - "Parameter featureView must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - } + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public StreamingFetchFeatureValues set$Xgafv(java.lang.String $Xgafv) { - return (StreamingFetchFeatureValues) super.set$Xgafv($Xgafv); - } + public class List extends AiplatformRequest { - @Override - public StreamingFetchFeatureValues setAccessToken(java.lang.String accessToken) { - return (StreamingFetchFeatureValues) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - @Override - public StreamingFetchFeatureValues setAlt(java.lang.String alt) { - return (StreamingFetchFeatureValues) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); - @Override - public StreamingFetchFeatureValues setCallback(java.lang.String callback) { - return (StreamingFetchFeatureValues) super.setCallback(callback); - } + /** + * 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + } + } - @Override - public StreamingFetchFeatureValues setFields(java.lang.String fields) { - return (StreamingFetchFeatureValues) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public StreamingFetchFeatureValues setKey(java.lang.String key) { - return (StreamingFetchFeatureValues) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public StreamingFetchFeatureValues setOauthToken(java.lang.String oauthToken) { - return (StreamingFetchFeatureValues) super.setOauthToken(oauthToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public StreamingFetchFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StreamingFetchFeatureValues) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public StreamingFetchFeatureValues setQuotaUser(java.lang.String quotaUser) { - return (StreamingFetchFeatureValues) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public StreamingFetchFeatureValues setUploadType(java.lang.String uploadType) { - return (StreamingFetchFeatureValues) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public StreamingFetchFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { - return (StreamingFetchFeatureValues) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** - * Required. FeatureView resource format `projects/{project}/locations/{location}/featur - * eOnlineStores/{featureOnlineStore}/featureViews/{featureView}` - */ - @com.google.api.client.util.Key - private java.lang.String featureView; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/ - {featureOnlineStore}/featureViews/{featureView}` - */ - public java.lang.String getFeatureView() { - return featureView; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Required. FeatureView resource format `projects/{project}/locations/{location}/featur - * eOnlineStores/{featureOnlineStore}/featureViews/{featureView}` - */ - public StreamingFetchFeatureValues setFeatureView(java.lang.String featureView) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), - "Parameter featureView must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - this.featureView = featureView; - return this; - } - @Override - public StreamingFetchFeatureValues set(String parameterName, Object value) { - return (StreamingFetchFeatureValues) super.set(parameterName, value); - } - } - /** - * Triggers on-demand sync for the FeatureView. - * - * Create a request for the method "featureViews.sync". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Sync#execute()} method to invoke the remote operation. - * - * @param featureView Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store - * }/featureViews/{feature_view}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SyncFeatureViewRequest} - * @return the request - */ - public Sync sync(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SyncFeatureViewRequest content) throws java.io.IOException { - Sync result = new Sync(featureView, content); - initialize(result); - return result; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - public class Sync extends AiplatformRequest { + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v1beta1/{+featureView}:sync"; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - private final java.util.regex.Pattern FEATURE_VIEW_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Triggers on-demand sync for the FeatureView. - * - * Create a request for the method "featureViews.sync". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Sync#execute()} method to invoke the remote operation.

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

- * - * @param featureView Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store - * }/featureViews/{feature_view}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SyncFeatureViewRequest} - * @since 1.13 - */ - protected Sync(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SyncFeatureViewRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SyncFeatureViewResponse.class); - this.featureView = com.google.api.client.util.Preconditions.checkNotNull(featureView, "Required parameter featureView must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), - "Parameter featureView must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; } - } - - @Override - public Sync set$Xgafv(java.lang.String $Xgafv) { - return (Sync) super.set$Xgafv($Xgafv); - } - @Override - public Sync setAccessToken(java.lang.String accessToken) { - return (Sync) super.setAccessToken(accessToken); - } + /** 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/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Sync setAlt(java.lang.String alt) { - return (Sync) super.setAlt(alt); - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Sync setCallback(java.lang.String callback) { - return (Sync) super.setCallback(callback); - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Sync setFields(java.lang.String fields) { - return (Sync) super.setFields(fields); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Sync setKey(java.lang.String key) { - return (Sync) super.setKey(key); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Sync setOauthToken(java.lang.String oauthToken) { - return (Sync) super.setOauthToken(oauthToken); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Sync setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Sync) super.setPrettyPrint(prettyPrint); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Sync setQuotaUser(java.lang.String quotaUser) { - return (Sync) super.setQuotaUser(quotaUser); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Sync setUploadType(java.lang.String uploadType) { - return (Sync) super.setUploadType(uploadType); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Sync setUploadProtocol(java.lang.String uploadProtocol) { - return (Sync) super.setUploadProtocol(uploadProtocol); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featu - * re_online_store}/featureViews/{feature_view}` - */ - @com.google.api.client.util.Key - private java.lang.String featureView; - - /** Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_stor - e}/featureViews/{feature_view}` - */ - public java.lang.String getFeatureView() { - return featureView; - } + /** + * 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; - /** - * Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featu - * re_online_store}/featureViews/{feature_view}` - */ - public Sync setFeatureView(java.lang.String featureView) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), - "Parameter featureView must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** 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; } - this.featureView = featureView; - return this; - } - - @Override - public Sync set(String parameterName, Object value) { - return (Sync) 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 "featureViews.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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - /** - * 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 "featureViews.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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** + * 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 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } - 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 FeatureViewSyncs collection. - * - *

The typical use is:

- *
-           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-           *   {@code Aiplatform.FeatureViewSyncs.List request = aiplatform.featureViewSyncs().list(parameters ...)}
-           * 
- * - * @return the resource collection - */ - public FeatureViewSyncs featureViewSyncs() { - return new FeatureViewSyncs(); - } - - /** - * The "featureViewSyncs" collection of methods. - */ - public class FeatureViewSyncs { - /** - * Gets details of a single FeatureViewSync. + * 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 "featureViewSyncs.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. * - * @param name Required. The name of the FeatureViewSync resource. Format: `projects/{project}/locations/{location} - * /featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{ - * feature_view_sync}` + * @param name The name of the operation resource to wait on. * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); initialize(result); return result; } - public class Get extends AiplatformRequest { + public class Wait extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+name}:wait"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); /** - * Gets details of a single FeatureViewSync. + * 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 "featureViewSyncs.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)} + * 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 Required. The name of the FeatureViewSync resource. Format: `projects/{project}/locations/{location} - * /featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{ - * feature_view_sync}` + * @param name The name of the operation resource to wait on. * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureViewSync.class); + 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/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); + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the FeatureViewSync resource. Format: `projects/{project}/loc - * ations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_ - * view}/featureViewSyncs/{feature_view_sync}` - */ + /** The name of the operation resource to wait on. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the FeatureViewSync resource. Format: `projects/{project}/locations/{location - }/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_ - view_sync}` + /** The name of the operation resource to wait on. */ public java.lang.String getName() { return name; } - /** - * Required. The name of the FeatureViewSync resource. Format: `projects/{project}/loc - * ations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_ - * view}/featureViewSyncs/{feature_view_sync}` - */ - public Get setName(java.lang.String 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/featureMonitors/[^/]+/operations/[^/]+$"); } this.name = name; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists FeatureViewSyncs in a given FeatureView. - * - * Create a request for the method "featureViewSyncs.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 FeatureView to list FeatureViewSyncs. Format: `projects/{project} - * /locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_vie - * w}` - * @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}/featureViewSyncs"; + /** + * 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; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** 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; + } /** - * Lists FeatureViewSyncs in a given FeatureView. - * - * Create a request for the method "featureViewSyncs.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 FeatureView to list FeatureViewSyncs. Format: `projects/{project} - * /locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_vie - * w}` - * @since 1.13 + * 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. */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse.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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - } + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); } + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + } + } + /** + * An accessor for creating requests from the Features collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Features.List request = aiplatform.features().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Features features() { + return new Features(); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** + * The "features" collection of methods. + */ + public class Features { - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * Creates a batch of Features in a given FeatureGroup. + * + * Create a request for the method "features.batchCreate". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link BatchCreate#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. + * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/ + * {entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest} + * @return the request + */ + public BatchCreate batchCreate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest content) throws java.io.IOException { + BatchCreate result = new BatchCreate(parent, content); + initialize(result); + return result; + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + public class BatchCreate extends AiplatformRequest { - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + private static final String REST_PATH = "v1beta1/{+parent}/features:batchCreate"; - @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 FeatureView to list FeatureViewSyncs. Format: `p - * rojects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/f - * eatureViews/{feature_view}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); - /** Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `projects/{project - }/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - */ - public java.lang.String getParent() { - return parent; + /** + * Creates a batch of Features in a given FeatureGroup. + * + * Create a request for the method "features.batchCreate". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link BatchCreate#execute()} method to invoke the remote + * operation.

{@link + * BatchCreate#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 EntityType/FeatureGroup to create the batch of Features under. + * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/ + * {entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest} + * @since 1.13 + */ + protected BatchCreate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest 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/[^/]+/featureGroups/[^/]+$"); } + } - /** - * Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `p - * rojects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/f - * eatureViews/{feature_view}` - */ - 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public BatchCreate set$Xgafv(java.lang.String $Xgafv) { + return (BatchCreate) super.set$Xgafv($Xgafv); + } - /** - * Lists the FeatureViewSyncs that match the filter expression. The following filters - * are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` - * comparisons. Values must be in RFC 3339 format. Examples: * `create_time > - * \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs created after - * 2020-01-31T15:30:00.000000Z. - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public BatchCreate setAccessToken(java.lang.String accessToken) { + return (BatchCreate) super.setAccessToken(accessToken); + } - /** Lists the FeatureViewSyncs that match the filter expression. The following filters are supported: * - `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 - format. Examples: * `create_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs created - after 2020-01-31T15:30:00.000000Z. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public BatchCreate setAlt(java.lang.String alt) { + return (BatchCreate) super.setAlt(alt); + } - /** - * Lists the FeatureViewSyncs that match the filter expression. The following filters - * are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` - * comparisons. Values must be in RFC 3339 format. Examples: * `create_time > - * \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs created after - * 2020-01-31T15:30:00.000000Z. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public BatchCreate setCallback(java.lang.String callback) { + return (BatchCreate) super.setCallback(callback); + } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported fields: * `create_time` - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public BatchCreate setFields(java.lang.String fields) { + return (BatchCreate) super.setFields(fields); + } - /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field - name for descending. Supported fields: * `create_time` - */ - public java.lang.String getOrderBy() { - return orderBy; - } + @Override + public BatchCreate setKey(java.lang.String key) { + return (BatchCreate) super.setKey(key); + } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported fields: * `create_time` - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + @Override + public BatchCreate setOauthToken(java.lang.String oauthToken) { + return (BatchCreate) super.setOauthToken(oauthToken); + } - /** - * The maximum number of FeatureViewSyncs to return. The service may return fewer than - * this value. If unspecified, at most 1000 FeatureViewSyncs will be returned. The - * maximum value is 1000; any value greater than 1000 will be coerced to 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public BatchCreate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchCreate) super.setPrettyPrint(prettyPrint); + } - /** The maximum number of FeatureViewSyncs to return. The service may return fewer than this value. If - unspecified, at most 1000 FeatureViewSyncs will be returned. The maximum value is 1000; any value - greater than 1000 will be coerced to 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public BatchCreate setQuotaUser(java.lang.String quotaUser) { + return (BatchCreate) super.setQuotaUser(quotaUser); + } - /** - * The maximum number of FeatureViewSyncs to return. The service may return fewer than - * this value. If unspecified, at most 1000 FeatureViewSyncs will be returned. The - * maximum value is 1000; any value greater than 1000 will be coerced to 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public BatchCreate setUploadType(java.lang.String uploadType) { + return (BatchCreate) super.setUploadType(uploadType); + } - /** - * A page token, received from a previous - * FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide this to retrieve - * the subsequent page. When paginating, all other parameters provided to - * FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the call that - * provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public BatchCreate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchCreate) super.setUploadProtocol(uploadProtocol); + } - /** A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. - Provide this to retrieve the subsequent page. When paginating, all other parameters provided to - FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the call that provided the page - token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Required. The resource name of the EntityType/FeatureGroup to create the batch of + * Features under. Format: `projects/{project}/locations/{location}/featurestores/{featu + * restore}/entityTypes/{entity_type}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * A page token, received from a previous - * FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide this to retrieve - * the subsequent page. When paginating, all other parameters provided to - * FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the call that - * provided the page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. + Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** + * Required. The resource name of the EntityType/FeatureGroup to create the batch of + * Features under. Format: `projects/{project}/locations/{location}/featurestores/{featu + * restore}/entityTypes/{entity_type}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + public BatchCreate 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/[^/]+/featureGroups/[^/]+$"); } + this.parent = parent; + return this; } + @Override + public BatchCreate set(String parameterName, Object value) { + return (BatchCreate) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the Operations collection. + * Creates a new Feature in a given FeatureGroup. * - *

The typical use is:

- *
-           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-           *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-           * 
+ * Create a request for the method "features.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 resource name of the EntityType or FeatureGroup to create a Feature. Format for + * entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestor + * e}/entityTypes/{entity_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} + * @return the request */ - public Operations operations() { - return new Operations(); + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature 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}/features"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); /** - * 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 new Feature in a given FeatureGroup. * - * Create a request for the method "operations.delete". + * Create a request for the method "features.create". * - * 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 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 deleted. - * @return the request + * @param parent Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for + * entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestor + * e}/entityTypes/{entity_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature 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/[^/]+/featureGroups/[^/]+$"); + } } - public class Delete 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}"; + @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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); + @Override + public Create setAlt(java.lang.String alt) { + return (Create) 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); - } - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The resource name of the EntityType or FeatureGroup to create a Feature. + * Format for entity_type as parent: `projects/{project}/locations/{location}/featuresto + * res/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for + entity_type as parent: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + Format for feature_group as parent: + `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** + * Required. The resource name of the EntityType or FeatureGroup to create a Feature. + * Format for entity_type as parent: `projects/{project}/locations/{location}/featuresto + * res/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + 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/[^/]+/featureGroups/[^/]+$"); } + this.parent = parent; + return this; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The ID to use for the Feature, which will become the final component of the + * Feature's resource name. This value may be up to 128 characters, and valid characters + * are `[a-z0-9_]`. The first character cannot be a number. The value must be unique + * within an EntityType/FeatureGroup. + */ + @com.google.api.client.util.Key + private java.lang.String featureId; - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The ID to use for the Feature, which will become the final component of the Feature's + resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The + first character cannot be a number. The value must be unique within an EntityType/FeatureGroup. + */ + public java.lang.String getFeatureId() { + return featureId; + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + /** + * Required. The ID to use for the Feature, which will become the final component of the + * Feature's resource name. This value may be up to 128 characters, and valid characters + * are `[a-z0-9_]`. The first character cannot be a number. The value must be unique + * within an EntityType/FeatureGroup. + */ + public Create setFeatureId(java.lang.String featureId) { + this.featureId = featureId; + return this; + } - /** 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } + } + /** + * Deletes a single Feature. + * + * Create a request for the method "features.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 Features to be deleted. Format: `projects/{project}/locations/{location}/f + * eaturestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * @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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); + /** - * 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 single Feature. * - * Create a request for the method "operations.get". + * Create a request for the method "features.delete". * - * 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 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. - * @return the request + * @param name Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/f + * eaturestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(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.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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); + } } - 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); - } - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The name of the Features to be deleted. Format: `projects/{project}/locatio + * ns/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{featur + * e}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{ + * feature}` + */ + @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 Features to be deleted. Format: `projects/{project}/locations/{location}/ + featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + */ + 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 Features to be deleted. Format: `projects/{project}/locatio + * ns/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{featur + * e}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{ + * feature}` + */ + 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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single Feature. + * + * Create a request for the method "features.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 Feature resource. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @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. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Get 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$"); - @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`. + * Gets details of a single Feature. * - * Create a request for the method "operations.list". + * Create a request for the method "features.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. + * 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's parent resource. - * @return the request + * @param name Required. The name of the Feature resource. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(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.GoogleCloudAiplatformV1beta1Feature.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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); + } } - 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + @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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - } - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** + * Required. The name of the Feature resource. Format for entity_type as parent: `projec + * ts/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ty + * pe}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** Required. The name of the Feature resource. Format for entity_type as parent: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + Format for feature_group as parent: + `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + public java.lang.String getName() { + return name; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** + * Required. The name of the Feature resource. Format for entity_type as parent: `projec + * ts/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ty + * pe}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + 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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); } + this.name = name; + return this; + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If + * stats_time_range is set, return most recent count of stats within the + * stats_time_range. + */ + @com.google.api.client.util.Key("featureStatsAndAnomalySpec.latestStatsCount") + private java.lang.Integer featureStatsAndAnomalySpecLatestStatsCount; - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + /** Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If + stats_time_range is set, return most recent count of stats within the stats_time_range. + */ + public java.lang.Integer getFeatureStatsAndAnomalySpecLatestStatsCount() { + return featureStatsAndAnomalySpecLatestStatsCount; + } - /** 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If + * stats_time_range is set, return most recent count of stats within the + * stats_time_range. + */ + public Get setFeatureStatsAndAnomalySpecLatestStatsCount(java.lang.Integer featureStatsAndAnomalySpecLatestStatsCount) { + this.featureStatsAndAnomalySpecLatestStatsCount = featureStatsAndAnomalySpecLatestStatsCount; + 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 + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this + * interval will have to be before the end. */ - 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/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; - } + @com.google.api.client.util.Key("featureStatsAndAnomalySpec.statsTimeRange.endTime") + private String featureStatsAndAnomalySpecStatsTimeRangeEndTime; - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } + /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have + to be before the end. + */ + public String getFeatureStatsAndAnomalySpecStatsTimeRangeEndTime() { + return featureStatsAndAnomalySpecStatsTimeRangeEndTime; } - } - } - /** - * 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 { - - /** - * 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/[^/]+/featureOnlineStores/[^/]+/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 + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this + * interval will have to be before the end. */ - 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/[^/]+/featureOnlineStores/[^/]+/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); + public Get setFeatureStatsAndAnomalySpecStatsTimeRangeEndTime(String featureStatsAndAnomalySpecStatsTimeRangeEndTime) { + this.featureStatsAndAnomalySpecStatsTimeRangeEndTime = featureStatsAndAnomalySpecStatsTimeRangeEndTime; + return this; } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Optional. Inclusive start of the interval. If specified, a Timestamp matching this + * interval will have to be the same or after the start. + */ + @com.google.api.client.util.Key("featureStatsAndAnomalySpec.statsTimeRange.startTime") + private String featureStatsAndAnomalySpecStatsTimeRangeStartTime; - /** The name of the operation resource to be deleted. + /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will + have to be the same or after the start. */ - public java.lang.String getName() { - return name; + public String getFeatureStatsAndAnomalySpecStatsTimeRangeStartTime() { + return featureStatsAndAnomalySpecStatsTimeRangeStartTime; } - /** 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/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); - } - this.name = name; + /** + * Optional. Inclusive start of the interval. If specified, a Timestamp matching this + * interval will have to be the same or after the start. + */ + public Get setFeatureStatsAndAnomalySpecStatsTimeRangeStartTime(String featureStatsAndAnomalySpecStatsTimeRangeStartTime) { + this.featureStatsAndAnomalySpecStatsTimeRangeStartTime = featureStatsAndAnomalySpecStatsTimeRangeStartTime; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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. + * Lists Features in a given FeatureGroup. * - * Create a request for the method "operations.get". + * Create a request for the method "features.list". * * 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. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource. + * @param parent Required. The resource name of the Location to list Features. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Get extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+parent}/features"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); /** - * 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. + * Lists Features in a given FeatureGroup. * - * Create a request for the method "operations.get". + * Create a request for the method "features.list". * * 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)} + * 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. + * @param parent Required. The resource name of the Location to list Features. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` * @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."); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeaturesResponse.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/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); } } @@ -93909,301 +87804,264 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Required. The resource name of the Location to list Features. Format for entity_type + * as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/enti + * tyTypes/{entity_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation resource. + /** Required. The resource name of the Location to list Features. Format for entity_type as parent: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + Format for feature_group as parent: + `projects/{project}/locations/{location}/featureGroups/{feature_group}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** + * Required. The resource name of the Location to list Features. Format for entity_type + * as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/enti + * tyTypes/{entity_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + 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/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); } - this.name = name; + this.parent = parent; 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/[^/]+/featureOnlineStores/[^/]+$"); - /** - * 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 + * Lists the Features that match the filter expression. The following filters are + * supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports + * =, !=, <, >, >=, and <= comparisons. Values must be in RFC 3339 format. * + * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC + * 3339 format. * `labels`: Supports key-value equality as well as key presence. + * Examples: * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `create_time > + * \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> + * EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = + * yes AND labels.env = prod` --> Features having both (active: yes) and (env: prod) + * labels. * `labels.env: *` --> Any Feature which has a label with 'env' as the key. */ - 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/[^/]+/featureOnlineStores/[^/]+$"); - } - } - - @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); - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** Lists the Features that match the filter expression. The following filters are supported: * + `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, <, >, >=, and <= + comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= + comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as + key presence. Examples: * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `create_time > + \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes + created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` + --> Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --> Any Feature + which has a label with 'env' as the key. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** + * Lists the Features that match the filter expression. The following filters are + * supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports + * =, !=, <, >, >=, and <= comparisons. Values must be in RFC 3339 format. * + * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC + * 3339 format. * `labels`: Supports key-value equality as well as key presence. + * Examples: * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `create_time > + * \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> + * EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = + * yes AND labels.env = prod` --> Features having both (active: yes) and (env: prod) + * labels. * `labels.env: *` --> Any Feature which has a label with 'env' as the key. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - /** The name of the operation's parent resource. */ + /** + * Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent + * ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid + * value is [0, 10]. If number of stats exists < ListFeaturesRequest.latest_stats_count, + * return all existing stats. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.Integer latestStatsCount; - /** The name of the operation's parent resource. + /** Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent + ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, + 10]. If number of stats exists < ListFeaturesRequest.latest_stats_count, return all existing stats. */ - public java.lang.String getName() { - return name; + public java.lang.Integer getLatestStatsCount() { + return latestStatsCount; } - /** 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/[^/]+/featureOnlineStores/[^/]+$"); - } - this.name = name; + /** + * Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent + * ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid + * value is [0, 10]. If number of stats exists < ListFeaturesRequest.latest_stats_count, + * return all existing stats. + */ + public List setLatestStatsCount(java.lang.Integer latestStatsCount) { + this.latestStatsCount = latestStatsCount; return this; } - /** The standard list filter. */ + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. Supported fields: * `feature_id` * `value_type` + * (Not supported for FeatureRegistry Feature) * `create_time` * `update_time` + */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String orderBy; - /** The standard list filter. + /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field + name for descending. Supported fields: * `feature_id` * `value_type` (Not supported for + FeatureRegistry Feature) * `create_time` * `update_time` */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getOrderBy() { + return orderBy; } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. Supported fields: * `feature_id` * `value_type` + * (Not supported for FeatureRegistry Feature) * `create_time` * `update_time` + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } - /** The standard list page size. */ + /** + * The maximum number of Features to return. The service may return fewer than this + * value. If unspecified, at most 1000 Features will be returned. The maximum value is + * 1000; any value greater than 1000 will be coerced to 1000. + */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The standard list page size. + /** The maximum number of Features to return. The service may return fewer than this value. If + unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater + than 1000 will be coerced to 1000. */ public java.lang.Integer getPageSize() { return pageSize; } - /** The standard list page size. */ + /** + * The maximum number of Features to return. The service may return fewer than this + * value. If unspecified, at most 1000 Features will be returned. The maximum value is + * 1000; any value greater than 1000 will be coerced to 1000. + */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** The standard list page token. */ + /** + * A page token, received from a previous FeaturestoreService.ListFeatures call or + * FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures 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. + /** A page token, received from a previous FeaturestoreService.ListFeatures call or + FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When + paginating, all other parameters provided to FeaturestoreService.ListFeatures or + FeatureRegistryService.ListFeatures must match the call that provided the page token. */ public java.lang.String getPageToken() { return pageToken; } - /** The standard list page token. */ + /** + * A page token, received from a previous FeaturestoreService.ListFeatures call or + * FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match + * the call that provided the 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. - */ + /** Mask specifying which fields to read. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private String 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. + /** Mask specifying which fields to read. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public String getReadMask() { + return 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; + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; return this; } @@ -94213,1996 +88071,2184 @@ public List set(String parameterName, Object 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. + * Updates the parameters of a single Feature. * - * Create a request for the method "operations.wait". + * Create a request for the method "features.patch". * * 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 Patch#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to wait on. + * @param name Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{feat + * urestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * The last part feature is assigned by the client. The feature can be up to 64 characters + * long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII + * digits 0-9 starting with a letter. The value will be unique given an entity type. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} * @return the request */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Wait extends AiplatformRequest { + public class Patch extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:wait"; + private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$"); /** - * 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. + * Updates the parameters of a single Feature. * - * Create a request for the method "operations.wait". + * Create a request for the method "features.patch". * * 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 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 wait on. + * @param name Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{feat + * urestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * The last part feature is assigned by the client. The feature can be up to 64 characters + * long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII + * digits 0-9 starting with a letter. The value will be unique given an entity type. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} * @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 Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature 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/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$"); } } @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to wait on. */ + /** + * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/feat + * urestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{pro + * ject}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last + * part feature is assigned by the client. The feature can be up to 64 characters long + * and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII + * digits 0-9 starting with a letter. The value will be unique given an entity type. + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to wait on. + /** Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{fea + turestore}/entityTypes/{entity_type}/features/{feature}` + `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last + part feature is assigned by the client. The feature can be up to 64 characters long and can consist + only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a + letter. The value will be unique given an entity type. */ public java.lang.String getName() { return name; } - /** The name of the operation resource to wait on. */ - public Wait setName(java.lang.String name) { + /** + * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/feat + * urestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{pro + * ject}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last + * part feature is assigned by the client. The feature can be up to 64 characters long + * and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII + * digits 0-9 starting with a letter. The value will be unique given an entity type. + */ + 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/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$"); } 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. + * Field mask is used to specify the fields to be overwritten in the Features resource + * by the update. The fields specified in the update_mask are relative to the resource, + * not the full request. A field will be overwritten if it is in the mask. If the user + * does not provide a mask then only the non-empty fields present in the request will be + * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * + * `description` * `labels` * `disable_monitoring` (Not supported for + * FeatureRegistryService Feature) * `point_of_contact` (Not supported for + * FeaturestoreService FeatureStore) */ @com.google.api.client.util.Key - private String timeout; + private String updateMask; - /** 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. + /** Field mask is used to specify the fields to be overwritten in the Features resource by the update. + The fields specified in the update_mask are relative to the resource, not the full request. A field + will be overwritten if it is in the mask. If the user does not provide a mask then only the non- + empty fields present in the request will be overwritten. Set the update_mask to `*` to override all + fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for + FeatureRegistryService Feature) * `point_of_contact` (Not supported for FeaturestoreService + FeatureStore) */ - public String getTimeout() { - return timeout; + public String getUpdateMask() { + return updateMask; } /** - * 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. + * Field mask is used to specify the fields to be overwritten in the Features resource + * by the update. The fields specified in the update_mask are relative to the resource, + * not the full request. A field will be overwritten if it is in the mask. If the user + * does not provide a mask then only the non-empty fields present in the request will be + * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * + * `description` * `labels` * `disable_monitoring` (Not supported for + * FeatureRegistryService Feature) * `point_of_contact` (Not supported for + * FeaturestoreService FeatureStore) */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } - } - } - /** - * An accessor for creating requests from the Featurestores collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.Featurestores.List request = aiplatform.featurestores().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Featurestores featurestores() { - return new Featurestores(); - } - - /** - * The "featurestores" collection of methods. - */ - public class Featurestores { - - /** - * Batch reads Feature values from a Featurestore. This API enables batch reading Feature values, - * where each read instance in the batch may read Feature values of entities from one or more - * EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as - * of each instance's read timestamp. - * - * Create a request for the method "featurestores.batchReadFeatureValues". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link BatchReadFeatureValues#execute()} method to invoke the remote - * operation. - * - * @param featurestore Required. The resource name of the Featurestore from which to query Feature values. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest} - * @return the request - */ - public BatchReadFeatureValues batchReadFeatureValues(java.lang.String featurestore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest content) throws java.io.IOException { - BatchReadFeatureValues result = new BatchReadFeatureValues(featurestore, content); - initialize(result); - return result; - } - - public class BatchReadFeatureValues extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+featurestore}:batchReadFeatureValues"; - - private final java.util.regex.Pattern FEATURESTORE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); - /** - * Batch reads Feature values from a Featurestore. This API enables batch reading Feature values, - * where each read instance in the batch may read Feature values of entities from one or more - * EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance - * as of each instance's read timestamp. - * - * Create a request for the method "featurestores.batchReadFeatureValues". + * An accessor for creating requests from the Operations collection. * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link BatchReadFeatureValues#execute()} method to invoke the - * remote operation.

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

+ *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+           * 
* - * @param featurestore Required. The resource name of the Featurestore from which to query Feature values. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest} - * @since 1.13 + * @return the resource collection */ - protected BatchReadFeatureValues(java.lang.String featurestore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.featurestore = com.google.api.client.util.Preconditions.checkNotNull(featurestore, "Required parameter featurestore must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FEATURESTORE_PATTERN.matcher(featurestore).matches(), - "Parameter featurestore must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); - } + public Operations operations() { + return new Operations(); } - @Override - public BatchReadFeatureValues set$Xgafv(java.lang.String $Xgafv) { - return (BatchReadFeatureValues) super.set$Xgafv($Xgafv); - } + /** + * The "operations" collection of methods. + */ + public class Operations { - @Override - public BatchReadFeatureValues setAccessToken(java.lang.String accessToken) { - return (BatchReadFeatureValues) super.setAccessToken(accessToken); - } + /** + * 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 BatchReadFeatureValues setAlt(java.lang.String alt) { - return (BatchReadFeatureValues) super.setAlt(alt); - } + public class Delete extends AiplatformRequest { - @Override - public BatchReadFeatureValues setCallback(java.lang.String callback) { - return (BatchReadFeatureValues) super.setCallback(callback); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public BatchReadFeatureValues setFields(java.lang.String fields) { - return (BatchReadFeatureValues) super.setFields(fields); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); - @Override - public BatchReadFeatureValues setKey(java.lang.String key) { - return (BatchReadFeatureValues) 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); + } + } - @Override - public BatchReadFeatureValues setOauthToken(java.lang.String oauthToken) { - return (BatchReadFeatureValues) super.setOauthToken(oauthToken); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public BatchReadFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchReadFeatureValues) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public BatchReadFeatureValues setQuotaUser(java.lang.String quotaUser) { - return (BatchReadFeatureValues) super.setQuotaUser(quotaUser); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public BatchReadFeatureValues setUploadType(java.lang.String uploadType) { - return (BatchReadFeatureValues) super.setUploadType(uploadType); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public BatchReadFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchReadFeatureValues) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - /** - * Required. The resource name of the Featurestore from which to query Feature values. - * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}` - */ - @com.google.api.client.util.Key - private java.lang.String featurestore; + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - /** Required. The resource name of the Featurestore from which to query Feature values. Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}` - */ - public java.lang.String getFeaturestore() { - return featurestore; - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the Featurestore from which to query Feature values. - * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}` - */ - public BatchReadFeatureValues setFeaturestore(java.lang.String featurestore) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FEATURESTORE_PATTERN.matcher(featurestore).matches(), - "Parameter featurestore must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); - } - this.featurestore = featurestore; - return this; - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchReadFeatureValues set(String parameterName, Object value) { - return (BatchReadFeatureValues) super.set(parameterName, value); - } - } - /** - * Creates a new Featurestore in a given project and location. - * - * Create a request for the method "featurestores.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 Featurestores. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - public class Create extends AiplatformRequest { + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v1beta1/{+parent}/featurestores"; + @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/[^/]+$"); + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Creates a new Featurestore in a given project and location. - * - * Create a request for the method "featurestores.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 Featurestores. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore 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/[^/]+$"); + /** 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/[^/]+/featureGroups/[^/]+/features/[^/]+/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; } - } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest { - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + /** + * 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); + } + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * Required. The resource name of the Location to create Featurestores. Format: - * `projects/{project}/locations/{location}` - */ - @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 resource name of the Location to create Featurestores. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the Location to create Featurestores. 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 Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The ID to use for this Featurestore, which will become the final component of - * the Featurestore's resource name. This value may be up to 60 characters, and valid - * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be - * unique within the project and location. - */ - @com.google.api.client.util.Key - private java.lang.String featurestoreId; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** Required. The ID to use for this Featurestore, which will become the final component of the - Featurestore's resource name. This value may be up to 60 characters, and valid characters are - `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project - and location. - */ - public java.lang.String getFeaturestoreId() { - return featurestoreId; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * Required. The ID to use for this Featurestore, which will become the final component of - * the Featurestore's resource name. This value may be up to 60 characters, and valid - * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be - * unique within the project and location. - */ - public Create setFeaturestoreId(java.lang.String featurestoreId) { - this.featurestoreId = featurestoreId; - return this; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` must - * be set to true for the request to succeed. - * - * Create a request for the method "featurestores.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 Featurestore to be deleted. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - * @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 { + /** The name of the operation 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 resource. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + /** 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - /** - * Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` - * must be set to true for the request to succeed. - * - * Create a request for the method "featurestores.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 Featurestore to be deleted. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - * @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/[^/]+/featurestores/[^/]+$"); + @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; } - } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class List extends AiplatformRequest { - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - @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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** + * 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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); + } + } - @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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** - * Required. The name of the Featurestore to be deleted. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Required. The name of the Featurestore to be deleted. Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}` - */ - public java.lang.String getName() { - return name; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the Featurestore to be deleted. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - */ - 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/[^/]+/featurestores/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** - * If set to true, any EntityTypes and Features for this Featurestore will also be - * deleted. (Otherwise, the request will only work if the Featurestore has no - * EntityTypes.) - */ - @com.google.api.client.util.Key - private java.lang.Boolean force; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** If set to true, any EntityTypes and Features for this Featurestore will also be deleted. - (Otherwise, the request will only work if the Featurestore has no EntityTypes.) - */ - public java.lang.Boolean getForce() { - return force; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** - * If set to true, any EntityTypes and Features for this Featurestore will also be - * deleted. (Otherwise, the request will only work if the Featurestore has no - * EntityTypes.) - */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; - return this; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets details of a single Featurestore. - * - * Create a request for the method "featurestores.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 Featurestore resource. - * @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's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - public class Get extends AiplatformRequest { + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - private static final String REST_PATH = "v1beta1/{+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/[^/]+/featureGroups/[^/]+/features/[^/]+$"); + } + this.name = name; + return this; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** - * Gets details of a single Featurestore. - * - * Create a request for the method "featurestores.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 Featurestore resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore.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/[^/]+/featurestores/[^/]+$"); - } - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** + * 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 Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** 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 Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * 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 Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @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 Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + public class Wait extends AiplatformRequest { - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + private static final String REST_PATH = "v1beta1/{+name}:wait"; - /** Required. The name of the Featurestore resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); - /** Required. The name of the Featurestore resource. - */ - public java.lang.String getName() { - return name; - } + /** + * 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); + } + } - /** Required. The name of the Featurestore 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/[^/]+/featurestores/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. - * - * Create a request for the method "featurestores.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. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1GetIamPolicyRequest} - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1GetIamPolicyRequest content) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class GetIamPolicy extends AiplatformRequest { + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+resource}:getIamPolicy"; + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - /** - * 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 "featurestores.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. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1GetIamPolicyRequest} - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1GetIamPolicyRequest 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/[^/]+/featurestores/[^/]+$"); - } - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } + /** 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/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) 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. + */ + @com.google.api.client.util.Key + private String timeout; - /** - * 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; + /** 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; + } - /** 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; - } + /** + * 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; + } - /** - * 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/[^/]+/featurestores/[^/]+$"); + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } } - this.resource = resource; - return this; - } - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); } } /** - * Lists Featurestores in a given project and location. - * - * Create a request for the method "featurestores.list". + * 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 List#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 parent Required. The resource name of the Location to list Featurestores. 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 Operations operations() { + return new Operations(); } - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/featurestores"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class Operations { /** - * Lists Featurestores in a given project and location. + * 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 "featurestores.list". + * 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 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 Delete#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location to list Featurestores. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 + * @param name The name of the operation resource to be deleted. + * @return the request */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeaturestoresResponse.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 Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Delete 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}"; - @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/[^/]+/featureGroups/[^/]+/operations/[^/]+$"); - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * 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/[^/]+/featureGroups/[^/]+/operations/[^/]+$"); + } + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** - * Required. The resource name of the Location to list Featurestores. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - /** Required. The resource name of the Location to list Featurestores. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The resource name of the Location to list Featurestores. 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/[^/]+$"); + /** 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; } - this.parent = parent; - return this; - } - /** - * Lists the featurestores that match the filter expression. The following fields are - * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. - * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, - * and `>=` comparisons. Values must be in RFC 3339 format. * - * `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` - * comparisons. * `labels`: Supports key-value equality and key presence. Examples: * - * `create_time > "2020-01-01" OR update_time > "2020-01-01"` Featurestores created or - * updated after 2020-01-01. * `labels.env = "prod"` Featurestores with label "env" set to - * "prod". - */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** 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/[^/]+/featureGroups/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - /** Lists the featurestores that match the filter expression. The following fields are supported: * - `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 - format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be - in RFC 3339 format. * `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `<`, `>`, `<=`, - and `>=` comparisons. * `labels`: Supports key-value equality and key presence. Examples: * - `create_time > "2020-01-01" OR update_time > "2020-01-01"` Featurestores created or updated after - 2020-01-01. * `labels.env = "prod"` Featurestores with label "env" set to "prod". - */ - public java.lang.String getFilter() { - return filter; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } } - /** - * Lists the featurestores that match the filter expression. The following fields are - * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. - * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, - * and `>=` comparisons. Values must be in RFC 3339 format. * - * `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` - * comparisons. * `labels`: Supports key-value equality and key presence. Examples: * - * `create_time > "2020-01-01" OR update_time > "2020-01-01"` Featurestores created or - * updated after 2020-01-01. * `labels.env = "prod"` Featurestores with label "env" set to - * "prod". + * 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 List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported Fields: * `create_time` * `update_time` * - * `online_serving_config.fixed_node_count` - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + public class Get extends AiplatformRequest { - /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field - name for descending. Supported Fields: * `create_time` * `update_time` * - `online_serving_config.fixed_node_count` - */ - public java.lang.String getOrderBy() { - return orderBy; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported Fields: * `create_time` * `update_time` * - * `online_serving_config.fixed_node_count` - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$"); - /** - * The maximum number of Featurestores to return. The service may return fewer than this - * value. If unspecified, at most 100 Featurestores will be returned. The maximum value is - * 100; any value greater than 100 will be coerced to 100. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** + * 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/[^/]+/featureGroups/[^/]+/operations/[^/]+$"); + } + } - /** The maximum number of Featurestores to return. The service may return fewer than this value. If - unspecified, at most 100 Featurestores will be returned. The maximum value is 100; any value - greater than 100 will be coerced to 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** - * The maximum number of Featurestores to return. The service may return fewer than this - * value. If unspecified, at most 100 Featurestores will be returned. The maximum value is - * 100; any value greater than 100 will be coerced to 100. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * A page token, received from a previous FeaturestoreService.ListFeaturestores call. - * Provide this to retrieve the subsequent page. When paginating, all other parameters - * provided to FeaturestoreService.ListFeaturestores must match the call that provided the - * page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** A page token, received from a previous FeaturestoreService.ListFeaturestores call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - FeaturestoreService.ListFeaturestores must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** - * A page token, received from a previous FeaturestoreService.ListFeaturestores call. - * Provide this to retrieve the subsequent page. When paginating, all other parameters - * provided to FeaturestoreService.ListFeaturestores must match the call that provided the - * page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates the parameters of a single Featurestore. - * - * Create a request for the method "featurestores.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. Name of the Featurestore. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - public class Patch extends AiplatformRequest { + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + @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/[^/]+/featureGroups/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Updates the parameters of a single Featurestore. + * 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 "featurestores.patch". + * 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 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.

+ * 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 Output only. Name of the Featurestore. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore} - * @since 1.13 + * @param name The name of the operation's parent resource. + * @return the request */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore 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/[^/]+/featurestores/[^/]+$"); - } + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class List extends AiplatformRequest { - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$"); - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + /** + * 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/[^/]+/featureGroups/[^/]+$"); + } + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** - * Output only. Name of the Featurestore. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Output only. Name of the Featurestore. Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}` - */ - public java.lang.String getName() { - return name; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Output only. Name of the Featurestore. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - */ - 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/[^/]+/featurestores/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - this.name = name; - return this; - } - /** - * Field mask is used to specify the fields to be overwritten in the Featurestore resource - * by the update. The fields specified in the update_mask are relative to the resource, - * not the full request. A field will be overwritten if it is in the mask. If the user - * does not provide a mask then only the non-empty fields present in the request will be - * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * - * `labels` * `online_serving_config.fixed_node_count` * `online_serving_config.scaling` * - * `online_storage_ttl_days` - */ - @com.google.api.client.util.Key - private String updateMask; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** Field mask is used to specify the fields to be overwritten in the Featurestore resource by the - update. The fields specified in the update_mask are relative to the resource, not the full request. - A field will be overwritten if it is in the mask. If the user does not provide a mask then only the - non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override - all fields. Updatable fields: * `labels` * `online_serving_config.fixed_node_count` * - `online_serving_config.scaling` * `online_storage_ttl_days` - */ - public String getUpdateMask() { - return updateMask; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** - * Field mask is used to specify the fields to be overwritten in the Featurestore resource - * by the update. The fields specified in the update_mask are relative to the resource, - * not the full request. A field will be overwritten if it is in the mask. If the user - * does not provide a mask then only the non-empty fields present in the request will be - * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * - * `labels` * `online_serving_config.fixed_node_count` * `online_serving_config.scaling` * - * `online_storage_ttl_days` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Searches Features matching a query in a given project. - * - * Create a request for the method "featurestores.searchFeatures". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link SearchFeatures#execute()} method to invoke the remote operation. - * - * @param location Required. The resource name of the Location to search Features. Format: - * `projects/{project}/locations/{location}` - * @return the request - */ - public SearchFeatures searchFeatures(java.lang.String location) throws java.io.IOException { - SearchFeatures result = new SearchFeatures(location); - initialize(result); - return result; - } + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - public class SearchFeatures extends AiplatformRequest { + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - private static final String REST_PATH = "v1beta1/{+location}/featurestores:searchFeatures"; + /** 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/[^/]+/featureGroups/[^/]+$"); + } + this.name = name; + return this; + } - private final java.util.regex.Pattern LOCATION_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** - * Searches Features matching a query in a given project. - * - * Create a request for the method "featurestores.searchFeatures". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link SearchFeatures#execute()} method to invoke the remote - * operation.

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

- * - * @param location Required. The resource name of the Location to search Features. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 - */ - protected SearchFeatures(java.lang.String location) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchFeaturesResponse.class); - this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), - "Parameter location must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public SearchFeatures set$Xgafv(java.lang.String $Xgafv) { - return (SearchFeatures) super.set$Xgafv($Xgafv); + /** 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/[^/]+/featureGroups/[^/]+/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/[^/]+/featureGroups/[^/]+/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/[^/]+/featureGroups/[^/]+/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 FeatureOnlineStores collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.FeatureOnlineStores.List request = aiplatform.featureOnlineStores().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public FeatureOnlineStores featureOnlineStores() { + return new FeatureOnlineStores(); + } + + /** + * The "featureOnlineStores" collection of methods. + */ + public class FeatureOnlineStores { + + /** + * Creates a new FeatureOnlineStore in a given project and location. + * + * Create a request for the method "featureOnlineStores.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 FeatureOnlineStores. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore 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}/featureOnlineStores"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new FeatureOnlineStore in a given project and location. + * + * Create a request for the method "featureOnlineStores.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 FeatureOnlineStores. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore 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 SearchFeatures setAccessToken(java.lang.String accessToken) { - return (SearchFeatures) super.setAccessToken(accessToken); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public SearchFeatures setAlt(java.lang.String alt) { - return (SearchFeatures) super.setAlt(alt); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public SearchFeatures setCallback(java.lang.String callback) { - return (SearchFeatures) super.setCallback(callback); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public SearchFeatures setFields(java.lang.String fields) { - return (SearchFeatures) super.setFields(fields); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public SearchFeatures setKey(java.lang.String key) { - return (SearchFeatures) super.setKey(key); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public SearchFeatures setOauthToken(java.lang.String oauthToken) { - return (SearchFeatures) super.setOauthToken(oauthToken); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public SearchFeatures setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchFeatures) super.setPrettyPrint(prettyPrint); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public SearchFeatures setQuotaUser(java.lang.String quotaUser) { - return (SearchFeatures) super.setQuotaUser(quotaUser); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public SearchFeatures setUploadType(java.lang.String uploadType) { - return (SearchFeatures) super.setUploadType(uploadType); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public SearchFeatures setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchFeatures) super.setUploadProtocol(uploadProtocol); + 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 search Features. Format: + * Required. The resource name of the Location to create FeatureOnlineStores. Format: * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String location; + private java.lang.String parent; - /** Required. The resource name of the Location to search Features. Format: + /** Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}` */ - public java.lang.String getLocation() { - return location; + public java.lang.String getParent() { + return parent; } /** - * Required. The resource name of the Location to search Features. Format: + * Required. The resource name of the Location to create FeatureOnlineStores. Format: * `projects/{project}/locations/{location}` */ - public SearchFeatures setLocation(java.lang.String location) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), - "Parameter location must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } - this.location = location; + this.parent = parent; return this; } /** - * The maximum number of Features to return. The service may return fewer than this value. - * If unspecified, at most 100 Features will be returned. The maximum value is 100; any - * value greater than 100 will be coerced to 100. + * Required. The ID to use for this FeatureOnlineStore, which will become the final + * component of the FeatureOnlineStore's resource name. This value may be up to 60 + * characters, and valid characters are `[a-z0-9_]`. The first character cannot be a + * number. The value must be unique within the project and location. */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String featureOnlineStoreId; - /** The maximum number of Features to return. The service may return fewer than this value. If - unspecified, at most 100 Features will be returned. The maximum value is 100; any value greater - than 100 will be coerced to 100. + /** Required. The ID to use for this FeatureOnlineStore, which will become the final component of the + FeatureOnlineStore's resource name. This value may be up to 60 characters, and valid characters are + `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project + and location. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getFeatureOnlineStoreId() { + return featureOnlineStoreId; } /** - * The maximum number of Features to return. The service may return fewer than this value. - * If unspecified, at most 100 Features will be returned. The maximum value is 100; any - * value greater than 100 will be coerced to 100. + * Required. The ID to use for this FeatureOnlineStore, which will become the final + * component of the FeatureOnlineStore's resource name. This value may be up to 60 + * characters, and valid characters are `[a-z0-9_]`. The first character cannot be a + * number. The value must be unique within the project and location. */ - public SearchFeatures setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + public Create setFeatureOnlineStoreId(java.lang.String featureOnlineStoreId) { + this.featureOnlineStoreId = featureOnlineStoreId; return this; } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews. + * + * Create a request for the method "featureOnlineStores.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 FeatureOnlineStore to be deleted. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @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/[^/]+/featureOnlineStores/[^/]+$"); + /** - * A page token, received from a previous FeaturestoreService.SearchFeatures call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided to - * FeaturestoreService.SearchFeatures, except `page_size`, must match the call that - * provided the page token. + * Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews. + * + * Create a request for the method "featureOnlineStores.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 FeatureOnlineStore to be deleted. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + 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/[^/]+/featureOnlineStores/[^/]+$"); + } + } - /** A page token, received from a previous FeaturestoreService.SearchFeatures call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - FeaturestoreService.SearchFeatures, except `page_size`, must match the call that provided the page - token. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } - /** - * A page token, received from a previous FeaturestoreService.SearchFeatures call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided to - * FeaturestoreService.SearchFeatures, except `page_size`, must match the call that - * provided the page token. - */ - public SearchFeatures setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } - /** - * Query string that is a conjunction of field-restricted queries and/or field-restricted - * filters. Field-restricted queries and filters can be combined using `AND` to form a - * conjunction. A field query is in the form FIELD:QUERY. This implicitly checks if QUERY - * exists as a substring within Feature's FIELD. The QUERY and the FIELD are converted to - * a sequence of words (i.e. tokens) for comparison. This is done by: * Removing - * leading/trailing whitespace and tokenizing the search value. Characters that are not - * one of alphanumeric `[a-zA-Z0-9]`, underscore `_`, or asterisk `*` are treated as - * delimiters for tokens. `*` is treated as a wildcard that matches characters within a - * token. * Ignoring case. * Prepending an asterisk to the first and appending an asterisk - * to the last token in QUERY. A QUERY must be either a singular token or a phrase. A - * phrase is one or multiple words enclosed in double quotation marks ("). With phrases, - * the order of the words is important. Words in the phrase must be matching in order and - * consecutively. Supported FIELDs for field-restricted queries: * `feature_id` * - * `description` * `entity_type_id` Examples: * `feature_id: foo` --> Matches a Feature - * with ID containing the substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * - * `feature_id: foo*feature` --> Matches a Feature with ID containing the substring - * `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND description: bar` --> - * Matches a Feature with ID containing the substring `foo` and description containing the - * substring `bar`. Besides field queries, the following exact-match filters are - * supported. The exact-match filters do not support wildcards. Unlike field-restricted - * queries, exact-match filters are case-sensitive. * `feature_id`: Supports = - * comparisons. * `description`: Supports = comparisons. Multi-token filters should be - * enclosed in quotes. * `entity_type_id`: Supports = comparisons. * `value_type`: - * Supports = and != comparisons. * `labels`: Supports key-value equality as well as key - * presence. * `featurestore_id`: Supports = comparisons. Examples: * `description = "foo - * bar"` --> Any Feature with description exactly equal to `foo bar` * `value_type = - * DOUBLE` --> Features whose type is DOUBLE. * `labels.active = yes AND labels.env = - * prod` --> Features having both (active: yes) and (env: prod) labels. * `labels.env: *` - * --> Any Feature which has a label with `env` as the key. + @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 FeatureOnlineStore to be deleted. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` */ @com.google.api.client.util.Key - private java.lang.String query; + private java.lang.String name; - /** Query string that is a conjunction of field-restricted queries and/or field-restricted filters. - Field-restricted queries and filters can be combined using `AND` to form a conjunction. A field - query is in the form FIELD:QUERY. This implicitly checks if QUERY exists as a substring within - Feature's FIELD. The QUERY and the FIELD are converted to a sequence of words (i.e. tokens) for - comparison. This is done by: * Removing leading/trailing whitespace and tokenizing the search - value. Characters that are not one of alphanumeric `[a-zA-Z0-9]`, underscore `_`, or asterisk `*` - are treated as delimiters for tokens. `*` is treated as a wildcard that matches characters within a - token. * Ignoring case. * Prepending an asterisk to the first and appending an asterisk to the last - token in QUERY. A QUERY must be either a singular token or a phrase. A phrase is one or multiple - words enclosed in double quotation marks ("). With phrases, the order of the words is important. - Words in the phrase must be matching in order and consecutively. Supported FIELDs for field- - restricted queries: * `feature_id` * `description` * `entity_type_id` Examples: * `feature_id: foo` - --> Matches a Feature with ID containing the substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * - `feature_id: foo*feature` --> Matches a Feature with ID containing the substring `foo*feature` (eg. - `foobarfeature`). * `feature_id: foo AND description: bar` --> Matches a Feature with ID containing - the substring `foo` and description containing the substring `bar`. Besides field queries, the - following exact-match filters are supported. The exact-match filters do not support wildcards. - Unlike field-restricted queries, exact-match filters are case-sensitive. * `feature_id`: Supports = - comparisons. * `description`: Supports = comparisons. Multi-token filters should be enclosed in - quotes. * `entity_type_id`: Supports = comparisons. * `value_type`: Supports = and != comparisons. - * `labels`: Supports key-value equality as well as key presence. * `featurestore_id`: Supports = - comparisons. Examples: * `description = "foo bar"` --> Any Feature with description exactly equal - to `foo bar` * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `labels.active = yes AND - labels.env = prod` --> Features having both (active: yes) and (env: prod) labels. * `labels.env: *` - --> Any Feature which has a label with `env` as the key. + /** Required. The name of the FeatureOnlineStore to be deleted. Format: + `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` */ - public java.lang.String getQuery() { - return query; + public java.lang.String getName() { + return name; } /** - * Query string that is a conjunction of field-restricted queries and/or field-restricted - * filters. Field-restricted queries and filters can be combined using `AND` to form a - * conjunction. A field query is in the form FIELD:QUERY. This implicitly checks if QUERY - * exists as a substring within Feature's FIELD. The QUERY and the FIELD are converted to - * a sequence of words (i.e. tokens) for comparison. This is done by: * Removing - * leading/trailing whitespace and tokenizing the search value. Characters that are not - * one of alphanumeric `[a-zA-Z0-9]`, underscore `_`, or asterisk `*` are treated as - * delimiters for tokens. `*` is treated as a wildcard that matches characters within a - * token. * Ignoring case. * Prepending an asterisk to the first and appending an asterisk - * to the last token in QUERY. A QUERY must be either a singular token or a phrase. A - * phrase is one or multiple words enclosed in double quotation marks ("). With phrases, - * the order of the words is important. Words in the phrase must be matching in order and - * consecutively. Supported FIELDs for field-restricted queries: * `feature_id` * - * `description` * `entity_type_id` Examples: * `feature_id: foo` --> Matches a Feature - * with ID containing the substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * - * `feature_id: foo*feature` --> Matches a Feature with ID containing the substring - * `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND description: bar` --> - * Matches a Feature with ID containing the substring `foo` and description containing the - * substring `bar`. Besides field queries, the following exact-match filters are - * supported. The exact-match filters do not support wildcards. Unlike field-restricted - * queries, exact-match filters are case-sensitive. * `feature_id`: Supports = - * comparisons. * `description`: Supports = comparisons. Multi-token filters should be - * enclosed in quotes. * `entity_type_id`: Supports = comparisons. * `value_type`: - * Supports = and != comparisons. * `labels`: Supports key-value equality as well as key - * presence. * `featurestore_id`: Supports = comparisons. Examples: * `description = "foo - * bar"` --> Any Feature with description exactly equal to `foo bar` * `value_type = - * DOUBLE` --> Features whose type is DOUBLE. * `labels.active = yes AND labels.env = - * prod` --> Features having both (active: yes) and (env: prod) labels. * `labels.env: *` - * --> Any Feature which has a label with `env` as the key. + * Required. The name of the FeatureOnlineStore to be deleted. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` */ - public SearchFeatures setQuery(java.lang.String query) { - this.query = 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/[^/]+/featureOnlineStores/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be + * deleted. (Otherwise, the request will only work if the FeatureOnlineStore has no + * FeatureViews.) + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be deleted. + (Otherwise, the request will only work if the FeatureOnlineStore has no FeatureViews.) + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be + * deleted. (Otherwise, the request will only work if the FeatureOnlineStore has no + * FeatureViews.) + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; return this; } @Override - public SearchFeatures set(String parameterName, Object value) { - return (SearchFeatures) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Gets details of a single FeatureOnlineStore. * - * Create a request for the method "featurestores.setIamPolicy". + * Create a request for the method "featureOnlineStores.get". * * 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. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1SetIamPolicyRequest} + * @param name Required. The name of the FeatureOnlineStore resource. * @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); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class SetIamPolicy extends AiplatformRequest { + public class Get extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Gets details of a single FeatureOnlineStore. * - * Create a request for the method "featurestores.setIamPolicy". + * Create a request for the method "featureOnlineStores.get". * * 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)} + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

+ * 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 detail is being requested. See [Resource + * @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 content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsResponse.class); + 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/[^/]+/featurestores/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * REQUIRED: The resource for which the policy detail is being requested. See [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. */ @com.google.api.client.util.Key private java.lang.String resource; - /** REQUIRED: The resource for which the policy detail is being requested. See [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. */ @@ -96211,1227 +90257,1657 @@ public java.lang.String getResource() { } /** - * REQUIRED: The resource for which the policy detail is being requested. See [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 TestIamPermissions setResource(java.lang.String resource) { + 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/[^/]+/featurestores/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); } 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 TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the EntityTypes collection. + * Lists FeatureOnlineStores in a given project and location. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.EntityTypes.List request = aiplatform.entityTypes().list(parameters ...)}
-         * 
+ * Create a request for the method "featureOnlineStores.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 resource name of the Location to list FeatureOnlineStores. Format: + * `projects/{project}/locations/{location}` + * @return the request */ - public EntityTypes entityTypes() { - return new EntityTypes(); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - /** - * The "entityTypes" collection of methods. - */ - public class EntityTypes { + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/featureOnlineStores"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates a new EntityType in a given Featurestore. + * Lists FeatureOnlineStores in a given project and location. * - * Create a request for the method "entityTypes.create". + * Create a request for the method "featureOnlineStores.list". * - * 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. + * 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 Featurestore to create EntityTypes. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType} - * @return the request + * @param parent Required. The resource name of the Location to list FeatureOnlineStores. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse.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 Create extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/entityTypes"; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Creates a new EntityType in a given Featurestore. - * - * Create a request for the method "entityTypes.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 Featurestore to create EntityTypes. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType 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/[^/]+/featurestores/[^/]+$"); - } - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The resource name of the Location to list FeatureOnlineStores. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * Required. The resource name of the Featurestore to create EntityTypes. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** Required. The resource name of the Location to list FeatureOnlineStores. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** Required. The resource name of the Featurestore to create EntityTypes. Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}` - */ - public java.lang.String getParent() { - return parent; + /** + * Required. The resource name of the Location to list FeatureOnlineStores. 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; + } - /** - * Required. The resource name of the Featurestore to create EntityTypes. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` - */ - 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/[^/]+/featurestores/[^/]+$"); - } - this.parent = parent; - return this; - } + /** + * Lists the FeatureOnlineStores that match the filter expression. The following fields + * are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` + * comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, + * `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * `labels`: + * Supports key-value equality and key presence. Examples: * `create_time > "2020-01-01" + * OR update_time > "2020-01-01"` FeatureOnlineStores created or updated after 2020-01-01. + * * `labels.env = "prod"` FeatureOnlineStores with label "env" set to "prod". + */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** - * Required. The ID to use for the EntityType, which will become the final component of - * the EntityType's resource name. This value may be up to 60 characters, and valid - * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be - * unique within a featurestore. - */ - @com.google.api.client.util.Key - private java.lang.String entityTypeId; + /** Lists the FeatureOnlineStores that match the filter expression. The following fields are supported: + * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC + 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must + be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * + `create_time > "2020-01-01" OR update_time > "2020-01-01"` FeatureOnlineStores created or updated + after 2020-01-01. * `labels.env = "prod"` FeatureOnlineStores with label "env" set to "prod". + */ + public java.lang.String getFilter() { + return filter; + } - /** Required. The ID to use for the EntityType, which will become the final component of the - EntityType's resource name. This value may be up to 60 characters, and valid characters are - `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a - featurestore. - */ - public java.lang.String getEntityTypeId() { - return entityTypeId; - } + /** + * Lists the FeatureOnlineStores that match the filter expression. The following fields + * are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` + * comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, + * `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * `labels`: + * Supports key-value equality and key presence. Examples: * `create_time > "2020-01-01" + * OR update_time > "2020-01-01"` FeatureOnlineStores created or updated after 2020-01-01. + * * `labels.env = "prod"` FeatureOnlineStores with label "env" set to "prod". + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** - * Required. The ID to use for the EntityType, which will become the final component of - * the EntityType's resource name. This value may be up to 60 characters, and valid - * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be - * unique within a featurestore. - */ - public Create setEntityTypeId(java.lang.String entityTypeId) { - this.entityTypeId = entityTypeId; - 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: * `create_time` * `update_time` + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Create set(String parameterName, Object value) { - return (Create) 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: * `create_time` * `update_time` + */ + public java.lang.String getOrderBy() { + return orderBy; } + /** - * Deletes a single EntityType. The EntityType must not have any Features or `force` must be set to - * true for the request to succeed. - * - * Create a request for the method "entityTypes.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 EntityType to be deleted. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` - * @return the request + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. Supported Fields: * `create_time` * `update_time` */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - public class Delete extends AiplatformRequest { + /** + * The maximum number of FeatureOnlineStores to return. The service may return fewer than + * this value. If unspecified, at most 100 FeatureOnlineStores will be returned. The + * maximum value is 100; any value greater than 100 will be coerced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - private static final String REST_PATH = "v1beta1/{+name}"; + /** The maximum number of FeatureOnlineStores to return. The service may return fewer than this value. + If unspecified, at most 100 FeatureOnlineStores will be returned. The maximum value is 100; any + value greater than 100 will be coerced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + /** + * The maximum number of FeatureOnlineStores to return. The service may return fewer than + * this value. If unspecified, at most 100 FeatureOnlineStores will be returned. The + * maximum value is 100; any value greater than 100 will be coerced to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** - * Deletes a single EntityType. The EntityType must not have any Features or `force` must be set - * to true for the request to succeed. - * - * Create a request for the method "entityTypes.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 EntityType to be deleted. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` - * @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); - } - } + /** + * A page token, received from a previous + * FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this to retrieve + * the subsequent page. When paginating, all other parameters provided to + * FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call that + * provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. + Provide this to retrieve the subsequent page. When paginating, all other parameters provided to + FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call that provided the page + token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + /** + * A page token, received from a previous + * FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this to retrieve + * the subsequent page. When paginating, all other parameters provided to + * FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call that + * provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the parameters of a single FeatureOnlineStore. + * + * Create a request for the method "featureOnlineStores.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. Name of the FeatureOnlineStore. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + public class Patch extends AiplatformRequest { - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + /** + * Updates the parameters of a single FeatureOnlineStore. + * + * Create a request for the method "featureOnlineStores.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. Name of the FeatureOnlineStore. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureOnlineStore 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/[^/]+/featureOnlineStores/[^/]+$"); } + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - /** - * Required. The name of the EntityType to be deleted. Format: `projects/{project}/locat - * ions/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - /** Required. The name of the EntityType to be deleted. Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - /** - * Required. The name of the EntityType to be deleted. Format: `projects/{project}/locat - * ions/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - */ - 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** - * If set to true, any Features for this EntityType will also be deleted. (Otherwise, - * the request will only work if the EntityType has no Features.) - */ - @com.google.api.client.util.Key - private java.lang.Boolean force; + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** If set to true, any Features for this EntityType will also be deleted. (Otherwise, the request will - only work if the EntityType has no Features.) - */ - public java.lang.Boolean getForce() { - return force; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** - * If set to true, any Features for this EntityType will also be deleted. (Otherwise, - * the request will only work if the EntityType has no Features.) - */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; - 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); + } + + /** + * Identifier. Name of the FeatureOnlineStore. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Name of the FeatureOnlineStore. Format: + `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the FeatureOnlineStore. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + */ + 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/[^/]+/featureOnlineStores/[^/]+$"); } + this.name = name; + return this; } + /** - * Delete Feature values from Featurestore. The progress of the deletion is tracked by the returned - * operation. The deleted feature values are guaranteed to be invisible to subsequent read - * operations after the operation is marked as successfully done. If a delete feature values - * operation fails, the feature values returned from reads and exports may be inconsistent. If - * consistency is required, the caller must retry the same delete request again and wait till the - * new operation returned is marked as successfully done. + * Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore + * resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then only the non-empty fields present in the request + * will be overwritten. Set the update_mask to `*` to override all fields. Updatable + * fields: * `labels` * `description` * `bigtable` * `bigtable.auto_scaling` * + * `bigtable.enable_multi_region_replica` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by + the update. The fields specified in the update_mask are relative to the resource, not the full + request. A field will be overwritten if it is in the mask. If the user does not provide a mask then + only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to + override all fields. Updatable fields: * `labels` * `description` * `bigtable` * + `bigtable.auto_scaling` * `bigtable.enable_multi_region_replica` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore + * resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then only the non-empty fields present in the request + * will be overwritten. Set the update_mask to `*` to override all fields. Updatable + * fields: * `labels` * `description` * `bigtable` * `bigtable.auto_scaling` * + * `bigtable.enable_multi_region_replica` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) 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 "featureOnlineStores.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/[^/]+/featureOnlineStores/[^/]+$"); + + /** + * 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 "entityTypes.deleteFeatureValues". + * Create a request for the method "featureOnlineStores.setIamPolicy". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link DeleteFeatureValues#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 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 entityType Required. The resource name of the EntityType grouping the Features for which values are being - * deleted from. Format: `projects/{project}/locations/{location}/featurestores/{featurestore - * }/entityTypes/{entityType}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest} - * @return the request + * @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 */ - public DeleteFeatureValues deleteFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest content) throws java.io.IOException { - DeleteFeatureValues result = new DeleteFeatureValues(entityType, content); - initialize(result); - return result; + 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/[^/]+/featureOnlineStores/[^/]+$"); + } } - public class DeleteFeatureValues extends AiplatformRequest { + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+entityType}:deleteFeatureValues"; + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern ENTITY_TYPE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } - /** - * Delete Feature values from Featurestore. The progress of the deletion is tracked by the - * returned operation. The deleted feature values are guaranteed to be invisible to subsequent - * read operations after the operation is marked as successfully done. If a delete feature values - * operation fails, the feature values returned from reads and exports may be inconsistent. If - * consistency is required, the caller must retry the same delete request again and wait till the - * new operation returned is marked as successfully done. - * - * Create a request for the method "entityTypes.deleteFeatureValues". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link DeleteFeatureValues#execute()} method to invoke the remote - * operation.

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

- * - * @param entityType Required. The resource name of the EntityType grouping the Features for which values are being - * deleted from. Format: `projects/{project}/locations/{location}/featurestores/{featurestore - * }/entityTypes/{entityType}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest} - * @since 1.13 - */ - protected DeleteFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.entityType = com.google.api.client.util.Preconditions.checkNotNull(entityType, "Required parameter entityType must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), - "Parameter entityType must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); - } - } + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } - @Override - public DeleteFeatureValues set$Xgafv(java.lang.String $Xgafv) { - return (DeleteFeatureValues) super.set$Xgafv($Xgafv); - } + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } - @Override - public DeleteFeatureValues setAccessToken(java.lang.String accessToken) { - return (DeleteFeatureValues) super.setAccessToken(accessToken); - } + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } - @Override - public DeleteFeatureValues setAlt(java.lang.String alt) { - return (DeleteFeatureValues) super.setAlt(alt); - } + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } - @Override - public DeleteFeatureValues setCallback(java.lang.String callback) { - return (DeleteFeatureValues) super.setCallback(callback); - } + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } - @Override - public DeleteFeatureValues setFields(java.lang.String fields) { - return (DeleteFeatureValues) super.setFields(fields); - } + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } - @Override - public DeleteFeatureValues setKey(java.lang.String key) { - return (DeleteFeatureValues) super.setKey(key); - } + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } - @Override - public DeleteFeatureValues setOauthToken(java.lang.String oauthToken) { - return (DeleteFeatureValues) super.setOauthToken(oauthToken); - } + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } - @Override - public DeleteFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteFeatureValues) 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. + */ + @com.google.api.client.util.Key + private java.lang.String resource; - @Override - public DeleteFeatureValues setQuotaUser(java.lang.String quotaUser) { - return (DeleteFeatureValues) 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 java.lang.String getResource() { + return resource; + } - @Override - public DeleteFeatureValues setUploadType(java.lang.String uploadType) { - return (DeleteFeatureValues) super.setUploadType(uploadType); + /** + * 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/[^/]+/featureOnlineStores/[^/]+$"); } + this.resource = resource; + return this; + } - @Override - public DeleteFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteFeatureValues) super.setUploadProtocol(uploadProtocol); - } + @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 "featureOnlineStores.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; + } - /** - * Required. The resource name of the EntityType grouping the Features for which values - * are being deleted from. Format: `projects/{project}/locations/{location}/featurestore - * s/{featurestore}/entityTypes/{entityType}` - */ - @com.google.api.client.util.Key - private java.lang.String entityType; + public class TestIamPermissions extends AiplatformRequest { - /** Required. The resource name of the EntityType grouping the Features for which values are being - deleted from. Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` - */ - public java.lang.String getEntityType() { - return entityType; - } + private static final String REST_PATH = "v1beta1/{+resource}:testIamPermissions"; - /** - * Required. The resource name of the EntityType grouping the Features for which values - * are being deleted from. Format: `projects/{project}/locations/{location}/featurestore - * s/{featurestore}/entityTypes/{entityType}` - */ - public DeleteFeatureValues setEntityType(java.lang.String entityType) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), - "Parameter entityType must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); - } - this.entityType = entityType; - return this; - } + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); - @Override - public DeleteFeatureValues set(String parameterName, Object value) { - return (DeleteFeatureValues) super.set(parameterName, value); - } - } /** - * Exports Feature values from all the entities of a target EntityType. + * 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 "entityTypes.exportFeatureValues". + * Create a request for the method "featureOnlineStores.testIamPermissions". * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link ExportFeatureValues#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 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 entityType Required. The resource name of the EntityType from which to export Feature values. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest} - * @return the request + * @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 */ - public ExportFeatureValues exportFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest content) throws java.io.IOException { - ExportFeatureValues result = new ExportFeatureValues(entityType, content); - initialize(result); - return result; + 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/[^/]+/featureOnlineStores/[^/]+$"); + } } - public class ExportFeatureValues extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+entityType}:exportFeatureValues"; + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern ENTITY_TYPE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } - /** - * Exports Feature values from all the entities of a target EntityType. - * - * Create a request for the method "entityTypes.exportFeatureValues". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link ExportFeatureValues#execute()} method to invoke the remote - * operation.

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

- * - * @param entityType Required. The resource name of the EntityType from which to export Feature values. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest} - * @since 1.13 - */ - protected ExportFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.entityType = com.google.api.client.util.Preconditions.checkNotNull(entityType, "Required parameter entityType must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), - "Parameter entityType must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); - } - } + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } - @Override - public ExportFeatureValues set$Xgafv(java.lang.String $Xgafv) { - return (ExportFeatureValues) super.set$Xgafv($Xgafv); - } + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } - @Override - public ExportFeatureValues setAccessToken(java.lang.String accessToken) { - return (ExportFeatureValues) super.setAccessToken(accessToken); - } + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } - @Override - public ExportFeatureValues setAlt(java.lang.String alt) { - return (ExportFeatureValues) super.setAlt(alt); - } + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } - @Override - public ExportFeatureValues setCallback(java.lang.String callback) { - return (ExportFeatureValues) super.setCallback(callback); - } + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } - @Override - public ExportFeatureValues setFields(java.lang.String fields) { - return (ExportFeatureValues) super.setFields(fields); - } + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } - @Override - public ExportFeatureValues setKey(java.lang.String key) { - return (ExportFeatureValues) super.setKey(key); - } + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } - @Override - public ExportFeatureValues setOauthToken(java.lang.String oauthToken) { - return (ExportFeatureValues) super.setOauthToken(oauthToken); - } + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } - @Override - public ExportFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ExportFeatureValues) super.setPrettyPrint(prettyPrint); - } + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } - @Override - public ExportFeatureValues setQuotaUser(java.lang.String quotaUser) { - return (ExportFeatureValues) super.setQuotaUser(quotaUser); - } + /** + * 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/[^/]+/featureOnlineStores/[^/]+$"); + } + 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 FeatureViews collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.FeatureViews.List request = aiplatform.featureViews().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public FeatureViews featureViews() { + return new FeatureViews(); + } + + /** + * The "featureViews" collection of methods. + */ + public class FeatureViews { + + /** + * Creates a new FeatureView in a given FeatureOnlineStore. + * + * Create a request for the method "featureViews.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 FeatureOnlineStore to create FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView 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}/featureViews"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); + + /** + * Creates a new FeatureView in a given FeatureOnlineStore. + * + * Create a request for the method "featureViews.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 FeatureOnlineStore to create FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView 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/[^/]+/featureOnlineStores/[^/]+$"); + } + } @Override - public ExportFeatureValues setUploadType(java.lang.String uploadType) { - return (ExportFeatureValues) super.setUploadType(uploadType); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public ExportFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { - return (ExportFeatureValues) super.setUploadProtocol(uploadProtocol); + 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 EntityType from which to export Feature values. - * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityT - * ypes/{entity_type}` + * Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` */ @com.google.api.client.util.Key - private java.lang.String entityType; + private java.lang.String parent; - /** Required. The resource name of the EntityType from which to export Feature values. Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /** Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: + `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` */ - public java.lang.String getEntityType() { - return entityType; + public java.lang.String getParent() { + return parent; } /** - * Required. The resource name of the EntityType from which to export Feature values. - * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityT - * ypes/{entity_type}` + * Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` */ - public ExportFeatureValues setEntityType(java.lang.String entityType) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), - "Parameter entityType must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); } - this.entityType = entityType; + this.parent = parent; + return this; + } + + /** + * Required. The ID to use for the FeatureView, which will become the final component of + * the FeatureView's resource name. This value may be up to 60 characters, and valid + * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be + * unique within a FeatureOnlineStore. + */ + @com.google.api.client.util.Key + private java.lang.String featureViewId; + + /** Required. The ID to use for the FeatureView, which will become the final component of the + FeatureView's resource name. This value may be up to 60 characters, and valid characters are + `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a + FeatureOnlineStore. + */ + public java.lang.String getFeatureViewId() { + return featureViewId; + } + + /** + * Required. The ID to use for the FeatureView, which will become the final component of + * the FeatureView's resource name. This value may be up to 60 characters, and valid + * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be + * unique within a FeatureOnlineStore. + */ + public Create setFeatureViewId(java.lang.String featureViewId) { + this.featureViewId = featureViewId; + return this; + } + + /** + * Immutable. If set to true, one on demand sync will be run immediately, regardless + * whether the FeatureView.sync_config is configured or not. + */ + @com.google.api.client.util.Key + private java.lang.Boolean runSyncImmediately; + + /** Immutable. If set to true, one on demand sync will be run immediately, regardless whether the + FeatureView.sync_config is configured or not. + */ + public java.lang.Boolean getRunSyncImmediately() { + return runSyncImmediately; + } + + /** + * Immutable. If set to true, one on demand sync will be run immediately, regardless + * whether the FeatureView.sync_config is configured or not. + */ + public Create setRunSyncImmediately(java.lang.Boolean runSyncImmediately) { + this.runSyncImmediately = runSyncImmediately; return this; } @Override - public ExportFeatureValues set(String parameterName, Object value) { - return (ExportFeatureValues) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Gets details of a single EntityType. + * Deletes a single FeatureView. * - * Create a request for the method "entityTypes.get". + * Create a request for the method "featureViews.delete". * * 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. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the EntityType resource. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` + * @param name Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{location + * }/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Get 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); /** - * Gets details of a single EntityType. + * Deletes a single FeatureView. * - * Create a request for the method "entityTypes.get". + * Create a request for the method "featureViews.delete". * * 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.

+ * 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 EntityType resource. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` + * @param name Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{location + * }/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType.class); + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the EntityType resource. Format: `projects/{project}/locations/ - * {location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Required. The name of the FeatureView to be deleted. Format: `projects/{project}/loca + * tions/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_vie + * w}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the EntityType resource. Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /** Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{locatio + n}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the EntityType resource. Format: `projects/{project}/locations/ - * {location}/featurestores/{featurestore}/entityTypes/{entity_type}` + * Required. The name of the FeatureView to be deleted. Format: `projects/{project}/loca + * tions/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_vie + * w}` */ - public Get setName(java.lang.String name) { + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } this.name = name; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) 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. + * Bidirectional streaming RPC to directly write to feature values in a feature view. Requests may + * not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce + * latency. * - * Create a request for the method "entityTypes.getIamPolicy". + * Create a request for the method "featureViews.directWrite". * * 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 DirectWrite#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 featureView FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnl + * ineStore}/featureViews/{featureView}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest} * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); + public DirectWrite directWrite(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest content) throws java.io.IOException { + DirectWrite result = new DirectWrite(featureView, content); initialize(result); return result; } - public class GetIamPolicy extends AiplatformRequest { + public class DirectWrite extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+resource}:getIamPolicy"; + private static final String REST_PATH = "v1beta1/{+featureView}:directWrite"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + private final java.util.regex.Pattern FEATURE_VIEW_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. + * Bidirectional streaming RPC to directly write to feature values in a feature view. Requests may + * not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce + * latency. * - * Create a request for the method "entityTypes.getIamPolicy". + * Create a request for the method "featureViews.directWrite". * * 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 + * optional parameters, call the {@link DirectWrite#execute()} method to invoke the remote * operation.

{@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * DirectWrite#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 featureView FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnl + * ineStore}/featureViews/{featureView}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest} * @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 DirectWrite(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse.class); + this.featureView = com.google.api.client.util.Preconditions.checkNotNull(featureView, "Required parameter featureView 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), + "Parameter featureView must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public DirectWrite set$Xgafv(java.lang.String $Xgafv) { + return (DirectWrite) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public DirectWrite setAccessToken(java.lang.String accessToken) { + return (DirectWrite) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public DirectWrite setAlt(java.lang.String alt) { + return (DirectWrite) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public DirectWrite setCallback(java.lang.String callback) { + return (DirectWrite) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public DirectWrite setFields(java.lang.String fields) { + return (DirectWrite) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public DirectWrite setKey(java.lang.String key) { + return (DirectWrite) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public DirectWrite setOauthToken(java.lang.String oauthToken) { + return (DirectWrite) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public DirectWrite setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DirectWrite) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public DirectWrite setQuotaUser(java.lang.String quotaUser) { + return (DirectWrite) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public DirectWrite setUploadType(java.lang.String uploadType) { + return (DirectWrite) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public DirectWrite setUploadProtocol(java.lang.String uploadProtocol) { + return (DirectWrite) 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. + * FeatureView resource format `projects/{project}/locations/{location}/featureOnlineSto + * res/{featureOnlineStore}/featureViews/{featureView}` */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String featureView; - /** 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. + /** FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOn + lineStore}/featureViews/{featureView}` */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFeatureView() { + return featureView; } /** - * 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. + * FeatureView resource format `projects/{project}/locations/{location}/featureOnlineSto + * res/{featureOnlineStore}/featureViews/{featureView}` */ - public GetIamPolicy setResource(java.lang.String resource) { + public DirectWrite setFeatureView(java.lang.String featureView) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), + "Parameter featureView must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } - this.resource = resource; + this.featureView = featureView; return this; } + @Override + public DirectWrite set(String parameterName, Object value) { + return (DirectWrite) super.set(parameterName, value); + } + } + /** + * Fetch feature values under a FeatureView. + * + * Create a request for the method "featureViews.fetchFeatureValues". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link FetchFeatureValues#execute()} method to invoke the remote operation. + * + * @param featureView Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{ + * featureOnlineStore}/featureViews/{featureView}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest} + * @return the request + */ + public FetchFeatureValues fetchFeatureValues(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest content) throws java.io.IOException { + FetchFeatureValues result = new FetchFeatureValues(featureView, content); + initialize(result); + return result; + } + + public class FetchFeatureValues extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+featureView}:fetchFeatureValues"; + + private final java.util.regex.Pattern FEATURE_VIEW_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + /** - * 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). + * Fetch feature values under a FeatureView. + * + * Create a request for the method "featureViews.fetchFeatureValues". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link FetchFeatureValues#execute()} method to invoke the remote + * operation.

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

+ * + * @param featureView Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{ + * featureOnlineStore}/featureViews/{featureView}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest} + * @since 1.13 */ - @com.google.api.client.util.Key("options.requestedPolicyVersion") - private java.lang.Integer optionsRequestedPolicyVersion; + protected FetchFeatureValues(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse.class); + this.featureView = com.google.api.client.util.Preconditions.checkNotNull(featureView, "Required parameter featureView must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), + "Parameter featureView must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + } + } - /** 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). + @Override + public FetchFeatureValues set$Xgafv(java.lang.String $Xgafv) { + return (FetchFeatureValues) super.set$Xgafv($Xgafv); + } + + @Override + public FetchFeatureValues setAccessToken(java.lang.String accessToken) { + return (FetchFeatureValues) super.setAccessToken(accessToken); + } + + @Override + public FetchFeatureValues setAlt(java.lang.String alt) { + return (FetchFeatureValues) super.setAlt(alt); + } + + @Override + public FetchFeatureValues setCallback(java.lang.String callback) { + return (FetchFeatureValues) super.setCallback(callback); + } + + @Override + public FetchFeatureValues setFields(java.lang.String fields) { + return (FetchFeatureValues) super.setFields(fields); + } + + @Override + public FetchFeatureValues setKey(java.lang.String key) { + return (FetchFeatureValues) super.setKey(key); + } + + @Override + public FetchFeatureValues setOauthToken(java.lang.String oauthToken) { + return (FetchFeatureValues) super.setOauthToken(oauthToken); + } + + @Override + public FetchFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FetchFeatureValues) super.setPrettyPrint(prettyPrint); + } + + @Override + public FetchFeatureValues setQuotaUser(java.lang.String quotaUser) { + return (FetchFeatureValues) super.setQuotaUser(quotaUser); + } + + @Override + public FetchFeatureValues setUploadType(java.lang.String uploadType) { + return (FetchFeatureValues) super.setUploadType(uploadType); + } + + @Override + public FetchFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { + return (FetchFeatureValues) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. FeatureView resource format `projects/{project}/locations/{location}/featur + * eOnlineStores/{featureOnlineStore}/featureViews/{featureView}` */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + @com.google.api.client.util.Key + private java.lang.String featureView; + + /** Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/ + {featureOnlineStore}/featureViews/{featureView}` + */ + public java.lang.String getFeatureView() { + return featureView; } /** - * 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). + * Required. FeatureView resource format `projects/{project}/locations/{location}/featur + * eOnlineStores/{featureOnlineStore}/featureViews/{featureView}` */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + public FetchFeatureValues setFeatureView(java.lang.String featureView) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), + "Parameter featureView must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + } + this.featureView = featureView; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public FetchFeatureValues set(String parameterName, Object value) { + return (FetchFeatureValues) super.set(parameterName, value); } } /** - * Imports Feature values into the Featurestore from a source storage. The progress of the import is - * tracked by the returned operation. The imported features are guaranteed to be visible to - * subsequent read operations after the operation is marked as successfully done. If an import - * operation fails, the Feature values returned from reads and exports may be inconsistent. If - * consistency is required, the caller must retry the same import request again and wait till the - * new operation returned is marked as successfully done. There are also scenarios where the caller - * can cause inconsistency. - Source data for import contains multiple distinct Feature values for - * the same entity ID and timestamp. - Source is modified during an import. This includes adding, - * updating, or removing source data and/or metadata. Examples of updating metadata include but are - * not limited to changing storage location, storage class, or retention policy. - Online serving - * cluster is under-provisioned. + * RPC to generate an access token for the given feature view. FeatureViews under the same + * FeatureOnlineStore share the same access token. * - * Create a request for the method "entityTypes.importFeatureValues". + * Create a request for the method "featureViews.generateFetchAccessToken". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link ImportFeatureValues#execute()} method to invoke the remote operation. + * parameters, call the {@link GenerateFetchAccessToken#execute()} method to invoke the remote + * operation. * - * @param entityType Required. The resource name of the EntityType grouping the Features for which values are being - * imported. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/en - * tityTypes/{entityType}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest} + * @param featureView FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnl + * ineStore}/featureViews/{featureView}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenRequest} * @return the request */ - public ImportFeatureValues importFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest content) throws java.io.IOException { - ImportFeatureValues result = new ImportFeatureValues(entityType, content); + public GenerateFetchAccessToken generateFetchAccessToken(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenRequest content) throws java.io.IOException { + GenerateFetchAccessToken result = new GenerateFetchAccessToken(featureView, content); initialize(result); return result; } - public class ImportFeatureValues extends AiplatformRequest { + public class GenerateFetchAccessToken extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+entityType}:importFeatureValues"; + private static final String REST_PATH = "v1beta1/{+featureView}:generateFetchAccessToken"; - private final java.util.regex.Pattern ENTITY_TYPE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + private final java.util.regex.Pattern FEATURE_VIEW_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); /** - * Imports Feature values into the Featurestore from a source storage. The progress of the import - * is tracked by the returned operation. The imported features are guaranteed to be visible to - * subsequent read operations after the operation is marked as successfully done. If an import - * operation fails, the Feature values returned from reads and exports may be inconsistent. If - * consistency is required, the caller must retry the same import request again and wait till the - * new operation returned is marked as successfully done. There are also scenarios where the - * caller can cause inconsistency. - Source data for import contains multiple distinct Feature - * values for the same entity ID and timestamp. - Source is modified during an import. This - * includes adding, updating, or removing source data and/or metadata. Examples of updating - * metadata include but are not limited to changing storage location, storage class, or retention - * policy. - Online serving cluster is under-provisioned. + * RPC to generate an access token for the given feature view. FeatureViews under the same + * FeatureOnlineStore share the same access token. * - * Create a request for the method "entityTypes.importFeatureValues". + * Create a request for the method "featureViews.generateFetchAccessToken". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link ImportFeatureValues#execute()} method to invoke the remote - * operation.

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

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

* - * @param entityType Required. The resource name of the EntityType grouping the Features for which values are being - * imported. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/en - * tityTypes/{entityType}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest} + * @param featureView FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnl + * ineStore}/featureViews/{featureView}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenRequest} * @since 1.13 */ - protected ImportFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.entityType = com.google.api.client.util.Preconditions.checkNotNull(entityType, "Required parameter entityType must be specified."); + protected GenerateFetchAccessToken(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenResponse.class); + this.featureView = com.google.api.client.util.Preconditions.checkNotNull(featureView, "Required parameter featureView must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), - "Parameter entityType must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), + "Parameter featureView must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } } @Override - public ImportFeatureValues set$Xgafv(java.lang.String $Xgafv) { - return (ImportFeatureValues) super.set$Xgafv($Xgafv); + public GenerateFetchAccessToken set$Xgafv(java.lang.String $Xgafv) { + return (GenerateFetchAccessToken) super.set$Xgafv($Xgafv); } @Override - public ImportFeatureValues setAccessToken(java.lang.String accessToken) { - return (ImportFeatureValues) super.setAccessToken(accessToken); + public GenerateFetchAccessToken setAccessToken(java.lang.String accessToken) { + return (GenerateFetchAccessToken) super.setAccessToken(accessToken); } @Override - public ImportFeatureValues setAlt(java.lang.String alt) { - return (ImportFeatureValues) super.setAlt(alt); + public GenerateFetchAccessToken setAlt(java.lang.String alt) { + return (GenerateFetchAccessToken) super.setAlt(alt); } @Override - public ImportFeatureValues setCallback(java.lang.String callback) { - return (ImportFeatureValues) super.setCallback(callback); + public GenerateFetchAccessToken setCallback(java.lang.String callback) { + return (GenerateFetchAccessToken) super.setCallback(callback); } @Override - public ImportFeatureValues setFields(java.lang.String fields) { - return (ImportFeatureValues) super.setFields(fields); + public GenerateFetchAccessToken setFields(java.lang.String fields) { + return (GenerateFetchAccessToken) super.setFields(fields); } @Override - public ImportFeatureValues setKey(java.lang.String key) { - return (ImportFeatureValues) super.setKey(key); + public GenerateFetchAccessToken setKey(java.lang.String key) { + return (GenerateFetchAccessToken) super.setKey(key); } @Override - public ImportFeatureValues setOauthToken(java.lang.String oauthToken) { - return (ImportFeatureValues) super.setOauthToken(oauthToken); + public GenerateFetchAccessToken setOauthToken(java.lang.String oauthToken) { + return (GenerateFetchAccessToken) super.setOauthToken(oauthToken); } @Override - public ImportFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ImportFeatureValues) super.setPrettyPrint(prettyPrint); + public GenerateFetchAccessToken setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerateFetchAccessToken) super.setPrettyPrint(prettyPrint); } @Override - public ImportFeatureValues setQuotaUser(java.lang.String quotaUser) { - return (ImportFeatureValues) super.setQuotaUser(quotaUser); + public GenerateFetchAccessToken setQuotaUser(java.lang.String quotaUser) { + return (GenerateFetchAccessToken) super.setQuotaUser(quotaUser); } @Override - public ImportFeatureValues setUploadType(java.lang.String uploadType) { - return (ImportFeatureValues) super.setUploadType(uploadType); + public GenerateFetchAccessToken setUploadType(java.lang.String uploadType) { + return (GenerateFetchAccessToken) super.setUploadType(uploadType); } @Override - public ImportFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { - return (ImportFeatureValues) super.setUploadProtocol(uploadProtocol); + public GenerateFetchAccessToken setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerateFetchAccessToken) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the EntityType grouping the Features for which values - * are being imported. Format: `projects/{project}/locations/{location}/featurestores/{f - * eaturestore}/entityTypes/{entityType}` + * FeatureView resource format `projects/{project}/locations/{location}/featureOnlineSto + * res/{featureOnlineStore}/featureViews/{featureView}` */ @com.google.api.client.util.Key - private java.lang.String entityType; + private java.lang.String featureView; - /** Required. The resource name of the EntityType grouping the Features for which values are being - imported. Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + /** FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOn + lineStore}/featureViews/{featureView}` */ - public java.lang.String getEntityType() { - return entityType; + public java.lang.String getFeatureView() { + return featureView; } /** - * Required. The resource name of the EntityType grouping the Features for which values - * are being imported. Format: `projects/{project}/locations/{location}/featurestores/{f - * eaturestore}/entityTypes/{entityType}` + * FeatureView resource format `projects/{project}/locations/{location}/featureOnlineSto + * res/{featureOnlineStore}/featureViews/{featureView}` */ - public ImportFeatureValues setEntityType(java.lang.String entityType) { + public GenerateFetchAccessToken setFeatureView(java.lang.String featureView) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), - "Parameter entityType must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), + "Parameter featureView must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } - this.entityType = entityType; + this.featureView = featureView; return this; } @Override - public ImportFeatureValues set(String parameterName, Object value) { - return (ImportFeatureValues) super.set(parameterName, value); + public GenerateFetchAccessToken set(String parameterName, Object value) { + return (GenerateFetchAccessToken) super.set(parameterName, value); } } /** - * Lists EntityTypes in a given Featurestore. + * Gets details of a single FeatureView. * - * Create a request for the method "entityTypes.list". + * Create a request for the method "featureViews.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 Featurestore to list EntityTypes. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @param name Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/fea + * tureOnlineStores/{feature_online_store}/featureViews/{feature_view}` * @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}/entityTypes"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); /** - * Lists EntityTypes in a given Featurestore. + * Gets details of a single FeatureView. * - * Create a request for the method "entityTypes.list". + * Create a request for the method "featureViews.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 Featurestore to list EntityTypes. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @param name Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/fea + * tureOnlineStores/{feature_online_store}/featureViews/{feature_view}` * @since 1.13 */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEntityTypesResponse.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.GoogleCloudAiplatformV1beta1FeatureView.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/[^/]+/featurestores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } } @@ -97446,125 +91922,462 @@ 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 Featurestore to list EntityTypes. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * Required. The name of the FeatureView resource. Format: `projects/{project}/locations + * /{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of the Featurestore to list EntityTypes. Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}` + /** Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/fe + atureOnlineStores/{feature_online_store}/featureViews/{feature_view}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The resource name of the Featurestore to list EntityTypes. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * Required. The name of the FeatureView resource. Format: `projects/{project}/locations + * /{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` */ - public List setParent(java.lang.String parent) { + 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/[^/]+/featurestores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } - /** - * Lists the EntityTypes that match the filter expression. The following filters are - * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. - * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, - * `>=`, and `<=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports - * key-value equality as well as key presence. Examples: * `create_time > - * \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> - * EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = - * yes AND labels.env = prod` --> EntityTypes having both (active: yes) and (env: prod) - * labels. * `labels.env: *` --> Any EntityType which has a label with 'env' as the key. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Lists the EntityTypes that match the filter expression. The following filters are supported: * - `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 - format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be - in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * - `create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` - --> EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND - labels.env = prod` --> EntityTypes having both (active: yes) and (env: prod) labels. * `labels.env: - *` --> Any EntityType which has a label with 'env' as the key. - */ - public java.lang.String getFilter() { - return filter; + @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 "featureViews.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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); /** - * Lists the EntityTypes that match the filter expression. The following filters are - * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. - * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, - * `>=`, and `<=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports - * key-value equality as well as key presence. Examples: * `create_time > - * \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> - * EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = - * yes AND labels.env = prod` --> EntityTypes having both (active: yes) and (env: prod) - * labels. * `labels.env: *` --> Any EntityType which has a label with 'env' as the key. + * 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 "featureViews.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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + } + } + + @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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + } + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. + * Requests for policies with any conditional role bindings must specify version 3. + * Policies with no conditional role bindings may specify any valid value or leave the + * field unset. The policy in the response might use the policy version that you + * specified, or it might use a lower policy version. For example, if you specify + * version 3, but the policy has no conditional role bindings, the response uses version + * 1. To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. + * Requests for policies with any conditional role bindings must specify version 3. + * Policies with no conditional role bindings may specify any valid value or leave the + * field unset. The policy in the response might use the policy version that you + * specified, or it might use a lower policy version. For example, if you specify + * version 3, but the policy has no conditional role bindings, the response uses version + * 1. To learn which resources support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Lists FeatureViews in a given FeatureOnlineStore. + * + * Create a request for the method "featureViews.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 FeatureOnlineStore to list FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @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}/featureViews"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); + + /** + * Lists FeatureViews in a given FeatureOnlineStore. + * + * Create a request for the method "featureViews.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 FeatureOnlineStore to list FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeatureViewsResponse.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/[^/]+/featureOnlineStores/[^/]+$"); + } + } + + @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 FeatureOnlineStore to list FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: + `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: + * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + */ + 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/[^/]+/featureOnlineStores/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Lists the FeatureViews that match the filter expression. The following filters are + * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. + * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, + * `>=`, and `<=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports + * key-value equality as well as key presence. Examples: * `create_time > + * \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> + * FeatureViews created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = + * yes AND labels.env = prod` --> FeatureViews having both (active: yes) and (env: prod) + * labels. * `labels.env: *` --> Any FeatureView which has a label with 'env' as the + * key. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Lists the FeatureViews that match the filter expression. The following filters are supported: * + `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 + format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be + in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * + `create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` + --> FeatureViews created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND + labels.env = prod` --> FeatureViews having both (active: yes) and (env: prod) labels. * + `labels.env: *` --> Any FeatureView which has a label with 'env' as the key. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Lists the FeatureViews that match the filter expression. The following filters are + * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. + * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, + * `>=`, and `<=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports + * key-value equality as well as key presence. Examples: * `create_time > + * \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> + * FeatureViews created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = + * yes AND labels.env = prod` --> FeatureViews having both (active: yes) and (env: prod) + * labels. * `labels.env: *` --> Any FeatureView which has a label with 'env' as the + * key. */ public List setFilter(java.lang.String filter) { this.filter = filter; @@ -97573,14 +92386,14 @@ public List setFilter(java.lang.String filter) { /** * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported fields: * `entity_type_id` * + * after a field name for descending. Supported fields: * `feature_view_id` * * `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: * `entity_type_id` * `create_time` * `update_time` + name for descending. Supported fields: * `feature_view_id` * `create_time` * `update_time` */ public java.lang.String getOrderBy() { return orderBy; @@ -97588,7 +92401,7 @@ public java.lang.String getOrderBy() { /** * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported fields: * `entity_type_id` * + * after a field name for descending. Supported fields: * `feature_view_id` * * `create_time` * `update_time` */ public List setOrderBy(java.lang.String orderBy) { @@ -97597,15 +92410,15 @@ public List setOrderBy(java.lang.String orderBy) { } /** - * The maximum number of EntityTypes to return. The service may return fewer than this - * value. If unspecified, at most 1000 EntityTypes will be returned. The maximum value + * The maximum number of FeatureViews to return. The service may return fewer than this + * value. If unspecified, at most 1000 FeatureViews will be returned. The maximum value * is 1000; any value greater than 1000 will be coerced to 1000. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The maximum number of EntityTypes to return. The service may return fewer than this value. If - unspecified, at most 1000 EntityTypes will be returned. The maximum value is 1000; any value + /** The maximum number of FeatureViews to return. The service may return fewer than this value. If + unspecified, at most 1000 FeatureViews will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000. */ public java.lang.Integer getPageSize() { @@ -97613,8 +92426,8 @@ public java.lang.Integer getPageSize() { } /** - * The maximum number of EntityTypes to return. The service may return fewer than this - * value. If unspecified, at most 1000 EntityTypes will be returned. The maximum value + * The maximum number of FeatureViews to return. The service may return fewer than this + * value. If unspecified, at most 1000 FeatureViews will be returned. The maximum value * is 1000; any value greater than 1000 will be coerced to 1000. */ public List setPageSize(java.lang.Integer pageSize) { @@ -97623,26 +92436,28 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * A page token, received from a previous FeaturestoreService.ListEntityTypes call. - * Provide this to retrieve the subsequent page. When paginating, all other parameters - * provided to FeaturestoreService.ListEntityTypes must match the call that provided the + * A page token, received from a previous + * FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * FeatureOnlineStoreAdminService.ListFeatureViews 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 FeaturestoreService.ListEntityTypes call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - FeaturestoreService.ListEntityTypes must match the call that provided the page token. + /** A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViews call. + Provide this to retrieve the subsequent page. When paginating, all other parameters provided to + FeatureOnlineStoreAdminService.ListFeatureViews must match the call that provided the page token. */ public java.lang.String getPageToken() { return pageToken; } /** - * A page token, received from a previous FeaturestoreService.ListEntityTypes call. - * Provide this to retrieve the subsequent page. When paginating, all other parameters - * provided to FeaturestoreService.ListEntityTypes must match the call that provided the + * A page token, received from a previous + * FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * FeatureOnlineStoreAdminService.ListFeatureViews must match the call that provided the * page token. */ public List setPageToken(java.lang.String pageToken) { @@ -97650,61 +92465,41 @@ public List setPageToken(java.lang.String 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 the parameters of a single EntityType. + * Updates the parameters of a single FeatureView. * - * Create a request for the method "entityTypes.patch". + * Create a request for the method "featureViews.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. Name of the EntityType. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` The last part entity_type is assigned by the client. The entity_type can be up to - * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z and - * underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given - * a featurestore. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType} + * @param name Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineS + * tores/{feature_online_store}/featureViews/{feature_view}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; } - public class Patch extends AiplatformRequest { + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); /** - * Updates the parameters of a single EntityType. + * Updates the parameters of a single FeatureView. * - * Create a request for the method "entityTypes.patch". + * Create a request for the method "featureViews.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. @@ -97712,22 +92507,18 @@ public class Patch extends AiplatformRequest * - * @param name Immutable. Name of the EntityType. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` The last part entity_type is assigned by the client. The entity_type can be up to - * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z and - * underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given - * a featurestore. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType} + * @param name Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineS + * tores/{feature_online_store}/featureViews/{feature_view}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType.class); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureView 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } } @@ -97787,94 +92578,75 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Immutable. Name of the EntityType. Format: `projects/{project}/locations/{location}/f - * eaturestores/{featurestore}/entityTypes/{entity_type}` The last part entity_type is - * assigned by the client. The entity_type can be up to 64 characters long and can - * consist only of ASCII Latin letters A-Z and a-z and underscore(_), and ASCII digits - * 0-9 starting with a letter. The value will be unique given a featurestore. + * Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location} + * /featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Immutable. Name of the EntityType. Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - The last part entity_type is assigned by the client. The entity_type can be up to 64 characters - long and can consist only of ASCII Latin letters A-Z and a-z and underscore(_), and ASCII digits - 0-9 starting with a letter. The value will be unique given a featurestore. + /** Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnline + Stores/{feature_online_store}/featureViews/{feature_view}` */ public java.lang.String getName() { return name; } /** - * Immutable. Name of the EntityType. Format: `projects/{project}/locations/{location}/f - * eaturestores/{featurestore}/entityTypes/{entity_type}` The last part entity_type is - * assigned by the client. The entity_type can be up to 64 characters long and can - * consist only of ASCII Latin letters A-Z and a-z and underscore(_), and ASCII digits - * 0-9 starting with a letter. The value will be unique given a featurestore. + * Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location} + * /featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` */ 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } this.name = name; return this; } /** - * Field mask is used to specify the fields to be overwritten in the EntityType resource - * by the update. The fields specified in the update_mask are relative to the resource, - * not the full request. A field will be overwritten if it is in the mask. If the user - * does not provide a mask then only the non-empty fields present in the request will be - * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * - * `description` * `labels` * `monitoring_config.snapshot_analysis.disabled` * - * `monitoring_config.snapshot_analysis.monitoring_interval_days` * - * `monitoring_config.snapshot_analysis.staleness_days` * - * `monitoring_config.import_features_analysis.state` * - * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * - * `monitoring_config.numerical_threshold_config.value` * - * `monitoring_config.categorical_threshold_config.value` * `offline_storage_ttl_days` + * Field mask is used to specify the fields to be overwritten in the FeatureView + * resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then only the non-empty fields present in the + * request will be overwritten. Set the update_mask to `*` to override all fields. + * Updatable fields: * `labels` * `service_agent_type` * `big_query_source` * + * `big_query_source.uri` * `big_query_source.entity_id_columns` * + * `feature_registry_source` * `feature_registry_source.feature_groups` * `sync_config` + * * `sync_config.cron` * `optimized_config.automatic_resources` */ @com.google.api.client.util.Key private String updateMask; - /** Field mask is used to specify the fields to be overwritten in the EntityType resource by the + /** Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override - all fields. Updatable fields: * `description` * `labels` * - `monitoring_config.snapshot_analysis.disabled` * - `monitoring_config.snapshot_analysis.monitoring_interval_days` * - `monitoring_config.snapshot_analysis.staleness_days` * - `monitoring_config.import_features_analysis.state` * - `monitoring_config.import_features_analysis.anomaly_detection_baseline` * - `monitoring_config.numerical_threshold_config.value` * - `monitoring_config.categorical_threshold_config.value` * `offline_storage_ttl_days` + all fields. Updatable fields: * `labels` * `service_agent_type` * `big_query_source` * + `big_query_source.uri` * `big_query_source.entity_id_columns` * `feature_registry_source` * + `feature_registry_source.feature_groups` * `sync_config` * `sync_config.cron` * + `optimized_config.automatic_resources` */ public String getUpdateMask() { return updateMask; } /** - * Field mask is used to specify the fields to be overwritten in the EntityType resource - * by the update. The fields specified in the update_mask are relative to the resource, - * not the full request. A field will be overwritten if it is in the mask. If the user - * does not provide a mask then only the non-empty fields present in the request will be - * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * - * `description` * `labels` * `monitoring_config.snapshot_analysis.disabled` * - * `monitoring_config.snapshot_analysis.monitoring_interval_days` * - * `monitoring_config.snapshot_analysis.staleness_days` * - * `monitoring_config.import_features_analysis.state` * - * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * - * `monitoring_config.numerical_threshold_config.value` * - * `monitoring_config.categorical_threshold_config.value` * `offline_storage_ttl_days` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + * Field mask is used to specify the fields to be overwritten in the FeatureView + * resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then only the non-empty fields present in the + * request will be overwritten. Set the update_mask to `*` to override all fields. + * Updatable fields: * `labels` * `service_agent_type` * `big_query_source` * + * `big_query_source.uri` * `big_query_source.entity_id_columns` * + * `feature_registry_source` * `feature_registry_source.feature_groups` * `sync_config` + * * `sync_config.cron` * `optimized_config.automatic_resources` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } @Override public Patch set(String parameterName, Object value) { @@ -97882,162 +92654,153 @@ public Patch set(String parameterName, Object value) { } } /** - * Reads Feature values of a specific entity of an EntityType. For reading feature values of - * multiple entities of an EntityType, please use StreamingReadFeatureValues. + * Search the nearest entities under a FeatureView. Search only works for indexable feature view; if + * a feature view isn't indexable, returns Invalid argument response. * - * Create a request for the method "entityTypes.readFeatureValues". + * Create a request for the method "featureViews.searchNearestEntities". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link ReadFeatureValues#execute()} method to invoke the remote operation. + * parameters, call the {@link SearchNearestEntities#execute()} method to invoke the remote + * operation. * - * @param entityType Required. The resource name of the EntityType for the entity being read. Value format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityT - * ype}`. For example, for a machine learning model predicting user clicks on a website, an - * EntityType ID could be `user`. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest} + * @param featureView Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{ + * featureOnlineStore}/featureViews/{featureView}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest} * @return the request */ - public ReadFeatureValues readFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest content) throws java.io.IOException { - ReadFeatureValues result = new ReadFeatureValues(entityType, content); + public SearchNearestEntities searchNearestEntities(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest content) throws java.io.IOException { + SearchNearestEntities result = new SearchNearestEntities(featureView, content); initialize(result); return result; } - public class ReadFeatureValues extends AiplatformRequest { + public class SearchNearestEntities extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+entityType}:readFeatureValues"; + private static final String REST_PATH = "v1beta1/{+featureView}:searchNearestEntities"; - private final java.util.regex.Pattern ENTITY_TYPE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + private final java.util.regex.Pattern FEATURE_VIEW_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); /** - * Reads Feature values of a specific entity of an EntityType. For reading feature values of - * multiple entities of an EntityType, please use StreamingReadFeatureValues. + * Search the nearest entities under a FeatureView. Search only works for indexable feature view; + * if a feature view isn't indexable, returns Invalid argument response. * - * Create a request for the method "entityTypes.readFeatureValues". + * Create a request for the method "featureViews.searchNearestEntities". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link ReadFeatureValues#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param entityType Required. The resource name of the EntityType for the entity being read. Value format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityT - * ype}`. For example, for a machine learning model predicting user clicks on a website, an - * EntityType ID could be `user`. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest} + * @param featureView Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{ + * featureOnlineStore}/featureViews/{featureView}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest} * @since 1.13 */ - protected ReadFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse.class); - this.entityType = com.google.api.client.util.Preconditions.checkNotNull(entityType, "Required parameter entityType must be specified."); + protected SearchNearestEntities(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse.class); + this.featureView = com.google.api.client.util.Preconditions.checkNotNull(featureView, "Required parameter featureView must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), - "Parameter entityType must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), + "Parameter featureView must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } } @Override - public ReadFeatureValues set$Xgafv(java.lang.String $Xgafv) { - return (ReadFeatureValues) super.set$Xgafv($Xgafv); + public SearchNearestEntities set$Xgafv(java.lang.String $Xgafv) { + return (SearchNearestEntities) super.set$Xgafv($Xgafv); } @Override - public ReadFeatureValues setAccessToken(java.lang.String accessToken) { - return (ReadFeatureValues) super.setAccessToken(accessToken); + public SearchNearestEntities setAccessToken(java.lang.String accessToken) { + return (SearchNearestEntities) super.setAccessToken(accessToken); } @Override - public ReadFeatureValues setAlt(java.lang.String alt) { - return (ReadFeatureValues) super.setAlt(alt); + public SearchNearestEntities setAlt(java.lang.String alt) { + return (SearchNearestEntities) super.setAlt(alt); } @Override - public ReadFeatureValues setCallback(java.lang.String callback) { - return (ReadFeatureValues) super.setCallback(callback); + public SearchNearestEntities setCallback(java.lang.String callback) { + return (SearchNearestEntities) super.setCallback(callback); } @Override - public ReadFeatureValues setFields(java.lang.String fields) { - return (ReadFeatureValues) super.setFields(fields); + public SearchNearestEntities setFields(java.lang.String fields) { + return (SearchNearestEntities) super.setFields(fields); } @Override - public ReadFeatureValues setKey(java.lang.String key) { - return (ReadFeatureValues) super.setKey(key); + public SearchNearestEntities setKey(java.lang.String key) { + return (SearchNearestEntities) super.setKey(key); } @Override - public ReadFeatureValues setOauthToken(java.lang.String oauthToken) { - return (ReadFeatureValues) super.setOauthToken(oauthToken); + public SearchNearestEntities setOauthToken(java.lang.String oauthToken) { + return (SearchNearestEntities) super.setOauthToken(oauthToken); } @Override - public ReadFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReadFeatureValues) super.setPrettyPrint(prettyPrint); + public SearchNearestEntities setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchNearestEntities) super.setPrettyPrint(prettyPrint); } @Override - public ReadFeatureValues setQuotaUser(java.lang.String quotaUser) { - return (ReadFeatureValues) super.setQuotaUser(quotaUser); + public SearchNearestEntities setQuotaUser(java.lang.String quotaUser) { + return (SearchNearestEntities) super.setQuotaUser(quotaUser); } @Override - public ReadFeatureValues setUploadType(java.lang.String uploadType) { - return (ReadFeatureValues) super.setUploadType(uploadType); + public SearchNearestEntities setUploadType(java.lang.String uploadType) { + return (SearchNearestEntities) super.setUploadType(uploadType); } @Override - public ReadFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { - return (ReadFeatureValues) super.setUploadProtocol(uploadProtocol); + public SearchNearestEntities setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchNearestEntities) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the EntityType for the entity being read. Value - * format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityT - * ypes/{entityType}`. For example, for a machine learning model predicting user clicks - * on a website, an EntityType ID could be `user`. + * Required. FeatureView resource format `projects/{project}/locations/{location}/featur + * eOnlineStores/{featureOnlineStore}/featureViews/{featureView}` */ @com.google.api.client.util.Key - private java.lang.String entityType; + private java.lang.String featureView; - /** Required. The resource name of the EntityType for the entity being read. Value format: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. - For example, for a machine learning model predicting user clicks on a website, an EntityType ID - could be `user`. + /** Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/ + {featureOnlineStore}/featureViews/{featureView}` */ - public java.lang.String getEntityType() { - return entityType; + public java.lang.String getFeatureView() { + return featureView; } /** - * Required. The resource name of the EntityType for the entity being read. Value - * format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityT - * ypes/{entityType}`. For example, for a machine learning model predicting user clicks - * on a website, an EntityType ID could be `user`. + * Required. FeatureView resource format `projects/{project}/locations/{location}/featur + * eOnlineStores/{featureOnlineStore}/featureViews/{featureView}` */ - public ReadFeatureValues setEntityType(java.lang.String entityType) { + public SearchNearestEntities setFeatureView(java.lang.String featureView) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), - "Parameter entityType must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), + "Parameter featureView must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } - this.entityType = entityType; + this.featureView = featureView; return this; } @Override - public ReadFeatureValues set(String parameterName, Object value) { - return (ReadFeatureValues) super.set(parameterName, value); + public SearchNearestEntities set(String parameterName, Object value) { + return (SearchNearestEntities) 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 "entityTypes.setIamPolicy". + * Create a request for the method "featureViews.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. @@ -98059,13 +92822,13 @@ public class SetIamPolicy extends AiplatformRequest { + public class StreamingFetchFeatureValues extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+entityType}:streamingReadFeatureValues"; + private static final String REST_PATH = "v1beta1/{+featureView}:streamingFetchFeatureValues"; - private final java.util.regex.Pattern ENTITY_TYPE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + private final java.util.regex.Pattern FEATURE_VIEW_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); /** - * Reads Feature values for multiple entities. Depending on their size, data for different - * entities may be broken up across multiple responses. + * Bidirectional streaming RPC to fetch feature values under a FeatureView. Requests may not have + * a one-to-one mapping to responses and responses may be returned out-of-order to reduce latency. * - * Create a request for the method "entityTypes.streamingReadFeatureValues". + * Create a request for the method "featureViews.streamingFetchFeatureValues". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link StreamingReadFeatureValues#execute()} method to invoke the - * remote operation.

{@link StreamingReadFeatureValues#initialize(com.google.api.client.google - * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * optional parameters, call the {@link StreamingFetchFeatureValues#execute()} method to invoke + * the remote operation.

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

* - * @param entityType Required. The resource name of the entities' type. Value format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityT - * ype}`. For example, for a machine learning model predicting user clicks on a website, an - * EntityType ID could be `user`. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest} + * @param featureView Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{ + * featureOnlineStore}/featureViews/{featureView}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest} * @since 1.13 */ - protected StreamingReadFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse.class); - this.entityType = com.google.api.client.util.Preconditions.checkNotNull(entityType, "Required parameter entityType must be specified."); + protected StreamingFetchFeatureValues(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse.class); + this.featureView = com.google.api.client.util.Preconditions.checkNotNull(featureView, "Required parameter featureView must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), - "Parameter entityType must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), + "Parameter featureView must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } } @Override - public StreamingReadFeatureValues set$Xgafv(java.lang.String $Xgafv) { - return (StreamingReadFeatureValues) super.set$Xgafv($Xgafv); + public StreamingFetchFeatureValues set$Xgafv(java.lang.String $Xgafv) { + return (StreamingFetchFeatureValues) super.set$Xgafv($Xgafv); } @Override - public StreamingReadFeatureValues setAccessToken(java.lang.String accessToken) { - return (StreamingReadFeatureValues) super.setAccessToken(accessToken); + public StreamingFetchFeatureValues setAccessToken(java.lang.String accessToken) { + return (StreamingFetchFeatureValues) super.setAccessToken(accessToken); } @Override - public StreamingReadFeatureValues setAlt(java.lang.String alt) { - return (StreamingReadFeatureValues) super.setAlt(alt); + public StreamingFetchFeatureValues setAlt(java.lang.String alt) { + return (StreamingFetchFeatureValues) super.setAlt(alt); } @Override - public StreamingReadFeatureValues setCallback(java.lang.String callback) { - return (StreamingReadFeatureValues) super.setCallback(callback); + public StreamingFetchFeatureValues setCallback(java.lang.String callback) { + return (StreamingFetchFeatureValues) super.setCallback(callback); } @Override - public StreamingReadFeatureValues setFields(java.lang.String fields) { - return (StreamingReadFeatureValues) super.setFields(fields); + public StreamingFetchFeatureValues setFields(java.lang.String fields) { + return (StreamingFetchFeatureValues) super.setFields(fields); } @Override - public StreamingReadFeatureValues setKey(java.lang.String key) { - return (StreamingReadFeatureValues) super.setKey(key); + public StreamingFetchFeatureValues setKey(java.lang.String key) { + return (StreamingFetchFeatureValues) super.setKey(key); } @Override - public StreamingReadFeatureValues setOauthToken(java.lang.String oauthToken) { - return (StreamingReadFeatureValues) super.setOauthToken(oauthToken); + public StreamingFetchFeatureValues setOauthToken(java.lang.String oauthToken) { + return (StreamingFetchFeatureValues) super.setOauthToken(oauthToken); } @Override - public StreamingReadFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StreamingReadFeatureValues) super.setPrettyPrint(prettyPrint); + public StreamingFetchFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StreamingFetchFeatureValues) super.setPrettyPrint(prettyPrint); } @Override - public StreamingReadFeatureValues setQuotaUser(java.lang.String quotaUser) { - return (StreamingReadFeatureValues) super.setQuotaUser(quotaUser); + public StreamingFetchFeatureValues setQuotaUser(java.lang.String quotaUser) { + return (StreamingFetchFeatureValues) super.setQuotaUser(quotaUser); } @Override - public StreamingReadFeatureValues setUploadType(java.lang.String uploadType) { - return (StreamingReadFeatureValues) super.setUploadType(uploadType); + public StreamingFetchFeatureValues setUploadType(java.lang.String uploadType) { + return (StreamingFetchFeatureValues) super.setUploadType(uploadType); } @Override - public StreamingReadFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { - return (StreamingReadFeatureValues) super.setUploadProtocol(uploadProtocol); + public StreamingFetchFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { + return (StreamingFetchFeatureValues) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the entities' type. Value format: `projects/{project}/ - * locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. For - * example, for a machine learning model predicting user clicks on a website, an - * EntityType ID could be `user`. + * Required. FeatureView resource format `projects/{project}/locations/{location}/featur + * eOnlineStores/{featureOnlineStore}/featureViews/{featureView}` */ @com.google.api.client.util.Key - private java.lang.String entityType; + private java.lang.String featureView; - /** Required. The resource name of the entities' type. Value format: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. - For example, for a machine learning model predicting user clicks on a website, an EntityType ID - could be `user`. + /** Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/ + {featureOnlineStore}/featureViews/{featureView}` */ - public java.lang.String getEntityType() { - return entityType; + public java.lang.String getFeatureView() { + return featureView; } /** - * Required. The resource name of the entities' type. Value format: `projects/{project}/ - * locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. For - * example, for a machine learning model predicting user clicks on a website, an - * EntityType ID could be `user`. + * Required. FeatureView resource format `projects/{project}/locations/{location}/featur + * eOnlineStores/{featureOnlineStore}/featureViews/{featureView}` */ - public StreamingReadFeatureValues setEntityType(java.lang.String entityType) { + public StreamingFetchFeatureValues setFeatureView(java.lang.String featureView) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), - "Parameter entityType must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), + "Parameter featureView must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } - this.entityType = entityType; + this.featureView = featureView; return this; } @Override - public StreamingReadFeatureValues set(String parameterName, Object value) { - return (StreamingReadFeatureValues) super.set(parameterName, value); + public StreamingFetchFeatureValues set(String parameterName, Object value) { + return (StreamingFetchFeatureValues) super.set(parameterName, value); + } + } + /** + * Triggers on-demand sync for the FeatureView. + * + * Create a request for the method "featureViews.sync". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Sync#execute()} method to invoke the remote operation. + * + * @param featureView Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store + * }/featureViews/{feature_view}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SyncFeatureViewRequest} + * @return the request + */ + public Sync sync(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SyncFeatureViewRequest content) throws java.io.IOException { + Sync result = new Sync(featureView, content); + initialize(result); + return result; + } + + public class Sync extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+featureView}:sync"; + + private final java.util.regex.Pattern FEATURE_VIEW_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + + /** + * Triggers on-demand sync for the FeatureView. + * + * Create a request for the method "featureViews.sync". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Sync#execute()} method to invoke the remote operation.

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

+ * + * @param featureView Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store + * }/featureViews/{feature_view}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SyncFeatureViewRequest} + * @since 1.13 + */ + protected Sync(java.lang.String featureView, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SyncFeatureViewRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SyncFeatureViewResponse.class); + this.featureView = com.google.api.client.util.Preconditions.checkNotNull(featureView, "Required parameter featureView must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), + "Parameter featureView must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + } + } + + @Override + public Sync set$Xgafv(java.lang.String $Xgafv) { + return (Sync) super.set$Xgafv($Xgafv); + } + + @Override + public Sync setAccessToken(java.lang.String accessToken) { + return (Sync) super.setAccessToken(accessToken); + } + + @Override + public Sync setAlt(java.lang.String alt) { + return (Sync) super.setAlt(alt); + } + + @Override + public Sync setCallback(java.lang.String callback) { + return (Sync) super.setCallback(callback); + } + + @Override + public Sync setFields(java.lang.String fields) { + return (Sync) super.setFields(fields); + } + + @Override + public Sync setKey(java.lang.String key) { + return (Sync) super.setKey(key); + } + + @Override + public Sync setOauthToken(java.lang.String oauthToken) { + return (Sync) super.setOauthToken(oauthToken); + } + + @Override + public Sync setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Sync) super.setPrettyPrint(prettyPrint); + } + + @Override + public Sync setQuotaUser(java.lang.String quotaUser) { + return (Sync) super.setQuotaUser(quotaUser); + } + + @Override + public Sync setUploadType(java.lang.String uploadType) { + return (Sync) super.setUploadType(uploadType); + } + + @Override + public Sync setUploadProtocol(java.lang.String uploadProtocol) { + return (Sync) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featu + * re_online_store}/featureViews/{feature_view}` + */ + @com.google.api.client.util.Key + private java.lang.String featureView; + + /** Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_stor + e}/featureViews/{feature_view}` + */ + public java.lang.String getFeatureView() { + return featureView; + } + + /** + * Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featu + * re_online_store}/featureViews/{feature_view}` + */ + public Sync setFeatureView(java.lang.String featureView) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FEATURE_VIEW_PATTERN.matcher(featureView).matches(), + "Parameter featureView must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); + } + this.featureView = featureView; + return this; + } + + @Override + public Sync set(String parameterName, Object value) { + return (Sync) super.set(parameterName, value); } } /** @@ -98339,7 +93231,7 @@ public StreamingReadFeatureValues set(String parameterName, Object value) { * 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 "entityTypes.testIamPermissions". + * Create a request for the method "featureViews.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. @@ -98360,7 +93252,7 @@ public class TestIamPermissions extends AiplatformRequestThe typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.FeatureViewSyncs.List request = aiplatform.featureViewSyncs().list(parameters ...)}
+           * 
* - * @param entityType Required. The resource name of the EntityType for the entities being written. Value format: - * `projects/{project}/locations/{location}/featurestores/ - * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model - * predicting user clicks on a website, an EntityType ID could be `user`. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest} - * @return the request + * @return the resource collection */ - public WriteFeatureValues writeFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest content) throws java.io.IOException { - WriteFeatureValues result = new WriteFeatureValues(entityType, content); - initialize(result); - return result; + public FeatureViewSyncs featureViewSyncs() { + return new FeatureViewSyncs(); } - public class WriteFeatureValues extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+entityType}:writeFeatureValues"; - - private final java.util.regex.Pattern ENTITY_TYPE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + /** + * The "featureViewSyncs" collection of methods. + */ + public class FeatureViewSyncs { /** - * Writes Feature values of one or more entities of an EntityType. The Feature values are merged - * into existing entities if any. The Feature values to be written must have timestamp within the - * online storage retention. + * Gets details of a single FeatureViewSync. * - * Create a request for the method "entityTypes.writeFeatureValues". + * Create a request for the method "featureViewSyncs.get". * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link WriteFeatureValues#execute()} method to invoke the remote - * operation.

{@link WriteFeatureValues#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 Get#execute()} method to invoke the remote operation. * - * @param entityType Required. The resource name of the EntityType for the entities being written. Value format: - * `projects/{project}/locations/{location}/featurestores/ - * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model - * predicting user clicks on a website, an EntityType ID could be `user`. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest} - * @since 1.13 - */ - protected WriteFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse.class); - this.entityType = com.google.api.client.util.Preconditions.checkNotNull(entityType, "Required parameter entityType must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), - "Parameter entityType must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); - } - } - - @Override - public WriteFeatureValues set$Xgafv(java.lang.String $Xgafv) { - return (WriteFeatureValues) super.set$Xgafv($Xgafv); - } - - @Override - public WriteFeatureValues setAccessToken(java.lang.String accessToken) { - return (WriteFeatureValues) super.setAccessToken(accessToken); - } - - @Override - public WriteFeatureValues setAlt(java.lang.String alt) { - return (WriteFeatureValues) super.setAlt(alt); - } - - @Override - public WriteFeatureValues setCallback(java.lang.String callback) { - return (WriteFeatureValues) super.setCallback(callback); - } - - @Override - public WriteFeatureValues setFields(java.lang.String fields) { - return (WriteFeatureValues) super.setFields(fields); - } - - @Override - public WriteFeatureValues setKey(java.lang.String key) { - return (WriteFeatureValues) super.setKey(key); - } - - @Override - public WriteFeatureValues setOauthToken(java.lang.String oauthToken) { - return (WriteFeatureValues) super.setOauthToken(oauthToken); - } - - @Override - public WriteFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { - return (WriteFeatureValues) super.setPrettyPrint(prettyPrint); - } - - @Override - public WriteFeatureValues setQuotaUser(java.lang.String quotaUser) { - return (WriteFeatureValues) super.setQuotaUser(quotaUser); - } - - @Override - public WriteFeatureValues setUploadType(java.lang.String uploadType) { - return (WriteFeatureValues) super.setUploadType(uploadType); - } - - @Override - public WriteFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { - return (WriteFeatureValues) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the EntityType for the entities being written. Value - * format: `projects/{project}/locations/{location}/featurestores/ - * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model - * predicting user clicks on a website, an EntityType ID could be `user`. - */ - @com.google.api.client.util.Key - private java.lang.String entityType; - - /** Required. The resource name of the EntityType for the entities being written. Value format: - `projects/{project}/locations/{location}/featurestores/ {featurestore}/entityTypes/{entityType}`. - For example, for a machine learning model predicting user clicks on a website, an EntityType ID - could be `user`. - */ - public java.lang.String getEntityType() { - return entityType; - } - - /** - * Required. The resource name of the EntityType for the entities being written. Value - * format: `projects/{project}/locations/{location}/featurestores/ - * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model - * predicting user clicks on a website, an EntityType ID could be `user`. - */ - public WriteFeatureValues setEntityType(java.lang.String entityType) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), - "Parameter entityType must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); - } - this.entityType = entityType; - return this; - } - - @Override - public WriteFeatureValues set(String parameterName, Object value) { - return (WriteFeatureValues) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Features collection. - * - *

The typical use is:

- *
-           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-           *   {@code Aiplatform.Features.List request = aiplatform.features().list(parameters ...)}
-           * 
- * - * @return the resource collection - */ - public Features features() { - return new Features(); - } - - /** - * The "features" collection of methods. - */ - public class Features { - - /** - * Creates a batch of Features in a given EntityType. - * - * Create a request for the method "features.batchCreate". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link BatchCreate#execute()} method to invoke the remote operation. - * - * @param parent Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. - * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/ - * {entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest} + * @param name Required. The name of the FeatureViewSync resource. Format: `projects/{project}/locations/{location} + * /featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{ + * feature_view_sync}` * @return the request */ - public BatchCreate batchCreate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest content) throws java.io.IOException { - BatchCreate result = new BatchCreate(parent, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class BatchCreate extends AiplatformRequest { + public class Get extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/features:batchCreate"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$"); /** - * Creates a batch of Features in a given EntityType. + * Gets details of a single FeatureViewSync. * - * Create a request for the method "features.batchCreate". + * Create a request for the method "featureViewSyncs.get". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link BatchCreate#execute()} method to invoke the remote - * operation.

{@link - * BatchCreate#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 EntityType/FeatureGroup to create the batch of Features under. - * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/ - * {entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest} + * @param name Required. The name of the FeatureViewSync resource. Format: `projects/{project}/locations/{location} + * /featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{ + * feature_view_sync}` * @since 1.13 */ - protected BatchCreate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest 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."); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FeatureViewSync.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$"); } } @Override - public BatchCreate set$Xgafv(java.lang.String $Xgafv) { - return (BatchCreate) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public BatchCreate setAccessToken(java.lang.String accessToken) { - return (BatchCreate) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public BatchCreate setAlt(java.lang.String alt) { - return (BatchCreate) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public BatchCreate setCallback(java.lang.String callback) { - return (BatchCreate) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public BatchCreate setFields(java.lang.String fields) { - return (BatchCreate) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public BatchCreate setKey(java.lang.String key) { - return (BatchCreate) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public BatchCreate setOauthToken(java.lang.String oauthToken) { - return (BatchCreate) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public BatchCreate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchCreate) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public BatchCreate setQuotaUser(java.lang.String quotaUser) { - return (BatchCreate) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public BatchCreate setUploadType(java.lang.String uploadType) { - return (BatchCreate) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public BatchCreate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchCreate) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the EntityType/FeatureGroup to create the batch of - * Features under. Format: `projects/{project}/locations/{location}/featurestores/{fea - * turestore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * Required. The name of the FeatureViewSync resource. Format: `projects/{project}/loc + * ations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_ + * view}/featureViewSyncs/{feature_view_sync}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. - Format: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /** Required. The name of the FeatureViewSync resource. Format: `projects/{project}/locations/{location + }/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_ + view_sync}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The resource name of the EntityType/FeatureGroup to create the batch of - * Features under. Format: `projects/{project}/locations/{location}/featurestores/{fea - * turestore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * Required. The name of the FeatureViewSync resource. Format: `projects/{project}/loc + * ations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_ + * view}/featureViewSyncs/{feature_view_sync}` */ - public BatchCreate setParent(java.lang.String parent) { + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @Override - public BatchCreate set(String parameterName, Object value) { - return (BatchCreate) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a new Feature in a given EntityType. + * Lists FeatureViewSyncs in a given FeatureView. * - * Create a request for the method "features.create". + * Create a request for the method "featureViewSyncs.list". * * 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. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for - * entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestor - * e}/entityTypes/{entity_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} + * @param parent Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `projects/{project} + * /locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_vie + * w}` * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature content) throws java.io.IOException { - Create result = new Create(parent, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Create extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/features"; + private static final String REST_PATH = "v1beta1/{+parent}/featureViewSyncs"; private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); /** - * Creates a new Feature in a given EntityType. + * Lists FeatureViewSyncs in a given FeatureView. * - * Create a request for the method "features.create". + * Create a request for the method "featureViewSyncs.list". * * 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.

+ * 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 EntityType or FeatureGroup to create a Feature. Format for - * entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestor - * e}/entityTypes/{entity_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} + * @param parent Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `projects/{project} + * /locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_vie + * w}` * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) 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 name of the EntityType or FeatureGroup to create a Feature. - * Format for entity_type as parent: `projects/{project}/locations/{location}/features - * tores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `p + * rojects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/f + * eatureViews/{feature_view}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for - entity_type as parent: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - Format for feature_group as parent: - `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /** Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `projects/{project + }/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` */ public java.lang.String getParent() { return parent; } /** - * Required. The resource name of the EntityType or FeatureGroup to create a Feature. - * Format for entity_type as parent: `projects/{project}/locations/{location}/features - * tores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `p + * rojects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/f + * eatureViews/{feature_view}` */ - public Create setParent(java.lang.String parent) { + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } this.parent = parent; return this; } /** - * Required. The ID to use for the Feature, which will become the final component of - * the Feature's resource name. This value may be up to 128 characters, and valid - * characters are `[a-z0-9_]`. The first character cannot be a number. The value must - * be unique within an EntityType/FeatureGroup. + * Lists the FeatureViewSyncs that match the filter expression. The following filters + * are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` + * comparisons. Values must be in RFC 3339 format. Examples: * `create_time > + * \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs created after + * 2020-01-31T15:30:00.000000Z. */ @com.google.api.client.util.Key - private java.lang.String featureId; + private java.lang.String filter; - /** Required. The ID to use for the Feature, which will become the final component of the Feature's - resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The - first character cannot be a number. The value must be unique within an EntityType/FeatureGroup. + /** Lists the FeatureViewSyncs that match the filter expression. The following filters are supported: * + `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 + format. Examples: * `create_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs created + after 2020-01-31T15:30:00.000000Z. */ - public java.lang.String getFeatureId() { - return featureId; + public java.lang.String getFilter() { + return filter; } /** - * Required. The ID to use for the Feature, which will become the final component of - * the Feature's resource name. This value may be up to 128 characters, and valid - * characters are `[a-z0-9_]`. The first character cannot be a number. The value must - * be unique within an EntityType/FeatureGroup. + * Lists the FeatureViewSyncs that match the filter expression. The following filters + * are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` + * comparisons. Values must be in RFC 3339 format. Examples: * `create_time > + * \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs created after + * 2020-01-31T15:30:00.000000Z. */ - public Create setFeatureId(java.lang.String featureId) { - this.featureId = featureId; + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a single Feature. - * - * Create a request for the method "features.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 Features to be deleted. Format: `projects/{project}/locations/{location}/f - * eaturestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - * @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}"; + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. Supported fields: * `create_time` + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field + name for descending. Supported fields: * `create_time` + */ + public java.lang.String getOrderBy() { + return orderBy; + } /** - * Deletes a single Feature. - * - * Create a request for the method "features.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 Features to be deleted. Format: `projects/{project}/locations/{location}/f - * eaturestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - * @since 1.13 + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. Supported fields: * `create_time` */ - 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); - } + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - @Override + /** + * The maximum number of FeatureViewSyncs to return. The service may return fewer than + * this value. If unspecified, at most 1000 FeatureViewSyncs will be returned. The + * maximum value is 1000; any value greater than 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of FeatureViewSyncs to return. The service may return fewer than this value. If + unspecified, at most 1000 FeatureViewSyncs will be returned. The maximum value is 1000; any value + greater than 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of FeatureViewSyncs to return. The service may return fewer than + * this value. If unspecified, at most 1000 FeatureViewSyncs will be returned. The + * maximum value is 1000; any value greater than 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous + * FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide this to retrieve + * the subsequent page. When paginating, all other parameters provided to + * FeatureOnlineStoreAdminService.ListFeatureViewSyncs 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 FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. + Provide this to retrieve the subsequent page. When paginating, all other parameters provided to + FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the call that provided the page + token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous + * FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide this to retrieve + * the subsequent page. When paginating, all other parameters provided to + * FeatureOnlineStoreAdminService.ListFeatureViewSyncs 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); + } + } + + } + /** + * 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 { + + /** + * 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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/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/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); + } + } + + @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @@ -99117,34 +93964,22 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the Features to be deleted. Format: `projects/{project}/locat - * ions/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{fe - * ature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/feat - * ures/{feature}` - */ + /** The name of the operation resource to be deleted. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/ - featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` - `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + /** The name of the operation resource to be deleted. */ public java.lang.String getName() { return name; } - /** - * Required. The name of the Features to be deleted. Format: `projects/{project}/locat - * ions/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{fe - * ature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/feat - * ures/{feature}` - */ + /** 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -99156,17 +93991,15 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets details of a single Feature. + * 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 "features.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 Feature resource. Format for entity_type as parent: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param name The name of the operation resource. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -99175,36 +94008,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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); /** - * Gets details of a single Feature. + * 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 "features.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 Feature resource. Format for entity_type as parent: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @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.GoogleCloudAiplatformV1beta1Feature.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); } } @@ -99273,166 +94104,78 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the Feature resource. Format for entity_type as parent: `proj - * ects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entit - * y_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ + /** The name of the operation resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Feature resource. Format for entity_type as parent: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - Format for feature_group as parent: - `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /** The name of the operation resource. */ public java.lang.String getName() { return name; } - /** - * Required. The name of the Feature resource. Format for entity_type as parent: `proj - * ects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entit - * y_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ + /** 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); } this.name = name; return this; } - /** - * Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. - * If stats_time_range is set, return most recent count of stats within the - * stats_time_range. - */ - @com.google.api.client.util.Key("featureStatsAndAnomalySpec.latestStatsCount") - private java.lang.Integer featureStatsAndAnomalySpecLatestStatsCount; - - /** Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If - stats_time_range is set, return most recent count of stats within the stats_time_range. - */ - public java.lang.Integer getFeatureStatsAndAnomalySpecLatestStatsCount() { - return featureStatsAndAnomalySpecLatestStatsCount; - } - - /** - * Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. - * If stats_time_range is set, return most recent count of stats within the - * stats_time_range. - */ - public Get setFeatureStatsAndAnomalySpecLatestStatsCount(java.lang.Integer featureStatsAndAnomalySpecLatestStatsCount) { - this.featureStatsAndAnomalySpecLatestStatsCount = featureStatsAndAnomalySpecLatestStatsCount; - return this; - } - - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - @com.google.api.client.util.Key("featureStatsAndAnomalySpec.statsTimeRange.endTime") - private String featureStatsAndAnomalySpecStatsTimeRangeEndTime; - - /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have - to be before the end. - */ - public String getFeatureStatsAndAnomalySpecStatsTimeRangeEndTime() { - return featureStatsAndAnomalySpecStatsTimeRangeEndTime; - } - - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - public Get setFeatureStatsAndAnomalySpecStatsTimeRangeEndTime(String featureStatsAndAnomalySpecStatsTimeRangeEndTime) { - this.featureStatsAndAnomalySpecStatsTimeRangeEndTime = featureStatsAndAnomalySpecStatsTimeRangeEndTime; - return this; - } - - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - @com.google.api.client.util.Key("featureStatsAndAnomalySpec.statsTimeRange.startTime") - private String featureStatsAndAnomalySpecStatsTimeRangeStartTime; - - /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will - have to be the same or after the start. - */ - public String getFeatureStatsAndAnomalySpecStatsTimeRangeStartTime() { - return featureStatsAndAnomalySpecStatsTimeRangeStartTime; - } - - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - public Get setFeatureStatsAndAnomalySpecStatsTimeRangeStartTime(String featureStatsAndAnomalySpecStatsTimeRangeStartTime) { - this.featureStatsAndAnomalySpecStatsTimeRangeStartTime = featureStatsAndAnomalySpecStatsTimeRangeStartTime; - return this; - } - @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** - * Lists Features in a given EntityType. + * 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 "features.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 Location to list Features. Format for entity_type as parent: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @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}/features"; + private static final String REST_PATH = "v1beta1/{+name}/operations"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); /** - * Lists Features in a given EntityType. + * 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 "features.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 Location to list Features. Format for entity_type as parent: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ - * type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @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.GoogleCloudAiplatformV1beta1ListFeaturesResponse.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 " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } } @@ -99501,214 +94244,109 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the Location to list Features. Format for - * entity_type as parent: `projects/{project}/locations/{location}/featurestores/{feat - * urestore}/entityTypes/{entity_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ + /** 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 Location to list Features. Format for entity_type as parent: - `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - Format for feature_group as parent: - `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /** 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 Location to list Features. Format for - * entity_type as parent: `projects/{project}/locations/{location}/featurestores/{feat - * urestore}/entityTypes/{entity_type}` Format for feature_group as parent: - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` - */ - 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 " + - "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } - /** - * Lists the Features that match the filter expression. The following filters are - * supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports - * =, !=, <, >, >=, and <= comparisons. Values must be in RFC 3339 format. * - * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC - * 3339 format. * `labels`: Supports key-value equality as well as key presence. - * Examples: * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `create_time - * > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` - * --> EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * - * `labels.active = yes AND labels.env = prod` --> Features having both (active: yes) - * and (env: prod) labels. * `labels.env: *` --> Any Feature which has a label with - * 'env' as the key. - */ + /** The standard list filter. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Lists the Features that match the filter expression. The following filters are supported: * - `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, <, >, >=, and <= - comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= - comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as - key presence. Examples: * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `create_time > - \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes - created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` - --> Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --> Any Feature - which has a label with 'env' as the key. + /** The standard list filter. */ public java.lang.String getFilter() { return filter; } - /** - * Lists the Features that match the filter expression. The following filters are - * supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports - * =, !=, <, >, >=, and <= comparisons. Values must be in RFC 3339 format. * - * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC - * 3339 format. * `labels`: Supports key-value equality as well as key presence. - * Examples: * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `create_time - * > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` - * --> EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * - * `labels.active = yes AND labels.env = prod` --> Features having both (active: yes) - * and (env: prod) labels. * `labels.env: *` --> Any Feature which has a label with - * 'env' as the key. - */ + /** The standard list filter. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Only applicable for Vertex AI Feature Store (Legacy). If set, return the most - * recent ListFeaturesRequest.latest_stats_count of stats for each Feature in - * response. Valid value is [0, 10]. If number of stats exists < - * ListFeaturesRequest.latest_stats_count, return all existing stats. - */ - @com.google.api.client.util.Key - private java.lang.Integer latestStatsCount; - - /** Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent - ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, - 10]. If number of stats exists < ListFeaturesRequest.latest_stats_count, return all existing stats. - */ - public java.lang.Integer getLatestStatsCount() { - return latestStatsCount; - } - - /** - * Only applicable for Vertex AI Feature Store (Legacy). If set, return the most - * recent ListFeaturesRequest.latest_stats_count of stats for each Feature in - * response. Valid value is [0, 10]. If number of stats exists < - * ListFeaturesRequest.latest_stats_count, return all existing stats. - */ - public List setLatestStatsCount(java.lang.Integer latestStatsCount) { - this.latestStatsCount = latestStatsCount; - 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: * `feature_id` * `value_type` - * (Not supported for FeatureRegistry Feature) * `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: * `feature_id` * `value_type` (Not supported for - FeatureRegistry Feature) * `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: * `feature_id` * `value_type` - * (Not supported for FeatureRegistry Feature) * `create_time` * `update_time` - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * The maximum number of Features to return. The service may return fewer than this - * value. If unspecified, at most 1000 Features will be returned. The maximum value is - * 1000; any value greater than 1000 will be coerced to 1000. - */ + /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The maximum number of Features to return. The service may return fewer than this value. If - unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater - than 1000 will be coerced to 1000. + /** The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** - * The maximum number of Features to return. The service may return fewer than this - * value. If unspecified, at most 1000 Features will be returned. The maximum value is - * 1000; any value greater than 1000 will be coerced to 1000. - */ + /** The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** - * A page token, received from a previous FeaturestoreService.ListFeatures call or - * FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match - * the call that provided the page token. - */ + /** The standard list page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** A page token, received from a previous FeaturestoreService.ListFeatures call or - FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When - paginating, all other parameters provided to FeaturestoreService.ListFeatures or - FeatureRegistryService.ListFeatures must match the call that provided the page token. + /** The standard list page token. */ public java.lang.String getPageToken() { return pageToken; } - /** - * A page token, received from a previous FeaturestoreService.ListFeatures call or - * FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match - * the call that provided the page token. - */ + /** The standard list page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = 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; - 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; + } @Override public List set(String parameterName, Object value) { @@ -99716,1860 +94354,9725 @@ public List set(String parameterName, Object value) { } } /** - * Updates the parameters of a single Feature. + * 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 "features.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. * - * @param name Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{feat - * urestore}/entityTypes/{entity_type}/features/{feature}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - * The last part feature is assigned by the client. The feature can be up to 64 characters - * long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII - * digits 0-9 starting with a letter. The value will be unique given an entity type. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} + * @param name The name of the operation resource to wait on. * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); initialize(result); return result; } - public class Patch extends AiplatformRequest { + public class Wait extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+name}:wait"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); /** - * Updates the parameters of a single Feature. + * 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 "features.patch". + * 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 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.

+ * 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 Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{feat - * urestore}/entityTypes/{entity_type}/features/{feature}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - * The last part feature is assigned by the client. The feature can be up to 64 characters - * long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII - * digits 0-9 starting with a letter. The value will be unique given an entity type. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} + * @param name The name of the operation resource to wait on. * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature.class); + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); } - /** - * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/fe - * aturestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/ - * {project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - * The last part feature is assigned by the client. The feature can be up to 64 - * characters long and can consist only of ASCII Latin letters A-Z and a-z, - * underscore(_), and ASCII digits 0-9 starting with a letter. The value will be - * unique given an entity type. - */ + /** The name of the operation resource to wait on. */ @com.google.api.client.util.Key private java.lang.String name; - /** Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{fea - turestore}/entityTypes/{entity_type}/features/{feature}` - `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last - part feature is assigned by the client. The feature can be up to 64 characters long and can consist - only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a - letter. The value will be unique given an entity type. + /** The name of the operation resource to wait on. */ public java.lang.String getName() { return name; } - /** - * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/fe - * aturestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/ - * {project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` - * The last part feature is assigned by the client. The feature can be up to 64 - * characters long and can consist only of ASCII Latin letters A-Z and a-z, - * underscore(_), and ASCII digits 0-9 starting with a letter. The value will be - * unique given an entity type. - */ - public Patch setName(java.lang.String 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$"); } this.name = name; return this; } /** - * Field mask is used to specify the fields to be overwritten in the Features resource - * by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. - * If the user does not provide a mask then only the non-empty fields present in the - * request will be overwritten. Set the update_mask to `*` to override all fields. - * Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported - * for FeatureRegistryService Feature) * `point_of_contact` (Not supported for - * FeaturestoreService FeatureStore) + * 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 updateMask; + private String timeout; - /** Field mask is used to specify the fields to be overwritten in the Features resource by the update. - The fields specified in the update_mask are relative to the resource, not the full request. A field - will be overwritten if it is in the mask. If the user does not provide a mask then only the non- - empty fields present in the request will be overwritten. Set the update_mask to `*` to override all - fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for - FeatureRegistryService Feature) * `point_of_contact` (Not supported for FeaturestoreService - FeatureStore) + /** 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 getUpdateMask() { - return updateMask; + public String getTimeout() { + return timeout; } /** - * Field mask is used to specify the fields to be overwritten in the Features resource - * by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. - * If the user does not provide a mask then only the non-empty fields present in the - * request will be overwritten. Set the update_mask to `*` to override all fields. - * Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported - * for FeatureRegistryService Feature) * `point_of_contact` (Not supported for - * FeaturestoreService FeatureStore) + * 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 Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + public Wait setTimeout(String timeout) { + this.timeout = timeout; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + 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 { + + /** + * 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/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); + /** - * An accessor for creating requests from the Operations collection. + * 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`. * - *

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.delete". * - * @return the resource collection + * 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 */ - public Operations operations() { - return new Operations(); + 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/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); + } } - /** - * The "operations" collection of methods. - */ - public class Operations { + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - /** - * 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; - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - public class Cancel extends AiplatformRequest { + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$"); + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - /** - * 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$"); - } - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + /** 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/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @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; + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + public class Get extends AiplatformRequest { - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + /** + * 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/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); + } + } - /** 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @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 com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - public class Delete 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}"; + @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$"); + @Override + public Get setAlt(java.lang.String alt) { + return (Get) 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$"); - } - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** 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/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @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; + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class List 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}/operations"; - /** 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); - @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; + /** + * 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/[^/]+/featureOnlineStores/[^/]+$"); } + } - 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$"); + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** - * 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$"); - } - } + @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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$"); + } + this.name = name; + return this; + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - @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; - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - public class List extends AiplatformRequest { + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - private static final String REST_PATH = "v1beta1/{+name}/operations"; + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** - * 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); - } - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + /** + * 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/[^/]+/featureOnlineStores/[^/]+/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/[^/]+/featureOnlineStores/[^/]+/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/[^/]+/featureOnlineStores/[^/]+/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 Featurestores collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.Featurestores.List request = aiplatform.featurestores().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Featurestores featurestores() { + return new Featurestores(); + } + + /** + * The "featurestores" collection of methods. + */ + public class Featurestores { + + /** + * Batch reads Feature values from a Featurestore. This API enables batch reading Feature values, + * where each read instance in the batch may read Feature values of entities from one or more + * EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as + * of each instance's read timestamp. + * + * Create a request for the method "featurestores.batchReadFeatureValues". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link BatchReadFeatureValues#execute()} method to invoke the remote + * operation. + * + * @param featurestore Required. The resource name of the Featurestore from which to query Feature values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest} + * @return the request + */ + public BatchReadFeatureValues batchReadFeatureValues(java.lang.String featurestore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest content) throws java.io.IOException { + BatchReadFeatureValues result = new BatchReadFeatureValues(featurestore, content); + initialize(result); + return result; + } + + public class BatchReadFeatureValues extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+featurestore}:batchReadFeatureValues"; + + private final java.util.regex.Pattern FEATURESTORE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + + /** + * Batch reads Feature values from a Featurestore. This API enables batch reading Feature values, + * where each read instance in the batch may read Feature values of entities from one or more + * EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance + * as of each instance's read timestamp. + * + * Create a request for the method "featurestores.batchReadFeatureValues". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link BatchReadFeatureValues#execute()} method to invoke the + * remote operation.

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

+ * + * @param featurestore Required. The resource name of the Featurestore from which to query Feature values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest} + * @since 1.13 + */ + protected BatchReadFeatureValues(java.lang.String featurestore, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.featurestore = com.google.api.client.util.Preconditions.checkNotNull(featurestore, "Required parameter featurestore must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FEATURESTORE_PATTERN.matcher(featurestore).matches(), + "Parameter featurestore must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + } + } + + @Override + public BatchReadFeatureValues set$Xgafv(java.lang.String $Xgafv) { + return (BatchReadFeatureValues) super.set$Xgafv($Xgafv); + } + + @Override + public BatchReadFeatureValues setAccessToken(java.lang.String accessToken) { + return (BatchReadFeatureValues) super.setAccessToken(accessToken); + } + + @Override + public BatchReadFeatureValues setAlt(java.lang.String alt) { + return (BatchReadFeatureValues) super.setAlt(alt); + } + + @Override + public BatchReadFeatureValues setCallback(java.lang.String callback) { + return (BatchReadFeatureValues) super.setCallback(callback); + } + + @Override + public BatchReadFeatureValues setFields(java.lang.String fields) { + return (BatchReadFeatureValues) super.setFields(fields); + } + + @Override + public BatchReadFeatureValues setKey(java.lang.String key) { + return (BatchReadFeatureValues) super.setKey(key); + } + + @Override + public BatchReadFeatureValues setOauthToken(java.lang.String oauthToken) { + return (BatchReadFeatureValues) super.setOauthToken(oauthToken); + } + + @Override + public BatchReadFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchReadFeatureValues) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchReadFeatureValues setQuotaUser(java.lang.String quotaUser) { + return (BatchReadFeatureValues) super.setQuotaUser(quotaUser); + } + + @Override + public BatchReadFeatureValues setUploadType(java.lang.String uploadType) { + return (BatchReadFeatureValues) super.setUploadType(uploadType); + } + + @Override + public BatchReadFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchReadFeatureValues) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the Featurestore from which to query Feature values. + * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + @com.google.api.client.util.Key + private java.lang.String featurestore; + + /** Required. The resource name of the Featurestore from which to query Feature values. Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + public java.lang.String getFeaturestore() { + return featurestore; + } + + /** + * Required. The resource name of the Featurestore from which to query Feature values. + * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + public BatchReadFeatureValues setFeaturestore(java.lang.String featurestore) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FEATURESTORE_PATTERN.matcher(featurestore).matches(), + "Parameter featurestore must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + } + this.featurestore = featurestore; + return this; + } + + @Override + public BatchReadFeatureValues set(String parameterName, Object value) { + return (BatchReadFeatureValues) super.set(parameterName, value); + } + } + /** + * Creates a new Featurestore in a given project and location. + * + * Create a request for the method "featurestores.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 Featurestores. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore 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}/featurestores"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new Featurestore in a given project and location. + * + * Create a request for the method "featurestores.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 Featurestores. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore 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 Featurestores. 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 Featurestores. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to create Featurestores. 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; + } + + /** + * Required. The ID to use for this Featurestore, which will become the final component of + * the Featurestore's resource name. This value may be up to 60 characters, and valid + * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be + * unique within the project and location. + */ + @com.google.api.client.util.Key + private java.lang.String featurestoreId; + + /** Required. The ID to use for this Featurestore, which will become the final component of the + Featurestore's resource name. This value may be up to 60 characters, and valid characters are + `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project + and location. + */ + public java.lang.String getFeaturestoreId() { + return featurestoreId; + } + + /** + * Required. The ID to use for this Featurestore, which will become the final component of + * the Featurestore's resource name. This value may be up to 60 characters, and valid + * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be + * unique within the project and location. + */ + public Create setFeaturestoreId(java.lang.String featurestoreId) { + this.featurestoreId = featurestoreId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` must + * be set to true for the request to succeed. + * + * Create a request for the method "featurestores.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 Featurestore to be deleted. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @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/[^/]+/featurestores/[^/]+$"); + + /** + * Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` + * must be set to true for the request to succeed. + * + * Create a request for the method "featurestores.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 Featurestore to be deleted. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @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/[^/]+/featurestores/[^/]+$"); + } + } + + @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 Featurestore to be deleted. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Featurestore to be deleted. Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Featurestore to be deleted. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + 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/[^/]+/featurestores/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * If set to true, any EntityTypes and Features for this Featurestore will also be + * deleted. (Otherwise, the request will only work if the Featurestore has no + * EntityTypes.) + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** If set to true, any EntityTypes and Features for this Featurestore will also be deleted. + (Otherwise, the request will only work if the Featurestore has no EntityTypes.) + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * If set to true, any EntityTypes and Features for this Featurestore will also be + * deleted. (Otherwise, the request will only work if the Featurestore has no + * EntityTypes.) + */ + 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); + } + } + /** + * Gets details of a single Featurestore. + * + * Create a request for the method "featurestores.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 Featurestore 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/[^/]+/featurestores/[^/]+$"); + + /** + * Gets details of a single Featurestore. + * + * Create a request for the method "featurestores.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 Featurestore resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore.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/[^/]+/featurestores/[^/]+$"); + } + } + + @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 Featurestore resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Featurestore resource. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the Featurestore 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/[^/]+/featurestores/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "featurestores.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. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1GetIamPolicyRequest} + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1GetIamPolicyRequest content) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource, content); + 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/[^/]+/featurestores/[^/]+$"); + + /** + * 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 "featurestores.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. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1GetIamPolicyRequest} + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1GetIamPolicyRequest 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/[^/]+/featurestores/[^/]+$"); + } + } + + @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/[^/]+/featurestores/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Lists Featurestores in a given project and location. + * + * Create a request for the method "featurestores.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 Featurestores. 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}/featurestores"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists Featurestores in a given project and location. + * + * Create a request for the method "featurestores.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 Featurestores. 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.GoogleCloudAiplatformV1beta1ListFeaturestoresResponse.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 Featurestores. 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 Featurestores. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to list Featurestores. 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; + } + + /** + * Lists the featurestores that match the filter expression. The following fields are + * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, + * and `>=` comparisons. Values must be in RFC 3339 format. * + * `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` + * comparisons. * `labels`: Supports key-value equality and key presence. Examples: * + * `create_time > "2020-01-01" OR update_time > "2020-01-01"` Featurestores created or + * updated after 2020-01-01. * `labels.env = "prod"` Featurestores with label "env" set to + * "prod". + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Lists the featurestores that match the filter expression. The following fields are supported: * + `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 + format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be + in RFC 3339 format. * `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `<`, `>`, `<=`, + and `>=` comparisons. * `labels`: Supports key-value equality and key presence. Examples: * + `create_time > "2020-01-01" OR update_time > "2020-01-01"` Featurestores created or updated after + 2020-01-01. * `labels.env = "prod"` Featurestores with label "env" set to "prod". + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Lists the featurestores that match the filter expression. The following fields are + * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, + * and `>=` comparisons. Values must be in RFC 3339 format. * + * `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` + * comparisons. * `labels`: Supports key-value equality and key presence. Examples: * + * `create_time > "2020-01-01" OR update_time > "2020-01-01"` Featurestores created or + * updated after 2020-01-01. * `labels.env = "prod"` Featurestores with label "env" set to + * "prod". + */ + 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: * `create_time` * `update_time` * + * `online_serving_config.fixed_node_count` + */ + @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: * `create_time` * `update_time` * + `online_serving_config.fixed_node_count` + */ + 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: * `create_time` * `update_time` * + * `online_serving_config.fixed_node_count` + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * The maximum number of Featurestores to return. The service may return fewer than this + * value. If unspecified, at most 100 Featurestores will be returned. The maximum value is + * 100; any value greater than 100 will be coerced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of Featurestores to return. The service may return fewer than this value. If + unspecified, at most 100 Featurestores will be returned. The maximum value is 100; any value + greater than 100 will be coerced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of Featurestores to return. The service may return fewer than this + * value. If unspecified, at most 100 Featurestores will be returned. The maximum value is + * 100; any value greater than 100 will be coerced to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous FeaturestoreService.ListFeaturestores call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to FeaturestoreService.ListFeaturestores 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 FeaturestoreService.ListFeaturestores call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + FeaturestoreService.ListFeaturestores must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous FeaturestoreService.ListFeaturestores call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to FeaturestoreService.ListFeaturestores must match the call that provided the + * 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 the parameters of a single Featurestore. + * + * Create a request for the method "featurestores.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. Name of the Featurestore. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore 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/[^/]+/featurestores/[^/]+$"); + + /** + * Updates the parameters of a single Featurestore. + * + * Create a request for the method "featurestores.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. Name of the Featurestore. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Featurestore 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/[^/]+/featurestores/[^/]+$"); + } + } + + @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. Name of the Featurestore. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Output only. Name of the Featurestore. Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Name of the Featurestore. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + 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/[^/]+/featurestores/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Field mask is used to specify the fields to be overwritten in the Featurestore resource + * by the update. The fields specified in the update_mask are relative to the resource, + * not the full request. A field will be overwritten if it is in the mask. If the user + * does not provide a mask then only the non-empty fields present in the request will be + * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * + * `labels` * `online_serving_config.fixed_node_count` * `online_serving_config.scaling` * + * `online_storage_ttl_days` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Field mask is used to specify the fields to be overwritten in the Featurestore resource by the + update. The fields specified in the update_mask are relative to the resource, not the full request. + A field will be overwritten if it is in the mask. If the user does not provide a mask then only the + non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override + all fields. Updatable fields: * `labels` * `online_serving_config.fixed_node_count` * + `online_serving_config.scaling` * `online_storage_ttl_days` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Field mask is used to specify the fields to be overwritten in the Featurestore resource + * by the update. The fields specified in the update_mask are relative to the resource, + * not the full request. A field will be overwritten if it is in the mask. If the user + * does not provide a mask then only the non-empty fields present in the request will be + * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * + * `labels` * `online_serving_config.fixed_node_count` * `online_serving_config.scaling` * + * `online_storage_ttl_days` + */ + 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 Features matching a query in a given project. + * + * Create a request for the method "featurestores.searchFeatures". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link SearchFeatures#execute()} method to invoke the remote operation. + * + * @param location Required. The resource name of the Location to search Features. Format: + * `projects/{project}/locations/{location}` + * @return the request + */ + public SearchFeatures searchFeatures(java.lang.String location) throws java.io.IOException { + SearchFeatures result = new SearchFeatures(location); + initialize(result); + return result; + } + + public class SearchFeatures extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+location}/featurestores:searchFeatures"; + + private final java.util.regex.Pattern LOCATION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Searches Features matching a query in a given project. + * + * Create a request for the method "featurestores.searchFeatures". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link SearchFeatures#execute()} method to invoke the remote + * operation.

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

+ * + * @param location Required. The resource name of the Location to search Features. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 + */ + protected SearchFeatures(java.lang.String location) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchFeaturesResponse.class); + this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location 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 SearchFeatures set$Xgafv(java.lang.String $Xgafv) { + return (SearchFeatures) super.set$Xgafv($Xgafv); + } + + @Override + public SearchFeatures setAccessToken(java.lang.String accessToken) { + return (SearchFeatures) super.setAccessToken(accessToken); + } + + @Override + public SearchFeatures setAlt(java.lang.String alt) { + return (SearchFeatures) super.setAlt(alt); + } + + @Override + public SearchFeatures setCallback(java.lang.String callback) { + return (SearchFeatures) super.setCallback(callback); + } + + @Override + public SearchFeatures setFields(java.lang.String fields) { + return (SearchFeatures) super.setFields(fields); + } + + @Override + public SearchFeatures setKey(java.lang.String key) { + return (SearchFeatures) super.setKey(key); + } + + @Override + public SearchFeatures setOauthToken(java.lang.String oauthToken) { + return (SearchFeatures) super.setOauthToken(oauthToken); + } + + @Override + public SearchFeatures setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchFeatures) super.setPrettyPrint(prettyPrint); + } + + @Override + public SearchFeatures setQuotaUser(java.lang.String quotaUser) { + return (SearchFeatures) super.setQuotaUser(quotaUser); + } + + @Override + public SearchFeatures setUploadType(java.lang.String uploadType) { + return (SearchFeatures) super.setUploadType(uploadType); + } + + @Override + public SearchFeatures setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchFeatures) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the Location to search Features. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** Required. The resource name of the Location to search Features. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getLocation() { + return location; + } + + /** + * Required. The resource name of the Location to search Features. Format: + * `projects/{project}/locations/{location}` + */ + public SearchFeatures setLocation(java.lang.String location) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.location = location; + return this; + } + + /** + * The maximum number of Features to return. The service may return fewer than this value. + * If unspecified, at most 100 Features will be returned. The maximum value is 100; any + * value greater than 100 will be coerced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of Features to return. The service may return fewer than this value. If + unspecified, at most 100 Features will be returned. The maximum value is 100; any value greater + than 100 will be coerced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of Features to return. The service may return fewer than this value. + * If unspecified, at most 100 Features will be returned. The maximum value is 100; any + * value greater than 100 will be coerced to 100. + */ + public SearchFeatures setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous FeaturestoreService.SearchFeatures call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * FeaturestoreService.SearchFeatures, except `page_size`, 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 FeaturestoreService.SearchFeatures call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + FeaturestoreService.SearchFeatures, except `page_size`, must match the call that provided the page + token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous FeaturestoreService.SearchFeatures call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * FeaturestoreService.SearchFeatures, except `page_size`, must match the call that + * provided the page token. + */ + public SearchFeatures setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Query string that is a conjunction of field-restricted queries and/or field-restricted + * filters. Field-restricted queries and filters can be combined using `AND` to form a + * conjunction. A field query is in the form FIELD:QUERY. This implicitly checks if QUERY + * exists as a substring within Feature's FIELD. The QUERY and the FIELD are converted to + * a sequence of words (i.e. tokens) for comparison. This is done by: * Removing + * leading/trailing whitespace and tokenizing the search value. Characters that are not + * one of alphanumeric `[a-zA-Z0-9]`, underscore `_`, or asterisk `*` are treated as + * delimiters for tokens. `*` is treated as a wildcard that matches characters within a + * token. * Ignoring case. * Prepending an asterisk to the first and appending an asterisk + * to the last token in QUERY. A QUERY must be either a singular token or a phrase. A + * phrase is one or multiple words enclosed in double quotation marks ("). With phrases, + * the order of the words is important. Words in the phrase must be matching in order and + * consecutively. Supported FIELDs for field-restricted queries: * `feature_id` * + * `description` * `entity_type_id` Examples: * `feature_id: foo` --> Matches a Feature + * with ID containing the substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * + * `feature_id: foo*feature` --> Matches a Feature with ID containing the substring + * `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND description: bar` --> + * Matches a Feature with ID containing the substring `foo` and description containing the + * substring `bar`. Besides field queries, the following exact-match filters are + * supported. The exact-match filters do not support wildcards. Unlike field-restricted + * queries, exact-match filters are case-sensitive. * `feature_id`: Supports = + * comparisons. * `description`: Supports = comparisons. Multi-token filters should be + * enclosed in quotes. * `entity_type_id`: Supports = comparisons. * `value_type`: + * Supports = and != comparisons. * `labels`: Supports key-value equality as well as key + * presence. * `featurestore_id`: Supports = comparisons. Examples: * `description = "foo + * bar"` --> Any Feature with description exactly equal to `foo bar` * `value_type = + * DOUBLE` --> Features whose type is DOUBLE. * `labels.active = yes AND labels.env = + * prod` --> Features having both (active: yes) and (env: prod) labels. * `labels.env: *` + * --> Any Feature which has a label with `env` as the key. + */ + @com.google.api.client.util.Key + private java.lang.String query; + + /** Query string that is a conjunction of field-restricted queries and/or field-restricted filters. + Field-restricted queries and filters can be combined using `AND` to form a conjunction. A field + query is in the form FIELD:QUERY. This implicitly checks if QUERY exists as a substring within + Feature's FIELD. The QUERY and the FIELD are converted to a sequence of words (i.e. tokens) for + comparison. This is done by: * Removing leading/trailing whitespace and tokenizing the search + value. Characters that are not one of alphanumeric `[a-zA-Z0-9]`, underscore `_`, or asterisk `*` + are treated as delimiters for tokens. `*` is treated as a wildcard that matches characters within a + token. * Ignoring case. * Prepending an asterisk to the first and appending an asterisk to the last + token in QUERY. A QUERY must be either a singular token or a phrase. A phrase is one or multiple + words enclosed in double quotation marks ("). With phrases, the order of the words is important. + Words in the phrase must be matching in order and consecutively. Supported FIELDs for field- + restricted queries: * `feature_id` * `description` * `entity_type_id` Examples: * `feature_id: foo` + --> Matches a Feature with ID containing the substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * + `feature_id: foo*feature` --> Matches a Feature with ID containing the substring `foo*feature` (eg. + `foobarfeature`). * `feature_id: foo AND description: bar` --> Matches a Feature with ID containing + the substring `foo` and description containing the substring `bar`. Besides field queries, the + following exact-match filters are supported. The exact-match filters do not support wildcards. + Unlike field-restricted queries, exact-match filters are case-sensitive. * `feature_id`: Supports = + comparisons. * `description`: Supports = comparisons. Multi-token filters should be enclosed in + quotes. * `entity_type_id`: Supports = comparisons. * `value_type`: Supports = and != comparisons. + * `labels`: Supports key-value equality as well as key presence. * `featurestore_id`: Supports = + comparisons. Examples: * `description = "foo bar"` --> Any Feature with description exactly equal + to `foo bar` * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `labels.active = yes AND + labels.env = prod` --> Features having both (active: yes) and (env: prod) labels. * `labels.env: *` + --> Any Feature which has a label with `env` as the key. + */ + public java.lang.String getQuery() { + return query; + } + + /** + * Query string that is a conjunction of field-restricted queries and/or field-restricted + * filters. Field-restricted queries and filters can be combined using `AND` to form a + * conjunction. A field query is in the form FIELD:QUERY. This implicitly checks if QUERY + * exists as a substring within Feature's FIELD. The QUERY and the FIELD are converted to + * a sequence of words (i.e. tokens) for comparison. This is done by: * Removing + * leading/trailing whitespace and tokenizing the search value. Characters that are not + * one of alphanumeric `[a-zA-Z0-9]`, underscore `_`, or asterisk `*` are treated as + * delimiters for tokens. `*` is treated as a wildcard that matches characters within a + * token. * Ignoring case. * Prepending an asterisk to the first and appending an asterisk + * to the last token in QUERY. A QUERY must be either a singular token or a phrase. A + * phrase is one or multiple words enclosed in double quotation marks ("). With phrases, + * the order of the words is important. Words in the phrase must be matching in order and + * consecutively. Supported FIELDs for field-restricted queries: * `feature_id` * + * `description` * `entity_type_id` Examples: * `feature_id: foo` --> Matches a Feature + * with ID containing the substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * + * `feature_id: foo*feature` --> Matches a Feature with ID containing the substring + * `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND description: bar` --> + * Matches a Feature with ID containing the substring `foo` and description containing the + * substring `bar`. Besides field queries, the following exact-match filters are + * supported. The exact-match filters do not support wildcards. Unlike field-restricted + * queries, exact-match filters are case-sensitive. * `feature_id`: Supports = + * comparisons. * `description`: Supports = comparisons. Multi-token filters should be + * enclosed in quotes. * `entity_type_id`: Supports = comparisons. * `value_type`: + * Supports = and != comparisons. * `labels`: Supports key-value equality as well as key + * presence. * `featurestore_id`: Supports = comparisons. Examples: * `description = "foo + * bar"` --> Any Feature with description exactly equal to `foo bar` * `value_type = + * DOUBLE` --> Features whose type is DOUBLE. * `labels.active = yes AND labels.env = + * prod` --> Features having both (active: yes) and (env: prod) labels. * `labels.env: *` + * --> Any Feature which has a label with `env` as the key. + */ + public SearchFeatures setQuery(java.lang.String query) { + this.query = query; + return this; + } + + @Override + public SearchFeatures set(String parameterName, Object value) { + return (SearchFeatures) 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 "featurestores.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/[^/]+/featurestores/[^/]+$"); + + /** + * 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 "featurestores.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/[^/]+/featurestores/[^/]+$"); + } + } + + @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/[^/]+/featurestores/[^/]+$"); + } + 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 "featurestores.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. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); + 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/[^/]+/featurestores/[^/]+$"); + + /** + * 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 "featurestores.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. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource, com.google.api.services.aiplatform.v1beta1.model.GoogleIamV1TestIamPermissionsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, 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/[^/]+/featurestores/[^/]+$"); + } + } + + @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/[^/]+/featurestores/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the EntityTypes collection. + * + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.EntityTypes.List request = aiplatform.entityTypes().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public EntityTypes entityTypes() { + return new EntityTypes(); + } + + /** + * The "entityTypes" collection of methods. + */ + public class EntityTypes { + + /** + * Creates a new EntityType in a given Featurestore. + * + * Create a request for the method "entityTypes.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 Featurestore to create EntityTypes. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType 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}/entityTypes"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + + /** + * Creates a new EntityType in a given Featurestore. + * + * Create a request for the method "entityTypes.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 Featurestore to create EntityTypes. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType 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/[^/]+/featurestores/[^/]+$"); + } + } + + @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 Featurestore to create EntityTypes. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Featurestore to create EntityTypes. Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Featurestore to create EntityTypes. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + 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/[^/]+/featurestores/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Required. The ID to use for the EntityType, which will become the final component of + * the EntityType's resource name. This value may be up to 60 characters, and valid + * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be + * unique within a featurestore. + */ + @com.google.api.client.util.Key + private java.lang.String entityTypeId; + + /** Required. The ID to use for the EntityType, which will become the final component of the + EntityType's resource name. This value may be up to 60 characters, and valid characters are + `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a + featurestore. + */ + public java.lang.String getEntityTypeId() { + return entityTypeId; + } + + /** + * Required. The ID to use for the EntityType, which will become the final component of + * the EntityType's resource name. This value may be up to 60 characters, and valid + * characters are `[a-z0-9_]`. The first character cannot be a number. The value must be + * unique within a featurestore. + */ + public Create setEntityTypeId(java.lang.String entityTypeId) { + this.entityTypeId = entityTypeId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single EntityType. The EntityType must not have any Features or `force` must be set to + * true for the request to succeed. + * + * Create a request for the method "entityTypes.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 EntityType to be deleted. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` + * @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * Deletes a single EntityType. The EntityType must not have any Features or `force` must be set + * to true for the request to succeed. + * + * Create a request for the method "entityTypes.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 EntityType to be deleted. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` + * @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @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 EntityType to be deleted. Format: `projects/{project}/locat + * ions/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the EntityType to be deleted. Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the EntityType to be deleted. Format: `projects/{project}/locat + * ions/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + */ + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * If set to true, any Features for this EntityType will also be deleted. (Otherwise, + * the request will only work if the EntityType has no Features.) + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** If set to true, any Features for this EntityType will also be deleted. (Otherwise, the request will + only work if the EntityType has no Features.) + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * If set to true, any Features for this EntityType will also be deleted. (Otherwise, + * the request will only work if the EntityType has no Features.) + */ + 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); + } + } + /** + * Delete Feature values from Featurestore. The progress of the deletion is tracked by the returned + * operation. The deleted feature values are guaranteed to be invisible to subsequent read + * operations after the operation is marked as successfully done. If a delete feature values + * operation fails, the feature values returned from reads and exports may be inconsistent. If + * consistency is required, the caller must retry the same delete request again and wait till the + * new operation returned is marked as successfully done. + * + * Create a request for the method "entityTypes.deleteFeatureValues". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link DeleteFeatureValues#execute()} method to invoke the remote operation. + * + * @param entityType Required. The resource name of the EntityType grouping the Features for which values are being + * deleted from. Format: `projects/{project}/locations/{location}/featurestores/{featurestore + * }/entityTypes/{entityType}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest} + * @return the request + */ + public DeleteFeatureValues deleteFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest content) throws java.io.IOException { + DeleteFeatureValues result = new DeleteFeatureValues(entityType, content); + initialize(result); + return result; + } + + public class DeleteFeatureValues extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+entityType}:deleteFeatureValues"; + + private final java.util.regex.Pattern ENTITY_TYPE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * Delete Feature values from Featurestore. The progress of the deletion is tracked by the + * returned operation. The deleted feature values are guaranteed to be invisible to subsequent + * read operations after the operation is marked as successfully done. If a delete feature values + * operation fails, the feature values returned from reads and exports may be inconsistent. If + * consistency is required, the caller must retry the same delete request again and wait till the + * new operation returned is marked as successfully done. + * + * Create a request for the method "entityTypes.deleteFeatureValues". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link DeleteFeatureValues#execute()} method to invoke the remote + * operation.

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

+ * + * @param entityType Required. The resource name of the EntityType grouping the Features for which values are being + * deleted from. Format: `projects/{project}/locations/{location}/featurestores/{featurestore + * }/entityTypes/{entityType}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest} + * @since 1.13 + */ + protected DeleteFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.entityType = com.google.api.client.util.Preconditions.checkNotNull(entityType, "Required parameter entityType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), + "Parameter entityType must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @Override + public DeleteFeatureValues set$Xgafv(java.lang.String $Xgafv) { + return (DeleteFeatureValues) super.set$Xgafv($Xgafv); + } + + @Override + public DeleteFeatureValues setAccessToken(java.lang.String accessToken) { + return (DeleteFeatureValues) super.setAccessToken(accessToken); + } + + @Override + public DeleteFeatureValues setAlt(java.lang.String alt) { + return (DeleteFeatureValues) super.setAlt(alt); + } + + @Override + public DeleteFeatureValues setCallback(java.lang.String callback) { + return (DeleteFeatureValues) super.setCallback(callback); + } + + @Override + public DeleteFeatureValues setFields(java.lang.String fields) { + return (DeleteFeatureValues) super.setFields(fields); + } + + @Override + public DeleteFeatureValues setKey(java.lang.String key) { + return (DeleteFeatureValues) super.setKey(key); + } + + @Override + public DeleteFeatureValues setOauthToken(java.lang.String oauthToken) { + return (DeleteFeatureValues) super.setOauthToken(oauthToken); + } + + @Override + public DeleteFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteFeatureValues) super.setPrettyPrint(prettyPrint); + } + + @Override + public DeleteFeatureValues setQuotaUser(java.lang.String quotaUser) { + return (DeleteFeatureValues) super.setQuotaUser(quotaUser); + } + + @Override + public DeleteFeatureValues setUploadType(java.lang.String uploadType) { + return (DeleteFeatureValues) super.setUploadType(uploadType); + } + + @Override + public DeleteFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteFeatureValues) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the EntityType grouping the Features for which values + * are being deleted from. Format: `projects/{project}/locations/{location}/featurestore + * s/{featurestore}/entityTypes/{entityType}` + */ + @com.google.api.client.util.Key + private java.lang.String entityType; + + /** Required. The resource name of the EntityType grouping the Features for which values are being + deleted from. Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + */ + public java.lang.String getEntityType() { + return entityType; + } + + /** + * Required. The resource name of the EntityType grouping the Features for which values + * are being deleted from. Format: `projects/{project}/locations/{location}/featurestore + * s/{featurestore}/entityTypes/{entityType}` + */ + public DeleteFeatureValues setEntityType(java.lang.String entityType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), + "Parameter entityType must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.entityType = entityType; + return this; + } + + @Override + public DeleteFeatureValues set(String parameterName, Object value) { + return (DeleteFeatureValues) super.set(parameterName, value); + } + } + /** + * Exports Feature values from all the entities of a target EntityType. + * + * Create a request for the method "entityTypes.exportFeatureValues". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link ExportFeatureValues#execute()} method to invoke the remote operation. + * + * @param entityType Required. The resource name of the EntityType from which to export Feature values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest} + * @return the request + */ + public ExportFeatureValues exportFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest content) throws java.io.IOException { + ExportFeatureValues result = new ExportFeatureValues(entityType, content); + initialize(result); + return result; + } + + public class ExportFeatureValues extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+entityType}:exportFeatureValues"; + + private final java.util.regex.Pattern ENTITY_TYPE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * Exports Feature values from all the entities of a target EntityType. + * + * Create a request for the method "entityTypes.exportFeatureValues". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link ExportFeatureValues#execute()} method to invoke the remote + * operation.

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

+ * + * @param entityType Required. The resource name of the EntityType from which to export Feature values. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest} + * @since 1.13 + */ + protected ExportFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.entityType = com.google.api.client.util.Preconditions.checkNotNull(entityType, "Required parameter entityType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), + "Parameter entityType must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @Override + public ExportFeatureValues set$Xgafv(java.lang.String $Xgafv) { + return (ExportFeatureValues) super.set$Xgafv($Xgafv); + } + + @Override + public ExportFeatureValues setAccessToken(java.lang.String accessToken) { + return (ExportFeatureValues) super.setAccessToken(accessToken); + } + + @Override + public ExportFeatureValues setAlt(java.lang.String alt) { + return (ExportFeatureValues) super.setAlt(alt); + } + + @Override + public ExportFeatureValues setCallback(java.lang.String callback) { + return (ExportFeatureValues) super.setCallback(callback); + } + + @Override + public ExportFeatureValues setFields(java.lang.String fields) { + return (ExportFeatureValues) super.setFields(fields); + } + + @Override + public ExportFeatureValues setKey(java.lang.String key) { + return (ExportFeatureValues) super.setKey(key); + } + + @Override + public ExportFeatureValues setOauthToken(java.lang.String oauthToken) { + return (ExportFeatureValues) super.setOauthToken(oauthToken); + } + + @Override + public ExportFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ExportFeatureValues) super.setPrettyPrint(prettyPrint); + } + + @Override + public ExportFeatureValues setQuotaUser(java.lang.String quotaUser) { + return (ExportFeatureValues) super.setQuotaUser(quotaUser); + } + + @Override + public ExportFeatureValues setUploadType(java.lang.String uploadType) { + return (ExportFeatureValues) super.setUploadType(uploadType); + } + + @Override + public ExportFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { + return (ExportFeatureValues) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the EntityType from which to export Feature values. + * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityT + * ypes/{entity_type}` + */ + @com.google.api.client.util.Key + private java.lang.String entityType; + + /** Required. The resource name of the EntityType from which to export Feature values. Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + */ + public java.lang.String getEntityType() { + return entityType; + } + + /** + * Required. The resource name of the EntityType from which to export Feature values. + * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityT + * ypes/{entity_type}` + */ + public ExportFeatureValues setEntityType(java.lang.String entityType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), + "Parameter entityType must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.entityType = entityType; + return this; + } + + @Override + public ExportFeatureValues set(String parameterName, Object value) { + return (ExportFeatureValues) super.set(parameterName, value); + } + } + /** + * Gets details of a single EntityType. + * + * Create a request for the method "entityTypes.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 EntityType resource. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` + * @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * Gets details of a single EntityType. + * + * Create a request for the method "entityTypes.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 EntityType resource. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @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 EntityType resource. Format: `projects/{project}/locations/ + * {location}/featurestores/{featurestore}/entityTypes/{entity_type}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the EntityType resource. Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the EntityType resource. Format: `projects/{project}/locations/ + * {location}/featurestores/{featurestore}/entityTypes/{entity_type}` + */ + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "entityTypes.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * 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 "entityTypes.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + 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 Feature values into the Featurestore from a source storage. The progress of the import is + * tracked by the returned operation. The imported features are guaranteed to be visible to + * subsequent read operations after the operation is marked as successfully done. If an import + * operation fails, the Feature values returned from reads and exports may be inconsistent. If + * consistency is required, the caller must retry the same import request again and wait till the + * new operation returned is marked as successfully done. There are also scenarios where the caller + * can cause inconsistency. - Source data for import contains multiple distinct Feature values for + * the same entity ID and timestamp. - Source is modified during an import. This includes adding, + * updating, or removing source data and/or metadata. Examples of updating metadata include but are + * not limited to changing storage location, storage class, or retention policy. - Online serving + * cluster is under-provisioned. + * + * Create a request for the method "entityTypes.importFeatureValues". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link ImportFeatureValues#execute()} method to invoke the remote operation. + * + * @param entityType Required. The resource name of the EntityType grouping the Features for which values are being + * imported. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/en + * tityTypes/{entityType}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest} + * @return the request + */ + public ImportFeatureValues importFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest content) throws java.io.IOException { + ImportFeatureValues result = new ImportFeatureValues(entityType, content); + initialize(result); + return result; + } + + public class ImportFeatureValues extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+entityType}:importFeatureValues"; + + private final java.util.regex.Pattern ENTITY_TYPE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * Imports Feature values into the Featurestore from a source storage. The progress of the import + * is tracked by the returned operation. The imported features are guaranteed to be visible to + * subsequent read operations after the operation is marked as successfully done. If an import + * operation fails, the Feature values returned from reads and exports may be inconsistent. If + * consistency is required, the caller must retry the same import request again and wait till the + * new operation returned is marked as successfully done. There are also scenarios where the + * caller can cause inconsistency. - Source data for import contains multiple distinct Feature + * values for the same entity ID and timestamp. - Source is modified during an import. This + * includes adding, updating, or removing source data and/or metadata. Examples of updating + * metadata include but are not limited to changing storage location, storage class, or retention + * policy. - Online serving cluster is under-provisioned. + * + * Create a request for the method "entityTypes.importFeatureValues". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link ImportFeatureValues#execute()} method to invoke the remote + * operation.

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

+ * + * @param entityType Required. The resource name of the EntityType grouping the Features for which values are being + * imported. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/en + * tityTypes/{entityType}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest} + * @since 1.13 + */ + protected ImportFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.entityType = com.google.api.client.util.Preconditions.checkNotNull(entityType, "Required parameter entityType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), + "Parameter entityType must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @Override + public ImportFeatureValues set$Xgafv(java.lang.String $Xgafv) { + return (ImportFeatureValues) super.set$Xgafv($Xgafv); + } + + @Override + public ImportFeatureValues setAccessToken(java.lang.String accessToken) { + return (ImportFeatureValues) super.setAccessToken(accessToken); + } + + @Override + public ImportFeatureValues setAlt(java.lang.String alt) { + return (ImportFeatureValues) super.setAlt(alt); + } + + @Override + public ImportFeatureValues setCallback(java.lang.String callback) { + return (ImportFeatureValues) super.setCallback(callback); + } + + @Override + public ImportFeatureValues setFields(java.lang.String fields) { + return (ImportFeatureValues) super.setFields(fields); + } + + @Override + public ImportFeatureValues setKey(java.lang.String key) { + return (ImportFeatureValues) super.setKey(key); + } + + @Override + public ImportFeatureValues setOauthToken(java.lang.String oauthToken) { + return (ImportFeatureValues) super.setOauthToken(oauthToken); + } + + @Override + public ImportFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ImportFeatureValues) super.setPrettyPrint(prettyPrint); + } + + @Override + public ImportFeatureValues setQuotaUser(java.lang.String quotaUser) { + return (ImportFeatureValues) super.setQuotaUser(quotaUser); + } + + @Override + public ImportFeatureValues setUploadType(java.lang.String uploadType) { + return (ImportFeatureValues) super.setUploadType(uploadType); + } + + @Override + public ImportFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { + return (ImportFeatureValues) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the EntityType grouping the Features for which values + * are being imported. Format: `projects/{project}/locations/{location}/featurestores/{f + * eaturestore}/entityTypes/{entityType}` + */ + @com.google.api.client.util.Key + private java.lang.String entityType; + + /** Required. The resource name of the EntityType grouping the Features for which values are being + imported. Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + */ + public java.lang.String getEntityType() { + return entityType; + } + + /** + * Required. The resource name of the EntityType grouping the Features for which values + * are being imported. Format: `projects/{project}/locations/{location}/featurestores/{f + * eaturestore}/entityTypes/{entityType}` + */ + public ImportFeatureValues setEntityType(java.lang.String entityType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), + "Parameter entityType must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.entityType = entityType; + return this; + } + + @Override + public ImportFeatureValues set(String parameterName, Object value) { + return (ImportFeatureValues) super.set(parameterName, value); + } + } + /** + * Lists EntityTypes in a given Featurestore. + * + * Create a request for the method "entityTypes.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 Featurestore to list EntityTypes. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @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}/entityTypes"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$"); + + /** + * Lists EntityTypes in a given Featurestore. + * + * Create a request for the method "entityTypes.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 Featurestore to list EntityTypes. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListEntityTypesResponse.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/[^/]+/featurestores/[^/]+$"); + } + } + + @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 Featurestore to list EntityTypes. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Featurestore to list EntityTypes. Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Featurestore to list EntityTypes. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}` + */ + 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/[^/]+/featurestores/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Lists the EntityTypes that match the filter expression. The following filters are + * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. + * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, + * `>=`, and `<=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports + * key-value equality as well as key presence. Examples: * `create_time > + * \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> + * EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = + * yes AND labels.env = prod` --> EntityTypes having both (active: yes) and (env: prod) + * labels. * `labels.env: *` --> Any EntityType which has a label with 'env' as the key. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Lists the EntityTypes that match the filter expression. The following filters are supported: * + `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 + format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be + in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * + `create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` + --> EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND + labels.env = prod` --> EntityTypes having both (active: yes) and (env: prod) labels. * `labels.env: + *` --> Any EntityType which has a label with 'env' as the key. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Lists the EntityTypes that match the filter expression. The following filters are + * supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. + * Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, + * `>=`, and `<=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports + * key-value equality as well as key presence. Examples: * `create_time > + * \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> + * EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = + * yes AND labels.env = prod` --> EntityTypes having both (active: yes) and (env: prod) + * labels. * `labels.env: *` --> Any EntityType which has a label with 'env' as the key. + */ + 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: * `entity_type_id` * + * `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: * `entity_type_id` * `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: * `entity_type_id` * + * `create_time` * `update_time` + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * The maximum number of EntityTypes to return. The service may return fewer than this + * value. If unspecified, at most 1000 EntityTypes will be returned. The maximum value + * is 1000; any value greater than 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of EntityTypes to return. The service may return fewer than this value. If + unspecified, at most 1000 EntityTypes will be returned. The maximum value is 1000; any value + greater than 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of EntityTypes to return. The service may return fewer than this + * value. If unspecified, at most 1000 EntityTypes will be returned. The maximum value + * is 1000; any value greater than 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous FeaturestoreService.ListEntityTypes call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to FeaturestoreService.ListEntityTypes 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 FeaturestoreService.ListEntityTypes call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + FeaturestoreService.ListEntityTypes must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous FeaturestoreService.ListEntityTypes call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to FeaturestoreService.ListEntityTypes must match the call that provided the + * 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 the parameters of a single EntityType. + * + * Create a request for the method "entityTypes.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. Name of the EntityType. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` The last part entity_type is assigned by the client. The entity_type can be up to + * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z and + * underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given + * a featurestore. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * Updates the parameters of a single EntityType. + * + * Create a request for the method "entityTypes.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. Name of the EntityType. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` The last part entity_type is assigned by the client. The entity_type can be up to + * 64 characters long and can consist only of ASCII Latin letters A-Z and a-z and + * underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given + * a featurestore. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EntityType.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @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); + } + + /** + * Immutable. Name of the EntityType. Format: `projects/{project}/locations/{location}/f + * eaturestores/{featurestore}/entityTypes/{entity_type}` The last part entity_type is + * assigned by the client. The entity_type can be up to 64 characters long and can + * consist only of ASCII Latin letters A-Z and a-z and underscore(_), and ASCII digits + * 0-9 starting with a letter. The value will be unique given a featurestore. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Immutable. Name of the EntityType. Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + The last part entity_type is assigned by the client. The entity_type can be up to 64 characters + long and can consist only of ASCII Latin letters A-Z and a-z and underscore(_), and ASCII digits + 0-9 starting with a letter. The value will be unique given a featurestore. + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. Name of the EntityType. Format: `projects/{project}/locations/{location}/f + * eaturestores/{featurestore}/entityTypes/{entity_type}` The last part entity_type is + * assigned by the client. The entity_type can be up to 64 characters long and can + * consist only of ASCII Latin letters A-Z and a-z and underscore(_), and ASCII digits + * 0-9 starting with a letter. The value will be unique given a featurestore. + */ + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Field mask is used to specify the fields to be overwritten in the EntityType resource + * by the update. The fields specified in the update_mask are relative to the resource, + * not the full request. A field will be overwritten if it is in the mask. If the user + * does not provide a mask then only the non-empty fields present in the request will be + * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * + * `description` * `labels` * `monitoring_config.snapshot_analysis.disabled` * + * `monitoring_config.snapshot_analysis.monitoring_interval_days` * + * `monitoring_config.snapshot_analysis.staleness_days` * + * `monitoring_config.import_features_analysis.state` * + * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * + * `monitoring_config.numerical_threshold_config.value` * + * `monitoring_config.categorical_threshold_config.value` * `offline_storage_ttl_days` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Field mask is used to specify the fields to be overwritten in the EntityType resource by the + update. The fields specified in the update_mask are relative to the resource, not the full request. + A field will be overwritten if it is in the mask. If the user does not provide a mask then only the + non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override + all fields. Updatable fields: * `description` * `labels` * + `monitoring_config.snapshot_analysis.disabled` * + `monitoring_config.snapshot_analysis.monitoring_interval_days` * + `monitoring_config.snapshot_analysis.staleness_days` * + `monitoring_config.import_features_analysis.state` * + `monitoring_config.import_features_analysis.anomaly_detection_baseline` * + `monitoring_config.numerical_threshold_config.value` * + `monitoring_config.categorical_threshold_config.value` * `offline_storage_ttl_days` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Field mask is used to specify the fields to be overwritten in the EntityType resource + * by the update. The fields specified in the update_mask are relative to the resource, + * not the full request. A field will be overwritten if it is in the mask. If the user + * does not provide a mask then only the non-empty fields present in the request will be + * overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * + * `description` * `labels` * `monitoring_config.snapshot_analysis.disabled` * + * `monitoring_config.snapshot_analysis.monitoring_interval_days` * + * `monitoring_config.snapshot_analysis.staleness_days` * + * `monitoring_config.import_features_analysis.state` * + * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * + * `monitoring_config.numerical_threshold_config.value` * + * `monitoring_config.categorical_threshold_config.value` * `offline_storage_ttl_days` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Reads Feature values of a specific entity of an EntityType. For reading feature values of + * multiple entities of an EntityType, please use StreamingReadFeatureValues. + * + * Create a request for the method "entityTypes.readFeatureValues". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link ReadFeatureValues#execute()} method to invoke the remote operation. + * + * @param entityType Required. The resource name of the EntityType for the entity being read. Value format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityT + * ype}`. For example, for a machine learning model predicting user clicks on a website, an + * EntityType ID could be `user`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest} + * @return the request + */ + public ReadFeatureValues readFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest content) throws java.io.IOException { + ReadFeatureValues result = new ReadFeatureValues(entityType, content); + initialize(result); + return result; + } + + public class ReadFeatureValues extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+entityType}:readFeatureValues"; + + private final java.util.regex.Pattern ENTITY_TYPE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * Reads Feature values of a specific entity of an EntityType. For reading feature values of + * multiple entities of an EntityType, please use StreamingReadFeatureValues. + * + * Create a request for the method "entityTypes.readFeatureValues". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link ReadFeatureValues#execute()} method to invoke the remote + * operation.

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

+ * + * @param entityType Required. The resource name of the EntityType for the entity being read. Value format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityT + * ype}`. For example, for a machine learning model predicting user clicks on a website, an + * EntityType ID could be `user`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest} + * @since 1.13 + */ + protected ReadFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse.class); + this.entityType = com.google.api.client.util.Preconditions.checkNotNull(entityType, "Required parameter entityType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), + "Parameter entityType must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @Override + public ReadFeatureValues set$Xgafv(java.lang.String $Xgafv) { + return (ReadFeatureValues) super.set$Xgafv($Xgafv); + } + + @Override + public ReadFeatureValues setAccessToken(java.lang.String accessToken) { + return (ReadFeatureValues) super.setAccessToken(accessToken); + } + + @Override + public ReadFeatureValues setAlt(java.lang.String alt) { + return (ReadFeatureValues) super.setAlt(alt); + } + + @Override + public ReadFeatureValues setCallback(java.lang.String callback) { + return (ReadFeatureValues) super.setCallback(callback); + } + + @Override + public ReadFeatureValues setFields(java.lang.String fields) { + return (ReadFeatureValues) super.setFields(fields); + } + + @Override + public ReadFeatureValues setKey(java.lang.String key) { + return (ReadFeatureValues) super.setKey(key); + } + + @Override + public ReadFeatureValues setOauthToken(java.lang.String oauthToken) { + return (ReadFeatureValues) super.setOauthToken(oauthToken); + } + + @Override + public ReadFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReadFeatureValues) super.setPrettyPrint(prettyPrint); + } + + @Override + public ReadFeatureValues setQuotaUser(java.lang.String quotaUser) { + return (ReadFeatureValues) super.setQuotaUser(quotaUser); + } + + @Override + public ReadFeatureValues setUploadType(java.lang.String uploadType) { + return (ReadFeatureValues) super.setUploadType(uploadType); + } + + @Override + public ReadFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { + return (ReadFeatureValues) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the EntityType for the entity being read. Value + * format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityT + * ypes/{entityType}`. For example, for a machine learning model predicting user clicks + * on a website, an EntityType ID could be `user`. + */ + @com.google.api.client.util.Key + private java.lang.String entityType; + + /** Required. The resource name of the EntityType for the entity being read. Value format: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. + For example, for a machine learning model predicting user clicks on a website, an EntityType ID + could be `user`. + */ + public java.lang.String getEntityType() { + return entityType; + } + + /** + * Required. The resource name of the EntityType for the entity being read. Value + * format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityT + * ypes/{entityType}`. For example, for a machine learning model predicting user clicks + * on a website, an EntityType ID could be `user`. + */ + public ReadFeatureValues setEntityType(java.lang.String entityType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), + "Parameter entityType must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.entityType = entityType; + return this; + } + + @Override + public ReadFeatureValues set(String parameterName, Object value) { + return (ReadFeatureValues) 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 "entityTypes.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * 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 "entityTypes.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Reads Feature values for multiple entities. Depending on their size, data for different entities + * may be broken up across multiple responses. + * + * Create a request for the method "entityTypes.streamingReadFeatureValues". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link StreamingReadFeatureValues#execute()} method to invoke the remote + * operation. + * + * @param entityType Required. The resource name of the entities' type. Value format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityT + * ype}`. For example, for a machine learning model predicting user clicks on a website, an + * EntityType ID could be `user`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest} + * @return the request + */ + public StreamingReadFeatureValues streamingReadFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest content) throws java.io.IOException { + StreamingReadFeatureValues result = new StreamingReadFeatureValues(entityType, content); + initialize(result); + return result; + } + + public class StreamingReadFeatureValues extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+entityType}:streamingReadFeatureValues"; + + private final java.util.regex.Pattern ENTITY_TYPE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * Reads Feature values for multiple entities. Depending on their size, data for different + * entities may be broken up across multiple responses. + * + * Create a request for the method "entityTypes.streamingReadFeatureValues". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link StreamingReadFeatureValues#execute()} method to invoke the + * remote operation.

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

+ * + * @param entityType Required. The resource name of the entities' type. Value format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityT + * ype}`. For example, for a machine learning model predicting user clicks on a website, an + * EntityType ID could be `user`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest} + * @since 1.13 + */ + protected StreamingReadFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse.class); + this.entityType = com.google.api.client.util.Preconditions.checkNotNull(entityType, "Required parameter entityType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), + "Parameter entityType must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @Override + public StreamingReadFeatureValues set$Xgafv(java.lang.String $Xgafv) { + return (StreamingReadFeatureValues) super.set$Xgafv($Xgafv); + } + + @Override + public StreamingReadFeatureValues setAccessToken(java.lang.String accessToken) { + return (StreamingReadFeatureValues) super.setAccessToken(accessToken); + } + + @Override + public StreamingReadFeatureValues setAlt(java.lang.String alt) { + return (StreamingReadFeatureValues) super.setAlt(alt); + } + + @Override + public StreamingReadFeatureValues setCallback(java.lang.String callback) { + return (StreamingReadFeatureValues) super.setCallback(callback); + } + + @Override + public StreamingReadFeatureValues setFields(java.lang.String fields) { + return (StreamingReadFeatureValues) super.setFields(fields); + } + + @Override + public StreamingReadFeatureValues setKey(java.lang.String key) { + return (StreamingReadFeatureValues) super.setKey(key); + } + + @Override + public StreamingReadFeatureValues setOauthToken(java.lang.String oauthToken) { + return (StreamingReadFeatureValues) super.setOauthToken(oauthToken); + } + + @Override + public StreamingReadFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StreamingReadFeatureValues) super.setPrettyPrint(prettyPrint); + } + + @Override + public StreamingReadFeatureValues setQuotaUser(java.lang.String quotaUser) { + return (StreamingReadFeatureValues) super.setQuotaUser(quotaUser); + } + + @Override + public StreamingReadFeatureValues setUploadType(java.lang.String uploadType) { + return (StreamingReadFeatureValues) super.setUploadType(uploadType); + } + + @Override + public StreamingReadFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { + return (StreamingReadFeatureValues) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the entities' type. Value format: `projects/{project}/ + * locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. For + * example, for a machine learning model predicting user clicks on a website, an + * EntityType ID could be `user`. + */ + @com.google.api.client.util.Key + private java.lang.String entityType; + + /** Required. The resource name of the entities' type. Value format: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. + For example, for a machine learning model predicting user clicks on a website, an EntityType ID + could be `user`. + */ + public java.lang.String getEntityType() { + return entityType; + } + + /** + * Required. The resource name of the entities' type. Value format: `projects/{project}/ + * locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. For + * example, for a machine learning model predicting user clicks on a website, an + * EntityType ID could be `user`. + */ + public StreamingReadFeatureValues setEntityType(java.lang.String entityType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), + "Parameter entityType must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.entityType = entityType; + return this; + } + + @Override + public StreamingReadFeatureValues set(String parameterName, Object value) { + return (StreamingReadFeatureValues) 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 "entityTypes.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * 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 "entityTypes.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + 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); + } + } + /** + * Writes Feature values of one or more entities of an EntityType. The Feature values are merged + * into existing entities if any. The Feature values to be written must have timestamp within the + * online storage retention. + * + * Create a request for the method "entityTypes.writeFeatureValues". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link WriteFeatureValues#execute()} method to invoke the remote operation. + * + * @param entityType Required. The resource name of the EntityType for the entities being written. Value format: + * `projects/{project}/locations/{location}/featurestores/ + * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model + * predicting user clicks on a website, an EntityType ID could be `user`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest} + * @return the request + */ + public WriteFeatureValues writeFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest content) throws java.io.IOException { + WriteFeatureValues result = new WriteFeatureValues(entityType, content); + initialize(result); + return result; + } + + public class WriteFeatureValues extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+entityType}:writeFeatureValues"; + + private final java.util.regex.Pattern ENTITY_TYPE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * Writes Feature values of one or more entities of an EntityType. The Feature values are merged + * into existing entities if any. The Feature values to be written must have timestamp within the + * online storage retention. + * + * Create a request for the method "entityTypes.writeFeatureValues". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link WriteFeatureValues#execute()} method to invoke the remote + * operation.

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

+ * + * @param entityType Required. The resource name of the EntityType for the entities being written. Value format: + * `projects/{project}/locations/{location}/featurestores/ + * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model + * predicting user clicks on a website, an EntityType ID could be `user`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest} + * @since 1.13 + */ + protected WriteFeatureValues(java.lang.String entityType, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse.class); + this.entityType = com.google.api.client.util.Preconditions.checkNotNull(entityType, "Required parameter entityType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), + "Parameter entityType must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @Override + public WriteFeatureValues set$Xgafv(java.lang.String $Xgafv) { + return (WriteFeatureValues) super.set$Xgafv($Xgafv); + } + + @Override + public WriteFeatureValues setAccessToken(java.lang.String accessToken) { + return (WriteFeatureValues) super.setAccessToken(accessToken); + } + + @Override + public WriteFeatureValues setAlt(java.lang.String alt) { + return (WriteFeatureValues) super.setAlt(alt); + } + + @Override + public WriteFeatureValues setCallback(java.lang.String callback) { + return (WriteFeatureValues) super.setCallback(callback); + } + + @Override + public WriteFeatureValues setFields(java.lang.String fields) { + return (WriteFeatureValues) super.setFields(fields); + } + + @Override + public WriteFeatureValues setKey(java.lang.String key) { + return (WriteFeatureValues) super.setKey(key); + } + + @Override + public WriteFeatureValues setOauthToken(java.lang.String oauthToken) { + return (WriteFeatureValues) super.setOauthToken(oauthToken); + } + + @Override + public WriteFeatureValues setPrettyPrint(java.lang.Boolean prettyPrint) { + return (WriteFeatureValues) super.setPrettyPrint(prettyPrint); + } + + @Override + public WriteFeatureValues setQuotaUser(java.lang.String quotaUser) { + return (WriteFeatureValues) super.setQuotaUser(quotaUser); + } + + @Override + public WriteFeatureValues setUploadType(java.lang.String uploadType) { + return (WriteFeatureValues) super.setUploadType(uploadType); + } + + @Override + public WriteFeatureValues setUploadProtocol(java.lang.String uploadProtocol) { + return (WriteFeatureValues) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the EntityType for the entities being written. Value + * format: `projects/{project}/locations/{location}/featurestores/ + * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model + * predicting user clicks on a website, an EntityType ID could be `user`. + */ + @com.google.api.client.util.Key + private java.lang.String entityType; + + /** Required. The resource name of the EntityType for the entities being written. Value format: + `projects/{project}/locations/{location}/featurestores/ {featurestore}/entityTypes/{entityType}`. + For example, for a machine learning model predicting user clicks on a website, an EntityType ID + could be `user`. + */ + public java.lang.String getEntityType() { + return entityType; + } + + /** + * Required. The resource name of the EntityType for the entities being written. Value + * format: `projects/{project}/locations/{location}/featurestores/ + * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model + * predicting user clicks on a website, an EntityType ID could be `user`. + */ + public WriteFeatureValues setEntityType(java.lang.String entityType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ENTITY_TYPE_PATTERN.matcher(entityType).matches(), + "Parameter entityType must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.entityType = entityType; + return this; + } + + @Override + public WriteFeatureValues set(String parameterName, Object value) { + return (WriteFeatureValues) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Features collection. + * + *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.Features.List request = aiplatform.features().list(parameters ...)}
+           * 
+ * + * @return the resource collection + */ + public Features features() { + return new Features(); + } + + /** + * The "features" collection of methods. + */ + public class Features { + + /** + * Creates a batch of Features in a given EntityType. + * + * Create a request for the method "features.batchCreate". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link BatchCreate#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. + * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/ + * {entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest} + * @return the request + */ + public BatchCreate batchCreate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest content) throws java.io.IOException { + BatchCreate result = new BatchCreate(parent, content); + initialize(result); + return result; + } + + public class BatchCreate extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/features:batchCreate"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * Creates a batch of Features in a given EntityType. + * + * Create a request for the method "features.batchCreate". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link BatchCreate#execute()} method to invoke the remote + * operation.

{@link + * BatchCreate#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 EntityType/FeatureGroup to create the batch of Features under. + * Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/ + * {entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest} + * @since 1.13 + */ + protected BatchCreate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @Override + public BatchCreate set$Xgafv(java.lang.String $Xgafv) { + return (BatchCreate) super.set$Xgafv($Xgafv); + } + + @Override + public BatchCreate setAccessToken(java.lang.String accessToken) { + return (BatchCreate) super.setAccessToken(accessToken); + } + + @Override + public BatchCreate setAlt(java.lang.String alt) { + return (BatchCreate) super.setAlt(alt); + } + + @Override + public BatchCreate setCallback(java.lang.String callback) { + return (BatchCreate) super.setCallback(callback); + } + + @Override + public BatchCreate setFields(java.lang.String fields) { + return (BatchCreate) super.setFields(fields); + } + + @Override + public BatchCreate setKey(java.lang.String key) { + return (BatchCreate) super.setKey(key); + } + + @Override + public BatchCreate setOauthToken(java.lang.String oauthToken) { + return (BatchCreate) super.setOauthToken(oauthToken); + } + + @Override + public BatchCreate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchCreate) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchCreate setQuotaUser(java.lang.String quotaUser) { + return (BatchCreate) super.setQuotaUser(quotaUser); + } + + @Override + public BatchCreate setUploadType(java.lang.String uploadType) { + return (BatchCreate) super.setUploadType(uploadType); + } + + @Override + public BatchCreate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchCreate) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the EntityType/FeatureGroup to create the batch of + * Features under. Format: `projects/{project}/locations/{location}/featurestores/{fea + * turestore}/entityTypes/{entity_type}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. + Format: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the EntityType/FeatureGroup to create the batch of + * Features under. Format: `projects/{project}/locations/{location}/featurestores/{fea + * turestore}/entityTypes/{entity_type}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + public BatchCreate 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BatchCreate set(String parameterName, Object value) { + return (BatchCreate) super.set(parameterName, value); + } + } + /** + * Creates a new Feature in a given EntityType. + * + * Create a request for the method "features.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 EntityType or FeatureGroup to create a Feature. Format for + * entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestor + * e}/entityTypes/{entity_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature 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}/features"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * Creates a new Feature in a given EntityType. + * + * Create a request for the method "features.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 EntityType or FeatureGroup to create a Feature. Format for + * entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestor + * e}/entityTypes/{entity_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @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 EntityType or FeatureGroup to create a Feature. + * Format for entity_type as parent: `projects/{project}/locations/{location}/features + * tores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for + entity_type as parent: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + Format for feature_group as parent: + `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the EntityType or FeatureGroup to create a Feature. + * Format for entity_type as parent: `projects/{project}/locations/{location}/features + * tores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Required. The ID to use for the Feature, which will become the final component of + * the Feature's resource name. This value may be up to 128 characters, and valid + * characters are `[a-z0-9_]`. The first character cannot be a number. The value must + * be unique within an EntityType/FeatureGroup. + */ + @com.google.api.client.util.Key + private java.lang.String featureId; + + /** Required. The ID to use for the Feature, which will become the final component of the Feature's + resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The + first character cannot be a number. The value must be unique within an EntityType/FeatureGroup. + */ + public java.lang.String getFeatureId() { + return featureId; + } + + /** + * Required. The ID to use for the Feature, which will become the final component of + * the Feature's resource name. This value may be up to 128 characters, and valid + * characters are `[a-z0-9_]`. The first character cannot be a number. The value must + * be unique within an EntityType/FeatureGroup. + */ + public Create setFeatureId(java.lang.String featureId) { + this.featureId = featureId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single Feature. + * + * Create a request for the method "features.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 Features to be deleted. Format: `projects/{project}/locations/{location}/f + * eaturestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + + /** + * Deletes a single Feature. + * + * Create a request for the method "features.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 Features to be deleted. Format: `projects/{project}/locations/{location}/f + * eaturestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + } + } + + @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 Features to be deleted. Format: `projects/{project}/locat + * ions/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{fe + * ature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/feat + * ures/{feature}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/ + featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Features to be deleted. Format: `projects/{project}/locat + * ions/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{fe + * ature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/feat + * ures/{feature}` + */ + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single Feature. + * + * Create a request for the method "features.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 Feature resource. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + + /** + * Gets details of a single Feature. + * + * Create a request for the method "features.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 Feature resource. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + } + } + + @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 Feature resource. Format for entity_type as parent: `proj + * ects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entit + * y_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Feature resource. Format for entity_type as parent: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + Format for feature_group as parent: + `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Feature resource. Format for entity_type as parent: `proj + * ects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entit + * y_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. + * If stats_time_range is set, return most recent count of stats within the + * stats_time_range. + */ + @com.google.api.client.util.Key("featureStatsAndAnomalySpec.latestStatsCount") + private java.lang.Integer featureStatsAndAnomalySpecLatestStatsCount; + + /** Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. If + stats_time_range is set, return most recent count of stats within the stats_time_range. + */ + public java.lang.Integer getFeatureStatsAndAnomalySpecLatestStatsCount() { + return featureStatsAndAnomalySpecLatestStatsCount; + } + + /** + * Optional. If set, returns the most recent count of stats. Valid value is [0, 100]. + * If stats_time_range is set, return most recent count of stats within the + * stats_time_range. + */ + public Get setFeatureStatsAndAnomalySpecLatestStatsCount(java.lang.Integer featureStatsAndAnomalySpecLatestStatsCount) { + this.featureStatsAndAnomalySpecLatestStatsCount = featureStatsAndAnomalySpecLatestStatsCount; + return this; + } + + /** + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this + * interval will have to be before the end. + */ + @com.google.api.client.util.Key("featureStatsAndAnomalySpec.statsTimeRange.endTime") + private String featureStatsAndAnomalySpecStatsTimeRangeEndTime; + + /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have + to be before the end. + */ + public String getFeatureStatsAndAnomalySpecStatsTimeRangeEndTime() { + return featureStatsAndAnomalySpecStatsTimeRangeEndTime; + } + + /** + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this + * interval will have to be before the end. + */ + public Get setFeatureStatsAndAnomalySpecStatsTimeRangeEndTime(String featureStatsAndAnomalySpecStatsTimeRangeEndTime) { + this.featureStatsAndAnomalySpecStatsTimeRangeEndTime = featureStatsAndAnomalySpecStatsTimeRangeEndTime; + return this; + } + + /** + * Optional. Inclusive start of the interval. If specified, a Timestamp matching this + * interval will have to be the same or after the start. + */ + @com.google.api.client.util.Key("featureStatsAndAnomalySpec.statsTimeRange.startTime") + private String featureStatsAndAnomalySpecStatsTimeRangeStartTime; + + /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will + have to be the same or after the start. + */ + public String getFeatureStatsAndAnomalySpecStatsTimeRangeStartTime() { + return featureStatsAndAnomalySpecStatsTimeRangeStartTime; + } + + /** + * Optional. Inclusive start of the interval. If specified, a Timestamp matching this + * interval will have to be the same or after the start. + */ + public Get setFeatureStatsAndAnomalySpecStatsTimeRangeStartTime(String featureStatsAndAnomalySpecStatsTimeRangeStartTime) { + this.featureStatsAndAnomalySpecStatsTimeRangeStartTime = featureStatsAndAnomalySpecStatsTimeRangeStartTime; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Features in a given EntityType. + * + * Create a request for the method "features.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 Features. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @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}/features"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * Lists Features in a given EntityType. + * + * Create a request for the method "features.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 Features. Format for entity_type as parent: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_ + * type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListFeaturesResponse.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @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 Features. Format for + * entity_type as parent: `projects/{project}/locations/{location}/featurestores/{feat + * urestore}/entityTypes/{entity_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the Location to list Features. Format for entity_type as parent: + `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + Format for feature_group as parent: + `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to list Features. Format for + * entity_type as parent: `projects/{project}/locations/{location}/featurestores/{feat + * urestore}/entityTypes/{entity_type}` Format for feature_group as parent: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + */ + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Lists the Features that match the filter expression. The following filters are + * supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports + * =, !=, <, >, >=, and <= comparisons. Values must be in RFC 3339 format. * + * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC + * 3339 format. * `labels`: Supports key-value equality as well as key presence. + * Examples: * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `create_time + * > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` + * --> EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * + * `labels.active = yes AND labels.env = prod` --> Features having both (active: yes) + * and (env: prod) labels. * `labels.env: *` --> Any Feature which has a label with + * 'env' as the key. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Lists the Features that match the filter expression. The following filters are supported: * + `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, <, >, >=, and <= + comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= + comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as + key presence. Examples: * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `create_time > + \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` --> EntityTypes + created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` + --> Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --> Any Feature + which has a label with 'env' as the key. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Lists the Features that match the filter expression. The following filters are + * supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports + * =, !=, <, >, >=, and <= comparisons. Values must be in RFC 3339 format. * + * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC + * 3339 format. * `labels`: Supports key-value equality as well as key presence. + * Examples: * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `create_time + * > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15:30:00.000000Z\"` + * --> EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * + * `labels.active = yes AND labels.env = prod` --> Features having both (active: yes) + * and (env: prod) labels. * `labels.env: *` --> Any Feature which has a label with + * 'env' as the key. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Only applicable for Vertex AI Feature Store (Legacy). If set, return the most + * recent ListFeaturesRequest.latest_stats_count of stats for each Feature in + * response. Valid value is [0, 10]. If number of stats exists < + * ListFeaturesRequest.latest_stats_count, return all existing stats. + */ + @com.google.api.client.util.Key + private java.lang.Integer latestStatsCount; + + /** Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent + ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, + 10]. If number of stats exists < ListFeaturesRequest.latest_stats_count, return all existing stats. + */ + public java.lang.Integer getLatestStatsCount() { + return latestStatsCount; + } + + /** + * Only applicable for Vertex AI Feature Store (Legacy). If set, return the most + * recent ListFeaturesRequest.latest_stats_count of stats for each Feature in + * response. Valid value is [0, 10]. If number of stats exists < + * ListFeaturesRequest.latest_stats_count, return all existing stats. + */ + public List setLatestStatsCount(java.lang.Integer latestStatsCount) { + this.latestStatsCount = latestStatsCount; + 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: * `feature_id` * `value_type` + * (Not supported for FeatureRegistry Feature) * `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: * `feature_id` * `value_type` (Not supported for + FeatureRegistry Feature) * `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: * `feature_id` * `value_type` + * (Not supported for FeatureRegistry Feature) * `create_time` * `update_time` + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * The maximum number of Features to return. The service may return fewer than this + * value. If unspecified, at most 1000 Features will be returned. The maximum value is + * 1000; any value greater than 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of Features to return. The service may return fewer than this value. If + unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater + than 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of Features to return. The service may return fewer than this + * value. If unspecified, at most 1000 Features will be returned. The maximum value is + * 1000; any value greater than 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous FeaturestoreService.ListFeatures call or + * FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures 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 FeaturestoreService.ListFeatures call or + FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When + paginating, all other parameters provided to FeaturestoreService.ListFeatures or + FeatureRegistryService.ListFeatures must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous FeaturestoreService.ListFeatures call or + * FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match + * the call that provided the 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 the parameters of a single Feature. + * + * Create a request for the method "features.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. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{feat + * urestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * The last part feature is assigned by the client. The feature can be up to 64 characters + * long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII + * digits 0-9 starting with a letter. The value will be unique given an entity type. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + + /** + * Updates the parameters of a single Feature. + * + * Create a request for the method "features.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. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{feat + * urestore}/entityTypes/{entity_type}/features/{feature}` + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * The last part feature is assigned by the client. The feature can be up to 64 characters + * long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII + * digits 0-9 starting with a letter. The value will be unique given an entity type. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Feature.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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + } + } + + @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); + } + + /** + * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/fe + * aturestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/ + * {project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * The last part feature is assigned by the client. The feature can be up to 64 + * characters long and can consist only of ASCII Latin letters A-Z and a-z, + * underscore(_), and ASCII digits 0-9 starting with a letter. The value will be + * unique given an entity type. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{fea + turestore}/entityTypes/{entity_type}/features/{feature}` + `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last + part feature is assigned by the client. The feature can be up to 64 characters long and can consist + only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a + letter. The value will be unique given an entity type. + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/fe + * aturestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/ + * {project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` + * The last part feature is assigned by the client. The feature can be up to 64 + * characters long and can consist only of ASCII Latin letters A-Z and a-z, + * underscore(_), and ASCII digits 0-9 starting with a letter. The value will be + * unique given an entity type. + */ + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Field mask is used to specify the fields to be overwritten in the Features resource + * by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. + * If the user does not provide a mask then only the non-empty fields present in the + * request will be overwritten. Set the update_mask to `*` to override all fields. + * Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported + * for FeatureRegistryService Feature) * `point_of_contact` (Not supported for + * FeaturestoreService FeatureStore) + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Field mask is used to specify the fields to be overwritten in the Features resource by the update. + The fields specified in the update_mask are relative to the resource, not the full request. A field + will be overwritten if it is in the mask. If the user does not provide a mask then only the non- + empty fields present in the request will be overwritten. Set the update_mask to `*` to override all + fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for + FeatureRegistryService Feature) * `point_of_contact` (Not supported for FeaturestoreService + FeatureStore) + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Field mask is used to specify the fields to be overwritten in the Features resource + * by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. + * If the user does not provide a mask then only the non-empty fields present in the + * request will be overwritten. Set the update_mask to `*` to override all fields. + * Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported + * for FeatureRegistryService Feature) * `point_of_contact` (Not supported for + * FeaturestoreService FeatureStore) + */ + 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. + * + *

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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + + /** + * 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + } + } + + @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); + } + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + + /** + * 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + } + + @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + } + 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/[^/]+/featurestores/[^/]+/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/[^/]+/featurestores/[^/]+/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/[^/]+/featurestores/[^/]+/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/[^/]+/featurestores/[^/]+/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/[^/]+/featurestores/[^/]+/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 List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** 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/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @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; + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + public class Get extends AiplatformRequest { - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) 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 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/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + } + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) 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. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) 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 java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * 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. + */ + 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. */ + 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/[^/]+/featurestores/[^/]+/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 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; + 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/[^/]+/featurestores/[^/]+$"); + + /** + * 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/[^/]+/featurestores/[^/]+$"); } + } - public class Wait 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}:wait"; + @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$"); + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** - * 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$"); - } - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + /** 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/[^/]+/featurestores/[^/]+$"); + } + 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; + } - @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/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; - } + /** + * 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 Wait set(String parameterName, Object value) { - return (Wait) 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; + } + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. + * This can only be `true` when reading across collections. For example, when `parent` + * is set to `"projects/example/locations/-"`. This field is not supported by default + * and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * An accessor for creating requests from the 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/[^/]+/featurestores/[^/]+/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/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + } } - public class Cancel extends AiplatformRequest { + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$"); + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$"); - } - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + /** 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/[^/]+/featurestores/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) 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. + */ + @com.google.api.client.util.Key + private String timeout; - /** The name of the operation resource to be cancelled. */ - @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 String getTimeout() { + return timeout; + } - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return 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 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the HyperparameterTuningJobs collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.HyperparameterTuningJobs.List request = aiplatform.hyperparameterTuningJobs().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public HyperparameterTuningJobs hyperparameterTuningJobs() { + return new HyperparameterTuningJobs(); + } + + /** + * The "hyperparameterTuningJobs" collection of methods. + */ + public class HyperparameterTuningJobs { + + /** + * Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the + * HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not + * guaranteed. Clients can use JobService.GetHyperparameterTuningJob or other methods to check + * whether the cancellation succeeded or whether the job completed despite cancellation. On + * successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job + * with a HyperparameterTuningJob.error value with a google.rpc.Status.code of 1, corresponding to + * `Code.CANCELLED`, and HyperparameterTuningJob.state is set to `CANCELLED`. + * + * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJob to cancel. Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j + * ob}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest} + * @return the request + */ + public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest 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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + + /** + * Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the + * HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not + * guaranteed. Clients can use JobService.GetHyperparameterTuningJob or other methods to check + * whether the cancellation succeeded or whether the job completed despite cancellation. On + * successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job + * with a HyperparameterTuningJob.error value with a google.rpc.Status.code of 1, corresponding to + * `Code.CANCELLED`, and HyperparameterTuningJob.state is set to `CANCELLED`. + * + * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJob to cancel. Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j + * ob}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest 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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + } + } + + @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); + } - @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; - } + /** + * Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/{project + * }/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - public class Delete extends AiplatformRequest { + /** Required. The name of the HyperparameterTuningJob to cancel. Format: + `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + */ + public java.lang.String getName() { + return name; + } - private static final String REST_PATH = "v1beta1/{+name}"; + /** + * Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/{project + * }/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + } + this.name = name; + return this; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$"); + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Creates a HyperparameterTuningJob + * + * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJob in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } - /** - * 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$"); - } - } + public class Create extends AiplatformRequest { - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + private static final String REST_PATH = "v1beta1/{+parent}/hyperparameterTuningJobs"; - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + /** + * Creates a HyperparameterTuningJob + * + * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJob in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob.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 Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - /** 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @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; - } + /** + * Required. The resource name of the Location to create the HyperparameterTuningJob in. + * Format: `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - public class Get extends AiplatformRequest { + /** Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - private static final String REST_PATH = "v1beta1/{+name}"; + /** + * Required. The resource name of the Location to create the HyperparameterTuningJob 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; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$"); + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a HyperparameterTuningJob. + * + * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j + * ob}` + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } - /** - * 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$"); - } - } + public class Delete 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/[^/]+/hyperparameterTuningJobs/[^/]+$"); - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** + * Deletes a HyperparameterTuningJob. + * + * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJob resource to be deleted. Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j + * ob}` + * @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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + } + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + /** + * Required. The name of the HyperparameterTuningJob resource to be deleted. Format: `proj + * ects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job + * }` + */ + @com.google.api.client.util.Key + private java.lang.String 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** Required. The name of the HyperparameterTuningJob resource to be deleted. Format: + `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + */ + public java.lang.String getName() { + return 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 - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + /** + * Required. The name of the HyperparameterTuningJob resource to be deleted. Format: `proj + * ects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_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/[^/]+/hyperparameterTuningJobs/[^/]+$"); } + this.name = name; + return this; + } - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}/operations"; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a HyperparameterTuningJob + * + * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJob resource. Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j + * ob}` + * @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); + public class Get extends AiplatformRequest { - /** - * 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); - } - } + private static final String REST_PATH = "v1beta1/{+name}"; - @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/[^/]+/hyperparameterTuningJobs/[^/]+$"); - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * Gets a HyperparameterTuningJob + * + * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJob resource. Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j + * ob}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob.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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + } + } - @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Required. The name of the HyperparameterTuningJob resource. Format: `projects/{project} + * /locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + */ + @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; + /** Required. The name of the HyperparameterTuningJob resource. Format: + `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + */ + public java.lang.String getName() { + return name; + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + /** + * Required. The name of the HyperparameterTuningJob resource. Format: `projects/{project} + * /locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + } + this.name = name; + return this; + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists HyperparameterTuningJobs in a Location. + * + * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJobs 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; + } - /** 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}/hyperparameterTuningJobs"; - /** 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/[^/]+$"); - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * Lists HyperparameterTuningJobs in a Location. + * + * Create a request for the method "hyperparameterTuningJobs.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 HyperparameterTuningJobs 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.GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse.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/[^/]+$"); + } + } - /** 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(); + } - /** - * 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$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** 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 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. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - 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); - } - } - /** - * 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 setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - public class Wait extends AiplatformRequest { + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - private static final String REST_PATH = "v1beta1/{+name}:wait"; + @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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$"); + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$"); - } - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + /** + * Required. The resource name of the Location to list the HyperparameterTuningJobs from. + * Format: `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + /** Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + /** + * Required. The resource name of the Location to list the HyperparameterTuningJobs 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; + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + /** + * 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; - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + /** 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; + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + /** + * 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; + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return 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 List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + /** + * The standard list page token. Typically obtained via + * ListHyperparameterTuningJobsResponse.next_page_token of the previous + * JobService.ListHyperparameterTuningJobs call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** 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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** The standard list page token. Typically obtained via + ListHyperparameterTuningJobsResponse.next_page_token of the previous + JobService.ListHyperparameterTuningJobs call. + */ + 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. - */ - @com.google.api.client.util.Key - private String timeout; + /** + * The standard list page token. Typically obtained via + * ListHyperparameterTuningJobsResponse.next_page_token of the previous + * JobService.ListHyperparameterTuningJobs call. + */ + 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 String getTimeout() { - return timeout; - } + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - /** - * 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. + */ + public String getReadMask() { + return readMask; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } + /** 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. * @@ -101618,7 +104121,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("^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/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/[^/]+/hyperparameterTuningJobs/[^/]+/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/[^/]+/hyperparameterTuningJobs/[^/]+/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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + + /** + * 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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + } + } + + @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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + } + 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; } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** 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; } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - /** The name of the operation resource to be deleted. */ + /** + * 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.String name; + private java.lang.Boolean returnPartialSuccess; - /** The name of the operation resource to be deleted. + /** 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.String getName() { - return name; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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/[^/]+/featurestores/[^/]+/operations/[^/]+$"); - } - this.name = name; + /** + * 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * 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. + * 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.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Wait#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource. + * @param name The name of the operation resource to wait on. * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); initialize(result); return result; } - public class Get extends AiplatformRequest { + public class Wait extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+name}:wait"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/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. + * 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.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)} + * 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. + * @param name The name of the operation resource to wait on. * @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); + 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/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/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); + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** 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. + /** The name of the operation resource to wait on. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** The name of the operation resource to 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/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); } } + + } + } + /** + * An accessor for creating requests from the IndexEndpoints collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.IndexEndpoints.List request = aiplatform.indexEndpoints().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public IndexEndpoints indexEndpoints() { + return new IndexEndpoints(); + } + + /** + * The "indexEndpoints" collection of methods. + */ + public class IndexEndpoints { + + /** + * Creates an IndexEndpoint. + * + * Create a request for the method "indexEndpoints.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 IndexEndpoint in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint 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}/indexEndpoints"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Creates an IndexEndpoint. * - * Create a request for the method "operations.list". + * Create a request for the method "indexEndpoints.create". * - * 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 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's parent resource. - * @return the request + * @param parent Required. The resource name of the Location to create the IndexEndpoint in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint} + * @since 1.13 */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint 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/[^/]+$"); + } } - public class List 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}/operations"; + @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/[^/]+/featurestores/[^/]+$"); + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - /** - * 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/[^/]+/featurestores/[^/]+$"); - } - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the Location to create the IndexEndpoint 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 IndexEndpoint in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the Location to create the IndexEndpoint 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 List setKey(java.lang.String key) { - return (List) super.setKey(key); + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an IndexEndpoint. + * + * Create a request for the method "indexEndpoints.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 IndexEndpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @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/[^/]+/indexEndpoints/[^/]+$"); + + /** + * Deletes an IndexEndpoint. + * + * Create a request for the method "indexEndpoints.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 IndexEndpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @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/[^/]+/indexEndpoints/[^/]+$"); } + } + + @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 List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** + * Required. The name of the IndexEndpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** Required. The name of the IndexEndpoint resource to be deleted. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public java.lang.String getName() { + return name; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** + * Required. The name of the IndexEndpoint resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + 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/[^/]+/indexEndpoints/[^/]+$"); } + this.name = name; + return this; + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. + * + * Create a request for the method "indexEndpoints.deployIndex". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link DeployIndex#execute()} method to invoke the remote operation. + * + * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest} + * @return the request + */ + public DeployIndex deployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest content) throws java.io.IOException { + DeployIndex result = new DeployIndex(indexEndpoint, content); + initialize(result); + return result; + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + public class DeployIndex extends AiplatformRequest { - /** 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/[^/]+/featurestores/[^/]+$"); - } - this.name = name; - return this; - } + private static final String REST_PATH = "v1beta1/{+indexEndpoint}:deployIndex"; - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; + /** + * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. + * + * Create a request for the method "indexEndpoints.deployIndex". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link DeployIndex#execute()} method to invoke the remote + * operation.

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

+ * + * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest} + * @since 1.13 + */ + protected DeployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public DeployIndex set$Xgafv(java.lang.String $Xgafv) { + return (DeployIndex) super.set$Xgafv($Xgafv); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public DeployIndex setAccessToken(java.lang.String accessToken) { + return (DeployIndex) super.setAccessToken(accessToken); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public DeployIndex setAlt(java.lang.String alt) { + return (DeployIndex) super.setAlt(alt); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public DeployIndex setCallback(java.lang.String callback) { + return (DeployIndex) super.setCallback(callback); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public DeployIndex setFields(java.lang.String fields) { + return (DeployIndex) super.setFields(fields); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public DeployIndex setKey(java.lang.String key) { + return (DeployIndex) super.setKey(key); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public DeployIndex setOauthToken(java.lang.String oauthToken) { + return (DeployIndex) super.setOauthToken(oauthToken); + } - /** - * 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 DeployIndex setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeployIndex) super.setPrettyPrint(prettyPrint); + } - /** 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 DeployIndex setQuotaUser(java.lang.String quotaUser) { + return (DeployIndex) 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. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } + @Override + public DeployIndex setUploadType(java.lang.String uploadType) { + return (DeployIndex) super.setUploadType(uploadType); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + @Override + public DeployIndex setUploadProtocol(java.lang.String uploadProtocol) { + return (DeployIndex) super.setUploadProtocol(uploadProtocol); } + /** - * 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 + * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ - 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"; + @com.google.api.client.util.Key + private java.lang.String indexEndpoint; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$"); + /** Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public java.lang.String getIndexEndpoint() { + return indexEndpoint; + } - /** - * 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/[^/]+/featurestores/[^/]+/operations/[^/]+$"); - } + /** + * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public DeployIndex setIndexEndpoint(java.lang.String indexEndpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } + this.indexEndpoint = indexEndpoint; + return this; + } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + @Override + public DeployIndex set(String parameterName, Object value) { + return (DeployIndex) super.set(parameterName, value); + } + } + /** + * Finds the nearest neighbors of each vector within the request. + * + * Create a request for the method "indexEndpoints.findNeighbors". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link FindNeighbors#execute()} method to invoke the remote operation. + * + * @param indexEndpoint Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest} + * @return the request + */ + public FindNeighbors findNeighbors(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest content) throws java.io.IOException { + FindNeighbors result = new FindNeighbors(indexEndpoint, content); + initialize(result); + return result; + } - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + public class FindNeighbors extends AiplatformRequest { - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + private static final String REST_PATH = "v1beta1/{+indexEndpoint}:findNeighbors"; - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + /** + * Finds the nearest neighbors of each vector within the request. + * + * Create a request for the method "indexEndpoints.findNeighbors". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link FindNeighbors#execute()} method to invoke the remote + * operation.

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

+ * + * @param indexEndpoint Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest} + * @since 1.13 + */ + protected FindNeighbors(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsResponse.class); + this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public FindNeighbors set$Xgafv(java.lang.String $Xgafv) { + return (FindNeighbors) super.set$Xgafv($Xgafv); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public FindNeighbors setAccessToken(java.lang.String accessToken) { + return (FindNeighbors) super.setAccessToken(accessToken); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public FindNeighbors setAlt(java.lang.String alt) { + return (FindNeighbors) super.setAlt(alt); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public FindNeighbors setCallback(java.lang.String callback) { + return (FindNeighbors) super.setCallback(callback); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public FindNeighbors setFields(java.lang.String fields) { + return (FindNeighbors) super.setFields(fields); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public FindNeighbors setKey(java.lang.String key) { + return (FindNeighbors) super.setKey(key); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public FindNeighbors setOauthToken(java.lang.String oauthToken) { + return (FindNeighbors) super.setOauthToken(oauthToken); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public FindNeighbors setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FindNeighbors) super.setPrettyPrint(prettyPrint); + } - /** 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/[^/]+/featurestores/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public FindNeighbors setQuotaUser(java.lang.String quotaUser) { + return (FindNeighbors) super.setQuotaUser(quotaUser); + } - /** - * 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 FindNeighbors setUploadType(java.lang.String uploadType) { + return (FindNeighbors) 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. - */ - public String getTimeout() { - return timeout; - } + @Override + public FindNeighbors setUploadProtocol(java.lang.String uploadProtocol) { + return (FindNeighbors) 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 Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } + /** + * Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String indexEndpoint; - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + /** Required. The name of the index endpoint. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public java.lang.String getIndexEndpoint() { + return indexEndpoint; + } + + /** + * Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public FindNeighbors setIndexEndpoint(java.lang.String indexEndpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } + this.indexEndpoint = indexEndpoint; + return this; } + @Override + public FindNeighbors set(String parameterName, Object value) { + return (FindNeighbors) super.set(parameterName, value); + } } - } - /** - * An accessor for creating requests from the HyperparameterTuningJobs collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.HyperparameterTuningJobs.List request = aiplatform.hyperparameterTuningJobs().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public HyperparameterTuningJobs hyperparameterTuningJobs() { - return new HyperparameterTuningJobs(); - } - - /** - * The "hyperparameterTuningJobs" collection of methods. - */ - public class HyperparameterTuningJobs { - /** - * Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the - * HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not - * guaranteed. Clients can use JobService.GetHyperparameterTuningJob or other methods to check - * whether the cancellation succeeded or whether the job completed despite cancellation. On - * successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job - * with a HyperparameterTuningJob.error value with a google.rpc.Status.code of 1, corresponding to - * `Code.CANCELLED`, and HyperparameterTuningJob.state is set to `CANCELLED`. + * Gets an IndexEndpoint. * - * Create a request for the method "hyperparameterTuningJobs.cancel". + * Create a request for the method "indexEndpoints.get". * * 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. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the HyperparameterTuningJob to cancel. Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j - * ob}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest} + * @param name Required. The name of the IndexEndpoint resource. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` * @return the request */ - public Cancel cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest content) throws java.io.IOException { - Cancel result = new Cancel(name, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Cancel extends AiplatformRequest { + public class Get extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); /** - * Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the - * HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not - * guaranteed. Clients can use JobService.GetHyperparameterTuningJob or other methods to check - * whether the cancellation succeeded or whether the job completed despite cancellation. On - * successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job - * with a HyperparameterTuningJob.error value with a google.rpc.Status.code of 1, corresponding to - * `Code.CANCELLED`, and HyperparameterTuningJob.state is set to `CANCELLED`. + * Gets an IndexEndpoint. * - * Create a request for the method "hyperparameterTuningJobs.cancel". + * Create a request for the method "indexEndpoints.get". * * 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.

+ * 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 HyperparameterTuningJob to cancel. Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j - * ob}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest} + * @param name Required. The name of the IndexEndpoint resource. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` * @since 1.13 */ - protected Cancel(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleProtobufEmpty.class); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint.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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/{project - * }/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * Required. The name of the IndexEndpoint resource. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the HyperparameterTuningJob to cancel. Format: - `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /** Required. The name of the IndexEndpoint resource. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/{project - * }/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * Required. The name of the IndexEndpoint resource. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ - public Cancel 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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } this.name = name; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a HyperparameterTuningJob + * Lists IndexEndpoints in a Location. * - * Create a request for the method "hyperparameterTuningJobs.create". + * Create a request for the method "indexEndpoints.list". * * 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. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: + * @param parent Required. The resource name of the Location from which to list the IndexEndpoints. Format: * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob content) throws java.io.IOException { - Create result = new Create(parent, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Create extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/hyperparameterTuningJobs"; + private static final String REST_PATH = "v1beta1/{+parent}/indexEndpoints"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates a HyperparameterTuningJob + * Lists IndexEndpoints in a Location. * - * Create a request for the method "hyperparameterTuningJobs.create". + * Create a request for the method "indexEndpoints.list". * * 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.

+ * 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 create the HyperparameterTuningJob in. Format: + * @param parent Required. The resource name of the Location from which to list the IndexEndpoints. Format: * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob.class); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse.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(), @@ -102623,68 +105674,78 @@ protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1b } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) 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 name of the Location to create the HyperparameterTuningJob in. + * Required. The resource name of the Location from which to list the IndexEndpoints. * 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 HyperparameterTuningJob in. Format: + /** Required. The resource name of the Location from which to list the IndexEndpoints. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -102692,10 +105753,10 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Location to create the HyperparameterTuningJob in. + * Required. The resource name of the Location from which to list the IndexEndpoints. * Format: `projects/{project}/locations/{location}` */ - public Create setParent(java.lang.String parent) { + 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 " + @@ -102705,545 +105766,683 @@ public Create setParent(java.lang.String parent) { return this; } + /** + * Optional. An expression for filtering the results of the request. For field names both + * snake_case and camelCase are supported. * `index_endpoint` supports = and !=. + * `index_endpoint` represents the IndexEndpoint ID, ie. the last segment of the + * IndexEndpoint's resourcename. * `display_name` supports =, != and regex() (uses + * [re2](https://github.com/google/re2/wiki/Syntax) syntax) * `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: * `index_endpoint="1"` * `display_name="myDisplayName"` * + * `regex(display_name, "^A") -> The display name starts with an A. * + * `labels.myKey="myValue"` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. An expression for filtering the results of the request. For field names both snake_case + and camelCase are supported. * `index_endpoint` supports = and !=. `index_endpoint` represents the + IndexEndpoint ID, ie. the last segment of the IndexEndpoint's resourcename. * `display_name` + supports =, != and regex() (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax) * + `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: * `index_endpoint="1"` * `display_name="myDisplayName"` * + `regex(display_name, "^A") -> The display name starts with an A. * `labels.myKey="myValue"` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. An expression for filtering the results of the request. For field names both + * snake_case and camelCase are supported. * `index_endpoint` supports = and !=. + * `index_endpoint` represents the IndexEndpoint ID, ie. the last segment of the + * IndexEndpoint's resourcename. * `display_name` supports =, != and regex() (uses + * [re2](https://github.com/google/re2/wiki/Syntax) syntax) * `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: * `index_endpoint="1"` * `display_name="myDisplayName"` * + * `regex(display_name, "^A") -> The display name starts with an A. * + * `labels.myKey="myValue"` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + 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. Typically obtained via + * ListIndexEndpointsResponse.next_page_token of the previous + * IndexEndpointService.ListIndexEndpoints call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The standard list page token. Typically obtained via + ListIndexEndpointsResponse.next_page_token of the previous IndexEndpointService.ListIndexEndpoints + call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The standard list page token. Typically obtained via + * ListIndexEndpointsResponse.next_page_token of the previous + * IndexEndpointService.ListIndexEndpoints call. + */ + 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 Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes a HyperparameterTuningJob. + * Update an existing DeployedIndex under an IndexEndpoint. + * + * Create a request for the method "indexEndpoints.mutateDeployedIndex". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link MutateDeployedIndex#execute()} method to invoke the remote operation. + * + * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex} + * @return the request + */ + public MutateDeployedIndex mutateDeployedIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex content) throws java.io.IOException { + MutateDeployedIndex result = new MutateDeployedIndex(indexEndpoint, content); + initialize(result); + return result; + } + + public class MutateDeployedIndex extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+indexEndpoint}:mutateDeployedIndex"; + + private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + + /** + * Update an existing DeployedIndex under an IndexEndpoint. + * + * Create a request for the method "indexEndpoints.mutateDeployedIndex". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link MutateDeployedIndex#execute()} method to invoke the remote + * operation.

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

+ * + * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex} + * @since 1.13 + */ + protected MutateDeployedIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + } + } + + @Override + public MutateDeployedIndex set$Xgafv(java.lang.String $Xgafv) { + return (MutateDeployedIndex) super.set$Xgafv($Xgafv); + } + + @Override + public MutateDeployedIndex setAccessToken(java.lang.String accessToken) { + return (MutateDeployedIndex) super.setAccessToken(accessToken); + } + + @Override + public MutateDeployedIndex setAlt(java.lang.String alt) { + return (MutateDeployedIndex) super.setAlt(alt); + } + + @Override + public MutateDeployedIndex setCallback(java.lang.String callback) { + return (MutateDeployedIndex) super.setCallback(callback); + } + + @Override + public MutateDeployedIndex setFields(java.lang.String fields) { + return (MutateDeployedIndex) super.setFields(fields); + } + + @Override + public MutateDeployedIndex setKey(java.lang.String key) { + return (MutateDeployedIndex) super.setKey(key); + } + + @Override + public MutateDeployedIndex setOauthToken(java.lang.String oauthToken) { + return (MutateDeployedIndex) super.setOauthToken(oauthToken); + } + + @Override + public MutateDeployedIndex setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MutateDeployedIndex) super.setPrettyPrint(prettyPrint); + } + + @Override + public MutateDeployedIndex setQuotaUser(java.lang.String quotaUser) { + return (MutateDeployedIndex) super.setQuotaUser(quotaUser); + } + + @Override + public MutateDeployedIndex setUploadType(java.lang.String uploadType) { + return (MutateDeployedIndex) super.setUploadType(uploadType); + } + + @Override + public MutateDeployedIndex setUploadProtocol(java.lang.String uploadProtocol) { + return (MutateDeployedIndex) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + @com.google.api.client.util.Key + private java.lang.String indexEndpoint; + + /** Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public java.lang.String getIndexEndpoint() { + return indexEndpoint; + } + + /** + * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + */ + public MutateDeployedIndex setIndexEndpoint(java.lang.String indexEndpoint) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + } + this.indexEndpoint = indexEndpoint; + return this; + } + + @Override + public MutateDeployedIndex set(String parameterName, Object value) { + return (MutateDeployedIndex) super.set(parameterName, value); + } + } + /** + * Updates an IndexEndpoint. * - * Create a request for the method "hyperparameterTuningJobs.delete". + * Create a request for the method "indexEndpoints.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. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. The name of the HyperparameterTuningJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j - * ob}` + * @param name Output only. The resource name of the IndexEndpoint. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Delete extends AiplatformRequest { + 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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); /** - * Deletes a HyperparameterTuningJob. + * Updates an IndexEndpoint. * - * Create a request for the method "hyperparameterTuningJobs.delete". + * Create a request for the method "indexEndpoints.patch". * * 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. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. *

{@link - * Delete#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 HyperparameterTuningJob resource to be deleted. Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j - * ob}` + * @param name Output only. The resource name of the IndexEndpoint. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint} * @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); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint.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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + 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); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the HyperparameterTuningJob resource to be deleted. Format: `proj - * ects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job - * }` - */ + /** Output only. The resource name of the IndexEndpoint. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the HyperparameterTuningJob resource to be deleted. Format: - `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /** Output only. The resource name of the IndexEndpoint. */ public java.lang.String getName() { return name; } - /** - * Required. The name of the HyperparameterTuningJob resource to be deleted. Format: `proj - * ects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job - * }` - */ - public Delete setName(java.lang.String name) { + /** Output only. The resource name of the IndexEndpoint. */ + 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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } this.name = name; return this; } + /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Gets a HyperparameterTuningJob + * Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a + * batch. * - * Create a request for the method "hyperparameterTuningJobs.get". + * Create a request for the method "indexEndpoints.readIndexDatapoints". * * 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. + * parameters, call the {@link ReadIndexDatapoints#execute()} method to invoke the remote operation. * - * @param name Required. The name of the HyperparameterTuningJob resource. Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j - * ob}` + * @param indexEndpoint Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public ReadIndexDatapoints readIndexDatapoints(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest content) throws java.io.IOException { + ReadIndexDatapoints result = new ReadIndexDatapoints(indexEndpoint, content); initialize(result); return result; } - public class Get extends AiplatformRequest { + public class ReadIndexDatapoints extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+indexEndpoint}:readIndexDatapoints"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); /** - * Gets a HyperparameterTuningJob + * Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in + * a batch. * - * Create a request for the method "hyperparameterTuningJobs.get". + * Create a request for the method "indexEndpoints.readIndexDatapoints". * * 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.

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

{@link ReadIndexDatapoints#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 HyperparameterTuningJob resource. Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_j - * ob}` + * @param indexEndpoint Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1HyperparameterTuningJob.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected ReadIndexDatapoints(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse.class); + this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint 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/[^/]+/hyperparameterTuningJobs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public ReadIndexDatapoints set$Xgafv(java.lang.String $Xgafv) { + return (ReadIndexDatapoints) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public ReadIndexDatapoints setAccessToken(java.lang.String accessToken) { + return (ReadIndexDatapoints) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public ReadIndexDatapoints setAlt(java.lang.String alt) { + return (ReadIndexDatapoints) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public ReadIndexDatapoints setCallback(java.lang.String callback) { + return (ReadIndexDatapoints) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public ReadIndexDatapoints setFields(java.lang.String fields) { + return (ReadIndexDatapoints) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public ReadIndexDatapoints setKey(java.lang.String key) { + return (ReadIndexDatapoints) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public ReadIndexDatapoints setOauthToken(java.lang.String oauthToken) { + return (ReadIndexDatapoints) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public ReadIndexDatapoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReadIndexDatapoints) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public ReadIndexDatapoints setQuotaUser(java.lang.String quotaUser) { + return (ReadIndexDatapoints) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public ReadIndexDatapoints setUploadType(java.lang.String uploadType) { + return (ReadIndexDatapoints) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public ReadIndexDatapoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ReadIndexDatapoints) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the HyperparameterTuningJob resource. Format: `projects/{project} - * /locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String indexEndpoint; - /** Required. The name of the HyperparameterTuningJob resource. Format: - `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /** Required. The name of the index endpoint. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ - public java.lang.String getName() { - return name; + public java.lang.String getIndexEndpoint() { + return indexEndpoint; } /** - * Required. The name of the HyperparameterTuningJob resource. Format: `projects/{project} - * /locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * Required. The name of the index endpoint. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ - public Get setName(java.lang.String name) { + public ReadIndexDatapoints setIndexEndpoint(java.lang.String indexEndpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } - this.name = name; + this.indexEndpoint = indexEndpoint; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public ReadIndexDatapoints set(String parameterName, Object value) { + return (ReadIndexDatapoints) super.set(parameterName, value); } } /** - * Lists HyperparameterTuningJobs in a Location. + * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all + * resources it's using. * - * Create a request for the method "hyperparameterTuningJobs.list". + * Create a request for the method "indexEndpoints.undeployIndex". * * 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 UndeployIndex#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` + * @param indexEndpoint Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest} * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public UndeployIndex undeployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest content) throws java.io.IOException { + UndeployIndex result = new UndeployIndex(indexEndpoint, content); initialize(result); return result; } - public class List extends AiplatformRequest { + public class UndeployIndex extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/hyperparameterTuningJobs"; + private static final String REST_PATH = "v1beta1/{+indexEndpoint}:undeployIndex"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); /** - * Lists HyperparameterTuningJobs in a Location. + * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all + * resources it's using. * - * Create a request for the method "hyperparameterTuningJobs.list". + * Create a request for the method "indexEndpoints.undeployIndex". * * 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 UndeployIndex#execute()} method to invoke the remote + * operation.

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

* - * @param parent Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` + * @param indexEndpoint Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: + * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected UndeployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public UndeployIndex set$Xgafv(java.lang.String $Xgafv) { + return (UndeployIndex) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public UndeployIndex setAccessToken(java.lang.String accessToken) { + return (UndeployIndex) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public UndeployIndex setAlt(java.lang.String alt) { + return (UndeployIndex) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public UndeployIndex setCallback(java.lang.String callback) { + return (UndeployIndex) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public UndeployIndex setFields(java.lang.String fields) { + return (UndeployIndex) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public UndeployIndex setKey(java.lang.String key) { + return (UndeployIndex) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public UndeployIndex setOauthToken(java.lang.String oauthToken) { + return (UndeployIndex) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public UndeployIndex setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UndeployIndex) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public UndeployIndex setQuotaUser(java.lang.String quotaUser) { + return (UndeployIndex) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public UndeployIndex setUploadType(java.lang.String uploadType) { + return (UndeployIndex) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public UndeployIndex setUploadProtocol(java.lang.String uploadProtocol) { + return (UndeployIndex) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Location to list the HyperparameterTuningJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The name of the IndexEndpoint resource from which to undeploy an Index. + * Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String indexEndpoint; - /** Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: - `projects/{project}/locations/{location}` + /** Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: + `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getIndexEndpoint() { + return indexEndpoint; } /** - * Required. The resource name of the Location to list the HyperparameterTuningJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The name of the IndexEndpoint resource from which to undeploy an Index. + * Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` */ - public List setParent(java.lang.String parent) { + public UndeployIndex setIndexEndpoint(java.lang.String indexEndpoint) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), + "Parameter indexEndpoint must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); } - 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 - * ListHyperparameterTuningJobsResponse.next_page_token of the previous - * JobService.ListHyperparameterTuningJobs call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. Typically obtained via - ListHyperparameterTuningJobsResponse.next_page_token of the previous - JobService.ListHyperparameterTuningJobs call. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * The standard list page token. Typically obtained via - * ListHyperparameterTuningJobsResponse.next_page_token of the previous - * JobService.ListHyperparameterTuningJobs 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; + this.indexEndpoint = indexEndpoint; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public UndeployIndex set(String parameterName, Object value) { + return (UndeployIndex) super.set(parameterName, value); } } @@ -103295,7 +106494,7 @@ public class Cancel extends AiplatformRequestThe typical use is:

*
        *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.IndexEndpoints.List request = aiplatform.indexEndpoints().list(parameters ...)}
+       *   {@code Aiplatform.Indexes.List request = aiplatform.indexes().list(parameters ...)}
        * 
* * @return the resource collection */ - public IndexEndpoints indexEndpoints() { - return new IndexEndpoints(); + public Indexes indexes() { + return new Indexes(); } /** - * The "indexEndpoints" collection of methods. + * The "indexes" collection of methods. */ - public class IndexEndpoints { + public class Indexes { /** - * Creates an IndexEndpoint. + * Creates an Index. * - * Create a request for the method "indexEndpoints.create". + * Create a request for the method "indexes.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 IndexEndpoint in. Format: + * @param parent Required. The resource name of the Location to create the Index in. Format: * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; @@ -104114,15 +107313,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}/indexEndpoints"; + private static final String REST_PATH = "v1beta1/{+parent}/indexes"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates an IndexEndpoint. + * Creates an Index. * - * Create a request for the method "indexEndpoints.create". + * Create a request for the method "indexes.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. @@ -104130,12 +107329,12 @@ public class Create extends AiplatformRequest * - * @param parent Required. The resource name of the Location to create the IndexEndpoint in. Format: + * @param parent Required. The resource name of the Location to create the Index in. Format: * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint content) { + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index 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()) { @@ -104201,13 +107400,13 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Location to create the IndexEndpoint in. Format: + * Required. The resource name of the Location to create the Index 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 IndexEndpoint in. Format: + /** Required. The resource name of the Location to create the Index in. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -104215,7 +107414,7 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Location to create the IndexEndpoint in. Format: + * Required. The resource name of the Location to create the Index in. Format: * `projects/{project}/locations/{location}` */ public Create setParent(java.lang.String parent) { @@ -104234,15 +107433,15 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes an IndexEndpoint. + * Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed. * - * Create a request for the method "indexEndpoints.delete". + * Create a request for the method "indexes.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 IndexEndpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param name Required. The name of the Index resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexes/{index}` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -104256,12 +107455,13 @@ public class Delete extends AiplatformRequest * - * @param name Required. The name of the IndexEndpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param name Required. The name of the Index resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexes/{index}` * @since 1.13 */ protected Delete(java.lang.String name) { @@ -104279,388 +107479,108 @@ 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/[^/]+/indexEndpoints/[^/]+$"); - } - } - - @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 IndexEndpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the IndexEndpoint resource to be deleted. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the IndexEndpoint resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - 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/[^/]+/indexEndpoints/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. - * - * Create a request for the method "indexEndpoints.deployIndex". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link DeployIndex#execute()} method to invoke the remote operation. - * - * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest} - * @return the request - */ - public DeployIndex deployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest content) throws java.io.IOException { - DeployIndex result = new DeployIndex(indexEndpoint, content); - initialize(result); - return result; - } - - public class DeployIndex extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+indexEndpoint}:deployIndex"; - - private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - - /** - * Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. - * - * Create a request for the method "indexEndpoints.deployIndex". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link DeployIndex#execute()} method to invoke the remote - * operation.

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

- * - * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest} - * @since 1.13 - */ - protected DeployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployIndexRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - } - } - - @Override - public DeployIndex set$Xgafv(java.lang.String $Xgafv) { - return (DeployIndex) super.set$Xgafv($Xgafv); - } - - @Override - public DeployIndex setAccessToken(java.lang.String accessToken) { - return (DeployIndex) super.setAccessToken(accessToken); - } - - @Override - public DeployIndex setAlt(java.lang.String alt) { - return (DeployIndex) super.setAlt(alt); - } - - @Override - public DeployIndex setCallback(java.lang.String callback) { - return (DeployIndex) super.setCallback(callback); - } - - @Override - public DeployIndex setFields(java.lang.String fields) { - return (DeployIndex) super.setFields(fields); - } - - @Override - public DeployIndex setKey(java.lang.String key) { - return (DeployIndex) super.setKey(key); - } - - @Override - public DeployIndex setOauthToken(java.lang.String oauthToken) { - return (DeployIndex) super.setOauthToken(oauthToken); - } - - @Override - public DeployIndex setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeployIndex) super.setPrettyPrint(prettyPrint); - } - - @Override - public DeployIndex setQuotaUser(java.lang.String quotaUser) { - return (DeployIndex) super.setQuotaUser(quotaUser); - } - - @Override - public DeployIndex setUploadType(java.lang.String uploadType) { - return (DeployIndex) super.setUploadType(uploadType); - } - - @Override - public DeployIndex setUploadProtocol(java.lang.String uploadProtocol) { - return (DeployIndex) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String indexEndpoint; - - /** Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - public java.lang.String getIndexEndpoint() { - return indexEndpoint; - } - - /** - * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - public DeployIndex setIndexEndpoint(java.lang.String indexEndpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - } - this.indexEndpoint = indexEndpoint; - return this; - } - - @Override - public DeployIndex set(String parameterName, Object value) { - return (DeployIndex) super.set(parameterName, value); - } - } - /** - * Finds the nearest neighbors of each vector within the request. - * - * Create a request for the method "indexEndpoints.findNeighbors". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link FindNeighbors#execute()} method to invoke the remote operation. - * - * @param indexEndpoint Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest} - * @return the request - */ - public FindNeighbors findNeighbors(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest content) throws java.io.IOException { - FindNeighbors result = new FindNeighbors(indexEndpoint, content); - initialize(result); - return result; - } - - public class FindNeighbors extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+indexEndpoint}:findNeighbors"; - - private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - - /** - * Finds the nearest neighbors of each vector within the request. - * - * Create a request for the method "indexEndpoints.findNeighbors". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link FindNeighbors#execute()} method to invoke the remote - * operation.

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

- * - * @param indexEndpoint Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest} - * @since 1.13 - */ - protected FindNeighbors(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1FindNeighborsResponse.class); - this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } } @Override - public FindNeighbors set$Xgafv(java.lang.String $Xgafv) { - return (FindNeighbors) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public FindNeighbors setAccessToken(java.lang.String accessToken) { - return (FindNeighbors) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public FindNeighbors setAlt(java.lang.String alt) { - return (FindNeighbors) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public FindNeighbors setCallback(java.lang.String callback) { - return (FindNeighbors) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public FindNeighbors setFields(java.lang.String fields) { - return (FindNeighbors) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public FindNeighbors setKey(java.lang.String key) { - return (FindNeighbors) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public FindNeighbors setOauthToken(java.lang.String oauthToken) { - return (FindNeighbors) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public FindNeighbors setPrettyPrint(java.lang.Boolean prettyPrint) { - return (FindNeighbors) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public FindNeighbors setQuotaUser(java.lang.String quotaUser) { - return (FindNeighbors) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public FindNeighbors setUploadType(java.lang.String uploadType) { - return (FindNeighbors) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public FindNeighbors setUploadProtocol(java.lang.String uploadProtocol) { - return (FindNeighbors) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ @com.google.api.client.util.Key - private java.lang.String indexEndpoint; + private java.lang.String name; - /** Required. The name of the index endpoint. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /** Required. The name of the Index resource to be deleted. Format: + `projects/{project}/locations/{location}/indexes/{index}` */ - public java.lang.String getIndexEndpoint() { - return indexEndpoint; + public java.lang.String getName() { + return name; } /** - * Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource to be deleted. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ - public FindNeighbors setIndexEndpoint(java.lang.String indexEndpoint) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } - this.indexEndpoint = indexEndpoint; + this.name = name; return this; } @Override - public FindNeighbors set(String parameterName, Object value) { - return (FindNeighbors) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Gets an IndexEndpoint. + * Gets an Index. * - * Create a request for the method "indexEndpoints.get". + * Create a request for the method "indexes.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 IndexEndpoint resource. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param name Required. The name of the Index resource. Format: + * `projects/{project}/locations/{location}/indexes/{index}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -104669,34 +107589,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/[^/]+/indexEndpoints/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); /** - * Gets an IndexEndpoint. + * Gets an Index. * - * Create a request for the method "indexEndpoints.get". + * Create a request for the method "indexes.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 IndexEndpoint resource. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * @param name Required. The name of the Index resource. Format: + * `projects/{project}/locations/{location}/indexes/{index}` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index.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/[^/]+/indexEndpoints/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } } @@ -104766,28 +107686,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the IndexEndpoint resource. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the IndexEndpoint resource. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /** Required. The name of the Index resource. Format: + `projects/{project}/locations/{location}/indexes/{index}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the IndexEndpoint resource. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ 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/[^/]+/indexEndpoints/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } this.name = name; return this; @@ -104799,14 +107719,154 @@ public Get set(String parameterName, Object value) { } } /** - * Lists IndexEndpoints in a Location. + * Imports an Index from an external source (e.g., BigQuery). * - * Create a request for the method "indexEndpoints.list". + * Create a request for the method "indexes.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 Index resource to import data to. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest} + * @return the request + */ + public AiplatformImport aiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest 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/[^/]+/indexes/[^/]+$"); + + /** + * Imports an Index from an external source (e.g., BigQuery). + * + * Create a request for the method "indexes.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 Index resource to import data to. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest} + * @since 1.13 + */ + protected AiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest 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/[^/]+/indexes/[^/]+$"); + } + } + + @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 Index resource to import data to. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Index resource to import data to. Format: + `projects/{project}/locations/{location}/indexes/{index}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Index resource to import data to. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + */ + 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/[^/]+/indexes/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public AiplatformImport set(String parameterName, Object value) { + return (AiplatformImport) super.set(parameterName, value); + } + } + /** + * Lists Indexes in a Location. + * + * Create a request for the method "indexes.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 from which to list the IndexEndpoints. Format: + * @param parent Required. The resource name of the Location from which to list the Indexes. Format: * `projects/{project}/locations/{location}` * @return the request */ @@ -104816,29 +107876,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}/indexEndpoints"; + private static final String REST_PATH = "v1beta1/{+parent}/indexes"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Lists IndexEndpoints in a Location. + * Lists Indexes in a Location. * - * Create a request for the method "indexEndpoints.list". + * Create a request for the method "indexes.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 from which to list the IndexEndpoints. Format: + * @param parent Required. The resource name of the Location from which to list the Indexes. 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.GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListIndexesResponse.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(), @@ -104913,13 +107973,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Location from which to list the IndexEndpoints. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location from which to list the Indexes. Format: + * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the Location from which to list the IndexEndpoints. Format: + /** Required. The resource name of the Location from which to list the Indexes. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -104927,8 +107987,8 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the Location from which to list the IndexEndpoints. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location from which to list the Indexes. Format: + * `projects/{project}/locations/{location}` */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -104940,104 +108000,72 @@ public List setParent(java.lang.String parent) { return this; } - /** - * Optional. An expression for filtering the results of the request. For field names both - * snake_case and camelCase are supported. * `index_endpoint` supports = and !=. - * `index_endpoint` represents the IndexEndpoint ID, ie. the last segment of the - * IndexEndpoint's resourcename. * `display_name` supports =, != and regex() (uses - * [re2](https://github.com/google/re2/wiki/Syntax) syntax) * `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: * `index_endpoint="1"` * `display_name="myDisplayName"` * - * `regex(display_name, "^A") -> The display name starts with an A. * - * `labels.myKey="myValue"` - */ + /** The standard list filter. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. An expression for filtering the results of the request. For field names both snake_case - and camelCase are supported. * `index_endpoint` supports = and !=. `index_endpoint` represents the - IndexEndpoint ID, ie. the last segment of the IndexEndpoint's resourcename. * `display_name` - supports =, != and regex() (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax) * - `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: * `index_endpoint="1"` * `display_name="myDisplayName"` * - `regex(display_name, "^A") -> The display name starts with an A. * `labels.myKey="myValue"` + /** The standard list filter. */ public java.lang.String getFilter() { return filter; } - /** - * Optional. An expression for filtering the results of the request. For field names both - * snake_case and camelCase are supported. * `index_endpoint` supports = and !=. - * `index_endpoint` represents the IndexEndpoint ID, ie. the last segment of the - * IndexEndpoint's resourcename. * `display_name` supports =, != and regex() (uses - * [re2](https://github.com/google/re2/wiki/Syntax) syntax) * `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: * `index_endpoint="1"` * `display_name="myDisplayName"` * - * `regex(display_name, "^A") -> The display name starts with an A. * - * `labels.myKey="myValue"` - */ + /** The standard list filter. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** Optional. The standard list page size. */ + /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The standard list page size. + /** The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** Optional. The standard list page size. */ + /** The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. The standard list page token. Typically obtained via - * ListIndexEndpointsResponse.next_page_token of the previous - * IndexEndpointService.ListIndexEndpoints call. + * The standard list page token. Typically obtained via + * ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. The standard list page token. Typically obtained via - ListIndexEndpointsResponse.next_page_token of the previous IndexEndpointService.ListIndexEndpoints - call. + /** The standard list page token. Typically obtained via ListIndexesResponse.next_page_token of the + previous IndexService.ListIndexes call. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. The standard list page token. Typically obtained via - * ListIndexEndpointsResponse.next_page_token of the previous - * IndexEndpointService.ListIndexEndpoints call. + * The standard list page token. Typically obtained via + * ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** Optional. Mask specifying which fields to read. */ + /** Mask specifying which fields to read. */ @com.google.api.client.util.Key private String readMask; - /** Optional. Mask specifying which fields to read. + /** Mask specifying which fields to read. */ public String getReadMask() { return readMask; } - /** Optional. Mask specifying which fields to read. */ + /** Mask specifying which fields to read. */ public List setReadMask(String readMask) { this.readMask = readMask; return this; @@ -105049,174 +108077,34 @@ public List set(String parameterName, Object value) { } } /** - * Update an existing DeployedIndex under an IndexEndpoint. - * - * Create a request for the method "indexEndpoints.mutateDeployedIndex". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link MutateDeployedIndex#execute()} method to invoke the remote operation. - * - * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex} - * @return the request - */ - public MutateDeployedIndex mutateDeployedIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex content) throws java.io.IOException { - MutateDeployedIndex result = new MutateDeployedIndex(indexEndpoint, content); - initialize(result); - return result; - } - - public class MutateDeployedIndex extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+indexEndpoint}:mutateDeployedIndex"; - - private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - - /** - * Update an existing DeployedIndex under an IndexEndpoint. - * - * Create a request for the method "indexEndpoints.mutateDeployedIndex". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link MutateDeployedIndex#execute()} method to invoke the remote - * operation.

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

- * - * @param indexEndpoint Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex} - * @since 1.13 - */ - protected MutateDeployedIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DeployedIndex content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - } - } - - @Override - public MutateDeployedIndex set$Xgafv(java.lang.String $Xgafv) { - return (MutateDeployedIndex) super.set$Xgafv($Xgafv); - } - - @Override - public MutateDeployedIndex setAccessToken(java.lang.String accessToken) { - return (MutateDeployedIndex) super.setAccessToken(accessToken); - } - - @Override - public MutateDeployedIndex setAlt(java.lang.String alt) { - return (MutateDeployedIndex) super.setAlt(alt); - } - - @Override - public MutateDeployedIndex setCallback(java.lang.String callback) { - return (MutateDeployedIndex) super.setCallback(callback); - } - - @Override - public MutateDeployedIndex setFields(java.lang.String fields) { - return (MutateDeployedIndex) super.setFields(fields); - } - - @Override - public MutateDeployedIndex setKey(java.lang.String key) { - return (MutateDeployedIndex) super.setKey(key); - } - - @Override - public MutateDeployedIndex setOauthToken(java.lang.String oauthToken) { - return (MutateDeployedIndex) super.setOauthToken(oauthToken); - } - - @Override - public MutateDeployedIndex setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MutateDeployedIndex) super.setPrettyPrint(prettyPrint); - } - - @Override - public MutateDeployedIndex setQuotaUser(java.lang.String quotaUser) { - return (MutateDeployedIndex) super.setQuotaUser(quotaUser); - } - - @Override - public MutateDeployedIndex setUploadType(java.lang.String uploadType) { - return (MutateDeployedIndex) super.setUploadType(uploadType); - } - - @Override - public MutateDeployedIndex setUploadProtocol(java.lang.String uploadProtocol) { - return (MutateDeployedIndex) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - @com.google.api.client.util.Key - private java.lang.String indexEndpoint; - - /** Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - public java.lang.String getIndexEndpoint() { - return indexEndpoint; - } - - /** - * Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - */ - public MutateDeployedIndex setIndexEndpoint(java.lang.String indexEndpoint) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); - } - this.indexEndpoint = indexEndpoint; - return this; - } - - @Override - public MutateDeployedIndex set(String parameterName, Object value) { - return (MutateDeployedIndex) super.set(parameterName, value); - } - } - /** - * Updates an IndexEndpoint. + * Updates an Index. * - * Create a request for the method "indexEndpoints.patch". + * Create a request for the method "indexes.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. The resource name of the IndexEndpoint. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint} + * @param name Output only. The resource name of the Index. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; } - public class Patch extends AiplatformRequest { + 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/[^/]+/indexEndpoints/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); /** - * Updates an IndexEndpoint. + * Updates an Index. * - * Create a request for the method "indexEndpoints.patch". + * Create a request for the method "indexes.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. @@ -105224,17 +108112,17 @@ public class Patch extends AiplatformRequest * - * @param name Output only. The resource name of the IndexEndpoint. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint} + * @param name Output only. The resource name of the Index. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1IndexEndpoint.class); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index 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/[^/]+/indexEndpoints/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } } @@ -105293,38 +108181,45 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { return (Patch) super.setUploadProtocol(uploadProtocol); } - /** Output only. The resource name of the IndexEndpoint. */ + /** Output only. The resource name of the Index. */ @com.google.api.client.util.Key private java.lang.String name; - /** Output only. The resource name of the IndexEndpoint. + /** Output only. The resource name of the Index. */ public java.lang.String getName() { return name; } - /** Output only. The resource name of the IndexEndpoint. */ + /** Output only. The resource name of the Index. */ 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/[^/]+/indexEndpoints/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } this.name = name; return this; } - /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ + /** + * The update mask applies to the resource. For the `FieldMask` definition, see + * google.protobuf.FieldMask. + */ @com.google.api.client.util.Key private String updateMask; - /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. + /** The update mask applies to the resource. For the `FieldMask` definition, see + google.protobuf.FieldMask. */ public String getUpdateMask() { return updateMask; } - /** Required. The update mask applies to the resource. See google.protobuf.FieldMask. */ + /** + * The update mask applies to the resource. For the `FieldMask` definition, see + * google.protobuf.FieldMask. + */ public Patch setUpdateMask(String updateMask) { this.updateMask = updateMask; return this; @@ -105336,287 +108231,283 @@ public Patch set(String parameterName, Object value) { } } /** - * Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a - * batch. + * Remove Datapoints from an Index. * - * Create a request for the method "indexEndpoints.readIndexDatapoints". + * Create a request for the method "indexes.removeDatapoints". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link ReadIndexDatapoints#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveDatapoints#execute()} method to invoke the remote operation. * - * @param indexEndpoint Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest} + * @param index Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest} * @return the request */ - public ReadIndexDatapoints readIndexDatapoints(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest content) throws java.io.IOException { - ReadIndexDatapoints result = new ReadIndexDatapoints(indexEndpoint, content); + public RemoveDatapoints removeDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest content) throws java.io.IOException { + RemoveDatapoints result = new RemoveDatapoints(index, content); initialize(result); return result; } - public class ReadIndexDatapoints extends AiplatformRequest { + public class RemoveDatapoints extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+indexEndpoint}:readIndexDatapoints"; + private static final String REST_PATH = "v1beta1/{+index}:removeDatapoints"; - private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + private final java.util.regex.Pattern INDEX_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); /** - * Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in - * a batch. + * Remove Datapoints from an Index. * - * Create a request for the method "indexEndpoints.readIndexDatapoints". + * Create a request for the method "indexes.removeDatapoints". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link ReadIndexDatapoints#execute()} method to invoke the remote - * operation.

{@link ReadIndexDatapoints#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * optional parameters, call the {@link RemoveDatapoints#execute()} method to invoke the remote + * operation.

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

* - * @param indexEndpoint Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest} + * @param index Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest} * @since 1.13 */ - protected ReadIndexDatapoints(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse.class); - this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); + protected RemoveDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsResponse.class); + this.index = com.google.api.client.util.Preconditions.checkNotNull(index, "Required parameter index must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), + "Parameter index must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } } @Override - public ReadIndexDatapoints set$Xgafv(java.lang.String $Xgafv) { - return (ReadIndexDatapoints) super.set$Xgafv($Xgafv); + public RemoveDatapoints set$Xgafv(java.lang.String $Xgafv) { + return (RemoveDatapoints) super.set$Xgafv($Xgafv); } @Override - public ReadIndexDatapoints setAccessToken(java.lang.String accessToken) { - return (ReadIndexDatapoints) super.setAccessToken(accessToken); + public RemoveDatapoints setAccessToken(java.lang.String accessToken) { + return (RemoveDatapoints) super.setAccessToken(accessToken); } @Override - public ReadIndexDatapoints setAlt(java.lang.String alt) { - return (ReadIndexDatapoints) super.setAlt(alt); + public RemoveDatapoints setAlt(java.lang.String alt) { + return (RemoveDatapoints) super.setAlt(alt); } @Override - public ReadIndexDatapoints setCallback(java.lang.String callback) { - return (ReadIndexDatapoints) super.setCallback(callback); + public RemoveDatapoints setCallback(java.lang.String callback) { + return (RemoveDatapoints) super.setCallback(callback); } @Override - public ReadIndexDatapoints setFields(java.lang.String fields) { - return (ReadIndexDatapoints) super.setFields(fields); + public RemoveDatapoints setFields(java.lang.String fields) { + return (RemoveDatapoints) super.setFields(fields); } @Override - public ReadIndexDatapoints setKey(java.lang.String key) { - return (ReadIndexDatapoints) super.setKey(key); + public RemoveDatapoints setKey(java.lang.String key) { + return (RemoveDatapoints) super.setKey(key); } @Override - public ReadIndexDatapoints setOauthToken(java.lang.String oauthToken) { - return (ReadIndexDatapoints) super.setOauthToken(oauthToken); + public RemoveDatapoints setOauthToken(java.lang.String oauthToken) { + return (RemoveDatapoints) super.setOauthToken(oauthToken); } @Override - public ReadIndexDatapoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReadIndexDatapoints) super.setPrettyPrint(prettyPrint); + public RemoveDatapoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveDatapoints) super.setPrettyPrint(prettyPrint); } @Override - public ReadIndexDatapoints setQuotaUser(java.lang.String quotaUser) { - return (ReadIndexDatapoints) super.setQuotaUser(quotaUser); + public RemoveDatapoints setQuotaUser(java.lang.String quotaUser) { + return (RemoveDatapoints) super.setQuotaUser(quotaUser); } @Override - public ReadIndexDatapoints setUploadType(java.lang.String uploadType) { - return (ReadIndexDatapoints) super.setUploadType(uploadType); + public RemoveDatapoints setUploadType(java.lang.String uploadType) { + return (RemoveDatapoints) super.setUploadType(uploadType); } @Override - public ReadIndexDatapoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ReadIndexDatapoints) super.setUploadProtocol(uploadProtocol); + public RemoveDatapoints setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveDatapoints) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ @com.google.api.client.util.Key - private java.lang.String indexEndpoint; + private java.lang.String index; - /** Required. The name of the index endpoint. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /** Required. The name of the Index resource to be updated. Format: + `projects/{project}/locations/{location}/indexes/{index}` */ - public java.lang.String getIndexEndpoint() { - return indexEndpoint; + public java.lang.String getIndex() { + return index; } /** - * Required. The name of the index endpoint. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ - public ReadIndexDatapoints setIndexEndpoint(java.lang.String indexEndpoint) { + public RemoveDatapoints setIndex(java.lang.String index) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), + "Parameter index must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } - this.indexEndpoint = indexEndpoint; + this.index = index; return this; } @Override - public ReadIndexDatapoints set(String parameterName, Object value) { - return (ReadIndexDatapoints) super.set(parameterName, value); + public RemoveDatapoints set(String parameterName, Object value) { + return (RemoveDatapoints) super.set(parameterName, value); } } /** - * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all - * resources it's using. + * Add/update Datapoints into an Index. * - * Create a request for the method "indexEndpoints.undeployIndex". + * Create a request for the method "indexes.upsertDatapoints". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link UndeployIndex#execute()} method to invoke the remote operation. + * parameters, call the {@link UpsertDatapoints#execute()} method to invoke the remote operation. * - * @param indexEndpoint Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest} + * @param index Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest} * @return the request */ - public UndeployIndex undeployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest content) throws java.io.IOException { - UndeployIndex result = new UndeployIndex(indexEndpoint, content); + public UpsertDatapoints upsertDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest content) throws java.io.IOException { + UpsertDatapoints result = new UpsertDatapoints(index, content); initialize(result); return result; } - public class UndeployIndex extends AiplatformRequest { + public class UpsertDatapoints extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+indexEndpoint}:undeployIndex"; + private static final String REST_PATH = "v1beta1/{+index}:upsertDatapoints"; - private final java.util.regex.Pattern INDEX_ENDPOINT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + private final java.util.regex.Pattern INDEX_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); /** - * Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all - * resources it's using. + * Add/update Datapoints into an Index. * - * Create a request for the method "indexEndpoints.undeployIndex". + * Create a request for the method "indexes.upsertDatapoints". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link UndeployIndex#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param indexEndpoint Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: - * `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest} + * @param index Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest} * @since 1.13 */ - protected UndeployIndex(java.lang.String indexEndpoint, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UndeployIndexRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.indexEndpoint = com.google.api.client.util.Preconditions.checkNotNull(indexEndpoint, "Required parameter indexEndpoint must be specified."); + protected UpsertDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsResponse.class); + this.index = com.google.api.client.util.Preconditions.checkNotNull(index, "Required parameter index must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), + "Parameter index must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } } @Override - public UndeployIndex set$Xgafv(java.lang.String $Xgafv) { - return (UndeployIndex) super.set$Xgafv($Xgafv); + public UpsertDatapoints set$Xgafv(java.lang.String $Xgafv) { + return (UpsertDatapoints) super.set$Xgafv($Xgafv); } @Override - public UndeployIndex setAccessToken(java.lang.String accessToken) { - return (UndeployIndex) super.setAccessToken(accessToken); + public UpsertDatapoints setAccessToken(java.lang.String accessToken) { + return (UpsertDatapoints) super.setAccessToken(accessToken); } @Override - public UndeployIndex setAlt(java.lang.String alt) { - return (UndeployIndex) super.setAlt(alt); + public UpsertDatapoints setAlt(java.lang.String alt) { + return (UpsertDatapoints) super.setAlt(alt); } @Override - public UndeployIndex setCallback(java.lang.String callback) { - return (UndeployIndex) super.setCallback(callback); + public UpsertDatapoints setCallback(java.lang.String callback) { + return (UpsertDatapoints) super.setCallback(callback); } @Override - public UndeployIndex setFields(java.lang.String fields) { - return (UndeployIndex) super.setFields(fields); + public UpsertDatapoints setFields(java.lang.String fields) { + return (UpsertDatapoints) super.setFields(fields); } @Override - public UndeployIndex setKey(java.lang.String key) { - return (UndeployIndex) super.setKey(key); + public UpsertDatapoints setKey(java.lang.String key) { + return (UpsertDatapoints) super.setKey(key); } @Override - public UndeployIndex setOauthToken(java.lang.String oauthToken) { - return (UndeployIndex) super.setOauthToken(oauthToken); + public UpsertDatapoints setOauthToken(java.lang.String oauthToken) { + return (UpsertDatapoints) super.setOauthToken(oauthToken); } @Override - public UndeployIndex setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UndeployIndex) super.setPrettyPrint(prettyPrint); + public UpsertDatapoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpsertDatapoints) super.setPrettyPrint(prettyPrint); } @Override - public UndeployIndex setQuotaUser(java.lang.String quotaUser) { - return (UndeployIndex) super.setQuotaUser(quotaUser); + public UpsertDatapoints setQuotaUser(java.lang.String quotaUser) { + return (UpsertDatapoints) super.setQuotaUser(quotaUser); } @Override - public UndeployIndex setUploadType(java.lang.String uploadType) { - return (UndeployIndex) super.setUploadType(uploadType); + public UpsertDatapoints setUploadType(java.lang.String uploadType) { + return (UpsertDatapoints) super.setUploadType(uploadType); } @Override - public UndeployIndex setUploadProtocol(java.lang.String uploadProtocol) { - return (UndeployIndex) super.setUploadProtocol(uploadProtocol); + public UpsertDatapoints setUploadProtocol(java.lang.String uploadProtocol) { + return (UpsertDatapoints) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the IndexEndpoint resource from which to undeploy an Index. - * Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ @com.google.api.client.util.Key - private java.lang.String indexEndpoint; + private java.lang.String index; - /** Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: - `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /** Required. The name of the Index resource to be updated. Format: + `projects/{project}/locations/{location}/indexes/{index}` */ - public java.lang.String getIndexEndpoint() { - return indexEndpoint; + public java.lang.String getIndex() { + return index; } /** - * Required. The name of the IndexEndpoint resource from which to undeploy an Index. - * Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + * Required. The name of the Index resource to be updated. Format: + * `projects/{project}/locations/{location}/indexes/{index}` */ - public UndeployIndex setIndexEndpoint(java.lang.String indexEndpoint) { + public UpsertDatapoints setIndex(java.lang.String index) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_ENDPOINT_PATTERN.matcher(indexEndpoint).matches(), - "Parameter indexEndpoint must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), + "Parameter index must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); } - this.indexEndpoint = indexEndpoint; + this.index = index; return this; } @Override - public UndeployIndex set(String parameterName, Object value) { - return (UndeployIndex) super.set(parameterName, value); + public UpsertDatapoints set(String parameterName, Object value) { + return (UpsertDatapoints) super.set(parameterName, value); } } @@ -105668,7 +108559,7 @@ public class Cancel extends AiplatformRequestThe typical use is:

*
        *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.Indexes.List request = aiplatform.indexes().list(parameters ...)}
+       *   {@code Aiplatform.Interactions.List request = aiplatform.interactions().list(parameters ...)}
        * 
* * @return the resource collection */ - public Indexes indexes() { - return new Indexes(); + public Interactions interactions() { + return new Interactions(); } /** - * The "indexes" collection of methods. + * The "interactions" collection of methods. */ - public class Indexes { + public class Interactions { /** - * Creates an Index. + * Creates an interaction. * - * Create a request for the method "indexes.create". + * Create a request for the method "interactions.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 Index in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index} + * @param projectsId + * @param locationsId + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index content) throws java.io.IOException { - Create result = new Create(parent, content); + public Create create(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) throws java.io.IOException { + Create result = new Create(projectsId, locationsId, content); initialize(result); return result; } - public class Create extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/indexes"; + public class Create extends AiplatformRequest { - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private static final String REST_PATH = "v1beta1/projects/{projectsId}/locations/{locationsId}/interactions:create"; /** - * Creates an Index. + * Creates an interaction. * - * Create a request for the method "indexes.create". + * Create a request for the method "interactions.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. @@ -106503,19 +109391,15 @@ public class Create extends AiplatformRequest * - * @param parent Required. The resource name of the Location to create the Index in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index} + * @param projectsId + * @param locationsId + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index 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/[^/]+$"); - } + protected Create(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1Interaction.class); + this.projectsId = com.google.api.client.util.Preconditions.checkNotNull(projectsId, "Required parameter projectsId must be specified."); + this.locationsId = com.google.api.client.util.Preconditions.checkNotNull(locationsId, "Required parameter locationsId must be specified."); } @Override @@ -106573,31 +109457,33 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { return (Create) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the Location to create the Index in. Format: - * `projects/{project}/locations/{location}` - */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String projectsId; + + /** - /** Required. The resource name of the Location to create the Index in. Format: - `projects/{project}/locations/{location}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getProjectsId() { + return projectsId; } + public Create setProjectsId(java.lang.String projectsId) { + this.projectsId = projectsId; + return this; + } + + @com.google.api.client.util.Key + private java.lang.String locationsId; + /** - * Required. The resource name of the Location to create the Index 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; + public java.lang.String getLocationsId() { + return locationsId; + } + + public Create setLocationsId(java.lang.String locationsId) { + this.locationsId = locationsId; return this; } @@ -106607,3083 +109493,3507 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed. + * Creates an interaction and streams the response. * - * Create a request for the method "indexes.delete". + * Create a request for the method "interactions.createStream". * * 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. + * parameters, call the {@link CreateStream#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Index resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + * @param projectsId + * @param locationsId + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public CreateStream createStream(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) throws java.io.IOException { + CreateStream result = new CreateStream(projectsId, locationsId, content); initialize(result); return result; } - public class Delete extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}"; + public class CreateStream extends AiplatformRequest { - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + private static final String REST_PATH = "v1beta1/projects/{projectsId}/locations/{locationsId}/interactions:createStream"; /** - * Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been - * undeployed. + * Creates an interaction and streams the response. * - * Create a request for the method "indexes.delete". + * Create a request for the method "interactions.createStream". * * 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.

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

{@link + * CreateStream#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 Index resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + * @param projectsId + * @param locationsId + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} * @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/[^/]+/indexes/[^/]+$"); - } + protected CreateStream(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1InteractionStreamingEvent.class); + this.projectsId = com.google.api.client.util.Preconditions.checkNotNull(projectsId, "Required parameter projectsId must be specified."); + this.locationsId = com.google.api.client.util.Preconditions.checkNotNull(locationsId, "Required parameter locationsId must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public CreateStream set$Xgafv(java.lang.String $Xgafv) { + return (CreateStream) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public CreateStream setAccessToken(java.lang.String accessToken) { + return (CreateStream) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public CreateStream setAlt(java.lang.String alt) { + return (CreateStream) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public CreateStream setCallback(java.lang.String callback) { + return (CreateStream) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public CreateStream setFields(java.lang.String fields) { + return (CreateStream) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public CreateStream setKey(java.lang.String key) { + return (CreateStream) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public CreateStream setOauthToken(java.lang.String oauthToken) { + return (CreateStream) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public CreateStream setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateStream) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public CreateStream setQuotaUser(java.lang.String quotaUser) { + return (CreateStream) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public CreateStream setUploadType(java.lang.String uploadType) { + return (CreateStream) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public CreateStream setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateStream) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the Index resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String projectsId; + + /** - /** Required. The name of the Index resource to be deleted. Format: - `projects/{project}/locations/{location}/indexes/{index}` */ - public java.lang.String getName() { - return name; + public java.lang.String getProjectsId() { + return projectsId; } + public CreateStream setProjectsId(java.lang.String projectsId) { + this.projectsId = projectsId; + return this; + } + + @com.google.api.client.util.Key + private java.lang.String locationsId; + /** - * Required. The name of the Index resource to be deleted. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + */ - 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/[^/]+/indexes/[^/]+$"); - } - this.name = name; + public java.lang.String getLocationsId() { + return locationsId; + } + + public CreateStream setLocationsId(java.lang.String locationsId) { + this.locationsId = locationsId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public CreateStream set(String parameterName, Object value) { + return (CreateStream) super.set(parameterName, value); } } /** - * Gets an Index. + * Deletes an interaction. * - * Create a request for the method "indexes.get". + * Create a request for the method "interactions.delete". * * 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. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Index resource. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + * @param name Required. The name of the interaction to delete. Format: interactions/{interaction} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Get 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/[^/]+/indexes/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/interactions/[^/]+$"); /** - * Gets an Index. + * Deletes an interaction. * - * Create a request for the method "indexes.get". + * Create a request for the method "interactions.delete". * * 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.

+ * 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 Index resource. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + * @param name Required. The name of the interaction to delete. Format: interactions/{interaction} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index.class); + protected Delete(java.lang.String name) { + super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1DeleteInteractionResponse.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/[^/]+/indexes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/interactions/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Index resource. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + * Required. The name of the interaction to delete. Format: interactions/{interaction} */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Index resource. Format: - `projects/{project}/locations/{location}/indexes/{index}` + /** Required. The name of the interaction to delete. Format: interactions/{interaction} */ public java.lang.String getName() { return name; } /** - * Required. The name of the Index resource. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + * Required. The name of the interaction to delete. Format: interactions/{interaction} */ - public Get setName(java.lang.String name) { + 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/[^/]+/indexes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/interactions/[^/]+$"); } this.name = name; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the MetadataStores collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.MetadataStores.List request = aiplatform.metadataStores().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public MetadataStores metadataStores() { + return new MetadataStores(); + } + + /** + * The "metadataStores" collection of methods. + */ + public class MetadataStores { + /** - * Imports an Index from an external source (e.g., BigQuery). + * Initializes a MetadataStore, including allocation of resources. * - * Create a request for the method "indexes.import". + * Create a request for the method "metadataStores.create". * * 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 Create#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Index resource to import data to. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest} + * @param parent Required. The resource name of the Location where the MetadataStore should be created. Format: + * `projects/{project}/locations/{location}/` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataStore} * @return the request */ - public AiplatformImport aiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest content) throws java.io.IOException { - AiplatformImport result = new AiplatformImport(name, content); + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataStore content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class AiplatformImport extends AiplatformRequest { + public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:import"; + private static final String REST_PATH = "v1beta1/{+parent}/metadataStores"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Imports an Index from an external source (e.g., BigQuery). + * Initializes a MetadataStore, including allocation of resources. * - * Create a request for the method "indexes.import". + * Create a request for the method "metadataStores.create". * * 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 Create#execute()} method to invoke the remote operation. + *

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

* - * @param name Required. The name of the Index resource to import data to. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest} + * @param parent Required. The resource name of the Location where the MetadataStore should be created. Format: + * `projects/{project}/locations/{location}/` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataStore} * @since 1.13 */ - protected AiplatformImport(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportIndexRequest content) { + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataStore 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."); + 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/[^/]+/indexes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public AiplatformImport set$Xgafv(java.lang.String $Xgafv) { - return (AiplatformImport) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public AiplatformImport setAccessToken(java.lang.String accessToken) { - return (AiplatformImport) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public AiplatformImport setAlt(java.lang.String alt) { - return (AiplatformImport) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public AiplatformImport setCallback(java.lang.String callback) { - return (AiplatformImport) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public AiplatformImport setFields(java.lang.String fields) { - return (AiplatformImport) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public AiplatformImport setKey(java.lang.String key) { - return (AiplatformImport) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public AiplatformImport setOauthToken(java.lang.String oauthToken) { - return (AiplatformImport) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AiplatformImport) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public AiplatformImport setQuotaUser(java.lang.String quotaUser) { - return (AiplatformImport) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public AiplatformImport setUploadType(java.lang.String uploadType) { - return (AiplatformImport) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { - return (AiplatformImport) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Index resource to import data to. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + * Required. The resource name of the Location where the MetadataStore should be created. + * Format: `projects/{project}/locations/{location}/` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The name of the Index resource to import data to. Format: - `projects/{project}/locations/{location}/indexes/{index}` + /** Required. The resource name of the Location where the MetadataStore should be created. Format: + `projects/{project}/locations/{location}/` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. The name of the Index resource to import data to. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + * Required. The resource name of the Location where the MetadataStore should be created. + * Format: `projects/{project}/locations/{location}/` */ - public AiplatformImport setName(java.lang.String name) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; + return this; + } + + /** + * The {metadatastore} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` If not + * provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 + * characters in length. Valid characters are `/a-z-/`. Must be unique across all + * MetadataStores in the parent Location. (Otherwise the request will fail with + * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting + * MetadataStore.) + */ + @com.google.api.client.util.Key + private java.lang.String metadataStoreId; + + /** The {metadatastore} portion of the resource name with the format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}` If not provided, the + MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. + Valid characters are `/a-z-/`. Must be unique across all MetadataStores in the parent Location. + (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view + the preexisting MetadataStore.) + */ + public java.lang.String getMetadataStoreId() { + return metadataStoreId; + } + + /** + * The {metadatastore} portion of the resource name with the format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` If not + * provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 + * characters in length. Valid characters are `/a-z-/`. Must be unique across all + * MetadataStores in the parent Location. (Otherwise the request will fail with + * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting + * MetadataStore.) + */ + public Create setMetadataStoreId(java.lang.String metadataStoreId) { + this.metadataStoreId = metadataStoreId; return this; } @Override - public AiplatformImport set(String parameterName, Object value) { - return (AiplatformImport) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Lists Indexes in a Location. + * Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts). * - * Create a request for the method "indexes.list". + * Create a request for the method "metadataStores.delete". * * 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 Delete#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location from which to list the Indexes. Format: - * `projects/{project}/locations/{location}` + * @param name Required. The resource name of the MetadataStore to delete. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class List extends AiplatformRequest { + public class Delete extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/indexes"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * Lists Indexes in a Location. + * Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and + * Contexts). * - * Create a request for the method "indexes.list". + * Create a request for the method "metadataStores.delete". * * 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 Delete#execute()} method to invoke the remote operation. + *

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

* - * @param parent Required. The resource name of the Location from which to list the Indexes. Format: - * `projects/{project}/locations/{location}` + * @param name Required. The resource name of the MetadataStore to delete. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @since 1.13 */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListIndexesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Location from which to list the Indexes. Format: - * `projects/{project}/locations/{location}` + * Required. The resource name of the MetadataStore to delete. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of the Location from which to list the Indexes. Format: - `projects/{project}/locations/{location}` + /** Required. The resource name of the MetadataStore to delete. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The resource name of the Location from which to list the Indexes. Format: - * `projects/{project}/locations/{location}` + * Required. The resource name of the MetadataStore to delete. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ - public List setParent(java.lang.String parent) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); } - 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; - } - - /** 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 - * ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. Typically obtained via ListIndexesResponse.next_page_token of the - previous IndexService.ListIndexes call. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * The standard list page token. Typically obtained via - * ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + this.name = name; return this; } - /** Mask specifying which fields to read. */ + /** Deprecated: Field is no longer supported. */ @com.google.api.client.util.Key - private String readMask; + private java.lang.Boolean force; - /** Mask specifying which fields to read. + /** Deprecated: Field is no longer supported. */ - public String getReadMask() { - return readMask; + public java.lang.Boolean getForce() { + return force; } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; + /** Deprecated: Field is no longer supported. */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates an Index. + * Retrieves a specific MetadataStore. * - * Create a request for the method "indexes.patch". + * Create a request for the method "metadataStores.get". * * 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. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Output only. The resource name of the Index. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index} + * @param name Required. The resource name of the MetadataStore to retrieve. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Patch extends 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/[^/]+/indexes/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * Updates an Index. + * Retrieves a specific MetadataStore. * - * Create a request for the method "indexes.patch". + * Create a request for the method "metadataStores.get". * * 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.

+ * 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 Output only. The resource name of the Index. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index} + * @param name Required. The resource name of the MetadataStore to retrieve. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Index content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataStore.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/[^/]+/indexes/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** Output only. The resource name of the Index. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Output only. The resource name of the Index. - */ - public java.lang.String getName() { - return name; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** Output only. The resource name of the Index. */ - 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/[^/]+/indexes/[^/]+$"); - } - this.name = name; - return this; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. + * Required. The resource name of the MetadataStore to retrieve. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String name; - /** The update mask applies to the resource. For the `FieldMask` definition, see - google.protobuf.FieldMask. + /** Required. The resource name of the MetadataStore to retrieve. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getName() { + return name; } /** - * The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. + * Required. The resource name of the MetadataStore to retrieve. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + 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/[^/]+/metadataStores/[^/]+$"); + } + this.name = name; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Remove Datapoints from an Index. + * Lists MetadataStores for a Location. * - * Create a request for the method "indexes.removeDatapoints". + * Create a request for the method "metadataStores.list". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link RemoveDatapoints#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param index Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest} + * @param parent Required. The Location whose MetadataStores should be listed. Format: + * `projects/{project}/locations/{location}` * @return the request */ - public RemoveDatapoints removeDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest content) throws java.io.IOException { - RemoveDatapoints result = new RemoveDatapoints(index, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class RemoveDatapoints extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+index}:removeDatapoints"; + private static final String REST_PATH = "v1beta1/{+parent}/metadataStores"; - private final java.util.regex.Pattern INDEX_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Remove Datapoints from an Index. + * Lists MetadataStores for a Location. * - * Create a request for the method "indexes.removeDatapoints". + * Create a request for the method "metadataStores.list". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link RemoveDatapoints#execute()} method to invoke the remote - * operation.

{@link RemoveDatapoints#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 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 index Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest} + * @param parent Required. The Location whose MetadataStores should be listed. Format: + * `projects/{project}/locations/{location}` * @since 1.13 */ - protected RemoveDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveDatapointsResponse.class); - this.index = com.google.api.client.util.Preconditions.checkNotNull(index, "Required parameter index must be specified."); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListMetadataStoresResponse.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(INDEX_PATTERN.matcher(index).matches(), - "Parameter index must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public RemoveDatapoints set$Xgafv(java.lang.String $Xgafv) { - return (RemoveDatapoints) super.set$Xgafv($Xgafv); + 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 RemoveDatapoints setAccessToken(java.lang.String accessToken) { - return (RemoveDatapoints) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public RemoveDatapoints setAlt(java.lang.String alt) { - return (RemoveDatapoints) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public RemoveDatapoints setCallback(java.lang.String callback) { - return (RemoveDatapoints) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public RemoveDatapoints setFields(java.lang.String fields) { - return (RemoveDatapoints) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public RemoveDatapoints setKey(java.lang.String key) { - return (RemoveDatapoints) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public RemoveDatapoints setOauthToken(java.lang.String oauthToken) { - return (RemoveDatapoints) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public RemoveDatapoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveDatapoints) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public RemoveDatapoints setQuotaUser(java.lang.String quotaUser) { - return (RemoveDatapoints) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public RemoveDatapoints setUploadType(java.lang.String uploadType) { - return (RemoveDatapoints) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public RemoveDatapoints setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveDatapoints) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + * Required. The Location whose MetadataStores should be listed. Format: + * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String index; + private java.lang.String parent; - /** Required. The name of the Index resource to be updated. Format: - `projects/{project}/locations/{location}/indexes/{index}` + /** Required. The Location whose MetadataStores should be listed. Format: + `projects/{project}/locations/{location}` */ - public java.lang.String getIndex() { - return index; + public java.lang.String getParent() { + return parent; } /** - * Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` + * Required. The Location whose MetadataStores should be listed. Format: + * `projects/{project}/locations/{location}` */ - public RemoveDatapoints setIndex(java.lang.String index) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), - "Parameter index must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.index = index; + this.parent = parent; + return this; + } + + /** + * The maximum number of Metadata Stores to return. The service may return fewer. Must be + * in range 1-100, inclusive. Defaults to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of Metadata Stores to return. The service may return fewer. Must be in range + 1-100, inclusive. Defaults to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of Metadata Stores to return. The service may return fewer. Must be + * in range 1-100, inclusive. Defaults to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous MetadataService.ListMetadataStores call. Provide + * this to retrieve the subsequent page. When paginating, all other provided parameters + * must match the call that provided the page token. (Otherwise the request will fail with + * INVALID_ARGUMENT error.) + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous MetadataService.ListMetadataStores call. Provide this to + retrieve the subsequent page. When paginating, all other provided parameters must match the call + that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.) + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous MetadataService.ListMetadataStores call. Provide + * this to retrieve the subsequent page. When paginating, all other provided parameters + * must match the call that provided the page token. (Otherwise the request will fail with + * INVALID_ARGUMENT error.) + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public RemoveDatapoints set(String parameterName, Object value) { - return (RemoveDatapoints) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + /** - * Add/update Datapoints into an Index. - * - * Create a request for the method "indexes.upsertDatapoints". + * 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 UpsertDatapoints#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 index Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest} - * @return the request + * @return the resource collection */ - public UpsertDatapoints upsertDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest content) throws java.io.IOException { - UpsertDatapoints result = new UpsertDatapoints(index, content); - initialize(result); - return result; + public Artifacts artifacts() { + return new Artifacts(); } - public class UpsertDatapoints extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+index}:upsertDatapoints"; - - private final java.util.regex.Pattern INDEX_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + /** + * The "artifacts" collection of methods. + */ + public class Artifacts { /** - * Add/update Datapoints into an Index. + * Creates an Artifact associated with a MetadataStore. * - * Create a request for the method "indexes.upsertDatapoints". + * Create a request for the method "artifacts.create". * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link UpsertDatapoints#execute()} method to invoke the remote - * operation.

{@link UpsertDatapoints#initialize(com.google.api.client.googleapis.services.Abs - * tractGoogleClientRequest)} 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 Create#execute()} method to invoke the remote operation. * - * @param index Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest} - * @since 1.13 + * @param parent Required. The resource name of the MetadataStore where the Artifact should be created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact} + * @return the request */ - protected UpsertDatapoints(java.lang.String index, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpsertDatapointsResponse.class); - this.index = com.google.api.client.util.Preconditions.checkNotNull(index, "Required parameter index must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), - "Parameter index must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); - } + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; } - @Override - public UpsertDatapoints set$Xgafv(java.lang.String $Xgafv) { - return (UpsertDatapoints) super.set$Xgafv($Xgafv); - } + public class Create extends AiplatformRequest { - @Override - public UpsertDatapoints setAccessToken(java.lang.String accessToken) { - return (UpsertDatapoints) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+parent}/artifacts"; - @Override - public UpsertDatapoints setAlt(java.lang.String alt) { - return (UpsertDatapoints) super.setAlt(alt); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); - @Override - public UpsertDatapoints setCallback(java.lang.String callback) { - return (UpsertDatapoints) super.setCallback(callback); - } + /** + * Creates an Artifact associated with a MetadataStore. + * + * Create a request for the method "artifacts.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 MetadataStore where the Artifact should be created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact.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/[^/]+/metadataStores/[^/]+$"); + } + } - @Override - public UpsertDatapoints setFields(java.lang.String fields) { - return (UpsertDatapoints) super.setFields(fields); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public UpsertDatapoints setKey(java.lang.String key) { - return (UpsertDatapoints) super.setKey(key); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public UpsertDatapoints setOauthToken(java.lang.String oauthToken) { - return (UpsertDatapoints) super.setOauthToken(oauthToken); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public UpsertDatapoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpsertDatapoints) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public UpsertDatapoints setQuotaUser(java.lang.String quotaUser) { - return (UpsertDatapoints) super.setQuotaUser(quotaUser); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public UpsertDatapoints setUploadType(java.lang.String uploadType) { - return (UpsertDatapoints) super.setUploadType(uploadType); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public UpsertDatapoints setUploadProtocol(java.lang.String uploadProtocol) { - return (UpsertDatapoints) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - */ - @com.google.api.client.util.Key - private java.lang.String index; + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the Index resource to be updated. Format: - `projects/{project}/locations/{location}/indexes/{index}` + @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 MetadataStore where the Artifact should be + * created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the MetadataStore where the Artifact should be created. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the MetadataStore where the Artifact should be + * created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + */ + 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/[^/]+/metadataStores/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * The {artifact} portion of the resource name with the format: `projects/{project}/loca + * tions/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` If not + * provided, the Artifact's ID will be a UUID generated by the service. Must be 4-128 + * characters in length. Valid characters are `/a-z-/`. Must be unique across all + * Artifacts in the parent MetadataStore. (Otherwise the request will fail with + * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting + * Artifact.) + */ + @com.google.api.client.util.Key + private java.lang.String artifactId; + + /** The {artifact} portion of the resource name with the format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` If + not provided, the Artifact's ID will be a UUID generated by the service. Must be 4-128 characters + in length. Valid characters are `/a-z-/`. Must be unique across all Artifacts in the parent + MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the + caller can't view the preexisting Artifact.) + */ + public java.lang.String getArtifactId() { + return artifactId; + } + + /** + * The {artifact} portion of the resource name with the format: `projects/{project}/loca + * tions/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` If not + * provided, the Artifact's ID will be a UUID generated by the service. Must be 4-128 + * characters in length. Valid characters are `/a-z-/`. Must be unique across all + * Artifacts in the parent MetadataStore. (Otherwise the request will fail with + * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting + * Artifact.) + */ + public Create setArtifactId(java.lang.String artifactId) { + this.artifactId = artifactId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an Artifact. + * + * Create a request for the method "artifacts.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 Artifact to delete. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifac + * t}` + * @return the request */ - public java.lang.String getIndex() { - return index; + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - /** - * Required. The name of the Index resource to be updated. Format: - * `projects/{project}/locations/{location}/indexes/{index}` - */ - public UpsertDatapoints setIndex(java.lang.String index) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INDEX_PATTERN.matcher(index).matches(), - "Parameter index must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + + /** + * Deletes an Artifact. + * + * Create a request for the method "artifacts.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 Artifact to delete. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifac + * t}` + * @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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + } + } + + @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 Artifact to delete. Format: `projects/{project}/lo + * cations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the Artifact to delete. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the Artifact to delete. Format: `projects/{project}/lo + * cations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + */ + 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + } + this.name = name; + return this; } - this.index = index; - return this; - } - @Override - public UpsertDatapoints set(String parameterName, Object value) { - return (UpsertDatapoints) super.set(parameterName, value); - } - } + /** + * Optional. The etag of the Artifact to delete. If this is provided, it must match the + * server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION. + */ + @com.google.api.client.util.Key + private java.lang.String etag; - /** - * 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(); - } + /** Optional. The etag of the Artifact to delete. If this is provided, it must match the server's etag. + Otherwise, the request will fail with a FAILED_PRECONDITION. + */ + public java.lang.String getEtag() { + return etag; + } - /** - * The "operations" collection of methods. - */ - public class Operations { + /** + * Optional. The etag of the Artifact to delete. If this is provided, it must match the + * server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * 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`. + * Retrieves a specific Artifact. * - * Create a request for the method "operations.cancel". + * Create a request for the method "artifacts.get". * * 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. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be cancelled. + * @param name Required. The resource name of the Artifact to retrieve. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifac + * t}` * @return the request */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Cancel extends AiplatformRequest { + public class Get extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); /** - * 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`. + * Retrieves a specific Artifact. * - * Create a request for the method "operations.cancel". + * Create a request for the method "artifacts.get". * * 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.

+ * 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 to be cancelled. + * @param name Required. The resource name of the Artifact to retrieve. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifac + * t}` * @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 Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact.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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** The name of the operation resource to be cancelled. */ + @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 Artifact to retrieve. Format: `projects/{project}/ + * locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to be cancelled. + /** Required. The resource name of the Artifact to retrieve. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { + /** + * Required. The resource name of the Artifact to retrieve. Format: `projects/{project}/ + * locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + */ + 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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); } this.name = name; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) 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`. + * Lists Artifacts in the MetadataStore. * - * Create a request for the method "operations.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be deleted. + * @param parent Required. The MetadataStore whose Artifacts should be listed. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Delete extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+parent}/artifacts"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * 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`. + * Lists Artifacts in the MetadataStore. * - * Create a request for the method "operations.delete". + * 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 Delete#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param name The name of the operation resource to be deleted. + * @param parent Required. The MetadataStore whose Artifacts should be listed. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @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."); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListArtifactsResponse.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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** The name of the operation resource to be deleted. */ + @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 MetadataStore whose Artifacts should be listed. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation resource to be deleted. + /** Required. The MetadataStore whose Artifacts should be listed. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { + /** + * Required. The MetadataStore whose Artifacts should be listed. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + */ + 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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); } - this.name = name; + this.parent = parent; + return this; + } + + /** + * Filter specifying the boolean condition for the Artifacts to satisfy in order to be + * part of the result set. The syntax to define filter query is based on + * https://google.aip.dev/160. The supported set of filters include the following: * + * **Attribute filtering**: For example: `display_name = "test"`. Supported fields + * include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and + * `update_time`. Time fields, such as `create_time` and `update_time`, require values + * specified in RFC-3339 format. For example: `create_time = + * "2020-11-19T11:30:00-04:00"` * **Metadata field**: To filter on metadata fields use + * traversal operation as follows: `metadata..`. For example: + * `metadata.field_1.number_value = 10.0` In case the field name contains special + * characters (such as colon), one can embed it inside double quote. For example: + * `metadata."field:1".number_value = 10.0` * **Context based filtering**: To filter + * Artifacts based on the contexts to which they belong, use the function operator with + * the full resource name `in_context()`. For example: + * `in_context("projects//locations//metadataStores//contexts/")` Each of the above + * supported filter types can be combined together using logical operators (`AND` & + * `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = + * "test" AND metadata.field1.bool_value = true`. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the + result set. The syntax to define filter query is based on https://google.aip.dev/160. The supported + set of filters include the following: * **Attribute filtering**: For example: `display_name = + "test"`. Supported fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, + `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require + values specified in RFC-3339 format. For example: `create_time = "2020-11-19T11:30:00-04:00"` * + **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. + For example: `metadata.field_1.number_value = 10.0` In case the field name contains special + characters (such as colon), one can embed it inside double quote. For example: + `metadata."field:1".number_value = 10.0` * **Context based filtering**: To filter Artifacts based + on the contexts to which they belong, use the function operator with the full resource name + `in_context()`. For example: `in_context("projects//locations//metadataStores//contexts/")` Each of + the above supported filter types can be combined together using logical operators (`AND` & `OR`). + Maximum nested expression depth allowed is 5. For example: `display_name = "test" AND + metadata.field1.bool_value = true`. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Filter specifying the boolean condition for the Artifacts to satisfy in order to be + * part of the result set. The syntax to define filter query is based on + * https://google.aip.dev/160. The supported set of filters include the following: * + * **Attribute filtering**: For example: `display_name = "test"`. Supported fields + * include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and + * `update_time`. Time fields, such as `create_time` and `update_time`, require values + * specified in RFC-3339 format. For example: `create_time = + * "2020-11-19T11:30:00-04:00"` * **Metadata field**: To filter on metadata fields use + * traversal operation as follows: `metadata..`. For example: + * `metadata.field_1.number_value = 10.0` In case the field name contains special + * characters (such as colon), one can embed it inside double quote. For example: + * `metadata."field:1".number_value = 10.0` * **Context based filtering**: To filter + * Artifacts based on the contexts to which they belong, use the function operator with + * the full resource name `in_context()`. For example: + * `in_context("projects//locations//metadataStores//contexts/")` Each of the above + * supported filter types can be combined together using logical operators (`AND` & + * `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = + * "test" AND metadata.field1.bool_value = true`. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * How the list of messages is ordered. Specify the values to order by and an ordering + * operation. The default sorting order is ascending. To specify descending order for a + * field, users append a " desc" suffix; for example: "foo desc, bar". Subfields are + * specified with a `.` character, such as foo.bar. see + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** How the list of messages is ordered. Specify the values to order by and an ordering operation. The + default sorting order is ascending. To specify descending order for a field, users append a " desc" + suffix; for example: "foo desc, bar". Subfields are specified with a `.` character, such as + foo.bar. see https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * How the list of messages is ordered. Specify the values to order by and an ordering + * operation. The default sorting order is ascending. To specify descending order for a + * field, users append a " desc" suffix; for example: "foo desc, bar". Subfields are + * specified with a `.` character, such as foo.bar. see + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * The maximum number of Artifacts to return. The service may return fewer. Must be in + * range 1-100, inclusive. Defaults to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of Artifacts to return. The service may return fewer. Must be in range 1-100, + inclusive. Defaults to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of Artifacts to return. The service may return fewer. Must be in + * range 1-100, inclusive. Defaults to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous MetadataService.ListArtifacts call. Provide + * this to retrieve the subsequent page. When paginating, all other provided parameters + * must match the call that provided the page token. (Otherwise the request will fail + * with INVALID_ARGUMENT error.) + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous MetadataService.ListArtifacts call. Provide this to retrieve + the subsequent page. When paginating, all other provided parameters must match the call that + provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.) + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous MetadataService.ListArtifacts call. Provide + * this to retrieve the subsequent page. When paginating, all other provided parameters + * must match the call that provided the page token. (Otherwise the request will fail + * with INVALID_ARGUMENT error.) + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * 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. + * Updates a stored Artifact. * - * Create a request for the method "operations.get". + * Create a request for the method "artifacts.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. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource. + * @param name Output only. The resource name of the Artifact. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Get extends AiplatformRequest { + 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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); /** - * 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. + * Updates a stored Artifact. * - * Create a request for the method "operations.get". + * Create a request for the method "artifacts.patch". * * 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.

+ * 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. + * @param name Output only. The resource name of the Artifact. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact} * @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); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact.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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** Output only. The resource name of the Artifact. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Output only. The resource name of the Artifact. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** Output only. The resource name of the Artifact. */ + 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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); } this.name = name; return this; } + /** If set to true, and the Artifact is not found, a new Artifact is created. */ + @com.google.api.client.util.Key + private java.lang.Boolean allowMissing; + + /** If set to true, and the Artifact is not found, a new Artifact is created. + */ + public java.lang.Boolean getAllowMissing() { + return allowMissing; + } + + /** If set to true, and the Artifact is not found, a new Artifact is created. */ + public Patch setAllowMissing(java.lang.Boolean allowMissing) { + this.allowMissing = allowMissing; + return this; + } + + /** Optional. A FieldMask indicating which fields should be updated. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. A FieldMask indicating which fields should be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. A FieldMask indicating which fields should be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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`. + * Purges Artifacts. * - * Create a request for the method "operations.list". + * Create a request for the method "artifacts.purge". * * 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 Purge#execute()} method to invoke the remote operation. * - * @param name The name of the operation's parent resource. + * @param parent Required. The metadata store to purge Artifacts from. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeArtifactsRequest} * @return the request */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); + public Purge purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeArtifactsRequest content) throws java.io.IOException { + Purge result = new Purge(parent, content); initialize(result); return result; } - public class List extends AiplatformRequest { + public class Purge extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}/operations"; + private static final String REST_PATH = "v1beta1/{+parent}/artifacts:purge"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Purges Artifacts. * - * Create a request for the method "operations.list". + * Create a request for the method "artifacts.purge". * * 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 Purge#execute()} method to invoke the remote operation. + *

{@link + * Purge#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 metadata store to purge Artifacts from. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeArtifactsRequest} * @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 Purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeArtifactsRequest 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Purge set$Xgafv(java.lang.String $Xgafv) { + return (Purge) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Purge setAccessToken(java.lang.String accessToken) { + return (Purge) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Purge setAlt(java.lang.String alt) { + return (Purge) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Purge setCallback(java.lang.String callback) { + return (Purge) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Purge setFields(java.lang.String fields) { + return (Purge) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Purge setKey(java.lang.String key) { + return (Purge) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Purge setOauthToken(java.lang.String oauthToken) { + return (Purge) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Purge setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Purge) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Purge setQuotaUser(java.lang.String quotaUser) { + return (Purge) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Purge setUploadType(java.lang.String uploadType) { + return (Purge) 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/[^/]+/indexes/[^/]+$"); - } - 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; + public Purge setUploadProtocol(java.lang.String uploadProtocol) { + return (Purge) 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. + * Required. The metadata store to purge Artifacts from. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String parent; - /** 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. + /** Required. The metadata store to purge Artifacts from. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getParent() { + return parent; } /** - * 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. + * Required. The metadata store to purge Artifacts from. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Purge 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/[^/]+/metadataStores/[^/]+$"); + } + this.parent = parent; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Purge set(String parameterName, Object value) { + return (Purge) 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. + * Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event + * edges and returned as a LineageSubgraph. * - * Create a request for the method "operations.wait". + * Create a request for the method "artifacts.queryArtifactLineageSubgraph". * * 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 QueryArtifactLineageSubgraph#execute()} method to invoke the remote + * operation. * - * @param name The name of the operation resource to wait on. + * @param artifact Required. The resource name of the Artifact whose Lineage needs to be retrieved as a + * LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadata + * store}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if the number + * of Artifacts, the number of Executions, or the number of Events that would be returned for + * the Context exceeds 1000. * @return the request */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); + public QueryArtifactLineageSubgraph queryArtifactLineageSubgraph(java.lang.String artifact) throws java.io.IOException { + QueryArtifactLineageSubgraph result = new QueryArtifactLineageSubgraph(artifact); initialize(result); return result; } - public class Wait extends AiplatformRequest { + public class QueryArtifactLineageSubgraph extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:wait"; + private static final String REST_PATH = "v1beta1/{+artifact}:queryArtifactLineageSubgraph"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern ARTIFACT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); /** - * 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. + * Retrieves lineage of an Artifact represented through Artifacts and Executions connected by + * Event edges and returned as a LineageSubgraph. * - * Create a request for the method "operations.wait". + * Create a request for the method "artifacts.queryArtifactLineageSubgraph". * * 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 QueryArtifactLineageSubgraph#execute()} method to invoke + * the remote operation.

{@link QueryArtifactLineageSubgraph#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 artifact Required. The resource name of the Artifact whose Lineage needs to be retrieved as a + * LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadata + * store}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if the number + * of Artifacts, the number of Executions, or the number of Events that would be returned for + * the Context exceeds 1000. * @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 QueryArtifactLineageSubgraph(java.lang.String artifact) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1LineageSubgraph.class); + this.artifact = com.google.api.client.util.Preconditions.checkNotNull(artifact, "Required parameter artifact 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/[^/]+/indexes/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(ARTIFACT_PATTERN.matcher(artifact).matches(), + "Parameter artifact must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); } } @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 QueryArtifactLineageSubgraph set$Xgafv(java.lang.String $Xgafv) { + return (QueryArtifactLineageSubgraph) super.set$Xgafv($Xgafv); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public QueryArtifactLineageSubgraph setAccessToken(java.lang.String accessToken) { + return (QueryArtifactLineageSubgraph) super.setAccessToken(accessToken); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public QueryArtifactLineageSubgraph setAlt(java.lang.String alt) { + return (QueryArtifactLineageSubgraph) super.setAlt(alt); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public QueryArtifactLineageSubgraph setCallback(java.lang.String callback) { + return (QueryArtifactLineageSubgraph) super.setCallback(callback); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public QueryArtifactLineageSubgraph setFields(java.lang.String fields) { + return (QueryArtifactLineageSubgraph) super.setFields(fields); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public QueryArtifactLineageSubgraph setKey(java.lang.String key) { + return (QueryArtifactLineageSubgraph) super.setKey(key); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public QueryArtifactLineageSubgraph setOauthToken(java.lang.String oauthToken) { + return (QueryArtifactLineageSubgraph) super.setOauthToken(oauthToken); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public QueryArtifactLineageSubgraph setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryArtifactLineageSubgraph) super.setPrettyPrint(prettyPrint); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public QueryArtifactLineageSubgraph setQuotaUser(java.lang.String quotaUser) { + return (QueryArtifactLineageSubgraph) super.setQuotaUser(quotaUser); } - /** The name of the operation resource to wait on. */ + @Override + public QueryArtifactLineageSubgraph setUploadType(java.lang.String uploadType) { + return (QueryArtifactLineageSubgraph) super.setUploadType(uploadType); + } + + @Override + public QueryArtifactLineageSubgraph setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryArtifactLineageSubgraph) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a + * LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{met + * adatastore}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if + * the number of Artifacts, the number of Executions, or the number of Events that would + * be returned for the Context exceeds 1000. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String artifact; + + /** Required. The resource name of the Artifact whose Lineage needs to be retrieved as a + LineageSubgraph. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` The + request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or + the number of Events that would be returned for the Context exceeds 1000. + */ + public java.lang.String getArtifact() { + return artifact; + } + + /** + * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a + * LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{met + * adatastore}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if + * the number of Artifacts, the number of Executions, or the number of Events that would + * be returned for the Context exceeds 1000. + */ + public QueryArtifactLineageSubgraph setArtifact(java.lang.String artifact) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ARTIFACT_PATTERN.matcher(artifact).matches(), + "Parameter artifact must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + } + this.artifact = artifact; + return this; + } + + /** + * Filter specifying the boolean condition for the Artifacts to satisfy in order to be + * part of the Lineage Subgraph. The syntax to define filter query is based on + * https://google.aip.dev/160. The supported set of filters include the following: * + * **Attribute filtering**: For example: `display_name = "test"` Supported fields + * include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and + * `update_time`. Time fields, such as `create_time` and `update_time`, require values + * specified in RFC-3339 format. For example: `create_time = + * "2020-11-19T11:30:00-04:00"` * **Metadata field**: To filter on metadata fields use + * traversal operation as follows: `metadata..`. For example: + * `metadata.field_1.number_value = 10.0` In case the field name contains special + * characters (such as colon), one can embed it inside double quote. For example: + * `metadata."field:1".number_value = 10.0` Each of the above supported filter types can + * be combined together using logical operators (`AND` & `OR`). Maximum nested + * expression depth allowed is 5. For example: `display_name = "test" AND + * metadata.field1.bool_value = true`. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** The name of the operation resource to wait on. + /** Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the + Lineage Subgraph. The syntax to define filter query is based on https://google.aip.dev/160. The + supported set of filters include the following: * **Attribute filtering**: For example: + `display_name = "test"` Supported fields include: `name`, `display_name`, `uri`, `state`, + `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and + `update_time`, require values specified in RFC-3339 format. For example: `create_time = + "2020-11-19T11:30:00-04:00"` * **Metadata field**: To filter on metadata fields use traversal + operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In case the + field name contains special characters (such as colon), one can embed it inside double quote. For + example: `metadata."field:1".number_value = 10.0` Each of the above supported filter types can be + combined together using logical operators (`AND` & `OR`). Maximum nested expression depth allowed + is 5. For example: `display_name = "test" AND metadata.field1.bool_value = true`. */ - public java.lang.String getName() { - return name; + public java.lang.String getFilter() { + return filter; } - /** 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/[^/]+/indexes/[^/]+/operations/[^/]+$"); - } - this.name = name; + /** + * Filter specifying the boolean condition for the Artifacts to satisfy in order to be + * part of the Lineage Subgraph. The syntax to define filter query is based on + * https://google.aip.dev/160. The supported set of filters include the following: * + * **Attribute filtering**: For example: `display_name = "test"` Supported fields + * include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and + * `update_time`. Time fields, such as `create_time` and `update_time`, require values + * specified in RFC-3339 format. For example: `create_time = + * "2020-11-19T11:30:00-04:00"` * **Metadata field**: To filter on metadata fields use + * traversal operation as follows: `metadata..`. For example: + * `metadata.field_1.number_value = 10.0` In case the field name contains special + * characters (such as colon), one can embed it inside double quote. For example: + * `metadata."field:1".number_value = 10.0` Each of the above supported filter types can + * be combined together using logical operators (`AND` & `OR`). Maximum nested + * expression depth allowed is 5. For example: `display_name = "test" AND + * metadata.field1.bool_value = true`. + */ + public QueryArtifactLineageSubgraph setFilter(java.lang.String filter) { + this.filter = filter; 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. + * Specifies the size of the lineage graph in terms of number of hops from the specified + * artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only input artifact + * is returned. No value: Transitive closure is performed to return the complete graph. */ @com.google.api.client.util.Key - private String timeout; + private java.lang.Integer maxHops; - /** 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. + /** Specifies the size of the lineage graph in terms of number of hops from the specified artifact. + Negative Value: INVALID_ARGUMENT error is returned 0: Only input artifact is returned. No value: + Transitive closure is performed to return the complete graph. */ - public String getTimeout() { - return timeout; + public java.lang.Integer getMaxHops() { + return maxHops; } /** - * 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. + * Specifies the size of the lineage graph in terms of number of hops from the specified + * artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only input artifact + * is returned. No value: Transitive closure is performed to return the complete graph. */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; + public QueryArtifactLineageSubgraph setMaxHops(java.lang.Integer maxHops) { + this.maxHops = maxHops; return this; } @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + public QueryArtifactLineageSubgraph set(String parameterName, Object value) { + return (QueryArtifactLineageSubgraph) super.set(parameterName, value); } } - } - } - /** - * An accessor for creating requests from the Interactions collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.Interactions.List request = aiplatform.interactions().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Interactions interactions() { - return new Interactions(); - } - - /** - * The "interactions" collection of methods. - */ - public class Interactions { - - /** - * Creates an interaction. - * - * Create a request for the method "interactions.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 projectsId - * @param locationsId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} - * @return the request - */ - public Create create(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) throws java.io.IOException { - Create result = new Create(projectsId, locationsId, content); - initialize(result); - return result; - } - - public class Create extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/projects/{projectsId}/locations/{locationsId}/interactions:create"; - /** - * Creates an interaction. - * - * Create a request for the method "interactions.create". + * An accessor for creating requests from the Operations collection. * - * 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.

+ *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+           * 
* - * @param projectsId - * @param locationsId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} - * @since 1.13 + * @return the resource collection */ - protected Create(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1Interaction.class); - this.projectsId = com.google.api.client.util.Preconditions.checkNotNull(projectsId, "Required parameter projectsId must be specified."); - this.locationsId = com.google.api.client.util.Preconditions.checkNotNull(locationsId, "Required parameter locationsId must be specified."); - } - - @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); + public Operations operations() { + return new Operations(); } - @com.google.api.client.util.Key - private java.lang.String projectsId; - /** - + * The "operations" collection of methods. */ - public java.lang.String getProjectsId() { - return projectsId; - } + public class Operations { - public Create setProjectsId(java.lang.String projectsId) { - this.projectsId = projectsId; - 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; + } - @com.google.api.client.util.Key - private java.lang.String locationsId; + public class Cancel extends AiplatformRequest { - /** + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - */ - public java.lang.String getLocationsId() { - return locationsId; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$"); - public Create setLocationsId(java.lang.String locationsId) { - this.locationsId = locationsId; - 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 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$"); + } + } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Creates an interaction and streams the response. - * - * Create a request for the method "interactions.createStream". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link CreateStream#execute()} method to invoke the remote operation. - * - * @param projectsId - * @param locationsId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} - * @return the request - */ - public CreateStream createStream(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) throws java.io.IOException { - CreateStream result = new CreateStream(projectsId, locationsId, content); - initialize(result); - return result; - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - public class CreateStream extends AiplatformRequest { + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - private static final String REST_PATH = "v1beta1/projects/{projectsId}/locations/{locationsId}/interactions:createStream"; + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - /** - * Creates an interaction and streams the response. - * - * Create a request for the method "interactions.createStream". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link CreateStream#execute()} method to invoke the remote - * operation.

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

- * - * @param projectsId - * @param locationsId - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest} - * @since 1.13 - */ - protected CreateStream(java.lang.String projectsId, java.lang.String locationsId, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1CreateInteractionRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1InteractionStreamingEvent.class); - this.projectsId = com.google.api.client.util.Preconditions.checkNotNull(projectsId, "Required parameter projectsId must be specified."); - this.locationsId = com.google.api.client.util.Preconditions.checkNotNull(locationsId, "Required parameter locationsId must be specified."); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public CreateStream set$Xgafv(java.lang.String $Xgafv) { - return (CreateStream) super.set$Xgafv($Xgafv); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public CreateStream setAccessToken(java.lang.String accessToken) { - return (CreateStream) super.setAccessToken(accessToken); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public CreateStream setAlt(java.lang.String alt) { - return (CreateStream) super.setAlt(alt); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - @Override - public CreateStream setCallback(java.lang.String callback) { - return (CreateStream) super.setCallback(callback); - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - @Override - public CreateStream setFields(java.lang.String fields) { - return (CreateStream) super.setFields(fields); - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - @Override - public CreateStream setKey(java.lang.String key) { - return (CreateStream) super.setKey(key); - } + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - @Override - public CreateStream setOauthToken(java.lang.String oauthToken) { - return (CreateStream) super.setOauthToken(oauthToken); - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - @Override - public CreateStream setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateStream) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public CreateStream setQuotaUser(java.lang.String quotaUser) { - return (CreateStream) super.setQuotaUser(quotaUser); - } + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } - @Override - public CreateStream setUploadType(java.lang.String uploadType) { - return (CreateStream) super.setUploadType(uploadType); - } + /** 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public CreateStream setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateStream) super.setUploadProtocol(uploadProtocol); - } + @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; + } - @com.google.api.client.util.Key - private java.lang.String projectsId; + public class Delete extends AiplatformRequest { - /** + private static final String REST_PATH = "v1beta1/{+name}"; - */ - public java.lang.String getProjectsId() { - return projectsId; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$"); - public CreateStream setProjectsId(java.lang.String projectsId) { - this.projectsId = projectsId; - 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$"); + } + } - @com.google.api.client.util.Key - private java.lang.String locationsId; + @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); + } - */ - public java.lang.String getLocationsId() { - return locationsId; - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - public CreateStream setLocationsId(java.lang.String locationsId) { - this.locationsId = locationsId; - return this; - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public CreateStream set(String parameterName, Object value) { - return (CreateStream) super.set(parameterName, value); - } - } - /** - * Deletes an interaction. - * - * Create a request for the method "interactions.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 interaction to delete. Format: interactions/{interaction} - * @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 Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - public class Delete extends AiplatformRequest { + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/interactions/[^/]+$"); + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** - * Deletes an interaction. - * - * Create a request for the method "interactions.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 interaction to delete. Format: interactions/{interaction} - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Aiplatform.this, "DELETE", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GenaiVertexV1beta1DeleteInteractionResponse.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/[^/]+/interactions/[^/]+$"); - } - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + /** 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @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; + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + public class Get extends AiplatformRequest { - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$"); - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** + * 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$"); + } + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** - * Required. The name of the interaction to delete. Format: interactions/{interaction} - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Required. The name of the interaction to delete. Format: interactions/{interaction} - */ - public java.lang.String getName() { - return name; - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** - * Required. The name of the interaction to delete. Format: interactions/{interaction} - */ - 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/[^/]+/interactions/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - } - /** - * An accessor for creating requests from the MetadataStores collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.MetadataStores.List request = aiplatform.metadataStores().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public MetadataStores metadataStores() { - return new MetadataStores(); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** - * The "metadataStores" collection of methods. - */ - public class MetadataStores { + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * Initializes a MetadataStore, including allocation of resources. - * - * Create a request for the method "metadataStores.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 where the MetadataStore should be created. Format: - * `projects/{project}/locations/{location}/` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataStore} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataStore content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - public class Create extends AiplatformRequest { + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - private static final String REST_PATH = "v1beta1/{+parent}/metadataStores"; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * Initializes a MetadataStore, including allocation of resources. - * - * Create a request for the method "metadataStores.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 where the MetadataStore should be created. Format: - * `projects/{project}/locations/{location}/` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataStore} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataStore 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 Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + /** 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @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; + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + public class List extends AiplatformRequest { - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + private static final String REST_PATH = "v1beta1/{+name}/operations"; - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + /** + * 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + } + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Required. The resource name of the Location where the MetadataStore should be created. - * Format: `projects/{project}/locations/{location}/` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** Required. The resource name of the Location where the MetadataStore should be created. Format: - `projects/{project}/locations/{location}/` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** - * Required. The resource name of the Location where the MetadataStore should 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; - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** - * The {metadatastore} portion of the resource name with the format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` If not - * provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 - * characters in length. Valid characters are `/a-z-/`. Must be unique across all - * MetadataStores in the parent Location. (Otherwise the request will fail with - * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting - * MetadataStore.) - */ - @com.google.api.client.util.Key - private java.lang.String metadataStoreId; + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** The {metadatastore} portion of the resource name with the format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}` If not provided, the - MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. - Valid characters are `/a-z-/`. Must be unique across all MetadataStores in the parent Location. - (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view - the preexisting MetadataStore.) - */ - public java.lang.String getMetadataStoreId() { - return metadataStoreId; - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** - * The {metadatastore} portion of the resource name with the format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` If not - * provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 - * characters in length. Valid characters are `/a-z-/`. Must be unique across all - * MetadataStores in the parent Location. (Otherwise the request will fail with - * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting - * MetadataStore.) - */ - public Create setMetadataStoreId(java.lang.String metadataStoreId) { - this.metadataStoreId = metadataStoreId; - return this; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts). - * - * Create a request for the method "metadataStores.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 MetadataStore to delete. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @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 setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - public class Delete extends AiplatformRequest { + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** - * Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and - * Contexts). - * - * Create a request for the method "metadataStores.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 MetadataStore to delete. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @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/[^/]+/metadataStores/[^/]+$"); - } - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + /** 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** - * Required. The resource name of the MetadataStore to delete. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** Required. The resource name of the MetadataStore to delete. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - */ - public java.lang.String getName() { - return name; - } + /** + * 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; - /** - * Required. The resource name of the MetadataStore to delete. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - */ - 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/[^/]+/metadataStores/[^/]+$"); - } - 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 java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } - /** Deprecated: Field is no longer supported. */ - @com.google.api.client.util.Key - private java.lang.Boolean force; + /** + * 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; + } - /** Deprecated: Field is no longer supported. - */ - public java.lang.Boolean getForce() { - return force; - } + @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; + } - /** Deprecated: Field is no longer supported. */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; - return this; - } + public class Wait extends AiplatformRequest { - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Retrieves a specific MetadataStore. - * - * Create a request for the method "metadataStores.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 MetadataStore to retrieve. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } + private static final String REST_PATH = "v1beta1/{+name}:wait"; - public class Get extends AiplatformRequest { + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$"); - private static final String REST_PATH = "v1beta1/{+name}"; + /** + * 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$"); + } + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - /** - * Retrieves a specific MetadataStore. - * - * Create a request for the method "metadataStores.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 MetadataStore to retrieve. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataStore.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/[^/]+/metadataStores/[^/]+$"); - } - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** The name of the operation resource to wait on. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - @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. + */ + @com.google.api.client.util.Key + private String timeout; - /** - * Required. The resource name of the MetadataStore to retrieve. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - */ - @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 String getTimeout() { + return timeout; + } - /** Required. The resource name of the MetadataStore to retrieve. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - */ - public java.lang.String getName() { - return 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; + } - /** - * Required. The resource name of the MetadataStore to retrieve. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - */ - 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/[^/]+/metadataStores/[^/]+$"); + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); } } /** - * Lists MetadataStores for a Location. - * - * Create a request for the method "metadataStores.list". + * An accessor for creating requests from the Contexts 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.Contexts.List request = aiplatform.contexts().list(parameters ...)}
+         * 
* - * @param parent Required. The Location whose MetadataStores should be listed. 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 Contexts contexts() { + return new Contexts(); } - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/metadataStores"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * The "contexts" collection of methods. + */ + public class Contexts { /** - * Lists MetadataStores for a Location. + * Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have + * already been added to a Context, they are simply skipped. * - * Create a request for the method "metadataStores.list". + * Create a request for the method "contexts.addContextArtifactsAndExecutions". * - * 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 AddContextArtifactsAndExecutions#execute()} method to invoke the + * remote operation. * - * @param parent Required. The Location whose MetadataStores should be listed. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 + * @param context Required. The resource name of the Context that the Artifacts and Executions belong to. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * ` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest} + * @return the request */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListMetadataStoresResponse.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 AddContextArtifactsAndExecutions addContextArtifactsAndExecutions(java.lang.String context, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest content) throws java.io.IOException { + AddContextArtifactsAndExecutions result = new AddContextArtifactsAndExecutions(context, content); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class AddContextArtifactsAndExecutions 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/{+context}:addContextArtifactsAndExecutions"; - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern CONTEXT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have + * already been added to a Context, they are simply skipped. + * + * Create a request for the method "contexts.addContextArtifactsAndExecutions". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link AddContextArtifactsAndExecutions#execute()} method to + * invoke the remote operation.

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

+ * + * @param context Required. The resource name of the Context that the Artifacts and Executions belong to. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * ` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest} + * @since 1.13 + */ + protected AddContextArtifactsAndExecutions(java.lang.String context, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse.class); + this.context = com.google.api.client.util.Preconditions.checkNotNull(context, "Required parameter context must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), + "Parameter context must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + } + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public AddContextArtifactsAndExecutions set$Xgafv(java.lang.String $Xgafv) { + return (AddContextArtifactsAndExecutions) super.set$Xgafv($Xgafv); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public AddContextArtifactsAndExecutions setAccessToken(java.lang.String accessToken) { + return (AddContextArtifactsAndExecutions) super.setAccessToken(accessToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public AddContextArtifactsAndExecutions setAlt(java.lang.String alt) { + return (AddContextArtifactsAndExecutions) super.setAlt(alt); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public AddContextArtifactsAndExecutions setCallback(java.lang.String callback) { + return (AddContextArtifactsAndExecutions) super.setCallback(callback); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public AddContextArtifactsAndExecutions setFields(java.lang.String fields) { + return (AddContextArtifactsAndExecutions) super.setFields(fields); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public AddContextArtifactsAndExecutions setKey(java.lang.String key) { + return (AddContextArtifactsAndExecutions) super.setKey(key); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public AddContextArtifactsAndExecutions setOauthToken(java.lang.String oauthToken) { + return (AddContextArtifactsAndExecutions) super.setOauthToken(oauthToken); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public AddContextArtifactsAndExecutions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddContextArtifactsAndExecutions) super.setPrettyPrint(prettyPrint); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public AddContextArtifactsAndExecutions setQuotaUser(java.lang.String quotaUser) { + return (AddContextArtifactsAndExecutions) super.setQuotaUser(quotaUser); + } - /** - * Required. The Location whose MetadataStores should be listed. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public AddContextArtifactsAndExecutions setUploadType(java.lang.String uploadType) { + return (AddContextArtifactsAndExecutions) super.setUploadType(uploadType); + } - /** Required. The Location whose MetadataStores should be listed. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public AddContextArtifactsAndExecutions setUploadProtocol(java.lang.String uploadProtocol) { + return (AddContextArtifactsAndExecutions) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The Location whose MetadataStores should be listed. 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/[^/]+$"); + /** + * Required. The resource name of the Context that the Artifacts and Executions belong + * to. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/c + * ontexts/{context}` + */ + @com.google.api.client.util.Key + private java.lang.String context; + + /** Required. The resource name of the Context that the Artifacts and Executions belong to. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + */ + public java.lang.String getContext() { + return context; } - this.parent = parent; - return this; - } - /** - * The maximum number of Metadata Stores to return. The service may return fewer. Must be - * in range 1-100, inclusive. Defaults to 100. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** + * Required. The resource name of the Context that the Artifacts and Executions belong + * to. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/c + * ontexts/{context}` + */ + public AddContextArtifactsAndExecutions setContext(java.lang.String context) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), + "Parameter context must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + } + this.context = context; + return this; + } - /** The maximum number of Metadata Stores to return. The service may return fewer. Must be in range - 1-100, inclusive. Defaults to 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; + @Override + public AddContextArtifactsAndExecutions set(String parameterName, Object value) { + return (AddContextArtifactsAndExecutions) super.set(parameterName, value); + } } - /** - * The maximum number of Metadata Stores to return. The service may return fewer. Must be - * in range 1-100, inclusive. Defaults to 100. + * Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already + * been added to the parent Context, they are simply skipped. If this call would create a cycle or + * cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT + * error. + * + * Create a request for the method "contexts.addContextChildren". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link AddContextChildren#execute()} method to invoke the remote operation. + * + * @param context Required. The resource name of the parent Context. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * ` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextChildrenRequest} + * @return the request */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; + public AddContextChildren addContextChildren(java.lang.String context, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextChildrenRequest content) throws java.io.IOException { + AddContextChildren result = new AddContextChildren(context, content); + initialize(result); + return result; } - /** - * A page token, received from a previous MetadataService.ListMetadataStores call. Provide - * this to retrieve the subsequent page. When paginating, all other provided parameters - * must match the call that provided the page token. (Otherwise the request will fail with - * INVALID_ARGUMENT error.) - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + public class AddContextChildren extends AiplatformRequest { - /** A page token, received from a previous MetadataService.ListMetadataStores call. Provide this to - retrieve the subsequent page. When paginating, all other provided parameters must match the call - that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.) - */ - public java.lang.String getPageToken() { - return pageToken; - } + private static final String REST_PATH = "v1beta1/{+context}:addContextChildren"; - /** - * A page token, received from a previous MetadataService.ListMetadataStores call. Provide - * this to retrieve the subsequent page. When paginating, all other provided parameters - * must match the call that provided the page token. (Otherwise the request will fail with - * INVALID_ARGUMENT error.) - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + private final java.util.regex.Pattern CONTEXT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** + * Adds a set of Contexts as children to a parent Context. If any of the child Contexts have + * already been added to the parent Context, they are simply skipped. If this call would create a + * cycle or cause any Context to have more than 10 parents, the request will fail with an + * INVALID_ARGUMENT error. + * + * Create a request for the method "contexts.addContextChildren". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link AddContextChildren#execute()} method to invoke the remote + * operation.

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

+ * + * @param context Required. The resource name of the parent Context. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * ` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextChildrenRequest} + * @since 1.13 + */ + protected AddContextChildren(java.lang.String context, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextChildrenRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextChildrenResponse.class); + this.context = com.google.api.client.util.Preconditions.checkNotNull(context, "Required parameter context must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), + "Parameter context must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + } + } - /** - * 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 AddContextChildren set$Xgafv(java.lang.String $Xgafv) { + return (AddContextChildren) super.set$Xgafv($Xgafv); + } - /** - * The "artifacts" collection of methods. - */ - public class Artifacts { + @Override + public AddContextChildren setAccessToken(java.lang.String accessToken) { + return (AddContextChildren) super.setAccessToken(accessToken); + } + + @Override + public AddContextChildren setAlt(java.lang.String alt) { + return (AddContextChildren) super.setAlt(alt); + } + + @Override + public AddContextChildren setCallback(java.lang.String callback) { + return (AddContextChildren) super.setCallback(callback); + } + + @Override + public AddContextChildren setFields(java.lang.String fields) { + return (AddContextChildren) super.setFields(fields); + } + + @Override + public AddContextChildren setKey(java.lang.String key) { + return (AddContextChildren) super.setKey(key); + } + + @Override + public AddContextChildren setOauthToken(java.lang.String oauthToken) { + return (AddContextChildren) super.setOauthToken(oauthToken); + } + + @Override + public AddContextChildren setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddContextChildren) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddContextChildren setQuotaUser(java.lang.String quotaUser) { + return (AddContextChildren) super.setQuotaUser(quotaUser); + } + + @Override + public AddContextChildren setUploadType(java.lang.String uploadType) { + return (AddContextChildren) super.setUploadType(uploadType); + } + @Override + public AddContextChildren setUploadProtocol(java.lang.String uploadProtocol) { + return (AddContextChildren) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the parent Context. Format: `projects/{project}/locati + * ons/{location}/metadataStores/{metadatastore}/contexts/{context}` + */ + @com.google.api.client.util.Key + private java.lang.String context; + + /** Required. The resource name of the parent Context. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + */ + public java.lang.String getContext() { + return context; + } + + /** + * Required. The resource name of the parent Context. Format: `projects/{project}/locati + * ons/{location}/metadataStores/{metadatastore}/contexts/{context}` + */ + public AddContextChildren setContext(java.lang.String context) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), + "Parameter context must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + } + this.context = context; + return this; + } + + @Override + public AddContextChildren set(String parameterName, Object value) { + return (AddContextChildren) super.set(parameterName, value); + } + } /** - * Creates an Artifact associated with a MetadataStore. + * Creates a Context associated with a MetadataStore. * - * Create a request for the method "artifacts.create". + * Create a request for the method "contexts.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 MetadataStore where the Artifact should be created. Format: + * @param parent Required. The resource name of the MetadataStore where the Context should be created. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context 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}/artifacts"; + private static final String REST_PATH = "v1beta1/{+parent}/contexts"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * Creates an Artifact associated with a MetadataStore. + * Creates a Context associated with a MetadataStore. * - * Create a request for the method "artifacts.create". + * Create a request for the method "contexts.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. @@ -109691,13 +113001,13 @@ public class Create extends AiplatformRequest * - * @param parent Required. The resource name of the MetadataStore where the Artifact should be created. Format: + * @param parent Required. The resource name of the MetadataStore where the Context should be created. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact.class); + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context.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(), @@ -109762,14 +113072,13 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the MetadataStore where the Artifact should be - * created. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * Required. The resource name of the MetadataStore where the Context should be created. + * Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the MetadataStore where the Artifact should be created. Format: + /** Required. The resource name of the MetadataStore where the Context should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public java.lang.String getParent() { @@ -109777,9 +113086,8 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the MetadataStore where the Artifact should be - * created. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * Required. The resource name of the MetadataStore where the Context should be created. + * Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -109792,39 +113100,37 @@ public Create setParent(java.lang.String parent) { } /** - * The {artifact} portion of the resource name with the format: `projects/{project}/loca - * tions/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` If not - * provided, the Artifact's ID will be a UUID generated by the service. Must be 4-128 - * characters in length. Valid characters are `/a-z-/`. Must be unique across all - * Artifacts in the parent MetadataStore. (Otherwise the request will fail with - * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting - * Artifact.) + * The {context} portion of the resource name with the format: `projects/{project}/locat + * ions/{location}/metadataStores/{metadatastore}/contexts/{context}`. If not provided, + * the Context's ID will be a UUID generated by the service. Must be 4-128 characters in + * length. Valid characters are `/a-z-/`. Must be unique across all Contexts in the + * parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or + * PERMISSION_DENIED if the caller can't view the preexisting Context.) */ @com.google.api.client.util.Key - private java.lang.String artifactId; + private java.lang.String contextId; - /** The {artifact} portion of the resource name with the format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` If - not provided, the Artifact's ID will be a UUID generated by the service. Must be 4-128 characters - in length. Valid characters are `/a-z-/`. Must be unique across all Artifacts in the parent + /** The {context} portion of the resource name with the format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. If not + provided, the Context's ID will be a UUID generated by the service. Must be 4-128 characters in + length. Valid characters are `/a-z-/`. Must be unique across all Contexts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the - caller can't view the preexisting Artifact.) + caller can't view the preexisting Context.) */ - public java.lang.String getArtifactId() { - return artifactId; + public java.lang.String getContextId() { + return contextId; } /** - * The {artifact} portion of the resource name with the format: `projects/{project}/loca - * tions/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` If not - * provided, the Artifact's ID will be a UUID generated by the service. Must be 4-128 - * characters in length. Valid characters are `/a-z-/`. Must be unique across all - * Artifacts in the parent MetadataStore. (Otherwise the request will fail with - * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting - * Artifact.) + * The {context} portion of the resource name with the format: `projects/{project}/locat + * ions/{location}/metadataStores/{metadatastore}/contexts/{context}`. If not provided, + * the Context's ID will be a UUID generated by the service. Must be 4-128 characters in + * length. Valid characters are `/a-z-/`. Must be unique across all Contexts in the + * parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or + * PERMISSION_DENIED if the caller can't view the preexisting Context.) */ - public Create setArtifactId(java.lang.String artifactId) { - this.artifactId = artifactId; + public Create setContextId(java.lang.String contextId) { + this.contextId = contextId; return this; } @@ -109834,16 +113140,16 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes an Artifact. + * Deletes a stored Context. * - * Create a request for the method "artifacts.delete". + * Create a request for the method "contexts.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 Artifact to delete. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifac - * t}` + * @param name Required. The resource name of the Context to delete. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * ` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -109857,12 +113163,12 @@ public class Delete extends AiplatformRequest * - * @param name Required. The resource name of the Artifact to delete. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifac - * t}` + * @param name Required. The resource name of the Context to delete. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * ` * @since 1.13 */ protected Delete(java.lang.String name) { @@ -109881,7 +113187,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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); } } @@ -109941,41 +113247,41 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Artifact to delete. Format: `projects/{project}/lo - * cations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * Required. The resource name of the Context to delete. Format: `projects/{project}/loc + * ations/{location}/metadataStores/{metadatastore}/contexts/{context}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the Artifact to delete. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + /** Required. The resource name of the Context to delete. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the Artifact to delete. Format: `projects/{project}/lo - * cations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * Required. The resource name of the Context to delete. Format: `projects/{project}/loc + * ations/{location}/metadataStores/{metadatastore}/contexts/{context}` */ 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); } this.name = name; return this; } /** - * Optional. The etag of the Artifact to delete. If this is provided, it must match the + * Optional. The etag of the Context to delete. If this is provided, it must match the * server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION. */ @com.google.api.client.util.Key private java.lang.String etag; - /** Optional. The etag of the Artifact to delete. If this is provided, it must match the server's etag. + /** Optional. The etag of the Context to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION. */ public java.lang.String getEtag() { @@ -109983,7 +113289,7 @@ public java.lang.String getEtag() { } /** - * Optional. The etag of the Artifact to delete. If this is provided, it must match the + * Optional. The etag of the Context to delete. If this is provided, it must match the * server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION. */ public Delete setEtag(java.lang.String etag) { @@ -109991,22 +113297,42 @@ public Delete setEtag(java.lang.String etag) { return this; } + /** + * The force deletion semantics is still undefined. Users should not use this field. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** The force deletion semantics is still undefined. Users should not use this field. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * The force deletion semantics is still undefined. Users should not use this field. + */ + 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); } } /** - * Retrieves a specific Artifact. + * Retrieves a specific Context. * - * Create a request for the method "artifacts.get". + * Create a request for the method "contexts.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 Artifact to retrieve. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifac - * t}` + * @param name Required. The resource name of the Context to retrieve. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * ` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -110015,35 +113341,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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); /** - * Retrieves a specific Artifact. + * Retrieves a specific Context. * - * Create a request for the method "artifacts.get". + * Create a request for the method "contexts.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 Artifact to retrieve. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifac - * t}` + * @param name Required. The resource name of the Context to retrieve. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * ` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context.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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); } } @@ -110113,28 +113439,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Artifact to retrieve. Format: `projects/{project}/ - * locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * Required. The resource name of the Context to retrieve. Format: `projects/{project}/l + * ocations/{location}/metadataStores/{metadatastore}/contexts/{context}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the Artifact to retrieve. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + /** Required. The resource name of the Context to retrieve. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the Artifact to retrieve. Format: `projects/{project}/ - * locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + * Required. The resource name of the Context to retrieve. Format: `projects/{project}/l + * ocations/{location}/metadataStores/{metadatastore}/contexts/{context}` */ 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); } this.name = name; return this; @@ -110146,14 +113472,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists Artifacts in the MetadataStore. + * Lists Contexts on the MetadataStore. * - * Create a request for the method "artifacts.list". + * Create a request for the method "contexts.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 MetadataStore whose Artifacts should be listed. Format: + * @param parent Required. The MetadataStore whose Contexts should be listed. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @return the request */ @@ -110163,29 +113489,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}/artifacts"; + private static final String REST_PATH = "v1beta1/{+parent}/contexts"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * Lists Artifacts in the MetadataStore. + * Lists Contexts on the MetadataStore. * - * Create a request for the method "artifacts.list". + * Create a request for the method "contexts.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 MetadataStore whose Artifacts should be listed. Format: + * @param parent Required. The MetadataStore whose Contexts should be listed. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @since 1.13 */ protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListArtifactsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListContextsResponse.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(), @@ -110260,13 +113586,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The MetadataStore whose Artifacts should be listed. Format: + * Required. The MetadataStore whose Contexts should be listed. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The MetadataStore whose Artifacts should be listed. Format: + /** Required. The MetadataStore whose Contexts should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public java.lang.String getParent() { @@ -110274,7 +113600,7 @@ public java.lang.String getParent() { } /** - * Required. The MetadataStore whose Artifacts should be listed. Format: + * Required. The MetadataStore whose Contexts should be listed. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public List setParent(java.lang.String parent) { @@ -110288,67 +113614,64 @@ public List setParent(java.lang.String parent) { } /** - * Filter specifying the boolean condition for the Artifacts to satisfy in order to be + * Filter specifying the boolean condition for the Contexts to satisfy in order to be * part of the result set. The syntax to define filter query is based on - * https://google.aip.dev/160. The supported set of filters include the following: * - * **Attribute filtering**: For example: `display_name = "test"`. Supported fields - * include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and - * `update_time`. Time fields, such as `create_time` and `update_time`, require values - * specified in RFC-3339 format. For example: `create_time = - * "2020-11-19T11:30:00-04:00"` * **Metadata field**: To filter on metadata fields use - * traversal operation as follows: `metadata..`. For example: - * `metadata.field_1.number_value = 10.0` In case the field name contains special + * https://google.aip.dev/160. Following are the supported set of filters: * **Attribute + * filtering**: For example: `display_name = "test"`. Supported fields include: `name`, + * `display_name`, `schema_title`, `create_time`, and `update_time`. Time fields, such + * as `create_time` and `update_time`, require values specified in RFC-3339 format. For + * example: `create_time = "2020-11-19T11:30:00-04:00"`. * **Metadata field**: To filter + * on metadata fields use traversal operation as follows: `metadata..`. For example: + * `metadata.field_1.number_value = 10.0`. In case the field name contains special * characters (such as colon), one can embed it inside double quote. For example: - * `metadata."field:1".number_value = 10.0` * **Context based filtering**: To filter - * Artifacts based on the contexts to which they belong, use the function operator with - * the full resource name `in_context()`. For example: - * `in_context("projects//locations//metadataStores//contexts/")` Each of the above - * supported filter types can be combined together using logical operators (`AND` & - * `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = - * "test" AND metadata.field1.bool_value = true`. + * `metadata."field:1".number_value = 10.0` * **Parent Child filtering**: To filter + * Contexts based on parent-child relationship use the HAS operator as follows: ``` + * parent_contexts: "projects//locations//metadataStores//contexts/" child_contexts: + * "projects//locations//metadataStores//contexts/" ``` Each of the above supported + * filters can be combined together using logical operators (`AND` & `OR`). Maximum + * nested expression depth allowed is 5. For example: `display_name = "test" AND + * metadata.field1.bool_value = true`. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the - result set. The syntax to define filter query is based on https://google.aip.dev/160. The supported - set of filters include the following: * **Attribute filtering**: For example: `display_name = - "test"`. Supported fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, - `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require - values specified in RFC-3339 format. For example: `create_time = "2020-11-19T11:30:00-04:00"` * - **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. - For example: `metadata.field_1.number_value = 10.0` In case the field name contains special - characters (such as colon), one can embed it inside double quote. For example: - `metadata."field:1".number_value = 10.0` * **Context based filtering**: To filter Artifacts based - on the contexts to which they belong, use the function operator with the full resource name - `in_context()`. For example: `in_context("projects//locations//metadataStores//contexts/")` Each of - the above supported filter types can be combined together using logical operators (`AND` & `OR`). - Maximum nested expression depth allowed is 5. For example: `display_name = "test" AND - metadata.field1.bool_value = true`. + /** Filter specifying the boolean condition for the Contexts to satisfy in order to be part of the + result set. The syntax to define filter query is based on https://google.aip.dev/160. Following are + the supported set of filters: * **Attribute filtering**: For example: `display_name = "test"`. + Supported fields include: `name`, `display_name`, `schema_title`, `create_time`, and `update_time`. + Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. + For example: `create_time = "2020-11-19T11:30:00-04:00"`. * **Metadata field**: To filter on + metadata fields use traversal operation as follows: `metadata..`. For example: + `metadata.field_1.number_value = 10.0`. In case the field name contains special characters (such as + colon), one can embed it inside double quote. For example: `metadata."field:1".number_value = 10.0` + * **Parent Child filtering**: To filter Contexts based on parent-child relationship use the HAS + operator as follows: ``` parent_contexts: "projects//locations//metadataStores//contexts/" + child_contexts: "projects//locations//metadataStores//contexts/" ``` Each of the above supported + filters can be combined together using logical operators (`AND` & `OR`). Maximum nested expression + depth allowed is 5. For example: `display_name = "test" AND metadata.field1.bool_value = true`. */ public java.lang.String getFilter() { return filter; } /** - * Filter specifying the boolean condition for the Artifacts to satisfy in order to be + * Filter specifying the boolean condition for the Contexts to satisfy in order to be * part of the result set. The syntax to define filter query is based on - * https://google.aip.dev/160. The supported set of filters include the following: * - * **Attribute filtering**: For example: `display_name = "test"`. Supported fields - * include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and - * `update_time`. Time fields, such as `create_time` and `update_time`, require values - * specified in RFC-3339 format. For example: `create_time = - * "2020-11-19T11:30:00-04:00"` * **Metadata field**: To filter on metadata fields use - * traversal operation as follows: `metadata..`. For example: - * `metadata.field_1.number_value = 10.0` In case the field name contains special + * https://google.aip.dev/160. Following are the supported set of filters: * **Attribute + * filtering**: For example: `display_name = "test"`. Supported fields include: `name`, + * `display_name`, `schema_title`, `create_time`, and `update_time`. Time fields, such + * as `create_time` and `update_time`, require values specified in RFC-3339 format. For + * example: `create_time = "2020-11-19T11:30:00-04:00"`. * **Metadata field**: To filter + * on metadata fields use traversal operation as follows: `metadata..`. For example: + * `metadata.field_1.number_value = 10.0`. In case the field name contains special * characters (such as colon), one can embed it inside double quote. For example: - * `metadata."field:1".number_value = 10.0` * **Context based filtering**: To filter - * Artifacts based on the contexts to which they belong, use the function operator with - * the full resource name `in_context()`. For example: - * `in_context("projects//locations//metadataStores//contexts/")` Each of the above - * supported filter types can be combined together using logical operators (`AND` & - * `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = - * "test" AND metadata.field1.bool_value = true`. + * `metadata."field:1".number_value = 10.0` * **Parent Child filtering**: To filter + * Contexts based on parent-child relationship use the HAS operator as follows: ``` + * parent_contexts: "projects//locations//metadataStores//contexts/" child_contexts: + * "projects//locations//metadataStores//contexts/" ``` Each of the above supported + * filters can be combined together using logical operators (`AND` & `OR`). Maximum + * nested expression depth allowed is 5. For example: `display_name = "test" AND + * metadata.field1.bool_value = true`. */ public List setFilter(java.lang.String filter) { this.filter = filter; @@ -110387,13 +113710,13 @@ public List setOrderBy(java.lang.String orderBy) { } /** - * The maximum number of Artifacts to return. The service may return fewer. Must be in + * The maximum number of Contexts to return. The service may return fewer. Must be in * range 1-100, inclusive. Defaults to 100. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The maximum number of Artifacts to return. The service may return fewer. Must be in range 1-100, + /** The maximum number of Contexts to return. The service may return fewer. Must be in range 1-100, inclusive. Defaults to 100. */ public java.lang.Integer getPageSize() { @@ -110401,7 +113724,7 @@ public java.lang.Integer getPageSize() { } /** - * The maximum number of Artifacts to return. The service may return fewer. Must be in + * The maximum number of Contexts to return. The service may return fewer. Must be in * range 1-100, inclusive. Defaults to 100. */ public List setPageSize(java.lang.Integer pageSize) { @@ -110410,7 +113733,7 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * A page token, received from a previous MetadataService.ListArtifacts call. Provide + * A page token, received from a previous MetadataService.ListContexts call. Provide * this to retrieve the subsequent page. When paginating, all other provided parameters * must match the call that provided the page token. (Otherwise the request will fail * with INVALID_ARGUMENT error.) @@ -110418,7 +113741,7 @@ public List setPageSize(java.lang.Integer pageSize) { @com.google.api.client.util.Key private java.lang.String pageToken; - /** A page token, received from a previous MetadataService.ListArtifacts call. Provide this to retrieve + /** A page token, received from a previous MetadataService.ListContexts call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.) */ @@ -110427,7 +113750,7 @@ public java.lang.String getPageToken() { } /** - * A page token, received from a previous MetadataService.ListArtifacts call. Provide + * A page token, received from a previous MetadataService.ListContexts call. Provide * this to retrieve the subsequent page. When paginating, all other provided parameters * must match the call that provided the page token. (Otherwise the request will fail * with INVALID_ARGUMENT error.) @@ -110443,34 +113766,34 @@ public List set(String parameterName, Object value) { } } /** - * Updates a stored Artifact. + * Updates a stored Context. * - * Create a request for the method "artifacts.patch". + * Create a request for the method "contexts.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. The resource name of the Artifact. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact} + * @param name Immutable. The resource name of the Context. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; } - public class Patch extends AiplatformRequest { + 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); /** - * Updates a stored Artifact. + * Updates a stored Context. * - * Create a request for the method "artifacts.patch". + * Create a request for the method "contexts.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. @@ -110478,17 +113801,17 @@ public class Patch extends AiplatformRequest * - * @param name Output only. The resource name of the Artifact. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact} + * @param name Immutable. The resource name of the Context. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Artifact.class); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context.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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); } } @@ -110547,38 +113870,38 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { return (Patch) super.setUploadProtocol(uploadProtocol); } - /** Output only. The resource name of the Artifact. */ + /** Immutable. The resource name of the Context. */ @com.google.api.client.util.Key private java.lang.String name; - /** Output only. The resource name of the Artifact. + /** Immutable. The resource name of the Context. */ public java.lang.String getName() { return name; } - /** Output only. The resource name of the Artifact. */ + /** Immutable. The resource name of the Context. */ 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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); } this.name = name; return this; } - /** If set to true, and the Artifact is not found, a new Artifact is created. */ + /** If set to true, and the Context is not found, a new Context is created. */ @com.google.api.client.util.Key private java.lang.Boolean allowMissing; - /** If set to true, and the Artifact is not found, a new Artifact is created. + /** If set to true, and the Context is not found, a new Context is created. */ public java.lang.Boolean getAllowMissing() { return allowMissing; } - /** If set to true, and the Artifact is not found, a new Artifact is created. */ + /** If set to true, and the Context is not found, a new Context is created. */ public Patch setAllowMissing(java.lang.Boolean allowMissing) { this.allowMissing = allowMissing; return this; @@ -110606,19 +113929,19 @@ public Patch set(String parameterName, Object value) { } } /** - * Purges Artifacts. + * Purges Contexts. * - * Create a request for the method "artifacts.purge". + * Create a request for the method "contexts.purge". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Purge#execute()} method to invoke the remote operation. * - * @param parent Required. The metadata store to purge Artifacts from. Format: + * @param parent Required. The metadata store to purge Contexts from. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeArtifactsRequest} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeContextsRequest} * @return the request */ - public Purge purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeArtifactsRequest content) throws java.io.IOException { + public Purge purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeContextsRequest content) throws java.io.IOException { Purge result = new Purge(parent, content); initialize(result); return result; @@ -110626,15 +113949,15 @@ public Purge purge(java.lang.String parent, com.google.api.services.aiplatform.v public class Purge extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/artifacts:purge"; + private static final String REST_PATH = "v1beta1/{+parent}/contexts:purge"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * Purges Artifacts. + * Purges Contexts. * - * Create a request for the method "artifacts.purge". + * Create a request for the method "contexts.purge". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Purge#execute()} method to invoke the remote operation. @@ -110642,12 +113965,12 @@ public class Purge extends AiplatformRequest * - * @param parent Required. The metadata store to purge Artifacts from. Format: + * @param parent Required. The metadata store to purge Contexts from. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeArtifactsRequest} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeContextsRequest} * @since 1.13 */ - protected Purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeArtifactsRequest content) { + protected Purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeContextsRequest 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()) { @@ -110713,13 +114036,13 @@ public Purge setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The metadata store to purge Artifacts from. Format: + * Required. The metadata store to purge Contexts from. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The metadata store to purge Artifacts from. Format: + /** Required. The metadata store to purge Contexts from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public java.lang.String getParent() { @@ -110727,7 +114050,7 @@ public java.lang.String getParent() { } /** - * Required. The metadata store to purge Artifacts from. Format: + * Required. The metadata store to purge Contexts from. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public Purge setParent(java.lang.String parent) { @@ -110746,61 +114069,61 @@ public Purge set(String parameterName, Object value) { } } /** - * Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event - * edges and returned as a LineageSubgraph. + * Retrieves Artifacts and Executions within the specified Context, connected by Event edges and + * returned as a LineageSubgraph. * - * Create a request for the method "artifacts.queryArtifactLineageSubgraph". + * Create a request for the method "contexts.queryContextLineageSubgraph". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link QueryArtifactLineageSubgraph#execute()} method to invoke the remote + * parameters, call the {@link QueryContextLineageSubgraph#execute()} method to invoke the remote * operation. * - * @param artifact Required. The resource name of the Artifact whose Lineage needs to be retrieved as a + * @param context Required. The resource name of the Context whose Artifacts and Executions should be retrieved as a * LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadata - * store}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if the number - * of Artifacts, the number of Executions, or the number of Events that would be returned for + * store}/contexts/{context}` The request may error with FAILED_PRECONDITION if the number of + * Artifacts, the number of Executions, or the number of Events that would be returned for * the Context exceeds 1000. * @return the request */ - public QueryArtifactLineageSubgraph queryArtifactLineageSubgraph(java.lang.String artifact) throws java.io.IOException { - QueryArtifactLineageSubgraph result = new QueryArtifactLineageSubgraph(artifact); + public QueryContextLineageSubgraph queryContextLineageSubgraph(java.lang.String context) throws java.io.IOException { + QueryContextLineageSubgraph result = new QueryContextLineageSubgraph(context); initialize(result); return result; } - public class QueryArtifactLineageSubgraph extends AiplatformRequest { + public class QueryContextLineageSubgraph extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+artifact}:queryArtifactLineageSubgraph"; + private static final String REST_PATH = "v1beta1/{+context}:queryContextLineageSubgraph"; - private final java.util.regex.Pattern ARTIFACT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + private final java.util.regex.Pattern CONTEXT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); /** - * Retrieves lineage of an Artifact represented through Artifacts and Executions connected by - * Event edges and returned as a LineageSubgraph. + * Retrieves Artifacts and Executions within the specified Context, connected by Event edges and + * returned as a LineageSubgraph. * - * Create a request for the method "artifacts.queryArtifactLineageSubgraph". + * Create a request for the method "contexts.queryContextLineageSubgraph". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link QueryArtifactLineageSubgraph#execute()} method to invoke - * the remote operation.

{@link QueryArtifactLineageSubgraph#initialize(com.google.api.client. - * googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * optional parameters, call the {@link QueryContextLineageSubgraph#execute()} method to invoke + * the remote operation.

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

* - * @param artifact Required. The resource name of the Artifact whose Lineage needs to be retrieved as a + * @param context Required. The resource name of the Context whose Artifacts and Executions should be retrieved as a * LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadata - * store}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if the number - * of Artifacts, the number of Executions, or the number of Events that would be returned for + * store}/contexts/{context}` The request may error with FAILED_PRECONDITION if the number of + * Artifacts, the number of Executions, or the number of Events that would be returned for * the Context exceeds 1000. * @since 1.13 */ - protected QueryArtifactLineageSubgraph(java.lang.String artifact) { + protected QueryContextLineageSubgraph(java.lang.String context) { super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1LineageSubgraph.class); - this.artifact = com.google.api.client.util.Preconditions.checkNotNull(artifact, "Required parameter artifact must be specified."); + this.context = com.google.api.client.util.Preconditions.checkNotNull(context, "Required parameter context must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ARTIFACT_PATTERN.matcher(artifact).matches(), - "Parameter artifact must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), + "Parameter context must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); } } @@ -110815,185 +114138,245 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public QueryArtifactLineageSubgraph set$Xgafv(java.lang.String $Xgafv) { - return (QueryArtifactLineageSubgraph) super.set$Xgafv($Xgafv); + public QueryContextLineageSubgraph set$Xgafv(java.lang.String $Xgafv) { + return (QueryContextLineageSubgraph) super.set$Xgafv($Xgafv); } @Override - public QueryArtifactLineageSubgraph setAccessToken(java.lang.String accessToken) { - return (QueryArtifactLineageSubgraph) super.setAccessToken(accessToken); + public QueryContextLineageSubgraph setAccessToken(java.lang.String accessToken) { + return (QueryContextLineageSubgraph) super.setAccessToken(accessToken); } @Override - public QueryArtifactLineageSubgraph setAlt(java.lang.String alt) { - return (QueryArtifactLineageSubgraph) super.setAlt(alt); + public QueryContextLineageSubgraph setAlt(java.lang.String alt) { + return (QueryContextLineageSubgraph) super.setAlt(alt); } @Override - public QueryArtifactLineageSubgraph setCallback(java.lang.String callback) { - return (QueryArtifactLineageSubgraph) super.setCallback(callback); + public QueryContextLineageSubgraph setCallback(java.lang.String callback) { + return (QueryContextLineageSubgraph) super.setCallback(callback); } @Override - public QueryArtifactLineageSubgraph setFields(java.lang.String fields) { - return (QueryArtifactLineageSubgraph) super.setFields(fields); + public QueryContextLineageSubgraph setFields(java.lang.String fields) { + return (QueryContextLineageSubgraph) super.setFields(fields); } @Override - public QueryArtifactLineageSubgraph setKey(java.lang.String key) { - return (QueryArtifactLineageSubgraph) super.setKey(key); + public QueryContextLineageSubgraph setKey(java.lang.String key) { + return (QueryContextLineageSubgraph) super.setKey(key); } @Override - public QueryArtifactLineageSubgraph setOauthToken(java.lang.String oauthToken) { - return (QueryArtifactLineageSubgraph) super.setOauthToken(oauthToken); + public QueryContextLineageSubgraph setOauthToken(java.lang.String oauthToken) { + return (QueryContextLineageSubgraph) super.setOauthToken(oauthToken); } @Override - public QueryArtifactLineageSubgraph setPrettyPrint(java.lang.Boolean prettyPrint) { - return (QueryArtifactLineageSubgraph) super.setPrettyPrint(prettyPrint); + public QueryContextLineageSubgraph setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryContextLineageSubgraph) super.setPrettyPrint(prettyPrint); } @Override - public QueryArtifactLineageSubgraph setQuotaUser(java.lang.String quotaUser) { - return (QueryArtifactLineageSubgraph) super.setQuotaUser(quotaUser); + public QueryContextLineageSubgraph setQuotaUser(java.lang.String quotaUser) { + return (QueryContextLineageSubgraph) super.setQuotaUser(quotaUser); } @Override - public QueryArtifactLineageSubgraph setUploadType(java.lang.String uploadType) { - return (QueryArtifactLineageSubgraph) super.setUploadType(uploadType); + public QueryContextLineageSubgraph setUploadType(java.lang.String uploadType) { + return (QueryContextLineageSubgraph) super.setUploadType(uploadType); } @Override - public QueryArtifactLineageSubgraph setUploadProtocol(java.lang.String uploadProtocol) { - return (QueryArtifactLineageSubgraph) super.setUploadProtocol(uploadProtocol); + public QueryContextLineageSubgraph setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryContextLineageSubgraph) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a - * LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{met - * adatastore}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if - * the number of Artifacts, the number of Executions, or the number of Events that would - * be returned for the Context exceeds 1000. + * Required. The resource name of the Context whose Artifacts and Executions should be + * retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/meta + * dataStores/{metadatastore}/contexts/{context}` The request may error with + * FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the + * number of Events that would be returned for the Context exceeds 1000. */ @com.google.api.client.util.Key - private java.lang.String artifact; + private java.lang.String context; - /** Required. The resource name of the Artifact whose Lineage needs to be retrieved as a + /** Required. The resource name of the Context whose Artifacts and Executions should be retrieved as a LineageSubgraph. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` The + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the number of Events that would be returned for the Context exceeds 1000. */ - public java.lang.String getArtifact() { - return artifact; + public java.lang.String getContext() { + return context; } /** - * Required. The resource name of the Artifact whose Lineage needs to be retrieved as a - * LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{met - * adatastore}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if - * the number of Artifacts, the number of Executions, or the number of Events that would - * be returned for the Context exceeds 1000. + * Required. The resource name of the Context whose Artifacts and Executions should be + * retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/meta + * dataStores/{metadatastore}/contexts/{context}` The request may error with + * FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the + * number of Events that would be returned for the Context exceeds 1000. */ - public QueryArtifactLineageSubgraph setArtifact(java.lang.String artifact) { + public QueryContextLineageSubgraph setContext(java.lang.String context) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ARTIFACT_PATTERN.matcher(artifact).matches(), - "Parameter artifact must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), + "Parameter context must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); } - this.artifact = artifact; + this.context = context; return this; } + @Override + public QueryContextLineageSubgraph set(String parameterName, Object value) { + return (QueryContextLineageSubgraph) super.set(parameterName, value); + } + } + /** + * Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT + * added to the parent Context, they are simply skipped. + * + * Create a request for the method "contexts.removeContextChildren". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link RemoveContextChildren#execute()} method to invoke the remote + * operation. + * + * @param context Required. The resource name of the parent Context. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * ` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest} + * @return the request + */ + public RemoveContextChildren removeContextChildren(java.lang.String context, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest content) throws java.io.IOException { + RemoveContextChildren result = new RemoveContextChildren(context, content); + initialize(result); + return result; + } + + public class RemoveContextChildren extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+context}:removeContextChildren"; + + private final java.util.regex.Pattern CONTEXT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + /** - * Filter specifying the boolean condition for the Artifacts to satisfy in order to be - * part of the Lineage Subgraph. The syntax to define filter query is based on - * https://google.aip.dev/160. The supported set of filters include the following: * - * **Attribute filtering**: For example: `display_name = "test"` Supported fields - * include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and - * `update_time`. Time fields, such as `create_time` and `update_time`, require values - * specified in RFC-3339 format. For example: `create_time = - * "2020-11-19T11:30:00-04:00"` * **Metadata field**: To filter on metadata fields use - * traversal operation as follows: `metadata..`. For example: - * `metadata.field_1.number_value = 10.0` In case the field name contains special - * characters (such as colon), one can embed it inside double quote. For example: - * `metadata."field:1".number_value = 10.0` Each of the above supported filter types can - * be combined together using logical operators (`AND` & `OR`). Maximum nested - * expression depth allowed is 5. For example: `display_name = "test" AND - * metadata.field1.bool_value = true`. + * Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT + * added to the parent Context, they are simply skipped. + * + * Create a request for the method "contexts.removeContextChildren". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link RemoveContextChildren#execute()} method to invoke the + * remote operation.

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

+ * + * @param context Required. The resource name of the parent Context. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} + * ` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest} + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String filter; + protected RemoveContextChildren(java.lang.String context, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse.class); + this.context = com.google.api.client.util.Preconditions.checkNotNull(context, "Required parameter context must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), + "Parameter context must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + } + } - /** Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the - Lineage Subgraph. The syntax to define filter query is based on https://google.aip.dev/160. The - supported set of filters include the following: * **Attribute filtering**: For example: - `display_name = "test"` Supported fields include: `name`, `display_name`, `uri`, `state`, - `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and - `update_time`, require values specified in RFC-3339 format. For example: `create_time = - "2020-11-19T11:30:00-04:00"` * **Metadata field**: To filter on metadata fields use traversal - operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In case the - field name contains special characters (such as colon), one can embed it inside double quote. For - example: `metadata."field:1".number_value = 10.0` Each of the above supported filter types can be - combined together using logical operators (`AND` & `OR`). Maximum nested expression depth allowed - is 5. For example: `display_name = "test" AND metadata.field1.bool_value = true`. - */ - public java.lang.String getFilter() { - return filter; + @Override + public RemoveContextChildren set$Xgafv(java.lang.String $Xgafv) { + return (RemoveContextChildren) super.set$Xgafv($Xgafv); } - /** - * Filter specifying the boolean condition for the Artifacts to satisfy in order to be - * part of the Lineage Subgraph. The syntax to define filter query is based on - * https://google.aip.dev/160. The supported set of filters include the following: * - * **Attribute filtering**: For example: `display_name = "test"` Supported fields - * include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and - * `update_time`. Time fields, such as `create_time` and `update_time`, require values - * specified in RFC-3339 format. For example: `create_time = - * "2020-11-19T11:30:00-04:00"` * **Metadata field**: To filter on metadata fields use - * traversal operation as follows: `metadata..`. For example: - * `metadata.field_1.number_value = 10.0` In case the field name contains special - * characters (such as colon), one can embed it inside double quote. For example: - * `metadata."field:1".number_value = 10.0` Each of the above supported filter types can - * be combined together using logical operators (`AND` & `OR`). Maximum nested - * expression depth allowed is 5. For example: `display_name = "test" AND - * metadata.field1.bool_value = true`. - */ - public QueryArtifactLineageSubgraph setFilter(java.lang.String filter) { - this.filter = filter; - return this; + @Override + public RemoveContextChildren setAccessToken(java.lang.String accessToken) { + return (RemoveContextChildren) super.setAccessToken(accessToken); + } + + @Override + public RemoveContextChildren setAlt(java.lang.String alt) { + return (RemoveContextChildren) super.setAlt(alt); + } + + @Override + public RemoveContextChildren setCallback(java.lang.String callback) { + return (RemoveContextChildren) super.setCallback(callback); + } + + @Override + public RemoveContextChildren setFields(java.lang.String fields) { + return (RemoveContextChildren) super.setFields(fields); + } + + @Override + public RemoveContextChildren setKey(java.lang.String key) { + return (RemoveContextChildren) super.setKey(key); + } + + @Override + public RemoveContextChildren setOauthToken(java.lang.String oauthToken) { + return (RemoveContextChildren) super.setOauthToken(oauthToken); + } + + @Override + public RemoveContextChildren setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveContextChildren) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveContextChildren setQuotaUser(java.lang.String quotaUser) { + return (RemoveContextChildren) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveContextChildren setUploadType(java.lang.String uploadType) { + return (RemoveContextChildren) super.setUploadType(uploadType); + } + + @Override + public RemoveContextChildren setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveContextChildren) super.setUploadProtocol(uploadProtocol); } /** - * Specifies the size of the lineage graph in terms of number of hops from the specified - * artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only input artifact - * is returned. No value: Transitive closure is performed to return the complete graph. + * Required. The resource name of the parent Context. Format: `projects/{project}/locati + * ons/{location}/metadataStores/{metadatastore}/contexts/{context}` */ @com.google.api.client.util.Key - private java.lang.Integer maxHops; + private java.lang.String context; - /** Specifies the size of the lineage graph in terms of number of hops from the specified artifact. - Negative Value: INVALID_ARGUMENT error is returned 0: Only input artifact is returned. No value: - Transitive closure is performed to return the complete graph. + /** Required. The resource name of the parent Context. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` */ - public java.lang.Integer getMaxHops() { - return maxHops; + public java.lang.String getContext() { + return context; } /** - * Specifies the size of the lineage graph in terms of number of hops from the specified - * artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only input artifact - * is returned. No value: Transitive closure is performed to return the complete graph. + * Required. The resource name of the parent Context. Format: `projects/{project}/locati + * ons/{location}/metadataStores/{metadatastore}/contexts/{context}` */ - public QueryArtifactLineageSubgraph setMaxHops(java.lang.Integer maxHops) { - this.maxHops = maxHops; + public RemoveContextChildren setContext(java.lang.String context) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), + "Parameter context must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + } + this.context = context; return this; } @Override - public QueryArtifactLineageSubgraph set(String parameterName, Object value) { - return (QueryArtifactLineageSubgraph) super.set(parameterName, value); + public RemoveContextChildren set(String parameterName, Object value) { + return (RemoveContextChildren) super.set(parameterName, value); } } @@ -111045,7 +114428,7 @@ public class Cancel extends AiplatformRequestThe typical use is:

*
          *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Contexts.List request = aiplatform.contexts().list(parameters ...)}
+         *   {@code Aiplatform.Executions.List request = aiplatform.executions().list(parameters ...)}
          * 
* * @return the resource collection */ - public Contexts contexts() { - return new Contexts(); + public Executions executions() { + return new Executions(); } /** - * The "contexts" collection of methods. + * The "executions" collection of methods. */ - public class Contexts { - - /** - * Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have - * already been added to a Context, they are simply skipped. - * - * Create a request for the method "contexts.addContextArtifactsAndExecutions". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link AddContextArtifactsAndExecutions#execute()} method to invoke the - * remote operation. - * - * @param context Required. The resource name of the Context that the Artifacts and Executions belong to. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} - * ` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest} - * @return the request - */ - public AddContextArtifactsAndExecutions addContextArtifactsAndExecutions(java.lang.String context, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest content) throws java.io.IOException { - AddContextArtifactsAndExecutions result = new AddContextArtifactsAndExecutions(context, content); - initialize(result); - return result; - } - - public class AddContextArtifactsAndExecutions extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+context}:addContextArtifactsAndExecutions"; - - private final java.util.regex.Pattern CONTEXT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); - - /** - * Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have - * already been added to a Context, they are simply skipped. - * - * Create a request for the method "contexts.addContextArtifactsAndExecutions". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link AddContextArtifactsAndExecutions#execute()} method to - * invoke the remote operation.

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

- * - * @param context Required. The resource name of the Context that the Artifacts and Executions belong to. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} - * ` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest} - * @since 1.13 - */ - protected AddContextArtifactsAndExecutions(java.lang.String context, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse.class); - this.context = com.google.api.client.util.Preconditions.checkNotNull(context, "Required parameter context must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), - "Parameter context must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); - } - } - - @Override - public AddContextArtifactsAndExecutions set$Xgafv(java.lang.String $Xgafv) { - return (AddContextArtifactsAndExecutions) super.set$Xgafv($Xgafv); - } - - @Override - public AddContextArtifactsAndExecutions setAccessToken(java.lang.String accessToken) { - return (AddContextArtifactsAndExecutions) super.setAccessToken(accessToken); - } - - @Override - public AddContextArtifactsAndExecutions setAlt(java.lang.String alt) { - return (AddContextArtifactsAndExecutions) super.setAlt(alt); - } - - @Override - public AddContextArtifactsAndExecutions setCallback(java.lang.String callback) { - return (AddContextArtifactsAndExecutions) super.setCallback(callback); - } - - @Override - public AddContextArtifactsAndExecutions setFields(java.lang.String fields) { - return (AddContextArtifactsAndExecutions) super.setFields(fields); - } - - @Override - public AddContextArtifactsAndExecutions setKey(java.lang.String key) { - return (AddContextArtifactsAndExecutions) super.setKey(key); - } - - @Override - public AddContextArtifactsAndExecutions setOauthToken(java.lang.String oauthToken) { - return (AddContextArtifactsAndExecutions) super.setOauthToken(oauthToken); - } - - @Override - public AddContextArtifactsAndExecutions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddContextArtifactsAndExecutions) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddContextArtifactsAndExecutions setQuotaUser(java.lang.String quotaUser) { - return (AddContextArtifactsAndExecutions) super.setQuotaUser(quotaUser); - } - - @Override - public AddContextArtifactsAndExecutions setUploadType(java.lang.String uploadType) { - return (AddContextArtifactsAndExecutions) super.setUploadType(uploadType); - } - - @Override - public AddContextArtifactsAndExecutions setUploadProtocol(java.lang.String uploadProtocol) { - return (AddContextArtifactsAndExecutions) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the Context that the Artifacts and Executions belong - * to. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/c - * ontexts/{context}` - */ - @com.google.api.client.util.Key - private java.lang.String context; - - /** Required. The resource name of the Context that the Artifacts and Executions belong to. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` - */ - public java.lang.String getContext() { - return context; - } - - /** - * Required. The resource name of the Context that the Artifacts and Executions belong - * to. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/c - * ontexts/{context}` - */ - public AddContextArtifactsAndExecutions setContext(java.lang.String context) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), - "Parameter context must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); - } - this.context = context; - return this; - } + public class Executions { - @Override - public AddContextArtifactsAndExecutions set(String parameterName, Object value) { - return (AddContextArtifactsAndExecutions) super.set(parameterName, value); - } - } /** - * Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already - * been added to the parent Context, they are simply skipped. If this call would create a cycle or - * cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT - * error. + * Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an + * input or output for an Execution. If an Event already exists between the Execution and the + * Artifact, the Event is skipped. * - * Create a request for the method "contexts.addContextChildren". + * Create a request for the method "executions.addExecutionEvents". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link AddContextChildren#execute()} method to invoke the remote operation. + * parameters, call the {@link AddExecutionEvents#execute()} method to invoke the remote operation. * - * @param context Required. The resource name of the parent Context. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} - * ` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextChildrenRequest} + * @param execution Required. The resource name of the Execution that the Events connect Artifacts with. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execut + * ion}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddExecutionEventsRequest} * @return the request */ - public AddContextChildren addContextChildren(java.lang.String context, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextChildrenRequest content) throws java.io.IOException { - AddContextChildren result = new AddContextChildren(context, content); + public AddExecutionEvents addExecutionEvents(java.lang.String execution, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddExecutionEventsRequest content) throws java.io.IOException { + AddExecutionEvents result = new AddExecutionEvents(execution, content); initialize(result); return result; } - public class AddContextChildren extends AiplatformRequest { + public class AddExecutionEvents extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+context}:addContextChildren"; + private static final String REST_PATH = "v1beta1/{+execution}:addExecutionEvents"; - private final java.util.regex.Pattern CONTEXT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + private final java.util.regex.Pattern EXECUTION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); /** - * Adds a set of Contexts as children to a parent Context. If any of the child Contexts have - * already been added to the parent Context, they are simply skipped. If this call would create a - * cycle or cause any Context to have more than 10 parents, the request will fail with an - * INVALID_ARGUMENT error. + * Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an + * input or output for an Execution. If an Event already exists between the Execution and the + * Artifact, the Event is skipped. * - * Create a request for the method "contexts.addContextChildren". + * Create a request for the method "executions.addExecutionEvents". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link AddContextChildren#execute()} method to invoke the remote - * operation.

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

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

* - * @param context Required. The resource name of the parent Context. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} - * ` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextChildrenRequest} + * @param execution Required. The resource name of the Execution that the Events connect Artifacts with. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execut + * ion}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddExecutionEventsRequest} * @since 1.13 */ - protected AddContextChildren(java.lang.String context, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextChildrenRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddContextChildrenResponse.class); - this.context = com.google.api.client.util.Preconditions.checkNotNull(context, "Required parameter context must be specified."); + protected AddExecutionEvents(java.lang.String execution, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddExecutionEventsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddExecutionEventsResponse.class); + this.execution = com.google.api.client.util.Preconditions.checkNotNull(execution, "Required parameter execution must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), - "Parameter context must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(EXECUTION_PATTERN.matcher(execution).matches(), + "Parameter execution must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); } } @Override - public AddContextChildren set$Xgafv(java.lang.String $Xgafv) { - return (AddContextChildren) super.set$Xgafv($Xgafv); + public AddExecutionEvents set$Xgafv(java.lang.String $Xgafv) { + return (AddExecutionEvents) super.set$Xgafv($Xgafv); } @Override - public AddContextChildren setAccessToken(java.lang.String accessToken) { - return (AddContextChildren) super.setAccessToken(accessToken); + public AddExecutionEvents setAccessToken(java.lang.String accessToken) { + return (AddExecutionEvents) super.setAccessToken(accessToken); } @Override - public AddContextChildren setAlt(java.lang.String alt) { - return (AddContextChildren) super.setAlt(alt); + public AddExecutionEvents setAlt(java.lang.String alt) { + return (AddExecutionEvents) super.setAlt(alt); } @Override - public AddContextChildren setCallback(java.lang.String callback) { - return (AddContextChildren) super.setCallback(callback); + public AddExecutionEvents setCallback(java.lang.String callback) { + return (AddExecutionEvents) super.setCallback(callback); } @Override - public AddContextChildren setFields(java.lang.String fields) { - return (AddContextChildren) super.setFields(fields); + public AddExecutionEvents setFields(java.lang.String fields) { + return (AddExecutionEvents) super.setFields(fields); } @Override - public AddContextChildren setKey(java.lang.String key) { - return (AddContextChildren) super.setKey(key); + public AddExecutionEvents setKey(java.lang.String key) { + return (AddExecutionEvents) super.setKey(key); } @Override - public AddContextChildren setOauthToken(java.lang.String oauthToken) { - return (AddContextChildren) super.setOauthToken(oauthToken); + public AddExecutionEvents setOauthToken(java.lang.String oauthToken) { + return (AddExecutionEvents) super.setOauthToken(oauthToken); } @Override - public AddContextChildren setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddContextChildren) super.setPrettyPrint(prettyPrint); + public AddExecutionEvents setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddExecutionEvents) super.setPrettyPrint(prettyPrint); } @Override - public AddContextChildren setQuotaUser(java.lang.String quotaUser) { - return (AddContextChildren) super.setQuotaUser(quotaUser); + public AddExecutionEvents setQuotaUser(java.lang.String quotaUser) { + return (AddExecutionEvents) super.setQuotaUser(quotaUser); } @Override - public AddContextChildren setUploadType(java.lang.String uploadType) { - return (AddContextChildren) super.setUploadType(uploadType); + public AddExecutionEvents setUploadType(java.lang.String uploadType) { + return (AddExecutionEvents) super.setUploadType(uploadType); } @Override - public AddContextChildren setUploadProtocol(java.lang.String uploadProtocol) { - return (AddContextChildren) super.setUploadProtocol(uploadProtocol); + public AddExecutionEvents setUploadProtocol(java.lang.String uploadProtocol) { + return (AddExecutionEvents) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the parent Context. Format: `projects/{project}/locati - * ons/{location}/metadataStores/{metadatastore}/contexts/{context}` + * Required. The resource name of the Execution that the Events connect Artifacts with. + * Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/execu + * tions/{execution}` */ @com.google.api.client.util.Key - private java.lang.String context; + private java.lang.String execution; - /** Required. The resource name of the parent Context. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /** Required. The resource name of the Execution that the Events connect Artifacts with. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` */ - public java.lang.String getContext() { - return context; + public java.lang.String getExecution() { + return execution; } /** - * Required. The resource name of the parent Context. Format: `projects/{project}/locati - * ons/{location}/metadataStores/{metadatastore}/contexts/{context}` + * Required. The resource name of the Execution that the Events connect Artifacts with. + * Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/execu + * tions/{execution}` */ - public AddContextChildren setContext(java.lang.String context) { + public AddExecutionEvents setExecution(java.lang.String execution) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), - "Parameter context must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(EXECUTION_PATTERN.matcher(execution).matches(), + "Parameter execution must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); } - this.context = context; + this.execution = execution; return this; } @Override - public AddContextChildren set(String parameterName, Object value) { - return (AddContextChildren) super.set(parameterName, value); + public AddExecutionEvents set(String parameterName, Object value) { + return (AddExecutionEvents) super.set(parameterName, value); } } /** - * Creates a Context associated with a MetadataStore. + * Creates an Execution associated with a MetadataStore. * - * Create a request for the method "contexts.create". + * Create a request for the method "executions.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 MetadataStore where the Context should be created. Format: + * @param parent Required. The resource name of the MetadataStore where the Execution should be created. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution 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}/contexts"; + private static final String REST_PATH = "v1beta1/{+parent}/executions"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * Creates a Context associated with a MetadataStore. + * Creates an Execution associated with a MetadataStore. * - * Create a request for the method "contexts.create". + * Create a request for the method "executions.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. @@ -112175,13 +115411,13 @@ public class Create extends AiplatformRequest * - * @param parent Required. The resource name of the MetadataStore where the Context should be created. Format: + * @param parent Required. The resource name of the MetadataStore where the Execution should be created. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context.class); + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution.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(), @@ -112246,13 +115482,14 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the MetadataStore where the Context should be created. - * Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * Required. The resource name of the MetadataStore where the Execution should be + * created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the MetadataStore where the Context should be created. Format: + /** Required. The resource name of the MetadataStore where the Execution should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public java.lang.String getParent() { @@ -112260,8 +115497,9 @@ public java.lang.String getParent() { } /** - * Required. The resource name of the MetadataStore where the Context should be created. - * Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * Required. The resource name of the MetadataStore where the Execution should be + * created. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -112274,37 +115512,39 @@ public Create setParent(java.lang.String parent) { } /** - * The {context} portion of the resource name with the format: `projects/{project}/locat - * ions/{location}/metadataStores/{metadatastore}/contexts/{context}`. If not provided, - * the Context's ID will be a UUID generated by the service. Must be 4-128 characters in - * length. Valid characters are `/a-z-/`. Must be unique across all Contexts in the - * parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or - * PERMISSION_DENIED if the caller can't view the preexisting Context.) + * The {execution} portion of the resource name with the format: `projects/{project}/loc + * ations/{location}/metadataStores/{metadatastore}/executions/{execution}` If not + * provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 + * characters in length. Valid characters are `/a-z-/`. Must be unique across all + * Executions in the parent MetadataStore. (Otherwise the request will fail with + * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting + * Execution.) */ @com.google.api.client.util.Key - private java.lang.String contextId; + private java.lang.String executionId; - /** The {context} portion of the resource name with the format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. If not - provided, the Context's ID will be a UUID generated by the service. Must be 4-128 characters in - length. Valid characters are `/a-z-/`. Must be unique across all Contexts in the parent + /** The {execution} portion of the resource name with the format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` If + not provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 characters + in length. Valid characters are `/a-z-/`. Must be unique across all Executions in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the - caller can't view the preexisting Context.) + caller can't view the preexisting Execution.) */ - public java.lang.String getContextId() { - return contextId; + public java.lang.String getExecutionId() { + return executionId; } /** - * The {context} portion of the resource name with the format: `projects/{project}/locat - * ions/{location}/metadataStores/{metadatastore}/contexts/{context}`. If not provided, - * the Context's ID will be a UUID generated by the service. Must be 4-128 characters in - * length. Valid characters are `/a-z-/`. Must be unique across all Contexts in the - * parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or - * PERMISSION_DENIED if the caller can't view the preexisting Context.) + * The {execution} portion of the resource name with the format: `projects/{project}/loc + * ations/{location}/metadataStores/{metadatastore}/executions/{execution}` If not + * provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 + * characters in length. Valid characters are `/a-z-/`. Must be unique across all + * Executions in the parent MetadataStore. (Otherwise the request will fail with + * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting + * Execution.) */ - public Create setContextId(java.lang.String contextId) { - this.contextId = contextId; + public Create setExecutionId(java.lang.String executionId) { + this.executionId = executionId; return this; } @@ -112314,16 +115554,16 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes a stored Context. + * Deletes an Execution. * - * Create a request for the method "contexts.delete". + * Create a request for the method "executions.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 Context to delete. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} - * ` + * @param name Required. The resource name of the Execution to delete. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execut + * ion}` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -112337,12 +115577,12 @@ public class Delete extends AiplatformRequest * - * @param name Required. The resource name of the Context to delete. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} - * ` + * @param name Required. The resource name of the Execution to delete. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execut + * ion}` * @since 1.13 */ protected Delete(java.lang.String name) { @@ -112361,7 +115601,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/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); } } @@ -112421,49 +115661,49 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Context to delete. Format: `projects/{project}/loc - * ations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * Required. The resource name of the Execution to delete. Format: `projects/{project}/l + * ocations/{location}/metadataStores/{metadatastore}/executions/{execution}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the Context to delete. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /** Required. The resource name of the Execution to delete. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the Context to delete. Format: `projects/{project}/loc - * ations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * Required. The resource name of the Execution to delete. Format: `projects/{project}/l + * ocations/{location}/metadataStores/{metadatastore}/executions/{execution}` */ 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/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); } this.name = name; return this; } /** - * Optional. The etag of the Context to delete. If this is provided, it must match the + * Optional. The etag of the Execution to delete. If this is provided, it must match the * server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION. */ @com.google.api.client.util.Key private java.lang.String etag; - /** Optional. The etag of the Context to delete. If this is provided, it must match the server's etag. - Otherwise, the request will fail with a FAILED_PRECONDITION. + /** Optional. The etag of the Execution to delete. If this is provided, it must match the server's + etag. Otherwise, the request will fail with a FAILED_PRECONDITION. */ public java.lang.String getEtag() { return etag; } /** - * Optional. The etag of the Context to delete. If this is provided, it must match the + * Optional. The etag of the Execution to delete. If this is provided, it must match the * server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION. */ public Delete setEtag(java.lang.String etag) { @@ -112471,42 +115711,22 @@ public Delete setEtag(java.lang.String etag) { return this; } - /** - * The force deletion semantics is still undefined. Users should not use this field. - */ - @com.google.api.client.util.Key - private java.lang.Boolean force; - - /** The force deletion semantics is still undefined. Users should not use this field. - */ - public java.lang.Boolean getForce() { - return force; - } - - /** - * The force deletion semantics is still undefined. Users should not use this field. - */ - 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); } } /** - * Retrieves a specific Context. + * Retrieves a specific Execution. * - * Create a request for the method "contexts.get". + * Create a request for the method "executions.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 Context to retrieve. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} - * ` + * @param name Required. The resource name of the Execution to retrieve. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execut + * ion}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -112515,35 +115735,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/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); /** - * Retrieves a specific Context. + * Retrieves a specific Execution. * - * Create a request for the method "contexts.get". + * Create a request for the method "executions.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 Context to retrieve. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} - * ` + * @param name Required. The resource name of the Execution to retrieve. Format: + * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execut + * ion}` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution.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/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); } } @@ -112613,28 +115833,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Context to retrieve. Format: `projects/{project}/l - * ocations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * Required. The resource name of the Execution to retrieve. Format: `projects/{project} + * /locations/{location}/metadataStores/{metadatastore}/executions/{execution}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the Context to retrieve. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /** Required. The resource name of the Execution to retrieve. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the Context to retrieve. Format: `projects/{project}/l - * ocations/{location}/metadataStores/{metadatastore}/contexts/{context}` + * Required. The resource name of the Execution to retrieve. Format: `projects/{project} + * /locations/{location}/metadataStores/{metadatastore}/executions/{execution}` */ 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/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); } this.name = name; return this; @@ -112646,14 +115866,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists Contexts on the MetadataStore. + * Lists Executions in the MetadataStore. * - * Create a request for the method "contexts.list". + * Create a request for the method "executions.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 MetadataStore whose Contexts should be listed. Format: + * @param parent Required. The MetadataStore whose Executions should be listed. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @return the request */ @@ -112663,29 +115883,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}/contexts"; + private static final String REST_PATH = "v1beta1/{+parent}/executions"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * Lists Contexts on the MetadataStore. + * Lists Executions in the MetadataStore. * - * Create a request for the method "contexts.list". + * Create a request for the method "executions.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 MetadataStore whose Contexts should be listed. Format: + * @param parent Required. The MetadataStore whose Executions should be listed. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @since 1.13 */ protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListContextsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListExecutionsResponse.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(), @@ -112760,13 +115980,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The MetadataStore whose Contexts should be listed. Format: + * Required. The MetadataStore whose Executions should be listed. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The MetadataStore whose Contexts should be listed. Format: + /** Required. The MetadataStore whose Executions should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public java.lang.String getParent() { @@ -112774,7 +115994,7 @@ public java.lang.String getParent() { } /** - * Required. The MetadataStore whose Contexts should be listed. Format: + * Required. The MetadataStore whose Executions should be listed. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public List setParent(java.lang.String parent) { @@ -112788,63 +116008,63 @@ public List setParent(java.lang.String parent) { } /** - * Filter specifying the boolean condition for the Contexts to satisfy in order to be + * Filter specifying the boolean condition for the Executions to satisfy in order to be * part of the result set. The syntax to define filter query is based on * https://google.aip.dev/160. Following are the supported set of filters: * **Attribute * filtering**: For example: `display_name = "test"`. Supported fields include: `name`, - * `display_name`, `schema_title`, `create_time`, and `update_time`. Time fields, such - * as `create_time` and `update_time`, require values specified in RFC-3339 format. For - * example: `create_time = "2020-11-19T11:30:00-04:00"`. * **Metadata field**: To filter - * on metadata fields use traversal operation as follows: `metadata..`. For example: - * `metadata.field_1.number_value = 10.0`. In case the field name contains special - * characters (such as colon), one can embed it inside double quote. For example: - * `metadata."field:1".number_value = 10.0` * **Parent Child filtering**: To filter - * Contexts based on parent-child relationship use the HAS operator as follows: ``` - * parent_contexts: "projects//locations//metadataStores//contexts/" child_contexts: - * "projects//locations//metadataStores//contexts/" ``` Each of the above supported - * filters can be combined together using logical operators (`AND` & `OR`). Maximum - * nested expression depth allowed is 5. For example: `display_name = "test" AND + * `display_name`, `state`, `schema_title`, `create_time`, and `update_time`. Time + * fields, such as `create_time` and `update_time`, require values specified in RFC-3339 + * format. For example: `create_time = "2020-11-19T11:30:00-04:00"`. * **Metadata + * field**: To filter on metadata fields use traversal operation as follows: + * `metadata..` For example: `metadata.field_1.number_value = 10.0` In case the field + * name contains special characters (such as colon), one can embed it inside double + * quote. For example: `metadata."field:1".number_value = 10.0` * **Context based + * filtering**: To filter Executions based on the contexts to which they belong use the + * function operator with the full resource name: `in_context()`. For example: + * `in_context("projects//locations//metadataStores//contexts/")` Each of the above + * supported filters can be combined together using logical operators (`AND` & `OR`). + * Maximum nested expression depth allowed is 5. For example: `display_name = "test" AND * metadata.field1.bool_value = true`. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Filter specifying the boolean condition for the Contexts to satisfy in order to be part of the + /** Filter specifying the boolean condition for the Executions to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. Following are the supported set of filters: * **Attribute filtering**: For example: `display_name = "test"`. - Supported fields include: `name`, `display_name`, `schema_title`, `create_time`, and `update_time`. - Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. - For example: `create_time = "2020-11-19T11:30:00-04:00"`. * **Metadata field**: To filter on - metadata fields use traversal operation as follows: `metadata..`. For example: - `metadata.field_1.number_value = 10.0`. In case the field name contains special characters (such as + Supported fields include: `name`, `display_name`, `state`, `schema_title`, `create_time`, and + `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in + RFC-3339 format. For example: `create_time = "2020-11-19T11:30:00-04:00"`. * **Metadata field**: To + filter on metadata fields use traversal operation as follows: `metadata..` For example: + `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata."field:1".number_value = 10.0` - * **Parent Child filtering**: To filter Contexts based on parent-child relationship use the HAS - operator as follows: ``` parent_contexts: "projects//locations//metadataStores//contexts/" - child_contexts: "projects//locations//metadataStores//contexts/" ``` Each of the above supported - filters can be combined together using logical operators (`AND` & `OR`). Maximum nested expression - depth allowed is 5. For example: `display_name = "test" AND metadata.field1.bool_value = true`. + * **Context based filtering**: To filter Executions based on the contexts to which they belong use + the function operator with the full resource name: `in_context()`. For example: + `in_context("projects//locations//metadataStores//contexts/")` Each of the above supported filters + can be combined together using logical operators (`AND` & `OR`). Maximum nested expression depth + allowed is 5. For example: `display_name = "test" AND metadata.field1.bool_value = true`. */ public java.lang.String getFilter() { return filter; } /** - * Filter specifying the boolean condition for the Contexts to satisfy in order to be + * Filter specifying the boolean condition for the Executions to satisfy in order to be * part of the result set. The syntax to define filter query is based on * https://google.aip.dev/160. Following are the supported set of filters: * **Attribute * filtering**: For example: `display_name = "test"`. Supported fields include: `name`, - * `display_name`, `schema_title`, `create_time`, and `update_time`. Time fields, such - * as `create_time` and `update_time`, require values specified in RFC-3339 format. For - * example: `create_time = "2020-11-19T11:30:00-04:00"`. * **Metadata field**: To filter - * on metadata fields use traversal operation as follows: `metadata..`. For example: - * `metadata.field_1.number_value = 10.0`. In case the field name contains special - * characters (such as colon), one can embed it inside double quote. For example: - * `metadata."field:1".number_value = 10.0` * **Parent Child filtering**: To filter - * Contexts based on parent-child relationship use the HAS operator as follows: ``` - * parent_contexts: "projects//locations//metadataStores//contexts/" child_contexts: - * "projects//locations//metadataStores//contexts/" ``` Each of the above supported - * filters can be combined together using logical operators (`AND` & `OR`). Maximum - * nested expression depth allowed is 5. For example: `display_name = "test" AND + * `display_name`, `state`, `schema_title`, `create_time`, and `update_time`. Time + * fields, such as `create_time` and `update_time`, require values specified in RFC-3339 + * format. For example: `create_time = "2020-11-19T11:30:00-04:00"`. * **Metadata + * field**: To filter on metadata fields use traversal operation as follows: + * `metadata..` For example: `metadata.field_1.number_value = 10.0` In case the field + * name contains special characters (such as colon), one can embed it inside double + * quote. For example: `metadata."field:1".number_value = 10.0` * **Context based + * filtering**: To filter Executions based on the contexts to which they belong use the + * function operator with the full resource name: `in_context()`. For example: + * `in_context("projects//locations//metadataStores//contexts/")` Each of the above + * supported filters can be combined together using logical operators (`AND` & `OR`). + * Maximum nested expression depth allowed is 5. For example: `display_name = "test" AND * metadata.field1.bool_value = true`. */ public List setFilter(java.lang.String filter) { @@ -112884,13 +116104,13 @@ public List setOrderBy(java.lang.String orderBy) { } /** - * The maximum number of Contexts to return. The service may return fewer. Must be in + * The maximum number of Executions to return. The service may return fewer. Must be in * range 1-100, inclusive. Defaults to 100. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The maximum number of Contexts to return. The service may return fewer. Must be in range 1-100, + /** The maximum number of Executions to return. The service may return fewer. Must be in range 1-100, inclusive. Defaults to 100. */ public java.lang.Integer getPageSize() { @@ -112898,7 +116118,7 @@ public java.lang.Integer getPageSize() { } /** - * The maximum number of Contexts to return. The service may return fewer. Must be in + * The maximum number of Executions to return. The service may return fewer. Must be in * range 1-100, inclusive. Defaults to 100. */ public List setPageSize(java.lang.Integer pageSize) { @@ -112907,27 +116127,27 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * A page token, received from a previous MetadataService.ListContexts call. Provide + * A page token, received from a previous MetadataService.ListExecutions call. Provide * this to retrieve the subsequent page. When paginating, all other provided parameters * must match the call that provided the page token. (Otherwise the request will fail - * with INVALID_ARGUMENT error.) + * with an INVALID_ARGUMENT error.) */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** A page token, received from a previous MetadataService.ListContexts call. Provide this to retrieve - the subsequent page. When paginating, all other provided parameters must match the call that - provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.) + /** A page token, received from a previous MetadataService.ListExecutions call. Provide this to + retrieve the subsequent page. When paginating, all other provided parameters must match the call + that provided the page token. (Otherwise the request will fail with an INVALID_ARGUMENT error.) */ public java.lang.String getPageToken() { return pageToken; } /** - * A page token, received from a previous MetadataService.ListContexts call. Provide + * A page token, received from a previous MetadataService.ListExecutions call. Provide * this to retrieve the subsequent page. When paginating, all other provided parameters * must match the call that provided the page token. (Otherwise the request will fail - * with INVALID_ARGUMENT error.) + * with an INVALID_ARGUMENT error.) */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; @@ -112940,34 +116160,34 @@ public List set(String parameterName, Object value) { } } /** - * Updates a stored Context. + * Updates a stored Execution. * - * Create a request for the method "contexts.patch". + * Create a request for the method "executions.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 Context. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context} + * @param name Output only. The resource name of the Execution. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; } - public class Patch extends AiplatformRequest { + 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/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); /** - * Updates a stored Context. + * Updates a stored Execution. * - * Create a request for the method "contexts.patch". + * Create a request for the method "executions.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. @@ -112975,17 +116195,17 @@ public class Patch extends AiplatformRequest * - * @param name Immutable. The resource name of the Context. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context} + * @param name Output only. The resource name of the Execution. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Context.class); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution.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/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); } } @@ -113044,38 +116264,38 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { return (Patch) super.setUploadProtocol(uploadProtocol); } - /** Immutable. The resource name of the Context. */ + /** Output only. The resource name of the Execution. */ @com.google.api.client.util.Key private java.lang.String name; - /** Immutable. The resource name of the Context. + /** Output only. The resource name of the Execution. */ public java.lang.String getName() { return name; } - /** Immutable. The resource name of the Context. */ + /** Output only. The resource name of the Execution. */ 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/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); } this.name = name; return this; } - /** If set to true, and the Context is not found, a new Context is created. */ + /** If set to true, and the Execution is not found, a new Execution is created. */ @com.google.api.client.util.Key private java.lang.Boolean allowMissing; - /** If set to true, and the Context is not found, a new Context is created. + /** If set to true, and the Execution is not found, a new Execution is created. */ public java.lang.Boolean getAllowMissing() { return allowMissing; } - /** If set to true, and the Context is not found, a new Context is created. */ + /** If set to true, and the Execution is not found, a new Execution is created. */ public Patch setAllowMissing(java.lang.Boolean allowMissing) { this.allowMissing = allowMissing; return this; @@ -113103,19 +116323,19 @@ public Patch set(String parameterName, Object value) { } } /** - * Purges Contexts. + * Purges Executions. * - * Create a request for the method "contexts.purge". + * Create a request for the method "executions.purge". * * This request holds the parameters needed by the aiplatform server. After setting any optional * parameters, call the {@link Purge#execute()} method to invoke the remote operation. * - * @param parent Required. The metadata store to purge Contexts from. Format: + * @param parent Required. The metadata store to purge Executions from. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeContextsRequest} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeExecutionsRequest} * @return the request */ - public Purge purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeContextsRequest content) throws java.io.IOException { + public Purge purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeExecutionsRequest content) throws java.io.IOException { Purge result = new Purge(parent, content); initialize(result); return result; @@ -113123,15 +116343,15 @@ public Purge purge(java.lang.String parent, com.google.api.services.aiplatform.v public class Purge extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/contexts:purge"; + private static final String REST_PATH = "v1beta1/{+parent}/executions:purge"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * Purges Contexts. + * Purges Executions. * - * Create a request for the method "contexts.purge". + * Create a request for the method "executions.purge". * * This request holds the parameters needed by the the aiplatform server. After setting any * optional parameters, call the {@link Purge#execute()} method to invoke the remote operation. @@ -113139,12 +116359,12 @@ public class Purge extends AiplatformRequest * - * @param parent Required. The metadata store to purge Contexts from. Format: + * @param parent Required. The metadata store to purge Executions from. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeContextsRequest} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeExecutionsRequest} * @since 1.13 */ - protected Purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeContextsRequest content) { + protected Purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeExecutionsRequest 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()) { @@ -113210,13 +116430,13 @@ public Purge setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The metadata store to purge Contexts from. Format: + * Required. The metadata store to purge Executions from. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The metadata store to purge Contexts from. Format: + /** Required. The metadata store to purge Executions from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public java.lang.String getParent() { @@ -113224,7 +116444,7 @@ public java.lang.String getParent() { } /** - * Required. The metadata store to purge Contexts from. Format: + * Required. The metadata store to purge Executions from. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public Purge setParent(java.lang.String parent) { @@ -113243,61 +116463,57 @@ public Purge set(String parameterName, Object value) { } } /** - * Retrieves Artifacts and Executions within the specified Context, connected by Event edges and - * returned as a LineageSubgraph. + * Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph + * that also contains the Execution and connecting Events. * - * Create a request for the method "contexts.queryContextLineageSubgraph". + * Create a request for the method "executions.queryExecutionInputsAndOutputs". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link QueryContextLineageSubgraph#execute()} method to invoke the remote + * parameters, call the {@link QueryExecutionInputsAndOutputs#execute()} method to invoke the remote * operation. * - * @param context Required. The resource name of the Context whose Artifacts and Executions should be retrieved as a - * LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadata - * store}/contexts/{context}` The request may error with FAILED_PRECONDITION if the number of - * Artifacts, the number of Executions, or the number of Events that would be returned for - * the Context exceeds 1000. + * @param execution Required. The resource name of the Execution whose input and output Artifacts should be retrieved as + * a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metada + * tastore}/executions/{execution}` * @return the request */ - public QueryContextLineageSubgraph queryContextLineageSubgraph(java.lang.String context) throws java.io.IOException { - QueryContextLineageSubgraph result = new QueryContextLineageSubgraph(context); + public QueryExecutionInputsAndOutputs queryExecutionInputsAndOutputs(java.lang.String execution) throws java.io.IOException { + QueryExecutionInputsAndOutputs result = new QueryExecutionInputsAndOutputs(execution); initialize(result); return result; } - public class QueryContextLineageSubgraph extends AiplatformRequest { + public class QueryExecutionInputsAndOutputs extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+context}:queryContextLineageSubgraph"; + private static final String REST_PATH = "v1beta1/{+execution}:queryExecutionInputsAndOutputs"; - private final java.util.regex.Pattern CONTEXT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + private final java.util.regex.Pattern EXECUTION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); /** - * Retrieves Artifacts and Executions within the specified Context, connected by Event edges and - * returned as a LineageSubgraph. + * Obtains the set of input and output Artifacts for this Execution, in the form of + * LineageSubgraph that also contains the Execution and connecting Events. * - * Create a request for the method "contexts.queryContextLineageSubgraph". + * Create a request for the method "executions.queryExecutionInputsAndOutputs". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link QueryContextLineageSubgraph#execute()} method to invoke - * the remote operation.

{@link QueryContextLineageSubgraph#initialize(com.google.api.client.g - * oogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * optional parameters, call the {@link QueryExecutionInputsAndOutputs#execute()} method to invoke + * the remote operation.

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

* - * @param context Required. The resource name of the Context whose Artifacts and Executions should be retrieved as a - * LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadata - * store}/contexts/{context}` The request may error with FAILED_PRECONDITION if the number of - * Artifacts, the number of Executions, or the number of Events that would be returned for - * the Context exceeds 1000. + * @param execution Required. The resource name of the Execution whose input and output Artifacts should be retrieved as + * a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metada + * tastore}/executions/{execution}` * @since 1.13 */ - protected QueryContextLineageSubgraph(java.lang.String context) { + protected QueryExecutionInputsAndOutputs(java.lang.String execution) { super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1LineageSubgraph.class); - this.context = com.google.api.client.util.Preconditions.checkNotNull(context, "Required parameter context must be specified."); + this.execution = com.google.api.client.util.Preconditions.checkNotNull(execution, "Required parameter execution must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), - "Parameter context must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(EXECUTION_PATTERN.matcher(execution).matches(), + "Parameter execution must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); } } @@ -113312,245 +116528,94 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public QueryContextLineageSubgraph set$Xgafv(java.lang.String $Xgafv) { - return (QueryContextLineageSubgraph) super.set$Xgafv($Xgafv); - } - - @Override - public QueryContextLineageSubgraph setAccessToken(java.lang.String accessToken) { - return (QueryContextLineageSubgraph) super.setAccessToken(accessToken); - } - - @Override - public QueryContextLineageSubgraph setAlt(java.lang.String alt) { - return (QueryContextLineageSubgraph) super.setAlt(alt); - } - - @Override - public QueryContextLineageSubgraph setCallback(java.lang.String callback) { - return (QueryContextLineageSubgraph) super.setCallback(callback); - } - - @Override - public QueryContextLineageSubgraph setFields(java.lang.String fields) { - return (QueryContextLineageSubgraph) super.setFields(fields); - } - - @Override - public QueryContextLineageSubgraph setKey(java.lang.String key) { - return (QueryContextLineageSubgraph) super.setKey(key); - } - - @Override - public QueryContextLineageSubgraph setOauthToken(java.lang.String oauthToken) { - return (QueryContextLineageSubgraph) super.setOauthToken(oauthToken); - } - - @Override - public QueryContextLineageSubgraph setPrettyPrint(java.lang.Boolean prettyPrint) { - return (QueryContextLineageSubgraph) super.setPrettyPrint(prettyPrint); - } - - @Override - public QueryContextLineageSubgraph setQuotaUser(java.lang.String quotaUser) { - return (QueryContextLineageSubgraph) super.setQuotaUser(quotaUser); - } - - @Override - public QueryContextLineageSubgraph setUploadType(java.lang.String uploadType) { - return (QueryContextLineageSubgraph) super.setUploadType(uploadType); - } - - @Override - public QueryContextLineageSubgraph setUploadProtocol(java.lang.String uploadProtocol) { - return (QueryContextLineageSubgraph) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the Context whose Artifacts and Executions should be - * retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/meta - * dataStores/{metadatastore}/contexts/{context}` The request may error with - * FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the - * number of Events that would be returned for the Context exceeds 1000. - */ - @com.google.api.client.util.Key - private java.lang.String context; - - /** Required. The resource name of the Context whose Artifacts and Executions should be retrieved as a - LineageSubgraph. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` The - request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or - the number of Events that would be returned for the Context exceeds 1000. - */ - public java.lang.String getContext() { - return context; - } - - /** - * Required. The resource name of the Context whose Artifacts and Executions should be - * retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/meta - * dataStores/{metadatastore}/contexts/{context}` The request may error with - * FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the - * number of Events that would be returned for the Context exceeds 1000. - */ - public QueryContextLineageSubgraph setContext(java.lang.String context) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), - "Parameter context must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); - } - this.context = context; - return this; - } - - @Override - public QueryContextLineageSubgraph set(String parameterName, Object value) { - return (QueryContextLineageSubgraph) super.set(parameterName, value); - } - } - /** - * Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT - * added to the parent Context, they are simply skipped. - * - * Create a request for the method "contexts.removeContextChildren". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link RemoveContextChildren#execute()} method to invoke the remote - * operation. - * - * @param context Required. The resource name of the parent Context. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} - * ` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest} - * @return the request - */ - public RemoveContextChildren removeContextChildren(java.lang.String context, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest content) throws java.io.IOException { - RemoveContextChildren result = new RemoveContextChildren(context, content); - initialize(result); - return result; - } - - public class RemoveContextChildren extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+context}:removeContextChildren"; - - private final java.util.regex.Pattern CONTEXT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); - - /** - * Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT - * added to the parent Context, they are simply skipped. - * - * Create a request for the method "contexts.removeContextChildren". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link RemoveContextChildren#execute()} method to invoke the - * remote operation.

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

- * - * @param context Required. The resource name of the parent Context. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context} - * ` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest} - * @since 1.13 - */ - protected RemoveContextChildren(java.lang.String context, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse.class); - this.context = com.google.api.client.util.Preconditions.checkNotNull(context, "Required parameter context must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), - "Parameter context must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); - } - } - - @Override - public RemoveContextChildren set$Xgafv(java.lang.String $Xgafv) { - return (RemoveContextChildren) super.set$Xgafv($Xgafv); + public QueryExecutionInputsAndOutputs set$Xgafv(java.lang.String $Xgafv) { + return (QueryExecutionInputsAndOutputs) super.set$Xgafv($Xgafv); } @Override - public RemoveContextChildren setAccessToken(java.lang.String accessToken) { - return (RemoveContextChildren) super.setAccessToken(accessToken); + public QueryExecutionInputsAndOutputs setAccessToken(java.lang.String accessToken) { + return (QueryExecutionInputsAndOutputs) super.setAccessToken(accessToken); } @Override - public RemoveContextChildren setAlt(java.lang.String alt) { - return (RemoveContextChildren) super.setAlt(alt); + public QueryExecutionInputsAndOutputs setAlt(java.lang.String alt) { + return (QueryExecutionInputsAndOutputs) super.setAlt(alt); } @Override - public RemoveContextChildren setCallback(java.lang.String callback) { - return (RemoveContextChildren) super.setCallback(callback); + public QueryExecutionInputsAndOutputs setCallback(java.lang.String callback) { + return (QueryExecutionInputsAndOutputs) super.setCallback(callback); } @Override - public RemoveContextChildren setFields(java.lang.String fields) { - return (RemoveContextChildren) super.setFields(fields); + public QueryExecutionInputsAndOutputs setFields(java.lang.String fields) { + return (QueryExecutionInputsAndOutputs) super.setFields(fields); } @Override - public RemoveContextChildren setKey(java.lang.String key) { - return (RemoveContextChildren) super.setKey(key); + public QueryExecutionInputsAndOutputs setKey(java.lang.String key) { + return (QueryExecutionInputsAndOutputs) super.setKey(key); } @Override - public RemoveContextChildren setOauthToken(java.lang.String oauthToken) { - return (RemoveContextChildren) super.setOauthToken(oauthToken); + public QueryExecutionInputsAndOutputs setOauthToken(java.lang.String oauthToken) { + return (QueryExecutionInputsAndOutputs) super.setOauthToken(oauthToken); } @Override - public RemoveContextChildren setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveContextChildren) super.setPrettyPrint(prettyPrint); + public QueryExecutionInputsAndOutputs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryExecutionInputsAndOutputs) super.setPrettyPrint(prettyPrint); } @Override - public RemoveContextChildren setQuotaUser(java.lang.String quotaUser) { - return (RemoveContextChildren) super.setQuotaUser(quotaUser); + public QueryExecutionInputsAndOutputs setQuotaUser(java.lang.String quotaUser) { + return (QueryExecutionInputsAndOutputs) super.setQuotaUser(quotaUser); } @Override - public RemoveContextChildren setUploadType(java.lang.String uploadType) { - return (RemoveContextChildren) super.setUploadType(uploadType); + public QueryExecutionInputsAndOutputs setUploadType(java.lang.String uploadType) { + return (QueryExecutionInputsAndOutputs) super.setUploadType(uploadType); } @Override - public RemoveContextChildren setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveContextChildren) super.setUploadProtocol(uploadProtocol); + public QueryExecutionInputsAndOutputs setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryExecutionInputsAndOutputs) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the parent Context. Format: `projects/{project}/locati - * ons/{location}/metadataStores/{metadatastore}/contexts/{context}` + * Required. The resource name of the Execution whose input and output Artifacts should + * be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/m + * etadataStores/{metadatastore}/executions/{execution}` */ @com.google.api.client.util.Key - private java.lang.String context; + private java.lang.String execution; - /** Required. The resource name of the parent Context. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /** Required. The resource name of the Execution whose input and output Artifacts should be retrieved + as a LineageSubgraph. Format: + `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` */ - public java.lang.String getContext() { - return context; + public java.lang.String getExecution() { + return execution; } /** - * Required. The resource name of the parent Context. Format: `projects/{project}/locati - * ons/{location}/metadataStores/{metadatastore}/contexts/{context}` + * Required. The resource name of the Execution whose input and output Artifacts should + * be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/m + * etadataStores/{metadatastore}/executions/{execution}` */ - public RemoveContextChildren setContext(java.lang.String context) { + public QueryExecutionInputsAndOutputs setExecution(java.lang.String execution) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(CONTEXT_PATTERN.matcher(context).matches(), - "Parameter context must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(EXECUTION_PATTERN.matcher(execution).matches(), + "Parameter execution must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); } - this.context = context; + this.execution = execution; return this; } @Override - public RemoveContextChildren set(String parameterName, Object value) { - return (RemoveContextChildren) super.set(parameterName, value); + public QueryExecutionInputsAndOutputs set(String parameterName, Object value) { + return (QueryExecutionInputsAndOutputs) super.set(parameterName, value); } } @@ -113602,7 +116667,7 @@ public class Cancel extends AiplatformRequestThe typical use is:

*
          *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Executions.List request = aiplatform.executions().list(parameters ...)}
+         *   {@code Aiplatform.MetadataSchemas.List request = aiplatform.metadataSchemas().list(parameters ...)}
          * 
* * @return the resource collection */ - public Executions executions() { - return new Executions(); + public MetadataSchemas metadataSchemas() { + return new MetadataSchemas(); } /** - * The "executions" collection of methods. + * The "metadataSchemas" collection of methods. */ - public class Executions { - - /** - * Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an - * input or output for an Execution. If an Event already exists between the Execution and the - * Artifact, the Event is skipped. - * - * Create a request for the method "executions.addExecutionEvents". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link AddExecutionEvents#execute()} method to invoke the remote operation. - * - * @param execution Required. The resource name of the Execution that the Events connect Artifacts with. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execut - * ion}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddExecutionEventsRequest} - * @return the request - */ - public AddExecutionEvents addExecutionEvents(java.lang.String execution, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddExecutionEventsRequest content) throws java.io.IOException { - AddExecutionEvents result = new AddExecutionEvents(execution, content); - initialize(result); - return result; - } - - public class AddExecutionEvents extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+execution}:addExecutionEvents"; - - private final java.util.regex.Pattern EXECUTION_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); - - /** - * Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an - * input or output for an Execution. If an Event already exists between the Execution and the - * Artifact, the Event is skipped. - * - * Create a request for the method "executions.addExecutionEvents". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link AddExecutionEvents#execute()} method to invoke the remote - * operation.

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

- * - * @param execution Required. The resource name of the Execution that the Events connect Artifacts with. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execut - * ion}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddExecutionEventsRequest} - * @since 1.13 - */ - protected AddExecutionEvents(java.lang.String execution, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddExecutionEventsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AddExecutionEventsResponse.class); - this.execution = com.google.api.client.util.Preconditions.checkNotNull(execution, "Required parameter execution must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXECUTION_PATTERN.matcher(execution).matches(), - "Parameter execution must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); - } - } - - @Override - public AddExecutionEvents set$Xgafv(java.lang.String $Xgafv) { - return (AddExecutionEvents) super.set$Xgafv($Xgafv); - } - - @Override - public AddExecutionEvents setAccessToken(java.lang.String accessToken) { - return (AddExecutionEvents) super.setAccessToken(accessToken); - } - - @Override - public AddExecutionEvents setAlt(java.lang.String alt) { - return (AddExecutionEvents) super.setAlt(alt); - } - - @Override - public AddExecutionEvents setCallback(java.lang.String callback) { - return (AddExecutionEvents) super.setCallback(callback); - } - - @Override - public AddExecutionEvents setFields(java.lang.String fields) { - return (AddExecutionEvents) super.setFields(fields); - } - - @Override - public AddExecutionEvents setKey(java.lang.String key) { - return (AddExecutionEvents) super.setKey(key); - } - - @Override - public AddExecutionEvents setOauthToken(java.lang.String oauthToken) { - return (AddExecutionEvents) super.setOauthToken(oauthToken); - } - - @Override - public AddExecutionEvents setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddExecutionEvents) super.setPrettyPrint(prettyPrint); - } - - @Override - public AddExecutionEvents setQuotaUser(java.lang.String quotaUser) { - return (AddExecutionEvents) super.setQuotaUser(quotaUser); - } - - @Override - public AddExecutionEvents setUploadType(java.lang.String uploadType) { - return (AddExecutionEvents) super.setUploadType(uploadType); - } - - @Override - public AddExecutionEvents setUploadProtocol(java.lang.String uploadProtocol) { - return (AddExecutionEvents) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the Execution that the Events connect Artifacts with. - * Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/execu - * tions/{execution}` - */ - @com.google.api.client.util.Key - private java.lang.String execution; - - /** Required. The resource name of the Execution that the Events connect Artifacts with. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` - */ - public java.lang.String getExecution() { - return execution; - } - - /** - * Required. The resource name of the Execution that the Events connect Artifacts with. - * Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/execu - * tions/{execution}` - */ - public AddExecutionEvents setExecution(java.lang.String execution) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXECUTION_PATTERN.matcher(execution).matches(), - "Parameter execution must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); - } - this.execution = execution; - return this; - } + public class MetadataSchemas { - @Override - public AddExecutionEvents set(String parameterName, Object value) { - return (AddExecutionEvents) super.set(parameterName, value); - } - } /** - * Creates an Execution associated with a MetadataStore. + * Creates a MetadataSchema. * - * Create a request for the method "executions.create". + * Create a request for the method "metadataSchemas.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 MetadataStore where the Execution should be created. Format: + * @param parent Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataSchema} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataSchema 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}/executions"; + private static final String REST_PATH = "v1beta1/{+parent}/metadataSchemas"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * Creates an Execution associated with a MetadataStore. + * Creates a MetadataSchema. * - * Create a request for the method "executions.create". + * Create a request for the method "metadataSchemas.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. @@ -114585,13 +117502,13 @@ public class Create extends AiplatformRequest * - * @param parent Required. The resource name of the MetadataStore where the Execution should be created. Format: + * @param parent Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataSchema} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution.class); + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataSchema content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataSchema.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(), @@ -114656,22 +117573,22 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the MetadataStore where the Execution should be + * Required. The resource name of the MetadataStore where the MetadataSchema should be * created. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The resource name of the MetadataStore where the Execution should be created. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /** Required. The resource name of the MetadataStore where the MetadataSchema should be created. + Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public java.lang.String getParent() { return parent; } /** - * Required. The resource name of the MetadataStore where the Execution should be + * Required. The resource name of the MetadataStore where the MetadataSchema should be * created. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ @@ -114686,221 +117603,57 @@ public Create setParent(java.lang.String parent) { } /** - * The {execution} portion of the resource name with the format: `projects/{project}/loc - * ations/{location}/metadataStores/{metadatastore}/executions/{execution}` If not - * provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 - * characters in length. Valid characters are `/a-z-/`. Must be unique across all - * Executions in the parent MetadataStore. (Otherwise the request will fail with - * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting - * Execution.) - */ - @com.google.api.client.util.Key - private java.lang.String executionId; - - /** The {execution} portion of the resource name with the format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` If - not provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 characters - in length. Valid characters are `/a-z-/`. Must be unique across all Executions in the parent - MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the - caller can't view the preexisting Execution.) - */ - public java.lang.String getExecutionId() { - return executionId; - } - - /** - * The {execution} portion of the resource name with the format: `projects/{project}/loc - * ations/{location}/metadataStores/{metadatastore}/executions/{execution}` If not - * provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 - * characters in length. Valid characters are `/a-z-/`. Must be unique across all - * Executions in the parent MetadataStore. (Otherwise the request will fail with - * ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting - * Execution.) - */ - public Create setExecutionId(java.lang.String executionId) { - this.executionId = executionId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes an Execution. - * - * Create a request for the method "executions.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 Execution to delete. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execut - * ion}` - * @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/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); - - /** - * Deletes an Execution. - * - * Create a request for the method "executions.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 Execution to delete. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execut - * ion}` - * @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/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); - } - } - - @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 Execution to delete. Format: `projects/{project}/l - * ocations/{location}/metadataStores/{metadatastore}/executions/{execution}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the Execution to delete. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the Execution to delete. Format: `projects/{project}/l - * ocations/{location}/metadataStores/{metadatastore}/executions/{execution}` - */ - 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/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. The etag of the Execution to delete. If this is provided, it must match the - * server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION. + * The {metadata_schema} portion of the resource name with the format: `projects/{projec + * t}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschem + * a}` If not provided, the MetadataStore's ID will be a UUID generated by the service. + * Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique + * across all MetadataSchemas in the parent Location. (Otherwise the request will fail + * with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting + * MetadataSchema.) */ @com.google.api.client.util.Key - private java.lang.String etag; + private java.lang.String metadataSchemaId; - /** Optional. The etag of the Execution to delete. If this is provided, it must match the server's - etag. Otherwise, the request will fail with a FAILED_PRECONDITION. + /** The {metadata_schema} portion of the resource name with the format: `projects/{project}/locations/{ + location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` If not provided, the + MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. + Valid characters are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location. + (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view + the preexisting MetadataSchema.) */ - public java.lang.String getEtag() { - return etag; + public java.lang.String getMetadataSchemaId() { + return metadataSchemaId; } /** - * Optional. The etag of the Execution to delete. If this is provided, it must match the - * server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION. + * The {metadata_schema} portion of the resource name with the format: `projects/{projec + * t}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschem + * a}` If not provided, the MetadataStore's ID will be a UUID generated by the service. + * Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique + * across all MetadataSchemas in the parent Location. (Otherwise the request will fail + * with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting + * MetadataSchema.) */ - public Delete setEtag(java.lang.String etag) { - this.etag = etag; + public Create setMetadataSchemaId(java.lang.String metadataSchemaId) { + this.metadataSchemaId = metadataSchemaId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Retrieves a specific Execution. + * Retrieves a specific MetadataSchema. * - * Create a request for the method "executions.get". + * Create a request for the method "metadataSchemas.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 Execution to retrieve. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execut - * ion}` + * @param name Required. The resource name of the MetadataSchema to retrieve. Format: `projects/{project}/locations + * /{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -114909,35 +117662,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/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/metadataSchemas/[^/]+$"); /** - * Retrieves a specific Execution. + * Retrieves a specific MetadataSchema. * - * Create a request for the method "executions.get". + * Create a request for the method "metadataSchemas.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 Execution to retrieve. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execut - * ion}` + * @param name Required. The resource name of the MetadataSchema to retrieve. Format: `projects/{project}/locations + * /{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataSchema.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/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/metadataSchemas/[^/]+$"); } } @@ -115007,28 +117759,30 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the Execution to retrieve. Format: `projects/{project} - * /locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * Required. The resource name of the MetadataSchema to retrieve. Format: `projects/{pro + * ject}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadatasc + * hema}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the Execution to retrieve. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + /** Required. The resource name of the MetadataSchema to retrieve. Format: `projects/{project}/location + s/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the Execution to retrieve. Format: `projects/{project} - * /locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + * Required. The resource name of the MetadataSchema to retrieve. Format: `projects/{pro + * ject}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadatasc + * hema}` */ 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/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/metadataSchemas/[^/]+$"); } this.name = name; return this; @@ -115040,14 +117794,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists Executions in the MetadataStore. + * Lists MetadataSchemas. * - * Create a request for the method "executions.list". + * Create a request for the method "metadataSchemas.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 MetadataStore whose Executions should be listed. Format: + * @param parent Required. The MetadataStore whose MetadataSchemas should be listed. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @return the request */ @@ -115057,29 +117811,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}/executions"; + private static final String REST_PATH = "v1beta1/{+parent}/metadataSchemas"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * Lists Executions in the MetadataStore. + * Lists MetadataSchemas. * - * Create a request for the method "executions.list". + * Create a request for the method "metadataSchemas.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 MetadataStore whose Executions should be listed. Format: + * @param parent Required. The MetadataStore whose MetadataSchemas should be listed. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` * @since 1.13 */ protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListExecutionsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse.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(), @@ -115154,13 +117908,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The MetadataStore whose Executions should be listed. Format: + * Required. The MetadataStore whose MetadataSchemas should be listed. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The MetadataStore whose Executions should be listed. Format: + /** Required. The MetadataStore whose MetadataSchemas should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public java.lang.String getParent() { @@ -115168,7 +117922,7 @@ public java.lang.String getParent() { } /** - * Required. The MetadataStore whose Executions should be listed. Format: + * Required. The MetadataStore whose MetadataSchemas should be listed. Format: * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` */ public List setParent(java.lang.String parent) { @@ -115181,119 +117935,39 @@ public List setParent(java.lang.String parent) { return this; } - /** - * Filter specifying the boolean condition for the Executions to satisfy in order to be - * part of the result set. The syntax to define filter query is based on - * https://google.aip.dev/160. Following are the supported set of filters: * **Attribute - * filtering**: For example: `display_name = "test"`. Supported fields include: `name`, - * `display_name`, `state`, `schema_title`, `create_time`, and `update_time`. Time - * fields, such as `create_time` and `update_time`, require values specified in RFC-3339 - * format. For example: `create_time = "2020-11-19T11:30:00-04:00"`. * **Metadata - * field**: To filter on metadata fields use traversal operation as follows: - * `metadata..` For example: `metadata.field_1.number_value = 10.0` In case the field - * name contains special characters (such as colon), one can embed it inside double - * quote. For example: `metadata."field:1".number_value = 10.0` * **Context based - * filtering**: To filter Executions based on the contexts to which they belong use the - * function operator with the full resource name: `in_context()`. For example: - * `in_context("projects//locations//metadataStores//contexts/")` Each of the above - * supported filters can be combined together using logical operators (`AND` & `OR`). - * Maximum nested expression depth allowed is 5. For example: `display_name = "test" AND - * metadata.field1.bool_value = true`. - */ + /** A query to filter available MetadataSchemas for matching results. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Filter specifying the boolean condition for the Executions to satisfy in order to be part of the - result set. The syntax to define filter query is based on https://google.aip.dev/160. Following are - the supported set of filters: * **Attribute filtering**: For example: `display_name = "test"`. - Supported fields include: `name`, `display_name`, `state`, `schema_title`, `create_time`, and - `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in - RFC-3339 format. For example: `create_time = "2020-11-19T11:30:00-04:00"`. * **Metadata field**: To - filter on metadata fields use traversal operation as follows: `metadata..` For example: - `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as - colon), one can embed it inside double quote. For example: `metadata."field:1".number_value = 10.0` - * **Context based filtering**: To filter Executions based on the contexts to which they belong use - the function operator with the full resource name: `in_context()`. For example: - `in_context("projects//locations//metadataStores//contexts/")` Each of the above supported filters - can be combined together using logical operators (`AND` & `OR`). Maximum nested expression depth - allowed is 5. For example: `display_name = "test" AND metadata.field1.bool_value = true`. + /** A query to filter available MetadataSchemas for matching results. */ public java.lang.String getFilter() { return filter; } - /** - * Filter specifying the boolean condition for the Executions to satisfy in order to be - * part of the result set. The syntax to define filter query is based on - * https://google.aip.dev/160. Following are the supported set of filters: * **Attribute - * filtering**: For example: `display_name = "test"`. Supported fields include: `name`, - * `display_name`, `state`, `schema_title`, `create_time`, and `update_time`. Time - * fields, such as `create_time` and `update_time`, require values specified in RFC-3339 - * format. For example: `create_time = "2020-11-19T11:30:00-04:00"`. * **Metadata - * field**: To filter on metadata fields use traversal operation as follows: - * `metadata..` For example: `metadata.field_1.number_value = 10.0` In case the field - * name contains special characters (such as colon), one can embed it inside double - * quote. For example: `metadata."field:1".number_value = 10.0` * **Context based - * filtering**: To filter Executions based on the contexts to which they belong use the - * function operator with the full resource name: `in_context()`. For example: - * `in_context("projects//locations//metadataStores//contexts/")` Each of the above - * supported filters can be combined together using logical operators (`AND` & `OR`). - * Maximum nested expression depth allowed is 5. For example: `display_name = "test" AND - * metadata.field1.bool_value = true`. - */ + /** A query to filter available MetadataSchemas for matching results. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } /** - * How the list of messages is ordered. Specify the values to order by and an ordering - * operation. The default sorting order is ascending. To specify descending order for a - * field, users append a " desc" suffix; for example: "foo desc, bar". Subfields are - * specified with a `.` character, such as foo.bar. see - * https://google.aip.dev/132#ordering for more details. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** How the list of messages is ordered. Specify the values to order by and an ordering operation. The - default sorting order is ascending. To specify descending order for a field, users append a " desc" - suffix; for example: "foo desc, bar". Subfields are specified with a `.` character, such as - foo.bar. see https://google.aip.dev/132#ordering for more details. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * How the list of messages is ordered. Specify the values to order by and an ordering - * operation. The default sorting order is ascending. To specify descending order for a - * field, users append a " desc" suffix; for example: "foo desc, bar". Subfields are - * specified with a `.` character, such as foo.bar. see - * https://google.aip.dev/132#ordering for more details. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * The maximum number of Executions to return. The service may return fewer. Must be in - * range 1-100, inclusive. Defaults to 100. + * The maximum number of MetadataSchemas to return. The service may return fewer. Must + * be in range 1-100, inclusive. Defaults to 100. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The maximum number of Executions to return. The service may return fewer. Must be in range 1-100, - inclusive. Defaults to 100. + /** The maximum number of MetadataSchemas to return. The service may return fewer. Must be in range + 1-100, inclusive. Defaults to 100. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * The maximum number of Executions to return. The service may return fewer. Must be in - * range 1-100, inclusive. Defaults to 100. + * The maximum number of MetadataSchemas to return. The service may return fewer. Must + * be in range 1-100, inclusive. Defaults to 100. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; @@ -115301,27 +117975,27 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * A page token, received from a previous MetadataService.ListExecutions call. Provide - * this to retrieve the subsequent page. When paginating, all other provided parameters - * must match the call that provided the page token. (Otherwise the request will fail - * with an INVALID_ARGUMENT error.) + * A page token, received from a previous MetadataService.ListMetadataSchemas call. + * Provide this to retrieve the next page. When paginating, all other provided + * parameters must match the call that provided the page token. (Otherwise the request + * will fail with INVALID_ARGUMENT error.) */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** A page token, received from a previous MetadataService.ListExecutions call. Provide this to - retrieve the subsequent page. When paginating, all other provided parameters must match the call - that provided the page token. (Otherwise the request will fail with an INVALID_ARGUMENT error.) + /** A page token, received from a previous MetadataService.ListMetadataSchemas call. Provide this to + retrieve the next page. When paginating, all other provided parameters must match the call that + provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.) */ public java.lang.String getPageToken() { return pageToken; } /** - * A page token, received from a previous MetadataService.ListExecutions call. Provide - * this to retrieve the subsequent page. When paginating, all other provided parameters - * must match the call that provided the page token. (Otherwise the request will fail - * with an INVALID_ARGUMENT error.) + * A page token, received from a previous MetadataService.ListMetadataSchemas call. + * Provide this to retrieve the next page. When paginating, all other provided + * parameters must match the call that provided the page token. (Otherwise the request + * will fail with INVALID_ARGUMENT error.) */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; @@ -115333,361 +118007,488 @@ 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 { + /** - * Updates a stored Execution. + * 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 "executions.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param name Output only. The resource name of the Execution. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution} + * @param name The name of the operation resource to be cancelled. * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); initialize(result); return result; } - public class Patch extends AiplatformRequest { + public class Cancel extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+name}:cancel"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); /** - * Updates a stored Execution. + * 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 "executions.patch". + * 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 Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. *

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

* - * @param name Output only. The resource name of the Execution. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution} + * @param name The name of the operation resource to be cancelled. * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Execution.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/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } - /** Output only. The resource name of the Execution. */ + /** The name of the operation resource to be cancelled. */ @com.google.api.client.util.Key private java.lang.String name; - /** Output only. The resource name of the Execution. + /** The name of the operation resource to be cancelled. */ public java.lang.String getName() { return name; } - /** Output only. The resource name of the Execution. */ - public Patch 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/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); } this.name = name; return this; } - /** If set to true, and the Execution is not found, a new Execution is created. */ - @com.google.api.client.util.Key - private java.lang.Boolean allowMissing; + @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; + } - /** If set to true, and the Execution is not found, a new Execution is created. + 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/[^/]+/metadataStores/[^/]+/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 */ - public java.lang.Boolean getAllowMissing() { - return allowMissing; + 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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); + } } - /** If set to true, and the Execution is not found, a new Execution is created. */ - public Patch setAllowMissing(java.lang.Boolean allowMissing) { - this.allowMissing = allowMissing; - return this; + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } - /** Optional. A FieldMask indicating which fields should be updated. */ + @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 String updateMask; + private java.lang.String name; - /** Optional. A FieldMask indicating which fields should be updated. + /** The name of the operation resource to be deleted. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getName() { + return name; } - /** Optional. A FieldMask indicating which fields should be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** 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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); + } + this.name = name; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Purges Executions. + * 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 "executions.purge". + * 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 Purge#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. The metadata store to purge Executions from. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeExecutionsRequest} + * @param name The name of the operation resource. * @return the request */ - public Purge purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeExecutionsRequest content) throws java.io.IOException { - Purge result = new Purge(parent, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Purge extends AiplatformRequest { + public class Get extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/executions:purge"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); /** - * Purges Executions. + * 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 "executions.purge". + * 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 Purge#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param parent Required. The metadata store to purge Executions from. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeExecutionsRequest} + * @param name The name of the operation resource. * @since 1.13 */ - protected Purge(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PurgeExecutionsRequest 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."); + 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/[^/]+/metadataStores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); } } @Override - public Purge set$Xgafv(java.lang.String $Xgafv) { - return (Purge) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Purge setAccessToken(java.lang.String accessToken) { - return (Purge) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Purge setAlt(java.lang.String alt) { - return (Purge) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Purge setCallback(java.lang.String callback) { - return (Purge) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Purge setFields(java.lang.String fields) { - return (Purge) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Purge setKey(java.lang.String key) { - return (Purge) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Purge setOauthToken(java.lang.String oauthToken) { - return (Purge) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Purge setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Purge) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Purge setQuotaUser(java.lang.String quotaUser) { - return (Purge) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Purge setUploadType(java.lang.String uploadType) { - return (Purge) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Purge setUploadProtocol(java.lang.String uploadProtocol) { - return (Purge) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** - * Required. The metadata store to purge Executions from. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - */ + @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 parent; + private java.lang.String name; - /** Required. The metadata store to purge Executions from. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /** The name of the operation resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The metadata store to purge Executions from. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - */ - public Purge 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/[^/]+/metadataStores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @Override - public Purge set(String parameterName, Object value) { - return (Purge) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph - * that also contains the Execution and connecting Events. + * 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 "executions.queryExecutionInputsAndOutputs". + * 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 QueryExecutionInputsAndOutputs#execute()} method to invoke the remote - * operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param execution Required. The resource name of the Execution whose input and output Artifacts should be retrieved as - * a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metada - * tastore}/executions/{execution}` + * @param name The name of the operation's parent resource. * @return the request */ - public QueryExecutionInputsAndOutputs queryExecutionInputsAndOutputs(java.lang.String execution) throws java.io.IOException { - QueryExecutionInputsAndOutputs result = new QueryExecutionInputsAndOutputs(execution); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); initialize(result); return result; } - public class QueryExecutionInputsAndOutputs extends AiplatformRequest { + public class List extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+execution}:queryExecutionInputsAndOutputs"; + private static final String REST_PATH = "v1beta1/{+name}/operations"; - private final java.util.regex.Pattern EXECUTION_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); /** - * Obtains the set of input and output Artifacts for this Execution, in the form of - * LineageSubgraph that also contains the Execution and connecting Events. + * 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 "executions.queryExecutionInputsAndOutputs". + * 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 QueryExecutionInputsAndOutputs#execute()} method to invoke - * the remote operation.

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

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

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

* - * @param execution Required. The resource name of the Execution whose input and output Artifacts should be retrieved as - * a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metada - * tastore}/executions/{execution}` + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected QueryExecutionInputsAndOutputs(java.lang.String execution) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1LineageSubgraph.class); - this.execution = com.google.api.client.util.Preconditions.checkNotNull(execution, "Required parameter execution 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(EXECUTION_PATTERN.matcher(execution).matches(), - "Parameter execution must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); } } @@ -115702,1132 +118503,952 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public QueryExecutionInputsAndOutputs set$Xgafv(java.lang.String $Xgafv) { - return (QueryExecutionInputsAndOutputs) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public QueryExecutionInputsAndOutputs setAccessToken(java.lang.String accessToken) { - return (QueryExecutionInputsAndOutputs) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public QueryExecutionInputsAndOutputs setAlt(java.lang.String alt) { - return (QueryExecutionInputsAndOutputs) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public QueryExecutionInputsAndOutputs setCallback(java.lang.String callback) { - return (QueryExecutionInputsAndOutputs) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public QueryExecutionInputsAndOutputs setFields(java.lang.String fields) { - return (QueryExecutionInputsAndOutputs) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public QueryExecutionInputsAndOutputs setKey(java.lang.String key) { - return (QueryExecutionInputsAndOutputs) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public QueryExecutionInputsAndOutputs setOauthToken(java.lang.String oauthToken) { - return (QueryExecutionInputsAndOutputs) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public QueryExecutionInputsAndOutputs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (QueryExecutionInputsAndOutputs) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public QueryExecutionInputsAndOutputs setQuotaUser(java.lang.String quotaUser) { - return (QueryExecutionInputsAndOutputs) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public QueryExecutionInputsAndOutputs setUploadType(java.lang.String uploadType) { - return (QueryExecutionInputsAndOutputs) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public QueryExecutionInputsAndOutputs setUploadProtocol(java.lang.String uploadProtocol) { - return (QueryExecutionInputsAndOutputs) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the Execution whose input and output Artifacts should - * be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/m - * etadataStores/{metadatastore}/executions/{execution}` - */ + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key - private java.lang.String execution; + private java.lang.String name; - /** Required. The resource name of the Execution whose input and output Artifacts should be retrieved - as a LineageSubgraph. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + /** The name of the operation's parent resource. */ - public java.lang.String getExecution() { - return execution; + public java.lang.String getName() { + return name; } - /** - * Required. The resource name of the Execution whose input and output Artifacts should - * be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/m - * etadataStores/{metadatastore}/executions/{execution}` - */ - public QueryExecutionInputsAndOutputs setExecution(java.lang.String execution) { + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(EXECUTION_PATTERN.matcher(execution).matches(), - "Parameter execution must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); } - this.execution = execution; + this.name = name; return this; } - @Override - public QueryExecutionInputsAndOutputs set(String parameterName, Object value) { - return (QueryExecutionInputsAndOutputs) 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 { + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** - * 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 + /** The standard list filter. */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; + public java.lang.String getFilter() { + return filter; } - 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/[^/]+/metadataStores/[^/]+/executions/[^/]+/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/[^/]+/metadataStores/[^/]+/executions/[^/]+/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); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + 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/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$"); - } - 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. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) 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; } + /** - * 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 + * 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 Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + 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/[^/]+/metadataStores/[^/]+/executions/[^/]+/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/[^/]+/metadataStores/[^/]+/executions/[^/]+/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. + * + * 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 Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + public class Wait extends AiplatformRequest { - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:wait"; - @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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + /** + * 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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); } + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) 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 Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) 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/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) 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 + + /** 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 Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + public java.lang.String getName() { + return name; } - public class Get extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$"); + /** + * 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; - /** - * 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/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$"); - } - } + /** 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * 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 com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + } + } + /** + * An accessor for creating requests from the MigratableResources collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.MigratableResources.List request = aiplatform.migratableResources().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public MigratableResources migratableResources() { + return new MigratableResources(); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** + * The "migratableResources" collection of methods. + */ + public class MigratableResources { - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + /** + * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and + * datalabeling.googleapis.com to Vertex AI. + * + * Create a request for the method "migratableResources.batchMigrate". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link BatchMigrate#execute()} method to invoke the remote operation. + * + * @param parent Required. The location of the migrated resource will live in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest} + * @return the request + */ + public BatchMigrate batchMigrate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest content) throws java.io.IOException { + BatchMigrate result = new BatchMigrate(parent, content); + initialize(result); + return result; + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + public class BatchMigrate extends AiplatformRequest { - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + private static final String REST_PATH = "v1beta1/{+parent}/migratableResources:batchMigrate"; - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** + * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and + * datalabeling.googleapis.com to Vertex AI. + * + * Create a request for the method "migratableResources.batchMigrate". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link BatchMigrate#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The location of the migrated resource will live in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest} + * @since 1.13 + */ + protected BatchMigrate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest 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 Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public BatchMigrate set$Xgafv(java.lang.String $Xgafv) { + return (BatchMigrate) super.set$Xgafv($Xgafv); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public BatchMigrate setAccessToken(java.lang.String accessToken) { + return (BatchMigrate) super.setAccessToken(accessToken); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public BatchMigrate setAlt(java.lang.String alt) { + return (BatchMigrate) super.setAlt(alt); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public BatchMigrate setCallback(java.lang.String callback) { + return (BatchMigrate) super.setCallback(callback); + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public BatchMigrate setFields(java.lang.String fields) { + return (BatchMigrate) super.setFields(fields); + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public BatchMigrate setKey(java.lang.String key) { + return (BatchMigrate) super.setKey(key); + } - /** 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/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public BatchMigrate setOauthToken(java.lang.String oauthToken) { + return (BatchMigrate) super.setOauthToken(oauthToken); + } - @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; - } + @Override + public BatchMigrate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchMigrate) super.setPrettyPrint(prettyPrint); + } - public class List extends AiplatformRequest { + @Override + public BatchMigrate setQuotaUser(java.lang.String quotaUser) { + return (BatchMigrate) super.setQuotaUser(quotaUser); + } - private static final String REST_PATH = "v1beta1/{+name}/operations"; + @Override + public BatchMigrate setUploadType(java.lang.String uploadType) { + return (BatchMigrate) super.setUploadType(uploadType); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); + @Override + public BatchMigrate setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchMigrate) 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 - */ - 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/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); - } - } + /** + * Required. The location of the migrated resource will live in. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** Required. The location of the migrated resource will live in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * Required. The location of the migrated resource will live in. Format: + * `projects/{project}/locations/{location}` + */ + public BatchMigrate 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 List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public BatchMigrate set(String parameterName, Object value) { + return (BatchMigrate) super.set(parameterName, value); + } + } + /** + * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and + * ml.googleapis.com that can be migrated to Vertex AI's given location. + * + * Create a request for the method "migratableResources.search". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Search#execute()} method to invoke the remote operation. + * + * @param parent Required. The location that the migratable resources should be searched from. It's the Vertex AI + * location that the resources can be migrated to, not the resources' original location. + * Format: `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest} + * @return the request + */ + public Search search(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest content) throws java.io.IOException { + Search result = new Search(parent, content); + initialize(result); + return result; + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + public class Search extends AiplatformRequest { - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + private static final String REST_PATH = "v1beta1/{+parent}/migratableResources:search"; - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + /** + * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and + * ml.googleapis.com that can be migrated to Vertex AI's given location. + * + * Create a request for the method "migratableResources.search". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Search#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The location that the migratable resources should be searched from. It's the Vertex AI + * location that the resources can be migrated to, not the resources' original location. + * Format: `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest} + * @since 1.13 + */ + protected Search(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse.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 List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Search set$Xgafv(java.lang.String $Xgafv) { + return (Search) super.set$Xgafv($Xgafv); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Search setAccessToken(java.lang.String accessToken) { + return (Search) super.setAccessToken(accessToken); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Search setAlt(java.lang.String alt) { + return (Search) super.setAlt(alt); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Search setCallback(java.lang.String callback) { + return (Search) super.setCallback(callback); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Search setFields(java.lang.String fields) { + return (Search) super.setFields(fields); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Search setKey(java.lang.String key) { + return (Search) super.setKey(key); + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Search setOauthToken(java.lang.String oauthToken) { + return (Search) super.setOauthToken(oauthToken); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public Search setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Search) super.setPrettyPrint(prettyPrint); + } - /** 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/[^/]+/metadataStores/[^/]+/executions/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Search setQuotaUser(java.lang.String quotaUser) { + return (Search) super.setQuotaUser(quotaUser); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Search setUploadType(java.lang.String uploadType) { + return (Search) super.setUploadType(uploadType); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Search setUploadProtocol(java.lang.String uploadProtocol) { + return (Search) super.setUploadProtocol(uploadProtocol); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** + * Required. The location that the migratable resources should be searched from. It's the + * Vertex AI location that the resources can be migrated to, not the resources' original + * location. Format: `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** Required. The location that the migratable resources should be searched from. It's the Vertex AI + location that the resources can be migrated to, not the resources' original location. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** + * Required. The location that the migratable resources should be searched from. It's the + * Vertex AI location that the resources can be migrated to, not the resources' original + * location. Format: `projects/{project}/locations/{location}` + */ + public Search setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Search set(String parameterName, Object value) { + return (Search) super.set(parameterName, value); + } + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * 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 standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * The "operations" collection of methods. + */ + public class Operations { - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - 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; + } - /** - * 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; + public class Cancel 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 java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - /** - * 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 final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/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. + * 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 wait on. - * @return the request + * @param name The name of the operation resource to be cancelled. + * @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/[^/]+/metadataStores/[^/]+/executions/[^/]+/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/[^/]+/metadataStores/[^/]+/executions/[^/]+/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); + 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/[^/]+/migratableResources/[^/]+/operations/[^/]+$"); } + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** 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/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - /** - * 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 setUploadType(java.lang.String uploadType) { + return (Cancel) 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. - */ - public String getTimeout() { - return timeout; - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) 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 Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + /** 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/[^/]+/migratableResources/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } } - } - /** - * An accessor for creating requests from the MetadataSchemas collection. - * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.MetadataSchemas.List request = aiplatform.metadataSchemas().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public MetadataSchemas metadataSchemas() { - return new MetadataSchemas(); - } - - /** - * The "metadataSchemas" collection of methods. - */ - public class MetadataSchemas { - /** - * Creates a MetadataSchema. + * 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 "metadataSchemas.create". + * 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 Create#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataSchema} + * @param name The name of the operation resource to be deleted. * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataSchema content) throws java.io.IOException { - Create result = new Create(parent, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Create extends AiplatformRequest { + public class Delete extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/metadataSchemas"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$"); /** - * Creates a MetadataSchema. + * 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 "metadataSchemas.create". + * 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 Create#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

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

* - * @param parent Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataSchema} + * @param name The name of the operation resource to be deleted. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataSchema content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MetadataSchema.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the MetadataStore where the MetadataSchema should be - * created. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - */ + /** The name of the operation resource to be deleted. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of the MetadataStore where the MetadataSchema should be created. - Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /** The name of the operation resource to be deleted. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The resource name of the MetadataStore where the MetadataSchema should be - * created. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - */ - public Create setParent(java.lang.String parent) { + /** 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$"); } - this.parent = parent; - return this; - } - - /** - * The {metadata_schema} portion of the resource name with the format: `projects/{projec - * t}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschem - * a}` If not provided, the MetadataStore's ID will be a UUID generated by the service. - * Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique - * across all MetadataSchemas in the parent Location. (Otherwise the request will fail - * with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting - * MetadataSchema.) - */ - @com.google.api.client.util.Key - private java.lang.String metadataSchemaId; - - /** The {metadata_schema} portion of the resource name with the format: `projects/{project}/locations/{ - location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` If not provided, the - MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. - Valid characters are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location. - (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view - the preexisting MetadataSchema.) - */ - public java.lang.String getMetadataSchemaId() { - return metadataSchemaId; - } - - /** - * The {metadata_schema} portion of the resource name with the format: `projects/{projec - * t}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschem - * a}` If not provided, the MetadataStore's ID will be a UUID generated by the service. - * Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique - * across all MetadataSchemas in the parent Location. (Otherwise the request will fail - * with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting - * MetadataSchema.) - */ - public Create setMetadataSchemaId(java.lang.String metadataSchemaId) { - this.metadataSchemaId = metadataSchemaId; + this.name = name; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Retrieves a specific MetadataSchema. + * 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 "metadataSchemas.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 resource name of the MetadataSchema to retrieve. Format: `projects/{project}/locations - * /{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + * @param name The name of the operation resource. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -116836,34 +119457,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/[^/]+/metadataStores/[^/]+/metadataSchemas/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$"); /** - * Retrieves a specific MetadataSchema. + * 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 "metadataSchemas.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 resource name of the MetadataSchema to retrieve. Format: `projects/{project}/locations - * /{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + * @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.GoogleCloudAiplatformV1beta1MetadataSchema.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/[^/]+/metadataStores/[^/]+/metadataSchemas/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$"); } } @@ -116932,31 +119553,22 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the MetadataSchema to retrieve. Format: `projects/{pro - * ject}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadatasc - * hema}` - */ + /** The name of the operation resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the MetadataSchema to retrieve. Format: `projects/{project}/location - s/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + /** The name of the operation resource. */ public java.lang.String getName() { return name; } - /** - * Required. The resource name of the MetadataSchema to retrieve. Format: `projects/{pro - * ject}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadatasc - * hema}` - */ + /** 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/[^/]+/metadataStores/[^/]+/metadataSchemas/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -116968,1354 +119580,1706 @@ public Get set(String parameterName, Object value) { } } /** - * Lists MetadataSchemas. + * 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 "metadataSchemas.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 MetadataStore whose MetadataSchemas should be listed. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * @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}/metadataSchemas"; + private static final String REST_PATH = "v1beta1/{+name}/operations"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+$"); /** - * Lists MetadataSchemas. + * 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 "metadataSchemas.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 MetadataStore whose MetadataSchemas should be listed. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + * @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/[^/]+/migratableResources/[^/]+$"); + } + } + + @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/[^/]+/migratableResources/[^/]+$"); + } + 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/[^/]+/migratableResources/[^/]+/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 List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/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 List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The MetadataStore whose MetadataSchemas should be listed. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - */ + /** The name of the operation resource to wait on. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The MetadataStore whose MetadataSchemas should be listed. Format: - `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /** The name of the operation resource to wait on. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The MetadataStore whose MetadataSchemas should be listed. Format: - * `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - */ - public List setParent(java.lang.String parent) { + /** 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$"); } - this.parent = parent; - return this; - } - - /** A query to filter available MetadataSchemas for matching results. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A query to filter available MetadataSchemas for matching results. - */ - public java.lang.String getFilter() { - return filter; - } - - /** A query to filter available MetadataSchemas for matching results. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; + this.name = name; return this; } /** - * The maximum number of MetadataSchemas to return. The service may return fewer. Must - * be in range 1-100, inclusive. Defaults to 100. + * 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 java.lang.Integer pageSize; + private String timeout; - /** The maximum number of MetadataSchemas to return. The service may return fewer. Must be in range - 1-100, inclusive. Defaults to 100. + /** 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 java.lang.Integer getPageSize() { - return pageSize; + public String getTimeout() { + return timeout; } /** - * The maximum number of MetadataSchemas to return. The service may return fewer. Must - * be in range 1-100, inclusive. Defaults to 100. + * 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 List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + public Wait setTimeout(String timeout) { + this.timeout = timeout; return this; } - /** - * A page token, received from a previous MetadataService.ListMetadataSchemas call. - * Provide this to retrieve the next page. When paginating, all other provided - * parameters must match the call that provided the page token. (Otherwise the request - * will fail with INVALID_ARGUMENT error.) - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** A page token, received from a previous MetadataService.ListMetadataSchemas call. Provide this to - retrieve the next page. When paginating, all other provided parameters must match the call that - provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.) - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); } + } - /** - * A page token, received from a previous MetadataService.ListMetadataSchemas call. - * Provide this to retrieve the next page. When paginating, all other provided - * parameters must match the call that provided the page token. (Otherwise the request - * will fail with INVALID_ARGUMENT error.) - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + } + } + /** + * An accessor for creating requests from the ModelDeploymentMonitoringJobs collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.ModelDeploymentMonitoringJobs.List request = aiplatform.modelDeploymentMonitoringJobs().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public ModelDeploymentMonitoringJobs modelDeploymentMonitoringJobs() { + return new ModelDeploymentMonitoringJobs(); + } + + /** + * The "modelDeploymentMonitoringJobs" collection of methods. + */ + public class ModelDeploymentMonitoringJobs { + + /** + * Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval. + * + * Create a request for the method "modelDeploymentMonitoringJobs.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 ModelDeploymentMonitoringJob. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob 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}/modelDeploymentMonitoringJobs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval. + * + * Create a request for the method "modelDeploymentMonitoringJobs.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 ModelDeploymentMonitoringJob. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob.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 List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + @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 ModelDeploymentMonitoringJob. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent of the ModelDeploymentMonitoringJob. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent of the ModelDeploymentMonitoringJob. 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); + } } /** - * An accessor for creating requests from the Operations collection. + * Deletes a ModelDeploymentMonitoringJob. * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
-         * 
+ * Create a request for the method "modelDeploymentMonitoringJobs.delete". * - * @return the resource collection + * 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 model monitoring job to delete. Format: `projects/{project}/locat + * ions/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @return the request */ - public Operations operations() { - return new Operations(); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - /** - * The "operations" collection of methods. - */ - public class Operations { + 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); /** - * 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`. + * Deletes a ModelDeploymentMonitoringJob. * - * Create a request for the method "operations.cancel". + * Create a request for the method "modelDeploymentMonitoringJobs.delete". * - * 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 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 cancelled. - * @return the request + * @param name Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/locat + * ions/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @since 1.13 */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(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.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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + } } - public class Cancel 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}:cancel"; + @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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) 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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); - } - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The resource name of the model monitoring job to delete. Format: `projects/{p + * roject}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring + * _job}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + /** Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/loca + tions/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + /** + * Required. The resource name of the model monitoring job to delete. Format: `projects/{p + * roject}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring + * _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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a ModelDeploymentMonitoringJob. + * + * Create a request for the method "modelDeploymentMonitoringJobs.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 ModelDeploymentMonitoringJob. Format: `projects/{project}/locatio + * ns/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @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 cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Get 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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); - @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`. + * Gets a ModelDeploymentMonitoringJob. * - * Create a request for the method "operations.delete". + * Create a request for the method "modelDeploymentMonitoringJobs.get". * - * 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 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 to be deleted. - * @return the request + * @param name Required. The resource name of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locatio + * ns/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(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.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob.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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + } } - public class Delete 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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** - * 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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** + * Required. The resource name of the ModelDeploymentMonitoringJob. Format: `projects/{pro + * ject}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_j + * ob}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + /** Required. The resource name of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locati + ons/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the ModelDeploymentMonitoringJob. Format: `projects/{pro + * ject}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_j + * ob}` + */ + 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); } + this.name = name; + return this; + } - /** The name of the operation resource to be deleted. */ - @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 ModelDeploymentMonitoringJobs in a Location. + * + * Create a request for the method "modelDeploymentMonitoringJobs.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 ModelDeploymentMonitoringJob. 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; + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + public class List 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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + private static final String REST_PATH = "v1beta1/{+parent}/modelDeploymentMonitoringJobs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @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. + * Lists ModelDeploymentMonitoringJobs in a Location. * - * Create a request for the method "operations.get". + * Create a request for the method "modelDeploymentMonitoringJobs.list". * - * 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 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. - * @return the request + * @param parent Required. The parent of the ModelDeploymentMonitoringJob. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 */ - 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/[^/]+/metadataStores/[^/]+/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/[^/]+/metadataStores/[^/]+/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(); + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse.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 Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** The name of the operation 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 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 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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Required. The parent of the ModelDeploymentMonitoringJob. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } + /** Required. The parent of the ModelDeploymentMonitoringJob. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; } - /** - * 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 + + /** + * Required. The parent of the ModelDeploymentMonitoringJob. Format: + * `projects/{project}/locations/{location}` */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + 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; } - public class List extends AiplatformRequest { + /** + * 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; - private static final String REST_PATH = "v1beta1/{+name}/operations"; + /** 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; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$"); + /** + * 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; + } - /** - * 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/[^/]+/metadataStores/[^/]+$"); - } - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + /** Mask specifying which fields to read */ + @com.google.api.client.util.Key + private String readMask; - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + /** Mask specifying which fields to read + */ + public String getReadMask() { + return readMask; + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** Mask specifying which fields to read */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a ModelDeploymentMonitoringJob. + * + * Create a request for the method "modelDeploymentMonitoringJobs.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. Resource name of a ModelDeploymentMonitoringJob. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + public class Patch extends AiplatformRequest { - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** + * Updates a ModelDeploymentMonitoringJob. + * + * Create a request for the method "modelDeploymentMonitoringJobs.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. Resource name of a ModelDeploymentMonitoringJob. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); } + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - /** 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/[^/]+/metadataStores/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Output only. Resource name of a ModelDeploymentMonitoringJob. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * 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; + /** Output only. Resource name of a ModelDeploymentMonitoringJob. + */ + public java.lang.String getName() { + return name; + } - /** 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; + /** Output only. Resource name of a ModelDeploymentMonitoringJob. */ + 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); } + 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; - } + /** + * Required. The update mask is used to specify the fields to be overwritten in the + * ModelDeploymentMonitoringJob resource by the update. The fields specified in the + * update_mask are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the user does not provide a mask then only the + * non-empty fields present in the request will be overwritten. Set the update_mask to `*` + * to override all fields. For the objective config, the user can either provide the + * update mask for model_deployment_monitoring_objective_configs or any combination of its + * nested fields, such as: + * model_deployment_monitoring_objective_configs.objective_config.training_dataset. + * Updatable fields: * `display_name` * `model_deployment_monitoring_schedule_config` * + * `model_monitoring_alert_config` * `logging_sampling_strategy` * `labels` * `log_ttl` * + * `enable_monitoring_pipeline_logs` . and * + * `model_deployment_monitoring_objective_configs` . or * + * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` * `mo + * del_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_d + * etection_config` * `model_deployment_monitoring_objective_configs.objective_config.pred + * iction_drift_detection_config` + */ + @com.google.api.client.util.Key + private String updateMask; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + /** Required. The update mask is used to specify the fields to be overwritten in the + ModelDeploymentMonitoringJob resource by the update. The fields specified in the update_mask are + relative to the resource, not the full request. A field will be overwritten if it is in the mask. + If the user does not provide a mask then only the non-empty fields present in the request will be + overwritten. Set the update_mask to `*` to override all fields. For the objective config, the user + can either provide the update mask for model_deployment_monitoring_objective_configs or any + combination of its nested fields, such as: + model_deployment_monitoring_objective_configs.objective_config.training_dataset. Updatable fields: + * `display_name` * `model_deployment_monitoring_schedule_config` * `model_monitoring_alert_config` + * `logging_sampling_strategy` * `labels` * `log_ttl` * `enable_monitoring_pipeline_logs` . and * + `model_deployment_monitoring_objective_configs` . or * + `model_deployment_monitoring_objective_configs.objective_config.training_dataset` * `model_deployme + nt_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config` * + `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config` + */ + 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 + * Required. The update mask is used to specify the fields to be overwritten in the + * ModelDeploymentMonitoringJob resource by the update. The fields specified in the + * update_mask are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the user does not provide a mask then only the + * non-empty fields present in the request will be overwritten. Set the update_mask to `*` + * to override all fields. For the objective config, the user can either provide the + * update mask for model_deployment_monitoring_objective_configs or any combination of its + * nested fields, such as: + * model_deployment_monitoring_objective_configs.objective_config.training_dataset. + * Updatable fields: * `display_name` * `model_deployment_monitoring_schedule_config` * + * `model_monitoring_alert_config` * `logging_sampling_strategy` * `labels` * `log_ttl` * + * `enable_monitoring_pipeline_logs` . and * + * `model_deployment_monitoring_objective_configs` . or * + * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` * `mo + * del_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_d + * etection_config` * `model_deployment_monitoring_objective_configs.objective_config.pred + * iction_drift_detection_config` */ - 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/[^/]+/metadataStores/[^/]+/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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to + * cancel the job. Will mark ModelDeploymentMonitoringJob.state to 'PAUSED'. + * + * Create a request for the method "modelDeploymentMonitoringJobs.pause". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link Pause#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: `projects/{project + * }/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest} + * @return the request + */ + public Pause pause(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest content) throws java.io.IOException { + Pause result = new Pause(name, content); + initialize(result); + return result; + } - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + public class Pause extends AiplatformRequest { - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + private static final String REST_PATH = "v1beta1/{+name}:pause"; - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + /** + * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to + * cancel the job. Will mark ModelDeploymentMonitoringJob.state to 'PAUSED'. + * + * Create a request for the method "modelDeploymentMonitoringJobs.pause". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link Pause#execute()} method to invoke the remote operation. + *

{@link + * Pause#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 ModelDeploymentMonitoringJob to pause. Format: `projects/{project + * }/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest} + * @since 1.13 + */ + protected Pause(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); } + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Pause set$Xgafv(java.lang.String $Xgafv) { + return (Pause) super.set$Xgafv($Xgafv); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Pause setAccessToken(java.lang.String accessToken) { + return (Pause) super.setAccessToken(accessToken); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Pause setAlt(java.lang.String alt) { + return (Pause) super.setAlt(alt); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Pause setCallback(java.lang.String callback) { + return (Pause) super.setCallback(callback); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Pause setFields(java.lang.String fields) { + return (Pause) super.setFields(fields); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Pause setKey(java.lang.String key) { + return (Pause) super.setKey(key); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Pause setOauthToken(java.lang.String oauthToken) { + return (Pause) super.setOauthToken(oauthToken); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public Pause setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Pause) super.setPrettyPrint(prettyPrint); + } - /** 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/[^/]+/metadataStores/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Pause setQuotaUser(java.lang.String quotaUser) { + return (Pause) super.setQuotaUser(quotaUser); + } - /** - * 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 Pause setUploadType(java.lang.String uploadType) { + return (Pause) 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. - */ - public String getTimeout() { - return timeout; - } + @Override + public Pause setUploadProtocol(java.lang.String uploadProtocol) { + return (Pause) 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 Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; - } + /** + * Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: `proj + * ects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_mon + * itoring_job}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + /** Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: `projects/{projec + t}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: `proj + * ects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_mon + * itoring_job}` + */ + public Pause 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); } + this.name = name; + return this; } + @Override + public Pause set(String parameterName, Object value) { + return (Pause) super.set(parameterName, value); + } } - } - /** - * An accessor for creating requests from the MigratableResources collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.MigratableResources.List request = aiplatform.migratableResources().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public MigratableResources migratableResources() { - return new MigratableResources(); - } - - /** - * The "migratableResources" collection of methods. - */ - public class MigratableResources { - /** - * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - * datalabeling.googleapis.com to Vertex AI. + * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A + * deleted ModelDeploymentMonitoringJob can't be resumed. * - * Create a request for the method "migratableResources.batchMigrate". + * Create a request for the method "modelDeploymentMonitoringJobs.resume". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link BatchMigrate#execute()} method to invoke the remote operation. + * parameters, call the {@link Resume#execute()} method to invoke the remote operation. * - * @param parent Required. The location of the migrated resource will live in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest} + * @param name Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: `projects/{projec + * t}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest} * @return the request */ - public BatchMigrate batchMigrate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest content) throws java.io.IOException { - BatchMigrate result = new BatchMigrate(parent, content); + public Resume resume(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest content) throws java.io.IOException { + Resume result = new Resume(name, content); initialize(result); return result; } - public class BatchMigrate extends AiplatformRequest { + public class Resume extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/migratableResources:batchMigrate"; + private static final String REST_PATH = "v1beta1/{+name}:resume"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); /** - * Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - * datalabeling.googleapis.com to Vertex AI. + * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A + * deleted ModelDeploymentMonitoringJob can't be resumed. * - * Create a request for the method "migratableResources.batchMigrate". + * Create a request for the method "modelDeploymentMonitoringJobs.resume". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link BatchMigrate#execute()} method to invoke the remote - * operation.

{@link - * BatchMigrate#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 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 parent Required. The location of the migrated resource will live in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest} + * @param name Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: `projects/{projec + * t}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest} * @since 1.13 */ - protected BatchMigrate(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest 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."); + protected Resume(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); } } @Override - public BatchMigrate set$Xgafv(java.lang.String $Xgafv) { - return (BatchMigrate) super.set$Xgafv($Xgafv); + public Resume set$Xgafv(java.lang.String $Xgafv) { + return (Resume) super.set$Xgafv($Xgafv); } @Override - public BatchMigrate setAccessToken(java.lang.String accessToken) { - return (BatchMigrate) super.setAccessToken(accessToken); + public Resume setAccessToken(java.lang.String accessToken) { + return (Resume) super.setAccessToken(accessToken); } @Override - public BatchMigrate setAlt(java.lang.String alt) { - return (BatchMigrate) super.setAlt(alt); + public Resume setAlt(java.lang.String alt) { + return (Resume) super.setAlt(alt); } @Override - public BatchMigrate setCallback(java.lang.String callback) { - return (BatchMigrate) super.setCallback(callback); + public Resume setCallback(java.lang.String callback) { + return (Resume) super.setCallback(callback); } @Override - public BatchMigrate setFields(java.lang.String fields) { - return (BatchMigrate) super.setFields(fields); + public Resume setFields(java.lang.String fields) { + return (Resume) super.setFields(fields); } @Override - public BatchMigrate setKey(java.lang.String key) { - return (BatchMigrate) super.setKey(key); + public Resume setKey(java.lang.String key) { + return (Resume) super.setKey(key); } @Override - public BatchMigrate setOauthToken(java.lang.String oauthToken) { - return (BatchMigrate) super.setOauthToken(oauthToken); + public Resume setOauthToken(java.lang.String oauthToken) { + return (Resume) super.setOauthToken(oauthToken); } @Override - public BatchMigrate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchMigrate) super.setPrettyPrint(prettyPrint); + public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resume) super.setPrettyPrint(prettyPrint); } @Override - public BatchMigrate setQuotaUser(java.lang.String quotaUser) { - return (BatchMigrate) super.setQuotaUser(quotaUser); + public Resume setQuotaUser(java.lang.String quotaUser) { + return (Resume) super.setQuotaUser(quotaUser); } @Override - public BatchMigrate setUploadType(java.lang.String uploadType) { - return (BatchMigrate) super.setUploadType(uploadType); + public Resume setUploadType(java.lang.String uploadType) { + return (Resume) super.setUploadType(uploadType); } @Override - public BatchMigrate setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchMigrate) super.setUploadProtocol(uploadProtocol); + public Resume setUploadProtocol(java.lang.String uploadProtocol) { + return (Resume) super.setUploadProtocol(uploadProtocol); } /** - * Required. The location of the migrated resource will live in. Format: - * `projects/{project}/locations/{location}` + * Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: `pro + * jects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_mo + * nitoring_job}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The location of the migrated resource will live in. Format: - `projects/{project}/locations/{location}` + /** Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: `projects/{proje + ct}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The location of the migrated resource will live in. Format: - * `projects/{project}/locations/{location}` + * Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: `pro + * jects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_mo + * nitoring_job}` */ - public BatchMigrate setParent(java.lang.String parent) { + public Resume setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @Override - public BatchMigrate set(String parameterName, Object value) { - return (BatchMigrate) super.set(parameterName, value); + public Resume set(String parameterName, Object value) { + return (Resume) super.set(parameterName, value); } } /** - * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and - * ml.googleapis.com that can be migrated to Vertex AI's given location. + * Searches Model Monitoring Statistics generated within a given time window. * - * Create a request for the method "migratableResources.search". + * Create a request for the method + * "modelDeploymentMonitoringJobs.searchModelDeploymentMonitoringStatsAnomalies". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Search#execute()} method to invoke the remote operation. + * parameters, call the {@link SearchModelDeploymentMonitoringStatsAnomalies#execute()} method to + * invoke the remote operation. * - * @param parent Required. The location that the migratable resources should be searched from. It's the Vertex AI - * location that the resources can be migrated to, not the resources' original location. - * Format: `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest} + * @param modelDeploymentMonitoringJob Required. ModelDeploymentMonitoring Job resource name. Format: `projects/{project}/locations/{locati + * on}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest} * @return the request */ - public Search search(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest content) throws java.io.IOException { - Search result = new Search(parent, content); + public SearchModelDeploymentMonitoringStatsAnomalies searchModelDeploymentMonitoringStatsAnomalies(java.lang.String modelDeploymentMonitoringJob, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest content) throws java.io.IOException { + SearchModelDeploymentMonitoringStatsAnomalies result = new SearchModelDeploymentMonitoringStatsAnomalies(modelDeploymentMonitoringJob, content); initialize(result); return result; } - public class Search extends AiplatformRequest { + public class SearchModelDeploymentMonitoringStatsAnomalies extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/migratableResources:search"; + private static final String REST_PATH = "v1beta1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern MODEL_DEPLOYMENT_MONITORING_JOB_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); /** - * Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and - * ml.googleapis.com that can be migrated to Vertex AI's given location. + * Searches Model Monitoring Statistics generated within a given time window. * - * Create a request for the method "migratableResources.search". + * Create a request for the method + * "modelDeploymentMonitoringJobs.searchModelDeploymentMonitoringStatsAnomalies". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Search#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param parent Required. The location that the migratable resources should be searched from. It's the Vertex AI - * location that the resources can be migrated to, not the resources' original location. - * Format: `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest} + * @param modelDeploymentMonitoringJob Required. ModelDeploymentMonitoring Job resource name. Format: `projects/{project}/locations/{locati + * on}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest} * @since 1.13 */ - protected Search(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected SearchModelDeploymentMonitoringStatsAnomalies(java.lang.String modelDeploymentMonitoringJob, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse.class); + this.modelDeploymentMonitoringJob = com.google.api.client.util.Preconditions.checkNotNull(modelDeploymentMonitoringJob, "Required parameter modelDeploymentMonitoringJob must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(MODEL_DEPLOYMENT_MONITORING_JOB_PATTERN.matcher(modelDeploymentMonitoringJob).matches(), + "Parameter modelDeploymentMonitoringJob must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); } } @Override - public Search set$Xgafv(java.lang.String $Xgafv) { - return (Search) super.set$Xgafv($Xgafv); + public SearchModelDeploymentMonitoringStatsAnomalies set$Xgafv(java.lang.String $Xgafv) { + return (SearchModelDeploymentMonitoringStatsAnomalies) super.set$Xgafv($Xgafv); } @Override - public Search setAccessToken(java.lang.String accessToken) { - return (Search) super.setAccessToken(accessToken); + public SearchModelDeploymentMonitoringStatsAnomalies setAccessToken(java.lang.String accessToken) { + return (SearchModelDeploymentMonitoringStatsAnomalies) super.setAccessToken(accessToken); } @Override - public Search setAlt(java.lang.String alt) { - return (Search) super.setAlt(alt); + public SearchModelDeploymentMonitoringStatsAnomalies setAlt(java.lang.String alt) { + return (SearchModelDeploymentMonitoringStatsAnomalies) super.setAlt(alt); } @Override - public Search setCallback(java.lang.String callback) { - return (Search) super.setCallback(callback); + public SearchModelDeploymentMonitoringStatsAnomalies setCallback(java.lang.String callback) { + return (SearchModelDeploymentMonitoringStatsAnomalies) super.setCallback(callback); } @Override - public Search setFields(java.lang.String fields) { - return (Search) super.setFields(fields); + public SearchModelDeploymentMonitoringStatsAnomalies setFields(java.lang.String fields) { + return (SearchModelDeploymentMonitoringStatsAnomalies) super.setFields(fields); } @Override - public Search setKey(java.lang.String key) { - return (Search) super.setKey(key); + public SearchModelDeploymentMonitoringStatsAnomalies setKey(java.lang.String key) { + return (SearchModelDeploymentMonitoringStatsAnomalies) super.setKey(key); } @Override - public Search setOauthToken(java.lang.String oauthToken) { - return (Search) super.setOauthToken(oauthToken); + public SearchModelDeploymentMonitoringStatsAnomalies setOauthToken(java.lang.String oauthToken) { + return (SearchModelDeploymentMonitoringStatsAnomalies) super.setOauthToken(oauthToken); } @Override - public Search setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Search) super.setPrettyPrint(prettyPrint); + public SearchModelDeploymentMonitoringStatsAnomalies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchModelDeploymentMonitoringStatsAnomalies) super.setPrettyPrint(prettyPrint); } @Override - public Search setQuotaUser(java.lang.String quotaUser) { - return (Search) super.setQuotaUser(quotaUser); + public SearchModelDeploymentMonitoringStatsAnomalies setQuotaUser(java.lang.String quotaUser) { + return (SearchModelDeploymentMonitoringStatsAnomalies) super.setQuotaUser(quotaUser); } @Override - public Search setUploadType(java.lang.String uploadType) { - return (Search) super.setUploadType(uploadType); + public SearchModelDeploymentMonitoringStatsAnomalies setUploadType(java.lang.String uploadType) { + return (SearchModelDeploymentMonitoringStatsAnomalies) super.setUploadType(uploadType); } @Override - public Search setUploadProtocol(java.lang.String uploadProtocol) { - return (Search) super.setUploadProtocol(uploadProtocol); + public SearchModelDeploymentMonitoringStatsAnomalies setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchModelDeploymentMonitoringStatsAnomalies) super.setUploadProtocol(uploadProtocol); } /** - * Required. The location that the migratable resources should be searched from. It's the - * Vertex AI location that the resources can be migrated to, not the resources' original - * location. Format: `projects/{project}/locations/{location}` + * Required. ModelDeploymentMonitoring Job resource name. Format: `projects/{project}/loca + * tions/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String modelDeploymentMonitoringJob; - /** Required. The location that the migratable resources should be searched from. It's the Vertex AI - location that the resources can be migrated to, not the resources' original location. Format: - `projects/{project}/locations/{location}` + /** Required. ModelDeploymentMonitoring Job resource name. Format: `projects/{project}/locations/{locat + ion}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getModelDeploymentMonitoringJob() { + return modelDeploymentMonitoringJob; } /** - * Required. The location that the migratable resources should be searched from. It's the - * Vertex AI location that the resources can be migrated to, not the resources' original - * location. Format: `projects/{project}/locations/{location}` + * Required. ModelDeploymentMonitoring Job resource name. Format: `projects/{project}/loca + * tions/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` */ - public Search setParent(java.lang.String parent) { + public SearchModelDeploymentMonitoringStatsAnomalies setModelDeploymentMonitoringJob(java.lang.String modelDeploymentMonitoringJob) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(MODEL_DEPLOYMENT_MONITORING_JOB_PATTERN.matcher(modelDeploymentMonitoringJob).matches(), + "Parameter modelDeploymentMonitoringJob must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); } - this.parent = parent; + this.modelDeploymentMonitoringJob = modelDeploymentMonitoringJob; return this; } @Override - public Search set(String parameterName, Object value) { - return (Search) super.set(parameterName, value); + public SearchModelDeploymentMonitoringStatsAnomalies set(String parameterName, Object value) { + return (SearchModelDeploymentMonitoringStatsAnomalies) super.set(parameterName, value); } } @@ -118367,7 +121331,7 @@ public class Cancel extends AiplatformRequestThe typical use is:

*
        *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.ModelDeploymentMonitoringJobs.List request = aiplatform.modelDeploymentMonitoringJobs().list(parameters ...)}
+       *   {@code Aiplatform.ModelMonitors.List request = aiplatform.modelMonitors().list(parameters ...)}
        * 
* * @return the resource collection */ - public ModelDeploymentMonitoringJobs modelDeploymentMonitoringJobs() { - return new ModelDeploymentMonitoringJobs(); + public ModelMonitors modelMonitors() { + return new ModelMonitors(); } /** - * The "modelDeploymentMonitoringJobs" collection of methods. + * The "modelMonitors" collection of methods. */ - public class ModelDeploymentMonitoringJobs { + public class ModelMonitors { /** - * Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval. + * Creates a ModelMonitor. * - * Create a request for the method "modelDeploymentMonitoringJobs.create". + * Create a request for the method "modelMonitors.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 ModelDeploymentMonitoringJob. Format: + * @param parent Required. The resource name of the Location to create the ModelMonitor in. Format: * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor 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}/modelDeploymentMonitoringJobs"; + private static final String REST_PATH = "v1beta1/{+parent}/modelMonitors"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval. + * Creates a ModelMonitor. * - * Create a request for the method "modelDeploymentMonitoringJobs.create". + * Create a request for the method "modelMonitors.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. @@ -119202,13 +122166,13 @@ public class Create extends AiplatformRequest * - * @param parent Required. The parent of the ModelDeploymentMonitoringJob. Format: + * @param parent Required. The resource name of the Location to create the ModelMonitor in. Format: * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob} + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob.class); + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor 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(), @@ -119273,13 +122237,13 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent of the ModelDeploymentMonitoringJob. Format: + * Required. The resource name of the Location to create the ModelMonitor in. Format: * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent of the ModelDeploymentMonitoringJob. Format: + /** Required. The resource name of the Location to create the ModelMonitor in. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -119287,7 +122251,7 @@ public java.lang.String getParent() { } /** - * Required. The parent of the ModelDeploymentMonitoringJob. Format: + * Required. The resource name of the Location to create the ModelMonitor in. Format: * `projects/{project}/locations/{location}` */ public Create setParent(java.lang.String parent) { @@ -119300,21 +122264,47 @@ public Create setParent(java.lang.String parent) { return this; } + /** + * Optional. The ID to use for the Model Monitor, which will become the final component of + * the model monitor resource name. The maximum length is 63 characters, and valid + * characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. + */ + @com.google.api.client.util.Key + private java.lang.String modelMonitorId; + + /** Optional. The ID to use for the Model Monitor, which will become the final component of the model + monitor resource name. The maximum length is 63 characters, and valid characters are + `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. + */ + public java.lang.String getModelMonitorId() { + return modelMonitorId; + } + + /** + * Optional. The ID to use for the Model Monitor, which will become the final component of + * the model monitor resource name. The maximum length is 63 characters, and valid + * characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. + */ + public Create setModelMonitorId(java.lang.String modelMonitorId) { + this.modelMonitorId = modelMonitorId; + return this; + } + @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** - * Deletes a ModelDeploymentMonitoringJob. + * Deletes a ModelMonitor. * - * Create a request for the method "modelDeploymentMonitoringJobs.delete". + * Create a request for the method "modelMonitors.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 model monitoring job to delete. Format: `projects/{project}/locat - * ions/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param name Required. The name of the ModelMonitor resource to be deleted. Format: + * `projects/{project}/locations/{location}/modelMonitords/{model_monitor}` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -119328,12 +122318,12 @@ public class Delete extends AiplatformRequest * - * @param name Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/locat - * ions/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param name Required. The name of the ModelMonitor resource to be deleted. Format: + * `projects/{project}/locations/{location}/modelMonitords/{model_monitor}` * @since 1.13 */ protected Delete(java.lang.String name) { @@ -119351,7 +122341,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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } } @@ -119411,50 +122401,64 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the model monitoring job to delete. Format: `projects/{p - * roject}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring - * _job}` + * Required. The name of the ModelMonitor resource to be deleted. Format: + * `projects/{project}/locations/{location}/modelMonitords/{model_monitor}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/loca - tions/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + /** Required. The name of the ModelMonitor resource to be deleted. Format: + `projects/{project}/locations/{location}/modelMonitords/{model_monitor}` */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the model monitoring job to delete. Format: `projects/{p - * roject}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring - * _job}` + * Required. The name of the ModelMonitor resource to be deleted. Format: + * `projects/{project}/locations/{location}/modelMonitords/{model_monitor}` */ 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } this.name = name; return this; } + /** Optional. Force delete the model monitor with schedules. */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Force delete the model monitor with schedules. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** Optional. Force delete the model monitor with schedules. */ + 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); } } /** - * Gets a ModelDeploymentMonitoringJob. + * Gets a ModelMonitor. * - * Create a request for the method "modelDeploymentMonitoringJobs.get". + * Create a request for the method "modelMonitors.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 ModelDeploymentMonitoringJob. Format: `projects/{project}/locatio - * ns/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param name Required. The name of the ModelMonitor resource. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -119463,34 +122467,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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); /** - * Gets a ModelDeploymentMonitoringJob. + * Gets a ModelMonitor. * - * Create a request for the method "modelDeploymentMonitoringJobs.get". + * Create a request for the method "modelMonitors.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 ModelDeploymentMonitoringJob. Format: `projects/{project}/locatio - * ns/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param name Required. The name of the ModelMonitor resource. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` * @since 1.13 */ protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor.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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } } @@ -119560,30 +122564,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The resource name of the ModelDeploymentMonitoringJob. Format: `projects/{pro - * ject}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_j - * ob}` + * Required. The name of the ModelMonitor resource. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locati - ons/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + /** Required. The name of the ModelMonitor resource. Format: + `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the ModelDeploymentMonitoringJob. Format: `projects/{pro - * ject}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_j - * ob}` + * Required. The name of the ModelMonitor resource. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` */ 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } this.name = name; return this; @@ -119595,14 +122597,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists ModelDeploymentMonitoringJobs in a Location. + * Lists ModelMonitors in a Location. * - * Create a request for the method "modelDeploymentMonitoringJobs.list". + * Create a request for the method "modelMonitors.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 ModelDeploymentMonitoringJob. Format: + * @param parent Required. The resource name of the Location to list the ModelMonitors from. Format: * `projects/{project}/locations/{location}` * @return the request */ @@ -119612,29 +122614,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}/modelDeploymentMonitoringJobs"; + private static final String REST_PATH = "v1beta1/{+parent}/modelMonitors"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Lists ModelDeploymentMonitoringJobs in a Location. + * Lists ModelMonitors in a Location. * - * Create a request for the method "modelDeploymentMonitoringJobs.list". + * Create a request for the method "modelMonitors.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 ModelDeploymentMonitoringJob. Format: + * @param parent Required. The resource name of the Location to list the ModelMonitors 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.GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse.class); + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListModelMonitorsResponse.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(), @@ -119709,13 +122711,13 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent of the ModelDeploymentMonitoringJob. Format: + * Required. The resource name of the Location to list the ModelMonitors from. Format: * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent of the ModelDeploymentMonitoringJob. Format: + /** Required. The resource name of the Location to list the ModelMonitors from. Format: `projects/{project}/locations/{location}` */ public java.lang.String getParent() { @@ -119723,7 +122725,7 @@ public java.lang.String getParent() { } /** - * Required. The parent of the ModelDeploymentMonitoringJob. Format: + * Required. The resource name of the Location to list the ModelMonitors from. Format: * `projects/{project}/locations/{location}` */ public List setParent(java.lang.String parent) { @@ -119736,41 +122738,17 @@ public List setParent(java.lang.String 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:*` - */ + /** The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). */ @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:*` + /** The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). */ 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:*` - */ + /** The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; @@ -119808,17 +122786,17 @@ public List setPageToken(java.lang.String pageToken) { return this; } - /** Mask specifying which fields to read */ + /** Mask specifying which fields to read. */ @com.google.api.client.util.Key private String readMask; - /** Mask specifying which fields to read + /** Mask specifying which fields to read. */ public String getReadMask() { return readMask; } - /** Mask specifying which fields to read */ + /** Mask specifying which fields to read. */ public List setReadMask(String readMask) { this.readMask = readMask; return this; @@ -119830,18 +122808,19 @@ public List set(String parameterName, Object value) { } } /** - * Updates a ModelDeploymentMonitoringJob. + * Updates a ModelMonitor. * - * Create a request for the method "modelDeploymentMonitoringJobs.patch". + * Create a request for the method "modelMonitors.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. Resource name of a ModelDeploymentMonitoringJob. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob} + * @param name Immutable. Resource name of the ModelMonitor. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; @@ -119852,12 +122831,12 @@ public class Patch extends AiplatformRequest * - * @param name Output only. Resource name of a ModelDeploymentMonitoringJob. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob} + * @param name Immutable. Resource name of the ModelMonitor. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}`. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob content) { + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } } @@ -119934,701 +122914,534 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { return (Patch) super.setUploadProtocol(uploadProtocol); } - /** Output only. Resource name of a ModelDeploymentMonitoringJob. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Output only. Resource name of a ModelDeploymentMonitoringJob. - */ - public java.lang.String getName() { - return name; - } - - /** Output only. Resource name of a ModelDeploymentMonitoringJob. */ - 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Required. The update mask is used to specify the fields to be overwritten in the - * ModelDeploymentMonitoringJob resource by the update. The fields specified in the - * update_mask are relative to the resource, not the full request. A field will be - * overwritten if it is in the mask. If the user does not provide a mask then only the - * non-empty fields present in the request will be overwritten. Set the update_mask to `*` - * to override all fields. For the objective config, the user can either provide the - * update mask for model_deployment_monitoring_objective_configs or any combination of its - * nested fields, such as: - * model_deployment_monitoring_objective_configs.objective_config.training_dataset. - * Updatable fields: * `display_name` * `model_deployment_monitoring_schedule_config` * - * `model_monitoring_alert_config` * `logging_sampling_strategy` * `labels` * `log_ttl` * - * `enable_monitoring_pipeline_logs` . and * - * `model_deployment_monitoring_objective_configs` . or * - * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` * `mo - * del_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_d - * etection_config` * `model_deployment_monitoring_objective_configs.objective_config.pred - * iction_drift_detection_config` - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. The update mask is used to specify the fields to be overwritten in the - ModelDeploymentMonitoringJob resource by the update. The fields specified in the update_mask are - relative to the resource, not the full request. A field will be overwritten if it is in the mask. - If the user does not provide a mask then only the non-empty fields present in the request will be - overwritten. Set the update_mask to `*` to override all fields. For the objective config, the user - can either provide the update mask for model_deployment_monitoring_objective_configs or any - combination of its nested fields, such as: - model_deployment_monitoring_objective_configs.objective_config.training_dataset. Updatable fields: - * `display_name` * `model_deployment_monitoring_schedule_config` * `model_monitoring_alert_config` - * `logging_sampling_strategy` * `labels` * `log_ttl` * `enable_monitoring_pipeline_logs` . and * - `model_deployment_monitoring_objective_configs` . or * - `model_deployment_monitoring_objective_configs.objective_config.training_dataset` * `model_deployme - nt_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config` * - `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config` - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Required. The update mask is used to specify the fields to be overwritten in the - * ModelDeploymentMonitoringJob resource by the update. The fields specified in the - * update_mask are relative to the resource, not the full request. A field will be - * overwritten if it is in the mask. If the user does not provide a mask then only the - * non-empty fields present in the request will be overwritten. Set the update_mask to `*` - * to override all fields. For the objective config, the user can either provide the - * update mask for model_deployment_monitoring_objective_configs or any combination of its - * nested fields, such as: - * model_deployment_monitoring_objective_configs.objective_config.training_dataset. - * Updatable fields: * `display_name` * `model_deployment_monitoring_schedule_config` * - * `model_monitoring_alert_config` * `logging_sampling_strategy` * `labels` * `log_ttl` * - * `enable_monitoring_pipeline_logs` . and * - * `model_deployment_monitoring_objective_configs` . or * - * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` * `mo - * del_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_d - * etection_config` * `model_deployment_monitoring_objective_configs.objective_config.pred - * iction_drift_detection_config` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to - * cancel the job. Will mark ModelDeploymentMonitoringJob.state to 'PAUSED'. - * - * Create a request for the method "modelDeploymentMonitoringJobs.pause". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Pause#execute()} method to invoke the remote operation. - * - * @param name Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: `projects/{project - * }/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest} - * @return the request - */ - public Pause pause(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest content) throws java.io.IOException { - Pause result = new Pause(name, content); - initialize(result); - return result; - } - - public class Pause extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+name}:pause"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); - - /** - * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to - * cancel the job. Will mark ModelDeploymentMonitoringJob.state to 'PAUSED'. - * - * Create a request for the method "modelDeploymentMonitoringJobs.pause". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Pause#execute()} method to invoke the remote operation. - *

{@link - * Pause#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 ModelDeploymentMonitoringJob to pause. Format: `projects/{project - * }/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest} - * @since 1.13 - */ - protected Pause(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); - } - } - - @Override - public Pause set$Xgafv(java.lang.String $Xgafv) { - return (Pause) super.set$Xgafv($Xgafv); - } - - @Override - public Pause setAccessToken(java.lang.String accessToken) { - return (Pause) super.setAccessToken(accessToken); - } - - @Override - public Pause setAlt(java.lang.String alt) { - return (Pause) super.setAlt(alt); - } - - @Override - public Pause setCallback(java.lang.String callback) { - return (Pause) super.setCallback(callback); - } - - @Override - public Pause setFields(java.lang.String fields) { - return (Pause) super.setFields(fields); - } - - @Override - public Pause setKey(java.lang.String key) { - return (Pause) super.setKey(key); - } - - @Override - public Pause setOauthToken(java.lang.String oauthToken) { - return (Pause) super.setOauthToken(oauthToken); - } - - @Override - public Pause setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Pause) super.setPrettyPrint(prettyPrint); - } - - @Override - public Pause setQuotaUser(java.lang.String quotaUser) { - return (Pause) super.setQuotaUser(quotaUser); - } - - @Override - public Pause setUploadType(java.lang.String uploadType) { - return (Pause) super.setUploadType(uploadType); - } - - @Override - public Pause setUploadProtocol(java.lang.String uploadProtocol) { - return (Pause) super.setUploadProtocol(uploadProtocol); - } - /** - * Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: `proj - * ects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_mon - * itoring_job}` + * Immutable. Resource name of the ModelMonitor. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}`. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: `projects/{projec - t}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + /** Immutable. Resource name of the ModelMonitor. Format: + `projects/{project}/locations/{location}/modelMonitors/{model_monitor}`. */ public java.lang.String getName() { return name; } /** - * Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: `proj - * ects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_mon - * itoring_job}` + * Immutable. Resource name of the ModelMonitor. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}`. */ - public Pause 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } this.name = name; return this; } + /** Required. Mask specifying which fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. Mask specifying which fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. Mask specifying which fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Pause set(String parameterName, Object value) { - return (Pause) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A - * deleted ModelDeploymentMonitoringJob can't be resumed. + * Returns the Model Monitoring alerts. * - * Create a request for the method "modelDeploymentMonitoringJobs.resume". + * Create a request for the method "modelMonitors.searchModelMonitoringAlerts". * * 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. + * parameters, call the {@link SearchModelMonitoringAlerts#execute()} method to invoke the remote + * operation. * - * @param name Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: `projects/{projec - * t}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest} + * @param modelMonitor Required. ModelMonitor resource name. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest} * @return the request */ - public Resume resume(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest content) throws java.io.IOException { - Resume result = new Resume(name, content); + public SearchModelMonitoringAlerts searchModelMonitoringAlerts(java.lang.String modelMonitor, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest content) throws java.io.IOException { + SearchModelMonitoringAlerts result = new SearchModelMonitoringAlerts(modelMonitor, content); initialize(result); return result; } - public class Resume extends AiplatformRequest { + public class SearchModelMonitoringAlerts extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:resume"; + private static final String REST_PATH = "v1beta1/{+modelMonitor}:searchModelMonitoringAlerts"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + private final java.util.regex.Pattern MODEL_MONITOR_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); /** - * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A - * deleted ModelDeploymentMonitoringJob can't be resumed. + * Returns the Model Monitoring alerts. * - * Create a request for the method "modelDeploymentMonitoringJobs.resume". + * Create a request for the method "modelMonitors.searchModelMonitoringAlerts". * * 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.

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

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

* - * @param name Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: `projects/{projec - * t}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest} + * @param modelMonitor Required. ModelMonitor resource name. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest} * @since 1.13 */ - protected Resume(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest 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."); + protected SearchModelMonitoringAlerts(java.lang.String modelMonitor, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse.class); + this.modelMonitor = com.google.api.client.util.Preconditions.checkNotNull(modelMonitor, "Required parameter modelMonitor 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(MODEL_MONITOR_PATTERN.matcher(modelMonitor).matches(), + "Parameter modelMonitor must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } } @Override - public Resume set$Xgafv(java.lang.String $Xgafv) { - return (Resume) super.set$Xgafv($Xgafv); + public SearchModelMonitoringAlerts set$Xgafv(java.lang.String $Xgafv) { + return (SearchModelMonitoringAlerts) super.set$Xgafv($Xgafv); } @Override - public Resume setAccessToken(java.lang.String accessToken) { - return (Resume) super.setAccessToken(accessToken); + public SearchModelMonitoringAlerts setAccessToken(java.lang.String accessToken) { + return (SearchModelMonitoringAlerts) super.setAccessToken(accessToken); } @Override - public Resume setAlt(java.lang.String alt) { - return (Resume) super.setAlt(alt); + public SearchModelMonitoringAlerts setAlt(java.lang.String alt) { + return (SearchModelMonitoringAlerts) super.setAlt(alt); } @Override - public Resume setCallback(java.lang.String callback) { - return (Resume) super.setCallback(callback); + public SearchModelMonitoringAlerts setCallback(java.lang.String callback) { + return (SearchModelMonitoringAlerts) super.setCallback(callback); } @Override - public Resume setFields(java.lang.String fields) { - return (Resume) super.setFields(fields); + public SearchModelMonitoringAlerts setFields(java.lang.String fields) { + return (SearchModelMonitoringAlerts) super.setFields(fields); } @Override - public Resume setKey(java.lang.String key) { - return (Resume) super.setKey(key); + public SearchModelMonitoringAlerts setKey(java.lang.String key) { + return (SearchModelMonitoringAlerts) super.setKey(key); } @Override - public Resume setOauthToken(java.lang.String oauthToken) { - return (Resume) super.setOauthToken(oauthToken); + public SearchModelMonitoringAlerts setOauthToken(java.lang.String oauthToken) { + return (SearchModelMonitoringAlerts) super.setOauthToken(oauthToken); } @Override - public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resume) super.setPrettyPrint(prettyPrint); + public SearchModelMonitoringAlerts setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchModelMonitoringAlerts) super.setPrettyPrint(prettyPrint); } @Override - public Resume setQuotaUser(java.lang.String quotaUser) { - return (Resume) super.setQuotaUser(quotaUser); + public SearchModelMonitoringAlerts setQuotaUser(java.lang.String quotaUser) { + return (SearchModelMonitoringAlerts) super.setQuotaUser(quotaUser); } @Override - public Resume setUploadType(java.lang.String uploadType) { - return (Resume) super.setUploadType(uploadType); + public SearchModelMonitoringAlerts setUploadType(java.lang.String uploadType) { + return (SearchModelMonitoringAlerts) super.setUploadType(uploadType); } @Override - public Resume setUploadProtocol(java.lang.String uploadProtocol) { - return (Resume) super.setUploadProtocol(uploadProtocol); + public SearchModelMonitoringAlerts setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchModelMonitoringAlerts) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: `pro - * jects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_mo - * nitoring_job}` + * Required. ModelMonitor resource name. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String modelMonitor; - /** Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: `projects/{proje - ct}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + /** Required. ModelMonitor resource name. Format: + `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` */ - public java.lang.String getName() { - return name; + public java.lang.String getModelMonitor() { + return modelMonitor; } /** - * Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: `pro - * jects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_mo - * nitoring_job}` + * Required. ModelMonitor resource name. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` */ - public Resume setName(java.lang.String name) { + public SearchModelMonitoringAlerts setModelMonitor(java.lang.String modelMonitor) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(MODEL_MONITOR_PATTERN.matcher(modelMonitor).matches(), + "Parameter modelMonitor must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } - this.name = name; + this.modelMonitor = modelMonitor; return this; } @Override - public Resume set(String parameterName, Object value) { - return (Resume) super.set(parameterName, value); + public SearchModelMonitoringAlerts set(String parameterName, Object value) { + return (SearchModelMonitoringAlerts) super.set(parameterName, value); } } /** - * Searches Model Monitoring Statistics generated within a given time window. + * Searches Model Monitoring Stats generated within a given time window. * - * Create a request for the method - * "modelDeploymentMonitoringJobs.searchModelDeploymentMonitoringStatsAnomalies". + * Create a request for the method "modelMonitors.searchModelMonitoringStats". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link SearchModelDeploymentMonitoringStatsAnomalies#execute()} method to - * invoke the remote operation. + * parameters, call the {@link SearchModelMonitoringStats#execute()} method to invoke the remote + * operation. * - * @param modelDeploymentMonitoringJob Required. ModelDeploymentMonitoring Job resource name. Format: `projects/{project}/locations/{locati - * on}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest} + * @param modelMonitor Required. ModelMonitor resource name. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest} * @return the request */ - public SearchModelDeploymentMonitoringStatsAnomalies searchModelDeploymentMonitoringStatsAnomalies(java.lang.String modelDeploymentMonitoringJob, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest content) throws java.io.IOException { - SearchModelDeploymentMonitoringStatsAnomalies result = new SearchModelDeploymentMonitoringStatsAnomalies(modelDeploymentMonitoringJob, content); + public SearchModelMonitoringStats searchModelMonitoringStats(java.lang.String modelMonitor, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest content) throws java.io.IOException { + SearchModelMonitoringStats result = new SearchModelMonitoringStats(modelMonitor, content); initialize(result); return result; } - public class SearchModelDeploymentMonitoringStatsAnomalies extends AiplatformRequest { + public class SearchModelMonitoringStats extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies"; + private static final String REST_PATH = "v1beta1/{+modelMonitor}:searchModelMonitoringStats"; - private final java.util.regex.Pattern MODEL_DEPLOYMENT_MONITORING_JOB_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + private final java.util.regex.Pattern MODEL_MONITOR_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); /** - * Searches Model Monitoring Statistics generated within a given time window. + * Searches Model Monitoring Stats generated within a given time window. * - * Create a request for the method - * "modelDeploymentMonitoringJobs.searchModelDeploymentMonitoringStatsAnomalies". + * Create a request for the method "modelMonitors.searchModelMonitoringStats". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link SearchModelDeploymentMonitoringStatsAnomalies#execute()} - * method to invoke the remote operation.

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

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

* - * @param modelDeploymentMonitoringJob Required. ModelDeploymentMonitoring Job resource name. Format: `projects/{project}/locations/{locati - * on}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest} + * @param modelMonitor Required. ModelMonitor resource name. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest} * @since 1.13 */ - protected SearchModelDeploymentMonitoringStatsAnomalies(java.lang.String modelDeploymentMonitoringJob, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse.class); - this.modelDeploymentMonitoringJob = com.google.api.client.util.Preconditions.checkNotNull(modelDeploymentMonitoringJob, "Required parameter modelDeploymentMonitoringJob must be specified."); + protected SearchModelMonitoringStats(java.lang.String modelMonitor, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse.class); + this.modelMonitor = com.google.api.client.util.Preconditions.checkNotNull(modelMonitor, "Required parameter modelMonitor must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_DEPLOYMENT_MONITORING_JOB_PATTERN.matcher(modelDeploymentMonitoringJob).matches(), - "Parameter modelDeploymentMonitoringJob must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(MODEL_MONITOR_PATTERN.matcher(modelMonitor).matches(), + "Parameter modelMonitor must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } } @Override - public SearchModelDeploymentMonitoringStatsAnomalies set$Xgafv(java.lang.String $Xgafv) { - return (SearchModelDeploymentMonitoringStatsAnomalies) super.set$Xgafv($Xgafv); + public SearchModelMonitoringStats set$Xgafv(java.lang.String $Xgafv) { + return (SearchModelMonitoringStats) super.set$Xgafv($Xgafv); } @Override - public SearchModelDeploymentMonitoringStatsAnomalies setAccessToken(java.lang.String accessToken) { - return (SearchModelDeploymentMonitoringStatsAnomalies) super.setAccessToken(accessToken); + public SearchModelMonitoringStats setAccessToken(java.lang.String accessToken) { + return (SearchModelMonitoringStats) super.setAccessToken(accessToken); } @Override - public SearchModelDeploymentMonitoringStatsAnomalies setAlt(java.lang.String alt) { - return (SearchModelDeploymentMonitoringStatsAnomalies) super.setAlt(alt); + public SearchModelMonitoringStats setAlt(java.lang.String alt) { + return (SearchModelMonitoringStats) super.setAlt(alt); } @Override - public SearchModelDeploymentMonitoringStatsAnomalies setCallback(java.lang.String callback) { - return (SearchModelDeploymentMonitoringStatsAnomalies) super.setCallback(callback); + public SearchModelMonitoringStats setCallback(java.lang.String callback) { + return (SearchModelMonitoringStats) super.setCallback(callback); } @Override - public SearchModelDeploymentMonitoringStatsAnomalies setFields(java.lang.String fields) { - return (SearchModelDeploymentMonitoringStatsAnomalies) super.setFields(fields); + public SearchModelMonitoringStats setFields(java.lang.String fields) { + return (SearchModelMonitoringStats) super.setFields(fields); } @Override - public SearchModelDeploymentMonitoringStatsAnomalies setKey(java.lang.String key) { - return (SearchModelDeploymentMonitoringStatsAnomalies) super.setKey(key); + public SearchModelMonitoringStats setKey(java.lang.String key) { + return (SearchModelMonitoringStats) super.setKey(key); } @Override - public SearchModelDeploymentMonitoringStatsAnomalies setOauthToken(java.lang.String oauthToken) { - return (SearchModelDeploymentMonitoringStatsAnomalies) super.setOauthToken(oauthToken); + public SearchModelMonitoringStats setOauthToken(java.lang.String oauthToken) { + return (SearchModelMonitoringStats) super.setOauthToken(oauthToken); } @Override - public SearchModelDeploymentMonitoringStatsAnomalies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchModelDeploymentMonitoringStatsAnomalies) super.setPrettyPrint(prettyPrint); + public SearchModelMonitoringStats setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SearchModelMonitoringStats) super.setPrettyPrint(prettyPrint); } @Override - public SearchModelDeploymentMonitoringStatsAnomalies setQuotaUser(java.lang.String quotaUser) { - return (SearchModelDeploymentMonitoringStatsAnomalies) super.setQuotaUser(quotaUser); + public SearchModelMonitoringStats setQuotaUser(java.lang.String quotaUser) { + return (SearchModelMonitoringStats) super.setQuotaUser(quotaUser); } @Override - public SearchModelDeploymentMonitoringStatsAnomalies setUploadType(java.lang.String uploadType) { - return (SearchModelDeploymentMonitoringStatsAnomalies) super.setUploadType(uploadType); + public SearchModelMonitoringStats setUploadType(java.lang.String uploadType) { + return (SearchModelMonitoringStats) super.setUploadType(uploadType); } @Override - public SearchModelDeploymentMonitoringStatsAnomalies setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchModelDeploymentMonitoringStatsAnomalies) super.setUploadProtocol(uploadProtocol); + public SearchModelMonitoringStats setUploadProtocol(java.lang.String uploadProtocol) { + return (SearchModelMonitoringStats) super.setUploadProtocol(uploadProtocol); } /** - * Required. ModelDeploymentMonitoring Job resource name. Format: `projects/{project}/loca - * tions/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * Required. ModelMonitor resource name. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` */ @com.google.api.client.util.Key - private java.lang.String modelDeploymentMonitoringJob; + private java.lang.String modelMonitor; - /** Required. ModelDeploymentMonitoring Job resource name. Format: `projects/{project}/locations/{locat - ion}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + /** Required. ModelMonitor resource name. Format: + `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` */ - public java.lang.String getModelDeploymentMonitoringJob() { - return modelDeploymentMonitoringJob; + public java.lang.String getModelMonitor() { + return modelMonitor; } /** - * Required. ModelDeploymentMonitoring Job resource name. Format: `projects/{project}/loca - * tions/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * Required. ModelMonitor resource name. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` */ - public SearchModelDeploymentMonitoringStatsAnomalies setModelDeploymentMonitoringJob(java.lang.String modelDeploymentMonitoringJob) { + public SearchModelMonitoringStats setModelMonitor(java.lang.String modelMonitor) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_DEPLOYMENT_MONITORING_JOB_PATTERN.matcher(modelDeploymentMonitoringJob).matches(), - "Parameter modelDeploymentMonitoringJob must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(MODEL_MONITOR_PATTERN.matcher(modelMonitor).matches(), + "Parameter modelMonitor must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } - this.modelDeploymentMonitoringJob = modelDeploymentMonitoringJob; + this.modelMonitor = modelMonitor; return this; } @Override - public SearchModelDeploymentMonitoringStatsAnomalies set(String parameterName, Object value) { - return (SearchModelDeploymentMonitoringStatsAnomalies) super.set(parameterName, value); + public SearchModelMonitoringStats set(String parameterName, Object value) { + return (SearchModelMonitoringStats) super.set(parameterName, value); } } /** - * An accessor for creating requests from the Operations collection. + * An accessor for creating requests from the ModelMonitoringJobs collection. * *

The typical use is:

*
          *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+         *   {@code Aiplatform.ModelMonitoringJobs.List request = aiplatform.modelMonitoringJobs().list(parameters ...)}
          * 
* * @return the resource collection */ - public Operations operations() { - return new Operations(); + public ModelMonitoringJobs modelMonitoringJobs() { + return new ModelMonitoringJobs(); } /** - * The "operations" collection of methods. + * The "modelMonitoringJobs" collection of methods. */ - public class Operations { + public class ModelMonitoringJobs { /** - * 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 a ModelMonitoringJob. * - * Create a request for the method "operations.cancel". + * Create a request for the method "modelMonitoringJobs.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. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be cancelled. + * @param parent Required. The parent of the ModelMonitoringJob. Format: + * `projects/{project}/locations/{location}/modelMoniitors/{model_monitor}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitoringJob} * @return the request */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitoringJob content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class Cancel extends AiplatformRequest { + public class Create extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + private static final String REST_PATH = "v1beta1/{+parent}/modelMonitoringJobs"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); /** - * 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 a ModelMonitoringJob. * - * Create a request for the method "operations.cancel". + * Create a request for the method "modelMonitoringJobs.create". * * 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. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. *

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

* - * @param name The name of the operation resource to be cancelled. + * @param parent Required. The parent of the ModelMonitoringJob. Format: + * `projects/{project}/locations/{location}/modelMoniitors/{model_monitor}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitoringJob} * @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."); + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitoringJob content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitoringJob.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/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be cancelled. */ + /** + * Required. The parent of the ModelMonitoringJob. Format: + * `projects/{project}/locations/{location}/modelMoniitors/{model_monitor}` + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation resource to be cancelled. + /** Required. The parent of the ModelMonitoringJob. Format: + `projects/{project}/locations/{location}/modelMoniitors/{model_monitor}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { + /** + * Required. The parent of the ModelMonitoringJob. Format: + * `projects/{project}/locations/{location}/modelMoniitors/{model_monitor}` + */ + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } - this.name = name; + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the Model Monitoring Job, which will become the final + * component of the model monitoring job resource name. The maximum length is 63 + * characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. + */ + @com.google.api.client.util.Key + private java.lang.String modelMonitoringJobId; + + /** Optional. The ID to use for the Model Monitoring Job, which will become the final component of the + model monitoring job resource name. The maximum length is 63 characters, and valid characters are + `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. + */ + public java.lang.String getModelMonitoringJobId() { + return modelMonitoringJobId; + } + + /** + * Optional. The ID to use for the Model Monitoring Job, which will become the final + * component of the model monitoring job resource name. The maximum length is 63 + * characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. + */ + public Create setModelMonitoringJobId(java.lang.String modelMonitoringJobId) { + this.modelMonitoringJobId = modelMonitoringJobId; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) 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 a ModelMonitoringJob. * - * Create a request for the method "operations.delete". + * Create a request for the method "modelMonitoringJobs.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 resource name of the model monitoring job to delete. Format: `projects/{project}/locat + * ions/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}` * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -120637,19 +123450,17 @@ 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/modelMonitoringJobs/[^/]+$"); /** - * 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 ModelMonitoringJob. * - * Create a request for the method "operations.delete". + * Create a request for the method "modelMonitoringJobs.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. @@ -120657,16 +123468,17 @@ public class Delete extends AiplatformRequest * - * @param name The name of the operation resource to be deleted. + * @param name Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/locat + * ions/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}` * @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/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/modelMonitoringJobs/[^/]+$"); } } @@ -120725,22 +123537,31 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource to be deleted. */ + /** + * Required. The resource name of the model monitoring job to delete. Format: `projects/ + * {project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{mod + * el_monitoring_job}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource to be deleted. + /** Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/loca + tions/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource to be deleted. */ + /** + * Required. The resource name of the model monitoring job to delete. Format: `projects/ + * {project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{mod + * el_monitoring_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/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/modelMonitoringJobs/[^/]+$"); } this.name = name; return this; @@ -120751,16 +123572,16 @@ 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 a ModelMonitoringJob. * - * Create a request for the method "operations.get". + * Create a request for the method "modelMonitoringJobs.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 resource name of the ModelMonitoringJob. Format: `projects/{project}/locations/{locati + * on}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -120769,34 +123590,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/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/modelMonitoringJobs/[^/]+$"); /** - * 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 ModelMonitoringJob. * - * Create a request for the method "operations.get". + * Create a request for the method "modelMonitoringJobs.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 resource name of the ModelMonitoringJob. Format: `projects/{project}/locations/{locati + * on}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}` * @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.GoogleCloudAiplatformV1beta1ModelMonitoringJob.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/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/modelMonitoringJobs/[^/]+$"); } } @@ -120865,22 +123686,31 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Required. The resource name of the ModelMonitoringJob. Format: `projects/{project}/lo + * cations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitorin + * g_job}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. The resource name of the ModelMonitoringJob. Format: `projects/{project}/locations/{locat + ion}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ + /** + * Required. The resource name of the ModelMonitoringJob. Format: `projects/{project}/lo + * cations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitorin + * g_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/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/modelMonitoringJobs/[^/]+$"); } this.name = name; return this; @@ -120892,51 +123722,57 @@ 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 ModelMonitoringJobs. Callers may choose to read across multiple Monitors as per + * [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash character) as a wildcard + * character instead of modelMonitor id in the parent. Format + * `projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs` * - * Create a request for the method "operations.list". + * Create a request for the method "modelMonitoringJobs.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 of the ModelMonitoringJob. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` * @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}/modelMonitoringJobs"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Lists ModelMonitoringJobs. Callers may choose to read across multiple Monitors as per + * [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash character) as a wildcard + * character instead of modelMonitor id in the parent. Format + * `projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs` * - * Create a request for the method "operations.list". + * Create a request for the method "modelMonitoringJobs.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 of the ModelMonitoringJob. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` * @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.GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse.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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } } @@ -121005,38 +123841,45 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Required. The parent of the ModelMonitoringJob. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` + */ @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 of the ModelMonitoringJob. Format: + `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` */ - 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 of the ModelMonitoringJob. Format: + * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` + */ + 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - /** The standard list filter. */ + /** The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). */ @com.google.api.client.util.Key private java.lang.String filter; - /** The standard list filter. + /** The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). */ public java.lang.String getFilter() { return filter; } - /** The standard list filter. */ + /** The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; @@ -121074,38 +123917,19 @@ public List setPageToken(java.lang.String 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. - */ + /** Mask specifying which fields to read */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private String 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. + /** Mask specifying which fields to read */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public String getReadMask() { + return 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; + /** Mask specifying which fields to read */ + public List setReadMask(String readMask) { + this.readMask = readMask; return this; } @@ -121114,5736 +123938,5757 @@ 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 { + /** - * 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/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/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/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/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); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @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/[^/]+/modelDeploymentMonitoringJobs/[^/]+/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; + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } - - } - } - /** - * An accessor for creating requests from the ModelMonitors collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.ModelMonitors.List request = aiplatform.modelMonitors().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public ModelMonitors modelMonitors() { - return new ModelMonitors(); - } - - /** - * The "modelMonitors" collection of methods. - */ - public class ModelMonitors { - - /** - * Creates a ModelMonitor. - * - * Create a request for the method "modelMonitors.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 ModelMonitor in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor 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}/modelMonitors"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Creates a ModelMonitor. - * - * Create a request for the method "modelMonitors.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 ModelMonitor in. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor 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 ModelMonitor 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 ModelMonitor in. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the Location to create the ModelMonitor 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/[^/]+$"); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } - this.parent = parent; - return this; - } - - /** - * Optional. The ID to use for the Model Monitor, which will become the final component of - * the model monitor resource name. The maximum length is 63 characters, and valid - * characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. - */ - @com.google.api.client.util.Key - private java.lang.String modelMonitorId; - - /** Optional. The ID to use for the Model Monitor, which will become the final component of the model - monitor resource name. The maximum length is 63 characters, and valid characters are - `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. - */ - public java.lang.String getModelMonitorId() { - return modelMonitorId; - } - /** - * Optional. The ID to use for the Model Monitor, which will become the final component of - * the model monitor resource name. The maximum length is 63 characters, and valid - * characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. - */ - public Create setModelMonitorId(java.lang.String modelMonitorId) { - this.modelMonitorId = modelMonitorId; - return this; - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a ModelMonitor. - * - * Create a request for the method "modelMonitors.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 ModelMonitor resource to be deleted. Format: - * `projects/{project}/locations/{location}/modelMonitords/{model_monitor}` - * @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 Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - public class Delete extends AiplatformRequest { + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - private static final String REST_PATH = "v1beta1/{+name}"; + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); + /** 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } /** - * Deletes a ModelMonitor. + * 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 "modelMonitors.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. - *

{@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 Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the ModelMonitor resource to be deleted. Format: - * `projects/{project}/locations/{location}/modelMonitords/{model_monitor}` - * @since 1.13 + * @param name The name of the operation resource to be deleted. + * @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/[^/]+/modelMonitors/[^/]+$"); - } - } - - @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); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + public class Delete extends AiplatformRequest { - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + /** + * 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); + } + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - /** - * Required. The name of the ModelMonitor resource to be deleted. Format: - * `projects/{project}/locations/{location}/modelMonitords/{model_monitor}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - /** Required. The name of the ModelMonitor resource to be deleted. Format: - `projects/{project}/locations/{location}/modelMonitords/{model_monitor}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - /** - * Required. The name of the ModelMonitor resource to be deleted. Format: - * `projects/{project}/locations/{location}/modelMonitords/{model_monitor}` - */ - 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/[^/]+/modelMonitors/[^/]+$"); + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } - this.name = name; - return this; - } - /** Optional. Force delete the model monitor with schedules. */ - @com.google.api.client.util.Key - private java.lang.Boolean force; + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** Optional. Force delete the model monitor with schedules. - */ - public java.lang.Boolean getForce() { - return force; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - /** Optional. Force delete the model monitor with schedules. */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; - return this; - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a ModelMonitor. - * - * Create a request for the method "modelMonitors.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 ModelMonitor resource. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - * @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 Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - public class Get extends AiplatformRequest { + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1beta1/{+name}"; + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); + /** 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** - * Gets a ModelMonitor. + * 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 "modelMonitors.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.

+ * 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 ModelMonitor resource. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - * @since 1.13 + * @param name The name of the operation resource. + * @return the request */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor.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/[^/]+/modelMonitors/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Get 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}"; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); + } + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the ModelMonitor resource. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the ModelMonitor resource. Format: - `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * Required. The name of the ModelMonitor resource. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - */ - 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/[^/]+/modelMonitors/[^/]+$"); + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists ModelMonitors in a Location. - * - * Create a request for the method "modelMonitors.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 ModelMonitors 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; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - public class List extends AiplatformRequest { + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1beta1/{+parent}/modelMonitors"; + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Lists ModelMonitors in a Location. + * 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 "modelMonitors.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.

+ * 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 ModelMonitors from. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 + * @param name The name of the operation's parent resource. + * @return the request */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListModelMonitorsResponse.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 List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class List 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}/operations"; - @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/[^/]+/modelMonitors/[^/]+$"); - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) 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/[^/]+/modelMonitors/[^/]+$"); + } + } - @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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the Location to list the ModelMonitors from. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** Required. The resource name of the Location to list the ModelMonitors from. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** - * Required. The resource name of the Location to list the ModelMonitors 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 List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - this.parent = parent; - return this; - } - /** The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). - */ - public java.lang.String getFilter() { - return filter; - } + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - /** The standard list page size. */ - @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/[^/]+/modelMonitors/[^/]+$"); + } + this.name = name; + return this; + } - /** The standard list page size. - */ - 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 page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates a ModelMonitor. - * - * Create a request for the method "modelMonitors.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. Resource name of the ModelMonitor. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}`. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - public class Patch 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. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; - private static final String REST_PATH = "v1beta1/{+name}"; + /** 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; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); + /** + * 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); + } + } /** - * Updates a ModelMonitor. + * 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 "modelMonitors.patch". + * 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 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.

+ * 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 Immutable. Resource name of the ModelMonitor. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}`. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor} - * @since 1.13 + * @param name The name of the operation resource to wait on. + * @return the request */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitor 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/[^/]+/modelMonitors/[^/]+$"); - } + public Wait wait(java.lang.String name) throws java.io.IOException { + Wait result = new Wait(name); + initialize(result); + return result; } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class Wait extends AiplatformRequest { - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:wait"; - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + /** + * 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); + } + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @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 Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - /** - * Immutable. Resource name of the ModelMonitor. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}`. - */ - @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; - /** Immutable. Resource name of the ModelMonitor. Format: - `projects/{project}/locations/{location}/modelMonitors/{model_monitor}`. - */ - public java.lang.String getName() { - return name; - } + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - /** - * Immutable. Resource name of the ModelMonitor. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}`. - */ - 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/[^/]+/modelMonitors/[^/]+$"); + /** 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; } - this.name = name; - return this; - } - /** Required. Mask specifying which fields to update. */ - @com.google.api.client.util.Key - private String updateMask; + /** + * 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; - /** Required. Mask specifying which fields to update. - */ - public String getUpdateMask() { - return updateMask; - } + /** 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; + } - /** Required. Mask specifying which fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - 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; + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } } + } + } + /** + * An accessor for creating requests from the Models collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.Models.List request = aiplatform.models().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Models models() { + return new Models(); + } + + /** + * The "models" collection of methods. + */ + public class Models { + /** - * Returns the Model Monitoring alerts. + * Copies an already existing Vertex AI Model into the specified Location. The source Model must + * exist in the same Project. When copying custom Models, the users themselves are responsible for + * Model.metadata content to be region-agnostic, as well as making sure that any resources (e.g. + * files) it depends on remain accessible. * - * Create a request for the method "modelMonitors.searchModelMonitoringAlerts". + * Create a request for the method "models.copy". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link SearchModelMonitoringAlerts#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Copy#execute()} method to invoke the remote operation. * - * @param modelMonitor Required. ModelMonitor resource name. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest} + * @param parent Required. The resource name of the Location into which to copy the Model. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CopyModelRequest} * @return the request */ - public SearchModelMonitoringAlerts searchModelMonitoringAlerts(java.lang.String modelMonitor, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest content) throws java.io.IOException { - SearchModelMonitoringAlerts result = new SearchModelMonitoringAlerts(modelMonitor, content); + public Copy copy(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CopyModelRequest content) throws java.io.IOException { + Copy result = new Copy(parent, content); initialize(result); return result; } - public class SearchModelMonitoringAlerts extends AiplatformRequest { + public class Copy extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+modelMonitor}:searchModelMonitoringAlerts"; + private static final String REST_PATH = "v1beta1/{+parent}/models:copy"; - private final java.util.regex.Pattern MODEL_MONITOR_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Returns the Model Monitoring alerts. + * Copies an already existing Vertex AI Model into the specified Location. The source Model must + * exist in the same Project. When copying custom Models, the users themselves are responsible for + * Model.metadata content to be region-agnostic, as well as making sure that any resources (e.g. + * files) it depends on remain accessible. * - * Create a request for the method "modelMonitors.searchModelMonitoringAlerts". + * Create a request for the method "models.copy". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link SearchModelMonitoringAlerts#execute()} method to invoke - * the remote operation.

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

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

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

* - * @param modelMonitor Required. ModelMonitor resource name. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest} + * @param parent Required. The resource name of the Location into which to copy the Model. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CopyModelRequest} * @since 1.13 */ - protected SearchModelMonitoringAlerts(java.lang.String modelMonitor, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse.class); - this.modelMonitor = com.google.api.client.util.Preconditions.checkNotNull(modelMonitor, "Required parameter modelMonitor must be specified."); + protected Copy(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CopyModelRequest 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(MODEL_MONITOR_PATTERN.matcher(modelMonitor).matches(), - "Parameter modelMonitor must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public SearchModelMonitoringAlerts set$Xgafv(java.lang.String $Xgafv) { - return (SearchModelMonitoringAlerts) super.set$Xgafv($Xgafv); + public Copy set$Xgafv(java.lang.String $Xgafv) { + return (Copy) super.set$Xgafv($Xgafv); } @Override - public SearchModelMonitoringAlerts setAccessToken(java.lang.String accessToken) { - return (SearchModelMonitoringAlerts) super.setAccessToken(accessToken); + public Copy setAccessToken(java.lang.String accessToken) { + return (Copy) super.setAccessToken(accessToken); } @Override - public SearchModelMonitoringAlerts setAlt(java.lang.String alt) { - return (SearchModelMonitoringAlerts) super.setAlt(alt); + public Copy setAlt(java.lang.String alt) { + return (Copy) super.setAlt(alt); } @Override - public SearchModelMonitoringAlerts setCallback(java.lang.String callback) { - return (SearchModelMonitoringAlerts) super.setCallback(callback); + public Copy setCallback(java.lang.String callback) { + return (Copy) super.setCallback(callback); } @Override - public SearchModelMonitoringAlerts setFields(java.lang.String fields) { - return (SearchModelMonitoringAlerts) super.setFields(fields); + public Copy setFields(java.lang.String fields) { + return (Copy) super.setFields(fields); } @Override - public SearchModelMonitoringAlerts setKey(java.lang.String key) { - return (SearchModelMonitoringAlerts) super.setKey(key); + public Copy setKey(java.lang.String key) { + return (Copy) super.setKey(key); } @Override - public SearchModelMonitoringAlerts setOauthToken(java.lang.String oauthToken) { - return (SearchModelMonitoringAlerts) super.setOauthToken(oauthToken); + public Copy setOauthToken(java.lang.String oauthToken) { + return (Copy) super.setOauthToken(oauthToken); } @Override - public SearchModelMonitoringAlerts setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchModelMonitoringAlerts) super.setPrettyPrint(prettyPrint); + public Copy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Copy) super.setPrettyPrint(prettyPrint); } @Override - public SearchModelMonitoringAlerts setQuotaUser(java.lang.String quotaUser) { - return (SearchModelMonitoringAlerts) super.setQuotaUser(quotaUser); + public Copy setQuotaUser(java.lang.String quotaUser) { + return (Copy) super.setQuotaUser(quotaUser); } @Override - public SearchModelMonitoringAlerts setUploadType(java.lang.String uploadType) { - return (SearchModelMonitoringAlerts) super.setUploadType(uploadType); + public Copy setUploadType(java.lang.String uploadType) { + return (Copy) super.setUploadType(uploadType); } @Override - public SearchModelMonitoringAlerts setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchModelMonitoringAlerts) super.setUploadProtocol(uploadProtocol); + public Copy setUploadProtocol(java.lang.String uploadProtocol) { + return (Copy) super.setUploadProtocol(uploadProtocol); } /** - * Required. ModelMonitor resource name. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` + * Required. The resource name of the Location into which to copy the Model. Format: + * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String modelMonitor; + private java.lang.String parent; - /** Required. ModelMonitor resource name. Format: - `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` + /** Required. The resource name of the Location into which to copy the Model. Format: + `projects/{project}/locations/{location}` */ - public java.lang.String getModelMonitor() { - return modelMonitor; + public java.lang.String getParent() { + return parent; } /** - * Required. ModelMonitor resource name. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` + * Required. The resource name of the Location into which to copy the Model. Format: + * `projects/{project}/locations/{location}` */ - public SearchModelMonitoringAlerts setModelMonitor(java.lang.String modelMonitor) { + public Copy setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_MONITOR_PATTERN.matcher(modelMonitor).matches(), - "Parameter modelMonitor must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.modelMonitor = modelMonitor; + this.parent = parent; return this; } @Override - public SearchModelMonitoringAlerts set(String parameterName, Object value) { - return (SearchModelMonitoringAlerts) super.set(parameterName, value); + public Copy set(String parameterName, Object value) { + return (Copy) super.set(parameterName, value); } } /** - * Searches Model Monitoring Stats generated within a given time window. + * Deletes a Model. A model cannot be deleted if any Endpoint resource has a DeployedModel based on + * the model in its deployed_models field. * - * Create a request for the method "modelMonitors.searchModelMonitoringStats". + * Create a request for the method "models.delete". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link SearchModelMonitoringStats#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param modelMonitor Required. ModelMonitor resource name. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest} + * @param name Required. The name of the Model resource to be deleted. Format: + * `projects/{project}/locations/{location}/models/{model}` * @return the request */ - public SearchModelMonitoringStats searchModelMonitoringStats(java.lang.String modelMonitor, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest content) throws java.io.IOException { - SearchModelMonitoringStats result = new SearchModelMonitoringStats(modelMonitor, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class SearchModelMonitoringStats extends AiplatformRequest { + public class Delete extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+modelMonitor}:searchModelMonitoringStats"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern MODEL_MONITOR_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); /** - * Searches Model Monitoring Stats generated within a given time window. + * Deletes a Model. A model cannot be deleted if any Endpoint resource has a DeployedModel based + * on the model in its deployed_models field. * - * Create a request for the method "modelMonitors.searchModelMonitoringStats". + * Create a request for the method "models.delete". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link SearchModelMonitoringStats#execute()} method to invoke the - * remote operation.

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

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

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

* - * @param modelMonitor Required. ModelMonitor resource name. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest} + * @param name Required. The name of the Model resource to be deleted. Format: + * `projects/{project}/locations/{location}/models/{model}` * @since 1.13 */ - protected SearchModelMonitoringStats(java.lang.String modelMonitor, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse.class); - this.modelMonitor = com.google.api.client.util.Preconditions.checkNotNull(modelMonitor, "Required parameter modelMonitor must be specified."); + 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(MODEL_MONITOR_PATTERN.matcher(modelMonitor).matches(), - "Parameter modelMonitor must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/models/[^/]+$"); } } @Override - public SearchModelMonitoringStats set$Xgafv(java.lang.String $Xgafv) { - return (SearchModelMonitoringStats) super.set$Xgafv($Xgafv); - } - - @Override - public SearchModelMonitoringStats setAccessToken(java.lang.String accessToken) { - return (SearchModelMonitoringStats) super.setAccessToken(accessToken); - } - - @Override - public SearchModelMonitoringStats setAlt(java.lang.String alt) { - return (SearchModelMonitoringStats) super.setAlt(alt); - } - - @Override - public SearchModelMonitoringStats setCallback(java.lang.String callback) { - return (SearchModelMonitoringStats) super.setCallback(callback); - } - - @Override - public SearchModelMonitoringStats setFields(java.lang.String fields) { - return (SearchModelMonitoringStats) super.setFields(fields); - } - - @Override - public SearchModelMonitoringStats setKey(java.lang.String key) { - return (SearchModelMonitoringStats) super.setKey(key); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public SearchModelMonitoringStats setOauthToken(java.lang.String oauthToken) { - return (SearchModelMonitoringStats) super.setOauthToken(oauthToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public SearchModelMonitoringStats setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchModelMonitoringStats) super.setPrettyPrint(prettyPrint); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public SearchModelMonitoringStats setQuotaUser(java.lang.String quotaUser) { - return (SearchModelMonitoringStats) super.setQuotaUser(quotaUser); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public SearchModelMonitoringStats setUploadType(java.lang.String uploadType) { - return (SearchModelMonitoringStats) super.setUploadType(uploadType); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public SearchModelMonitoringStats setUploadProtocol(java.lang.String uploadProtocol) { - return (SearchModelMonitoringStats) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. ModelMonitor resource name. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - */ - @com.google.api.client.util.Key - private java.lang.String modelMonitor; - - /** Required. ModelMonitor resource name. Format: - `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - */ - public java.lang.String getModelMonitor() { - return modelMonitor; - } - - /** - * Required. ModelMonitor resource name. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - */ - public SearchModelMonitoringStats setModelMonitor(java.lang.String modelMonitor) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_MONITOR_PATTERN.matcher(modelMonitor).matches(), - "Parameter modelMonitor must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); - } - this.modelMonitor = modelMonitor; - return this; + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public SearchModelMonitoringStats set(String parameterName, Object value) { - return (SearchModelMonitoringStats) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the ModelMonitoringJobs collection. - * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.ModelMonitoringJobs.List request = aiplatform.modelMonitoringJobs().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public ModelMonitoringJobs modelMonitoringJobs() { - return new ModelMonitoringJobs(); - } - - /** - * The "modelMonitoringJobs" collection of methods. - */ - public class ModelMonitoringJobs { - - /** - * Creates a ModelMonitoringJob. - * - * Create a request for the method "modelMonitoringJobs.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 ModelMonitoringJob. Format: - * `projects/{project}/locations/{location}/modelMoniitors/{model_monitor}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitoringJob} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitoringJob content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } - public class Create extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/modelMonitoringJobs"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); - - /** - * Creates a ModelMonitoringJob. - * - * Create a request for the method "modelMonitoringJobs.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 ModelMonitoringJob. Format: - * `projects/{project}/locations/{location}/modelMoniitors/{model_monitor}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitoringJob} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitoringJob content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitoringJob.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/[^/]+/modelMonitors/[^/]+$"); - } - } - - @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 Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The name of the Model resource to be deleted. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Required. The parent of the ModelMonitoringJob. Format: - * `projects/{project}/locations/{location}/modelMoniitors/{model_monitor}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** Required. The name of the Model resource to be deleted. Format: + `projects/{project}/locations/{location}/models/{model}` + */ + public java.lang.String getName() { + return name; + } - /** Required. The parent of the ModelMonitoringJob. Format: - `projects/{project}/locations/{location}/modelMoniitors/{model_monitor}` - */ - public java.lang.String getParent() { - return parent; + /** + * Required. The name of the Model resource to be deleted. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + 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/[^/]+/models/[^/]+$"); } + this.name = name; + return this; + } - /** - * Required. The parent of the ModelMonitoringJob. Format: - * `projects/{project}/locations/{location}/modelMoniitors/{model_monitor}` - */ - 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/[^/]+/modelMonitors/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Deletes a Model version. Model version can only be deleted if there are no DeployedModels created + * from it. Deleting the only version in the Model is not allowed. Use DeleteModel for deleting the + * Model instead. + * + * Create a request for the method "models.deleteVersion". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link DeleteVersion#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the model version to be deleted, with a version ID explicitly included. + * Example: `projects/{project}/locations/{location}/models/{model}@1234` + * @return the request + */ + public DeleteVersion deleteVersion(java.lang.String name) throws java.io.IOException { + DeleteVersion result = new DeleteVersion(name); + initialize(result); + return result; + } - /** - * Optional. The ID to use for the Model Monitoring Job, which will become the final - * component of the model monitoring job resource name. The maximum length is 63 - * characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. - */ - @com.google.api.client.util.Key - private java.lang.String modelMonitoringJobId; + public class DeleteVersion extends AiplatformRequest { - /** Optional. The ID to use for the Model Monitoring Job, which will become the final component of the - model monitoring job resource name. The maximum length is 63 characters, and valid characters are - `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. - */ - public java.lang.String getModelMonitoringJobId() { - return modelMonitoringJobId; - } + private static final String REST_PATH = "v1beta1/{+name}:deleteVersion"; - /** - * Optional. The ID to use for the Model Monitoring Job, which will become the final - * component of the model monitoring job resource name. The maximum length is 63 - * characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. - */ - public Create setModelMonitoringJobId(java.lang.String modelMonitoringJobId) { - this.modelMonitoringJobId = modelMonitoringJobId; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } /** - * Deletes a ModelMonitoringJob. + * Deletes a Model version. Model version can only be deleted if there are no DeployedModels + * created from it. Deleting the only version in the Model is not allowed. Use DeleteModel for + * deleting the Model instead. * - * Create a request for the method "modelMonitoringJobs.delete". + * Create a request for the method "models.deleteVersion". * - * 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 DeleteVersion#execute()} method to invoke the remote + * operation.

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

* - * @param name Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/locat - * ions/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}` - * @return the request + * @param name Required. The name of the model version to be deleted, with a version ID explicitly included. + * Example: `projects/{project}/locations/{location}/models/{model}@1234` + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + protected DeleteVersion(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/[^/]+/models/[^/]+$"); + } } - public class Delete extends AiplatformRequest { + @Override + public DeleteVersion set$Xgafv(java.lang.String $Xgafv) { + return (DeleteVersion) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public DeleteVersion setAccessToken(java.lang.String accessToken) { + return (DeleteVersion) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/modelMonitoringJobs/[^/]+$"); + @Override + public DeleteVersion setAlt(java.lang.String alt) { + return (DeleteVersion) super.setAlt(alt); + } - /** - * Deletes a ModelMonitoringJob. - * - * Create a request for the method "modelMonitoringJobs.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 model monitoring job to delete. Format: `projects/{project}/locat - * ions/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_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/[^/]+/modelMonitors/[^/]+/modelMonitoringJobs/[^/]+$"); - } - } + @Override + public DeleteVersion setCallback(java.lang.String callback) { + return (DeleteVersion) super.setCallback(callback); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public DeleteVersion setFields(java.lang.String fields) { + return (DeleteVersion) super.setFields(fields); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public DeleteVersion setKey(java.lang.String key) { + return (DeleteVersion) super.setKey(key); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public DeleteVersion setOauthToken(java.lang.String oauthToken) { + return (DeleteVersion) super.setOauthToken(oauthToken); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public DeleteVersion setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteVersion) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public DeleteVersion setQuotaUser(java.lang.String quotaUser) { + return (DeleteVersion) super.setQuotaUser(quotaUser); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public DeleteVersion setUploadType(java.lang.String uploadType) { + return (DeleteVersion) super.setUploadType(uploadType); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public DeleteVersion setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteVersion) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The name of the model version to be deleted, with a version ID explicitly + * included. Example: `projects/{project}/locations/{location}/models/{model}@1234` + */ + @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 name of the model version to be deleted, with a version ID explicitly included. + Example: `projects/{project}/locations/{location}/models/{model}@1234` + */ + public java.lang.String getName() { + return name; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** + * Required. The name of the model version to be deleted, with a version ID explicitly + * included. Example: `projects/{project}/locations/{location}/models/{model}@1234` + */ + public DeleteVersion 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/[^/]+/models/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public DeleteVersion set(String parameterName, Object value) { + return (DeleteVersion) super.set(parameterName, value); + } + } + /** + * Exports a trained, exportable Model to a location specified by the user. A Model is considered to + * be exportable if it has at least one supported export format. + * + * Create a request for the method "models.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 resource name of the Model to export. The resource name may contain version id or + * version alias to specify the version, if no version is specified, the default version will + * be exported. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportModelRequest} + * @return the request + */ + public Export export(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportModelRequest content) throws java.io.IOException { + Export result = new Export(name, content); + initialize(result); + return result; + } - /** - * Required. The resource name of the model monitoring job to delete. Format: `projects/ - * {project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{mod - * el_monitoring_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Export extends AiplatformRequest { - /** Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/loca - tions/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}` - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1beta1/{+name}:export"; - /** - * Required. The resource name of the model monitoring job to delete. Format: `projects/ - * {project}/locations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{mod - * el_monitoring_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/[^/]+/modelMonitors/[^/]+/modelMonitoringJobs/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } /** - * Gets a ModelMonitoringJob. + * Exports a trained, exportable Model to a location specified by the user. A Model is considered + * to be exportable if it has at least one supported export format. * - * Create a request for the method "modelMonitoringJobs.get". + * Create a request for the method "models.export". * - * 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 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 resource name of the ModelMonitoringJob. Format: `projects/{project}/locations/{locati - * on}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}` - * @return the request + * @param name Required. The resource name of the Model to export. The resource name may contain version id or + * version alias to specify the version, if no version is specified, the default version will + * be exported. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportModelRequest} + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Export(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportModelRequest 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/[^/]+/models/[^/]+$"); + } } - 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/[^/]+/modelMonitors/[^/]+/modelMonitoringJobs/[^/]+$"); - - /** - * Gets a ModelMonitoringJob. - * - * Create a request for the method "modelMonitoringJobs.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 ModelMonitoringJob. Format: `projects/{project}/locations/{locati - * on}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelMonitoringJob.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/[^/]+/modelMonitors/[^/]+/modelMonitoringJobs/[^/]+$"); - } - } + @Override + public Export set$Xgafv(java.lang.String $Xgafv) { + return (Export) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Export setAccessToken(java.lang.String accessToken) { + return (Export) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Export setAlt(java.lang.String alt) { + return (Export) super.setAlt(alt); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Export setCallback(java.lang.String callback) { + return (Export) super.setCallback(callback); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Export setFields(java.lang.String fields) { + return (Export) super.setFields(fields); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Export setKey(java.lang.String key) { + return (Export) super.setKey(key); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Export setOauthToken(java.lang.String oauthToken) { + return (Export) super.setOauthToken(oauthToken); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Export setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Export) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Export setQuotaUser(java.lang.String quotaUser) { + return (Export) super.setQuotaUser(quotaUser); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Export setUploadType(java.lang.String uploadType) { + return (Export) super.setUploadType(uploadType); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Export setUploadProtocol(java.lang.String uploadProtocol) { + return (Export) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** + * Required. The resource name of the Model to export. The resource name may contain + * version id or version alias to specify the version, if no version is specified, the + * default version will be exported. + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Required. The resource name of the Model to export. The resource name may contain version id or + version alias to specify the version, if no version is specified, the default version will be + exported. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** + * Required. The resource name of the Model to export. The resource name may contain + * version id or version alias to specify the version, if no version is specified, the + * default version will be exported. + */ + 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/[^/]+/models/[^/]+$"); } + this.name = name; + return this; + } - /** - * Required. The resource name of the ModelMonitoringJob. Format: `projects/{project}/lo - * cations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitorin - * g_job}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Export set(String parameterName, Object value) { + return (Export) super.set(parameterName, value); + } + } + /** + * Gets a Model. + * + * Create a request for the method "models.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 Model resource. Format: + * `projects/{project}/locations/{location}/models/{model}` In order to retrieve a specific + * version of the model, also provide the version ID or version alias. Example: + * `projects/{project}/locations/{location}/models/{model}@2` or + * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias + * is specified, the "default" version will be returned. The "default" version alias is + * created for the first version of the model, and can be moved to other versions later on. + * There will be exactly one default version. + * @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 resource name of the ModelMonitoringJob. Format: `projects/{project}/locations/{locat - ion}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitoring_job}` - */ - public java.lang.String getName() { - return name; - } + public class Get extends AiplatformRequest { - /** - * Required. The resource name of the ModelMonitoringJob. Format: `projects/{project}/lo - * cations/{location}/modelMonitors/{model_monitor}/modelMonitoringJobs/{model_monitorin - * g_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/[^/]+/modelMonitors/[^/]+/modelMonitoringJobs/[^/]+$"); - } - this.name = name; - return this; - } + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Lists ModelMonitoringJobs. Callers may choose to read across multiple Monitors as per - * [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash character) as a wildcard - * character instead of modelMonitor id in the parent. Format - * `projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs` + * Gets a Model. * - * Create a request for the method "modelMonitoringJobs.list". + * Create a request for the method "models.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. + * 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 parent Required. The parent of the ModelMonitoringJob. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - * @return the request + * @param name Required. The name of the Model resource. Format: + * `projects/{project}/locations/{location}/models/{model}` In order to retrieve a specific + * version of the model, also provide the version ID or version alias. Example: + * `projects/{project}/locations/{location}/models/{model}@2` or + * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias + * is specified, the "default" version will be returned. The "default" version alias is + * created for the first version of the model, and can be moved to other versions later on. + * There will be exactly one default version. + * @since 1.13 */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model.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/[^/]+/models/[^/]+$"); + } } - public class List 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/{+parent}/modelMonitoringJobs"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$"); + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** - * Lists ModelMonitoringJobs. Callers may choose to read across multiple Monitors as per - * [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash character) as a wildcard - * character instead of modelMonitor id in the parent. Format - * `projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs` - * - * Create a request for the method "modelMonitoringJobs.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 ModelMonitoringJob. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse.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/[^/]+/modelMonitors/[^/]+$"); - } - } + @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 List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The name of the Model resource. Format: + * `projects/{project}/locations/{location}/models/{model}` In order to retrieve a + * specific version of the model, also provide the version ID or version alias. Example: + * `projects/{project}/locations/{location}/models/{model}@2` or + * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or + * alias is specified, the "default" version will be returned. The "default" version alias + * is created for the first version of the model, and can be moved to other versions later + * on. There will be exactly one default version. + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Required. The name of the Model resource. Format: + `projects/{project}/locations/{location}/models/{model}` In order to retrieve a specific version of + the model, also provide the version ID or version alias. Example: + `projects/{project}/locations/{location}/models/{model}@2` or + `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias is + specified, the "default" version will be returned. The "default" version alias is created for the + first version of the model, and can be moved to other versions later on. There will be exactly one + default version. + */ + public java.lang.String getName() { + return name; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** + * Required. The name of the Model resource. Format: + * `projects/{project}/locations/{location}/models/{model}` In order to retrieve a + * specific version of the model, also provide the version ID or version alias. Example: + * `projects/{project}/locations/{location}/models/{model}@2` or + * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or + * alias is specified, the "default" version will be returned. The "default" version alias + * is created for the first version of the model, and can be moved to other versions later + * on. There will be exactly one default 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/[^/]+/models/[^/]+$"); } + this.name = name; + return this; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @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 "models.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; + } - /** - * Required. The parent of the ModelMonitoringJob. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + public class GetIamPolicy extends AiplatformRequest { - /** Required. The parent of the ModelMonitoringJob. Format: - `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - */ - public java.lang.String getParent() { - return parent; - } + private static final String REST_PATH = "v1beta1/{+resource}:getIamPolicy"; - /** - * Required. The parent of the ModelMonitoringJob. Format: - * `projects/{project}/locations/{location}/modelMonitors/{model_monitor}` - */ - 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/[^/]+/modelMonitors/[^/]+$"); - } - this.parent = parent; - return this; + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + + /** + * 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 "models.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/[^/]+/models/[^/]+$"); } + } - /** The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } - /** The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } - /** The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } - /** Mask specifying which fields to read */ - @com.google.api.client.util.Key - private String readMask; + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } - /** Mask specifying which fields to read - */ - public String getReadMask() { - return readMask; - } + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } - /** Mask specifying which fields to read */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; + /** + * 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/[^/]+/models/[^/]+$"); } + this.resource = resource; + return this; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + /** + * 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); + } } /** - * An accessor for creating requests from the Operations collection. + * Lists Models 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 "models.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 resource name of the Location to list the Models from. 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}/models"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. + * Lists Models in a Location. * - * Create a request for the method "operations.cancel". + * Create a request for the method "models.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 resource name of the Location to list the Models from. 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.GoogleCloudAiplatformV1beta1ListModelsResponse.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/[^/]+/modelMonitors/[^/]+/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/[^/]+/modelMonitors/[^/]+/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 resource name of the Location to list the Models from. 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 resource name of the Location to list the Models from. 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 resource name of the Location to list the Models 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 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * An expression for filtering the results of the request. For field names both snake_case + * and camelCase are supported. * `model` supports = and !=. `model` represents the Model + * ID, i.e. the last segment of the Model's resource name. * `display_name` 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"`. * `base_model_name` only supports = Some examples: * + * `model=1234` * `displayName="myDisplayName"` * `labels.myKey="myValue"` * + * `baseModelName="text-bison"` + */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } + /** An expression for filtering the results of the request. For field names both snake_case and + camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the + last segment of the Model's resource name. * `display_name` 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"`. * + `base_model_name` only supports = Some examples: * `model=1234` * `displayName="myDisplayName"` * + `labels.myKey="myValue"` * `baseModelName="text-bison"` + */ + public java.lang.String getFilter() { + return filter; } + /** - * 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 + * An expression for filtering the results of the request. For field names both snake_case + * and camelCase are supported. * `model` supports = and !=. `model` represents the Model + * ID, i.e. the last segment of the Model's resource name. * `display_name` 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"`. * `base_model_name` only supports = Some examples: * + * `model=1234` * `displayName="myDisplayName"` * `labels.myKey="myValue"` * + * `baseModelName="text-bison"` */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public List setFilter(java.lang.String filter) { + this.filter = filter; + 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/[^/]+/modelMonitors/[^/]+/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/[^/]+/modelMonitors/[^/]+/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); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** + * The standard list page token. Typically obtained via ListModelsResponse.next_page_token + * of the previous ModelService.ListModels call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** The standard list page token. Typically obtained via ListModelsResponse.next_page_token of the + previous ModelService.ListModels call. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** + * The standard list page token. Typically obtained via ListModelsResponse.next_page_token + * of the previous ModelService.ListModels call. + */ + 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); - } + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + /** Mask specifying which fields to read. */ + public List setReadMask(String readMask) { + this.readMask = readMask; + return this; + } - /** 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Lists checkpoints of the specified model version. + * + * Create a request for the method "models.listCheckpoints". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link ListCheckpoints#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the model version to list checkpoints for. + * `projects/{project}/locations/{location}/models/{model}@{version}` Example: + * `projects/{project}/locations/{location}/models/{model}@2` or + * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias + * is specified, the latest version will be used. + * @return the request + */ + public ListCheckpoints listCheckpoints(java.lang.String name) throws java.io.IOException { + ListCheckpoints result = new ListCheckpoints(name); + initialize(result); + return result; + } + + public class ListCheckpoints extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+name}:listCheckpoints"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); - @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. + * Lists checkpoints of the specified model version. * - * Create a request for the method "operations.get". + * Create a request for the method "models.listCheckpoints". * - * 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 ListCheckpoints#execute()} method to invoke the remote + * operation.

{@link ListCheckpoints#initialize(com.google.api.client.googleapis.services.Abst + * ractGoogleClientRequest)} 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 model version to list checkpoints for. + * `projects/{project}/locations/{location}/models/{model}@{version}` Example: + * `projects/{project}/locations/{location}/models/{model}@2` or + * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias + * is specified, the latest version will be used. + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected ListCheckpoints(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse.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/[^/]+/models/[^/]+$"); + } } - 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); + @Override + public ListCheckpoints set$Xgafv(java.lang.String $Xgafv) { + return (ListCheckpoints) 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); - } - } + @Override + public ListCheckpoints setAccessToken(java.lang.String accessToken) { + return (ListCheckpoints) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public ListCheckpoints setAlt(java.lang.String alt) { + return (ListCheckpoints) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public ListCheckpoints setCallback(java.lang.String callback) { + return (ListCheckpoints) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public ListCheckpoints setFields(java.lang.String fields) { + return (ListCheckpoints) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public ListCheckpoints setKey(java.lang.String key) { + return (ListCheckpoints) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public ListCheckpoints setOauthToken(java.lang.String oauthToken) { + return (ListCheckpoints) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public ListCheckpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListCheckpoints) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public ListCheckpoints setQuotaUser(java.lang.String quotaUser) { + return (ListCheckpoints) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public ListCheckpoints setUploadType(java.lang.String uploadType) { + return (ListCheckpoints) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public ListCheckpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ListCheckpoints) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The name of the model version to list checkpoints for. + * `projects/{project}/locations/{location}/models/{model}@{version}` Example: + * `projects/{project}/locations/{location}/models/{model}@2` or + * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or + * alias is specified, the latest version will be used. + */ + @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 model version to list checkpoints for. + `projects/{project}/locations/{location}/models/{model}@{version}` Example: + `projects/{project}/locations/{location}/models/{model}@2` or + `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias is + specified, the latest version will be used. + */ + 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 model version to list checkpoints for. + * `projects/{project}/locations/{location}/models/{model}@{version}` Example: + * `projects/{project}/locations/{location}/models/{model}@2` or + * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or + * alias is specified, the latest version will be used. + */ + public ListCheckpoints 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/[^/]+/models/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** Optional. The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Optional. The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + /** Optional. The standard list page size. */ + public ListCheckpoints setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Optional. The standard list page token. Typically obtained via next_page_token of the + * previous ListModelVersionCheckpoints call. + */ + @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); - } + /** Optional. The standard list page token. Typically obtained via next_page_token of the previous + ListModelVersionCheckpoints call. + */ + public java.lang.String getPageToken() { + return pageToken; } + /** - * 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 + * Optional. The standard list page token. Typically obtained via next_page_token of the + * previous ListModelVersionCheckpoints call. */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + public ListCheckpoints setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - 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/[^/]+/modelMonitors/[^/]+$"); + @Override + public ListCheckpoints set(String parameterName, Object value) { + return (ListCheckpoints) super.set(parameterName, value); + } + } + /** + * Lists versions of the specified model. + * + * Create a request for the method "models.listVersions". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link ListVersions#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the model to list versions for. + * @return the request + */ + public ListVersions listVersions(java.lang.String name) throws java.io.IOException { + ListVersions result = new ListVersions(name); + initialize(result); + return result; + } - /** - * 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/[^/]+/modelMonitors/[^/]+$"); - } - } + public class ListVersions 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}:listVersions"; - @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/[^/]+/models/[^/]+$"); - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + /** + * Lists versions of the specified model. + * + * Create a request for the method "models.listVersions". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link ListVersions#execute()} method to invoke the remote + * operation.

{@link + * ListVersions#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 model to list versions for. + * @since 1.13 + */ + protected ListVersions(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListModelVersionsResponse.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/[^/]+/models/[^/]+$"); } + } - @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 ListVersions set$Xgafv(java.lang.String $Xgafv) { + return (ListVersions) super.set$Xgafv($Xgafv); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public ListVersions setAccessToken(java.lang.String accessToken) { + return (ListVersions) super.setAccessToken(accessToken); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public ListVersions setAlt(java.lang.String alt) { + return (ListVersions) super.setAlt(alt); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public ListVersions setCallback(java.lang.String callback) { + return (ListVersions) super.setCallback(callback); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public ListVersions setFields(java.lang.String fields) { + return (ListVersions) super.setFields(fields); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public ListVersions setKey(java.lang.String key) { + return (ListVersions) super.setKey(key); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public ListVersions setOauthToken(java.lang.String oauthToken) { + return (ListVersions) super.setOauthToken(oauthToken); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public ListVersions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListVersions) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public ListVersions setQuotaUser(java.lang.String quotaUser) { + return (ListVersions) super.setQuotaUser(quotaUser); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public ListVersions setUploadType(java.lang.String uploadType) { + return (ListVersions) 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/[^/]+/modelMonitors/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public ListVersions setUploadProtocol(java.lang.String uploadProtocol) { + return (ListVersions) super.setUploadProtocol(uploadProtocol); + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** Required. The name of the model to list versions for. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + /** Required. The name of the model to list versions for. + */ + public java.lang.String getName() { + return name; + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + /** Required. The name of the model to list versions for. */ + public ListVersions 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/[^/]+/models/[^/]+$"); } + this.name = name; + return this; + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** + * An expression for filtering the results of the request. For field names both snake_case + * and camelCase are supported. * `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: * + * `labels.myKey="myValue"` + */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** An expression for filtering the results of the request. For field names both snake_case and + camelCase are supported. * `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: * `labels.myKey="myValue"` + */ + public java.lang.String getFilter() { + return filter; + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * An expression for filtering the results of the request. For field names both snake_case + * and camelCase are supported. * `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: * + * `labels.myKey="myValue"` + */ + public ListVersions setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + * after a field name for descending. Supported fields: * `create_time` * `update_time` + * Example: `update_time asc, create_time desc`. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field + name for descending. Supported fields: * `create_time` * `update_time` Example: `update_time asc, + create_time desc`. + */ + public java.lang.String getOrderBy() { + return orderBy; + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - 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: * `create_time` * `update_time` + * Example: `update_time asc, create_time desc`. + */ + public ListVersions setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + 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; + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** 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 size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** - * 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 standard list page size. */ + public ListVersions setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + /** + * The standard list page token. Typically obtained via next_page_token of the previous + * ListModelVersions call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. Typically obtained via next_page_token of the previous + ListModelVersions call. + */ + public java.lang.String getPageToken() { + return pageToken; } + /** - * 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 standard list page token. Typically obtained via next_page_token of the previous + * ListModelVersions call. */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + public ListVersions setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - public class Wait extends AiplatformRequest { + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - private static final String REST_PATH = "v1beta1/{+name}:wait"; + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); + /** Mask specifying which fields to read. */ + public ListVersions setReadMask(String readMask) { + this.readMask = readMask; + return this; + } - /** - * 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); - } - } + @Override + public ListVersions set(String parameterName, Object value) { + return (ListVersions) super.set(parameterName, value); + } + } + /** + * Merges a set of aliases for a Model version. + * + * Create a request for the method "models.mergeVersionAliases". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link MergeVersionAliases#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the model version to merge aliases, with a version ID explicitly included. + * Example: `projects/{project}/locations/{location}/models/{model}@1234` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest} + * @return the request + */ + public MergeVersionAliases mergeVersionAliases(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest content) throws java.io.IOException { + MergeVersionAliases result = new MergeVersionAliases(name, content); + initialize(result); + return result; + } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + public class MergeVersionAliases extends AiplatformRequest { - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:mergeVersionAliases"; - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + /** + * Merges a set of aliases for a Model version. + * + * Create a request for the method "models.mergeVersionAliases". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link MergeVersionAliases#execute()} method to invoke the remote + * operation.

{@link MergeVersionAliases#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 model version to merge aliases, with a version ID explicitly included. + * Example: `projects/{project}/locations/{location}/models/{model}@1234` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest} + * @since 1.13 + */ + protected MergeVersionAliases(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model.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/[^/]+/models/[^/]+$"); } + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public MergeVersionAliases set$Xgafv(java.lang.String $Xgafv) { + return (MergeVersionAliases) super.set$Xgafv($Xgafv); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public MergeVersionAliases setAccessToken(java.lang.String accessToken) { + return (MergeVersionAliases) super.setAccessToken(accessToken); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public MergeVersionAliases setAlt(java.lang.String alt) { + return (MergeVersionAliases) super.setAlt(alt); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public MergeVersionAliases setCallback(java.lang.String callback) { + return (MergeVersionAliases) super.setCallback(callback); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public MergeVersionAliases setFields(java.lang.String fields) { + return (MergeVersionAliases) super.setFields(fields); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public MergeVersionAliases setKey(java.lang.String key) { + return (MergeVersionAliases) super.setKey(key); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public MergeVersionAliases setOauthToken(java.lang.String oauthToken) { + return (MergeVersionAliases) 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 MergeVersionAliases setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MergeVersionAliases) super.setPrettyPrint(prettyPrint); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public MergeVersionAliases setQuotaUser(java.lang.String quotaUser) { + return (MergeVersionAliases) 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/[^/]+/modelMonitors/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public MergeVersionAliases setUploadType(java.lang.String uploadType) { + return (MergeVersionAliases) 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 MergeVersionAliases setUploadProtocol(java.lang.String uploadProtocol) { + return (MergeVersionAliases) 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; - } + /** + * Required. The name of the model version to merge aliases, with a version ID explicitly + * included. Example: `projects/{project}/locations/{location}/models/{model}@1234` + */ + @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; - } + /** Required. The name of the model version to merge aliases, with a version ID explicitly included. + Example: `projects/{project}/locations/{location}/models/{model}@1234` + */ + public java.lang.String getName() { + return name; + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + /** + * Required. The name of the model version to merge aliases, with a version ID explicitly + * included. Example: `projects/{project}/locations/{location}/models/{model}@1234` + */ + public MergeVersionAliases 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/[^/]+/models/[^/]+$"); } + this.name = name; + return this; } + @Override + public MergeVersionAliases set(String parameterName, Object value) { + return (MergeVersionAliases) super.set(parameterName, value); + } } - } - /** - * An accessor for creating requests from the Models collection. - * - *

The typical use is:

- *
-       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-       *   {@code Aiplatform.Models.List request = aiplatform.models().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Models models() { - return new Models(); - } - - /** - * The "models" collection of methods. - */ - public class Models { - /** - * Copies an already existing Vertex AI Model into the specified Location. The source Model must - * exist in the same Project. When copying custom Models, the users themselves are responsible for - * Model.metadata content to be region-agnostic, as well as making sure that any resources (e.g. - * files) it depends on remain accessible. + * Updates a Model. * - * Create a request for the method "models.copy". + * Create a request for the method "models.patch". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link Copy#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param parent Required. The resource name of the Location into which to copy the Model. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CopyModelRequest} + * @param name Identifier. The resource name of the Model. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model} * @return the request */ - public Copy copy(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CopyModelRequest content) throws java.io.IOException { - Copy result = new Copy(parent, content); + public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Copy extends AiplatformRequest { + public class Patch extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/models:copy"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); /** - * Copies an already existing Vertex AI Model into the specified Location. The source Model must - * exist in the same Project. When copying custom Models, the users themselves are responsible for - * Model.metadata content to be region-agnostic, as well as making sure that any resources (e.g. - * files) it depends on remain accessible. + * Updates a Model. * - * Create a request for the method "models.copy". + * Create a request for the method "models.patch". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link Copy#execute()} method to invoke the remote operation.

- * {@link Copy#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 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 parent Required. The resource name of the Location into which to copy the Model. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CopyModelRequest} + * @param name Identifier. The resource name of the Model. + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model} * @since 1.13 */ - protected Copy(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1CopyModelRequest 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."); + protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model content) { + super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/models/[^/]+$"); } } @Override - public Copy set$Xgafv(java.lang.String $Xgafv) { - return (Copy) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Copy setAccessToken(java.lang.String accessToken) { - return (Copy) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Copy setAlt(java.lang.String alt) { - return (Copy) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Copy setCallback(java.lang.String callback) { - return (Copy) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Copy setFields(java.lang.String fields) { - return (Copy) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Copy setKey(java.lang.String key) { - return (Copy) super.setKey(key); + 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 Copy setOauthToken(java.lang.String oauthToken) { - return (Copy) super.setOauthToken(oauthToken); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Copy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Copy) super.setPrettyPrint(prettyPrint); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Copy setQuotaUser(java.lang.String quotaUser) { - return (Copy) super.setQuotaUser(quotaUser); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Copy setUploadType(java.lang.String uploadType) { - return (Copy) super.setUploadType(uploadType); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - @Override - public Copy setUploadProtocol(java.lang.String uploadProtocol) { - return (Copy) super.setUploadProtocol(uploadProtocol); + /** Identifier. The resource name of the Model. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the Model. + */ + public java.lang.String getName() { + return name; + } + + /** Identifier. The resource name of the Model. */ + 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/[^/]+/models/[^/]+$"); + } + this.name = name; + return this; } /** - * Required. The resource name of the Location into which to copy the Model. Format: - * `projects/{project}/locations/{location}` + * Required. The update mask applies to the resource. For the `FieldMask` definition, see + * google.protobuf.FieldMask. */ @com.google.api.client.util.Key - private java.lang.String parent; + private String updateMask; - /** Required. The resource name of the Location into which to copy the Model. Format: - `projects/{project}/locations/{location}` + /** Required. The update mask applies to the resource. For the `FieldMask` definition, see + google.protobuf.FieldMask. */ - public java.lang.String getParent() { - return parent; + public String getUpdateMask() { + return updateMask; } /** - * Required. The resource name of the Location into which to copy the Model. Format: - * `projects/{project}/locations/{location}` + * Required. The update mask applies to the resource. For the `FieldMask` definition, see + * google.protobuf.FieldMask. */ - public Copy 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; + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public Copy set(String parameterName, Object value) { - return (Copy) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Deletes a Model. A model cannot be deleted if any Endpoint resource has a DeployedModel based on - * the model in its deployed_models field. + * 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 "models.delete". + * Create a request for the method "models.setIamPolicy". * * 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. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Model resource to be deleted. Format: - * `projects/{project}/locations/{location}/models/{model}` + * @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 Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + 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 Delete extends AiplatformRequest { + public class SetIamPolicy extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); /** - * Deletes a Model. A model cannot be deleted if any Endpoint resource has a DeployedModel based - * on the model in its deployed_models field. + * 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 "models.delete". + * Create a request for the method "models.setIamPolicy". * * 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.

+ * 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 name Required. The name of the Model resource to be deleted. Format: - * `projects/{project}/locations/{location}/models/{model}` + * @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 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."); + 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/models/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Model resource to be deleted. Format: - * `projects/{project}/locations/{location}/models/{model}` + * 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 name; + private java.lang.String resource; - /** Required. The name of the Model resource to be deleted. Format: - `projects/{project}/locations/{location}/models/{model}` + /** 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 getName() { - return name; + public java.lang.String getResource() { + return resource; } /** - * Required. The name of the Model resource to be deleted. Format: - * `projects/{project}/locations/{location}/models/{model}` + * 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 Delete setName(java.lang.String name) { + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/models/[^/]+$"); } - this.name = name; + this.resource = resource; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Deletes a Model version. Model version can only be deleted if there are no DeployedModels created - * from it. Deleting the only version in the Model is not allowed. Use DeleteModel for deleting the - * Model instead. + * 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 "models.deleteVersion". + * Create a request for the method "models.testIamPermissions". * * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link DeleteVersion#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * - * @param name Required. The name of the model version to be deleted, with a version ID explicitly included. - * Example: `projects/{project}/locations/{location}/models/{model}@1234` + * @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 DeleteVersion deleteVersion(java.lang.String name) throws java.io.IOException { - DeleteVersion result = new DeleteVersion(name); + public TestIamPermissions testIamPermissions(java.lang.String resource) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource); initialize(result); return result; } - public class DeleteVersion extends AiplatformRequest { + public class TestIamPermissions extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:deleteVersion"; + private static final String REST_PATH = "v1beta1/{+resource}:testIamPermissions"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); /** - * Deletes a Model version. Model version can only be deleted if there are no DeployedModels - * created from it. Deleting the only version in the Model is not allowed. Use DeleteModel for - * deleting the Model instead. + * 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 "models.deleteVersion". + * Create a request for the method "models.testIamPermissions". * * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link DeleteVersion#execute()} method to invoke the remote - * operation.

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

+ * 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 name Required. The name of the model version to be deleted, with a version ID explicitly included. - * Example: `projects/{project}/locations/{location}/models/{model}@1234` + * @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 DeleteVersion(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."); + 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/models/[^/]+$"); } } @Override - public DeleteVersion set$Xgafv(java.lang.String $Xgafv) { - return (DeleteVersion) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public DeleteVersion setAccessToken(java.lang.String accessToken) { - return (DeleteVersion) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public DeleteVersion setAlt(java.lang.String alt) { - return (DeleteVersion) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public DeleteVersion setCallback(java.lang.String callback) { - return (DeleteVersion) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public DeleteVersion setFields(java.lang.String fields) { - return (DeleteVersion) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public DeleteVersion setKey(java.lang.String key) { - return (DeleteVersion) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public DeleteVersion setOauthToken(java.lang.String oauthToken) { - return (DeleteVersion) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public DeleteVersion setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteVersion) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public DeleteVersion setQuotaUser(java.lang.String quotaUser) { - return (DeleteVersion) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public DeleteVersion setUploadType(java.lang.String uploadType) { - return (DeleteVersion) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public DeleteVersion setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteVersion) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the model version to be deleted, with a version ID explicitly - * included. Example: `projects/{project}/locations/{location}/models/{model}@1234` + * 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 name; + private java.lang.String resource; - /** Required. The name of the model version to be deleted, with a version ID explicitly included. - Example: `projects/{project}/locations/{location}/models/{model}@1234` + /** 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 getName() { - return name; + public java.lang.String getResource() { + return resource; } /** - * Required. The name of the model version to be deleted, with a version ID explicitly - * included. Example: `projects/{project}/locations/{location}/models/{model}@1234` + * 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 DeleteVersion setName(java.lang.String name) { + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/models/[^/]+$"); } - this.name = name; + 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 DeleteVersion set(String parameterName, Object value) { - return (DeleteVersion) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Exports a trained, exportable Model to a location specified by the user. A Model is considered to - * be exportable if it has at least one supported export format. + * Incrementally update the dataset used for an examples model. * - * Create a request for the method "models.export". + * Create a request for the method "models.updateExplanationDataset". * * 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. + * parameters, call the {@link UpdateExplanationDataset#execute()} method to invoke the remote + * operation. * - * @param name Required. The resource name of the Model to export. The resource name may contain version id or - * version alias to specify the version, if no version is specified, the default version will - * be exported. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportModelRequest} + * @param model Required. The resource name of the Model to update. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest} * @return the request */ - public Export export(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportModelRequest content) throws java.io.IOException { - Export result = new Export(name, content); + public UpdateExplanationDataset updateExplanationDataset(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest content) throws java.io.IOException { + UpdateExplanationDataset result = new UpdateExplanationDataset(model, content); initialize(result); return result; } - public class Export extends AiplatformRequest { + public class UpdateExplanationDataset extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:export"; + private static final String REST_PATH = "v1beta1/{+model}:updateExplanationDataset"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern MODEL_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); /** - * Exports a trained, exportable Model to a location specified by the user. A Model is considered - * to be exportable if it has at least one supported export format. + * Incrementally update the dataset used for an examples model. * - * Create a request for the method "models.export". + * Create a request for the method "models.updateExplanationDataset". * * 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.

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

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

* - * @param name Required. The resource name of the Model to export. The resource name may contain version id or - * version alias to specify the version, if no version is specified, the default version will - * be exported. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportModelRequest} + * @param model Required. The resource name of the Model to update. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest} * @since 1.13 */ - protected Export(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ExportModelRequest content) { + protected UpdateExplanationDataset(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest 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."); + this.model = com.google.api.client.util.Preconditions.checkNotNull(model, "Required parameter model must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), + "Parameter model must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/models/[^/]+$"); } } @Override - public Export set$Xgafv(java.lang.String $Xgafv) { - return (Export) super.set$Xgafv($Xgafv); + public UpdateExplanationDataset set$Xgafv(java.lang.String $Xgafv) { + return (UpdateExplanationDataset) super.set$Xgafv($Xgafv); } @Override - public Export setAccessToken(java.lang.String accessToken) { - return (Export) super.setAccessToken(accessToken); + public UpdateExplanationDataset setAccessToken(java.lang.String accessToken) { + return (UpdateExplanationDataset) super.setAccessToken(accessToken); } @Override - public Export setAlt(java.lang.String alt) { - return (Export) super.setAlt(alt); + public UpdateExplanationDataset setAlt(java.lang.String alt) { + return (UpdateExplanationDataset) super.setAlt(alt); } @Override - public Export setCallback(java.lang.String callback) { - return (Export) super.setCallback(callback); + public UpdateExplanationDataset setCallback(java.lang.String callback) { + return (UpdateExplanationDataset) super.setCallback(callback); } @Override - public Export setFields(java.lang.String fields) { - return (Export) super.setFields(fields); + public UpdateExplanationDataset setFields(java.lang.String fields) { + return (UpdateExplanationDataset) super.setFields(fields); } @Override - public Export setKey(java.lang.String key) { - return (Export) super.setKey(key); + public UpdateExplanationDataset setKey(java.lang.String key) { + return (UpdateExplanationDataset) super.setKey(key); } @Override - public Export setOauthToken(java.lang.String oauthToken) { - return (Export) super.setOauthToken(oauthToken); + public UpdateExplanationDataset setOauthToken(java.lang.String oauthToken) { + return (UpdateExplanationDataset) super.setOauthToken(oauthToken); } @Override - public Export setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Export) super.setPrettyPrint(prettyPrint); + public UpdateExplanationDataset setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateExplanationDataset) super.setPrettyPrint(prettyPrint); } @Override - public Export setQuotaUser(java.lang.String quotaUser) { - return (Export) super.setQuotaUser(quotaUser); + public UpdateExplanationDataset setQuotaUser(java.lang.String quotaUser) { + return (UpdateExplanationDataset) super.setQuotaUser(quotaUser); } @Override - public Export setUploadType(java.lang.String uploadType) { - return (Export) super.setUploadType(uploadType); + public UpdateExplanationDataset setUploadType(java.lang.String uploadType) { + return (UpdateExplanationDataset) super.setUploadType(uploadType); } @Override - public Export setUploadProtocol(java.lang.String uploadProtocol) { - return (Export) super.setUploadProtocol(uploadProtocol); + public UpdateExplanationDataset setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateExplanationDataset) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the Model to export. The resource name may contain - * version id or version alias to specify the version, if no version is specified, the - * default version will be exported. + * Required. The resource name of the Model to update. Format: + * `projects/{project}/locations/{location}/models/{model}` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String model; - /** Required. The resource name of the Model to export. The resource name may contain version id or - version alias to specify the version, if no version is specified, the default version will be - exported. + /** Required. The resource name of the Model to update. Format: + `projects/{project}/locations/{location}/models/{model}` */ - public java.lang.String getName() { - return name; + public java.lang.String getModel() { + return model; } /** - * Required. The resource name of the Model to export. The resource name may contain - * version id or version alias to specify the version, if no version is specified, the - * default version will be exported. + * Required. The resource name of the Model to update. Format: + * `projects/{project}/locations/{location}/models/{model}` */ - public Export setName(java.lang.String name) { + public UpdateExplanationDataset setModel(java.lang.String model) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), + "Parameter model must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/models/[^/]+$"); } - this.name = name; + this.model = model; return this; } @Override - public Export set(String parameterName, Object value) { - return (Export) super.set(parameterName, value); + public UpdateExplanationDataset set(String parameterName, Object value) { + return (UpdateExplanationDataset) super.set(parameterName, value); } } /** - * Gets a Model. + * Uploads a Model artifact into Vertex AI. * - * Create a request for the method "models.get". + * Create a request for the method "models.upload". * * 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. + * parameters, call the {@link Upload#execute()} method to invoke the remote operation. * - * @param name Required. The name of the Model resource. Format: - * `projects/{project}/locations/{location}/models/{model}` In order to retrieve a specific - * version of the model, also provide the version ID or version alias. Example: - * `projects/{project}/locations/{location}/models/{model}@2` or - * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias - * is specified, the "default" version will be returned. The "default" version alias is - * created for the first version of the model, and can be moved to other versions later on. - * There will be exactly one default version. + * @param parent Required. The resource name of the Location into which to upload the Model. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadModelRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Upload upload(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadModelRequest content) throws java.io.IOException { + Upload result = new Upload(parent, content); initialize(result); return result; } - public class Get extends AiplatformRequest { + public class Upload extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+parent}/models:upload"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Gets a Model. + * Uploads a Model artifact into Vertex AI. * - * Create a request for the method "models.get". + * Create a request for the method "models.upload". * * 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.

+ * 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 name of the Model resource. Format: - * `projects/{project}/locations/{location}/models/{model}` In order to retrieve a specific - * version of the model, also provide the version ID or version alias. Example: - * `projects/{project}/locations/{location}/models/{model}@2` or - * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias - * is specified, the "default" version will be returned. The "default" version alias is - * created for the first version of the model, and can be moved to other versions later on. - * There will be exactly one default version. + * @param parent Required. The resource name of the Location into which to upload the Model. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadModelRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Upload(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadModelRequest 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Upload set$Xgafv(java.lang.String $Xgafv) { + return (Upload) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Upload setAccessToken(java.lang.String accessToken) { + return (Upload) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Upload setAlt(java.lang.String alt) { + return (Upload) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Upload setCallback(java.lang.String callback) { + return (Upload) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Upload setFields(java.lang.String fields) { + return (Upload) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Upload setKey(java.lang.String key) { + return (Upload) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Upload setOauthToken(java.lang.String oauthToken) { + return (Upload) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upload) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Upload setQuotaUser(java.lang.String quotaUser) { + return (Upload) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Upload setUploadType(java.lang.String uploadType) { + return (Upload) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Upload setUploadProtocol(java.lang.String uploadProtocol) { + return (Upload) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Model resource. Format: - * `projects/{project}/locations/{location}/models/{model}` In order to retrieve a - * specific version of the model, also provide the version ID or version alias. Example: - * `projects/{project}/locations/{location}/models/{model}@2` or - * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or - * alias is specified, the "default" version will be returned. The "default" version alias - * is created for the first version of the model, and can be moved to other versions later - * on. There will be exactly one default version. + * Required. The resource name of the Location into which to upload the Model. Format: + * `projects/{project}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The name of the Model resource. Format: - `projects/{project}/locations/{location}/models/{model}` In order to retrieve a specific version of - the model, also provide the version ID or version alias. Example: - `projects/{project}/locations/{location}/models/{model}@2` or - `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias is - specified, the "default" version will be returned. The "default" version alias is created for the - first version of the model, and can be moved to other versions later on. There will be exactly one - default version. + /** Required. The resource name of the Location into which to upload the Model. Format: + `projects/{project}/locations/{location}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. The name of the Model resource. Format: - * `projects/{project}/locations/{location}/models/{model}` In order to retrieve a - * specific version of the model, also provide the version ID or version alias. Example: - * `projects/{project}/locations/{location}/models/{model}@2` or - * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or - * alias is specified, the "default" version will be returned. The "default" version alias - * is created for the first version of the model, and can be moved to other versions later - * on. There will be exactly one default version. + * Required. The resource name of the Location into which to upload the Model. Format: + * `projects/{project}/locations/{location}` */ - public Get setName(java.lang.String name) { + public Upload 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/[^/]+/models/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Upload set(String parameterName, Object value) { + return (Upload) 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 "models.getIamPolicy". + * An accessor for creating requests from the Evaluations collection. * - * 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. + *

The typical use is:

+ *
+         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+         *   {@code Aiplatform.Evaluations.List request = aiplatform.evaluations().list(parameters ...)}
+         * 
* - * @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 + * @return the resource collection */ - public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource); - initialize(result); - return result; + public Evaluations evaluations() { + return new Evaluations(); } - public class GetIamPolicy extends AiplatformRequest { + /** + * The "evaluations" collection of methods. + */ + public class Evaluations { + + /** + * Gets a ModelEvaluation. + * + * Create a request for the method "evaluations.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 ModelEvaluation resource. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @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/[^/]+/models/[^/]+/evaluations/[^/]+$"); + + /** + * Gets a ModelEvaluation. + * + * Create a request for the method "evaluations.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 ModelEvaluation resource. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelEvaluation.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/[^/]+/models/[^/]+/evaluations/[^/]+$"); + } + } + + @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 ModelEvaluation resource. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the ModelEvaluation resource. Format: + `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the ModelEvaluation resource. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + */ + 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/[^/]+/models/[^/]+/evaluations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Imports an externally generated ModelEvaluation. + * + * Create a request for the method "evaluations.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 parent Required. The name of the parent model resource. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest} + * @return the request + */ + public AiplatformImport aiplatformImport(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest content) throws java.io.IOException { + AiplatformImport result = new AiplatformImport(parent, content); + initialize(result); + return result; + } + + public class AiplatformImport extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/evaluations:import"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + + /** + * Imports an externally generated ModelEvaluation. + * + * Create a request for the method "evaluations.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 parent Required. The name of the parent model resource. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest} + * @since 1.13 + */ + protected AiplatformImport(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelEvaluation.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/[^/]+/models/[^/]+$"); + } + } + + @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 parent model resource. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The name of the parent model resource. Format: + `projects/{project}/locations/{location}/models/{model}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The name of the parent model resource. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + public AiplatformImport 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/[^/]+/models/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public AiplatformImport set(String parameterName, Object value) { + return (AiplatformImport) super.set(parameterName, value); + } + } + /** + * Lists ModelEvaluations in a Model. + * + * Create a request for the method "evaluations.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 Model to list the ModelEvaluations from. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @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}/evaluations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + + /** + * Lists ModelEvaluations in a Model. + * + * Create a request for the method "evaluations.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 Model to list the ModelEvaluations from. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse.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/[^/]+/models/[^/]+$"); + } + } + + @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(); + } - private static final String REST_PATH = "v1beta1/{+resource}:getIamPolicy"; + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** - * 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 "models.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/[^/]+/models/[^/]+$"); + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } - } - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } + /** + * Required. The resource name of the Model to list the ModelEvaluations from. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } + /** Required. The resource name of the Model to list the ModelEvaluations from. Format: + `projects/{project}/locations/{location}/models/{model}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The resource name of the Model to list the ModelEvaluations from. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + 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/[^/]+/models/[^/]+$"); + } + this.parent = parent; + return this; + } - /** - * 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; + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** 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; - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - /** - * 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/[^/]+/models/[^/]+$"); + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - 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; + /** The standard list page size. */ + @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). - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } + /** The standard list page size. + */ + 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). - */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Lists Models in a Location. - * - * Create a request for the method "models.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 Models 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; - } + /** + * The standard list page token. Typically obtained via + * ListModelEvaluationsResponse.next_page_token of the previous + * ModelService.ListModelEvaluations call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - public class List extends AiplatformRequest { + /** The standard list page token. Typically obtained via ListModelEvaluationsResponse.next_page_token + of the previous ModelService.ListModelEvaluations call. + */ + public java.lang.String getPageToken() { + return pageToken; + } - private static final String REST_PATH = "v1beta1/{+parent}/models"; + /** + * The standard list page token. Typically obtained via + * ListModelEvaluationsResponse.next_page_token of the previous + * ModelService.ListModelEvaluations call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** 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); + } + } /** - * Lists Models in a Location. - * - * Create a request for the method "models.list". + * An accessor for creating requests from the Operations collection. * - * 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.

+ *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+           * 
* - * @param parent Required. The resource name of the Location to list the Models from. Format: - * `projects/{project}/locations/{location}` - * @since 1.13 + * @return the resource collection */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListModelsResponse.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 Operations operations() { + return new Operations(); } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * The "operations" collection of methods. + */ + public class 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 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; + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + public class Cancel extends AiplatformRequest { - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - @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/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); - @Override - public List setCallback(java.lang.String callback) { - return (List) 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/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); + } + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the Location to list the Models from. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** Required. The resource name of the Location to list the Models from. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - /** - * Required. The resource name of the Location to list the Models 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; - } + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } - /** - * An expression for filtering the results of the request. For field names both snake_case - * and camelCase are supported. * `model` supports = and !=. `model` represents the Model - * ID, i.e. the last segment of the Model's resource name. * `display_name` 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"`. * `base_model_name` only supports = Some examples: * - * `model=1234` * `displayName="myDisplayName"` * `labels.myKey="myValue"` * - * `baseModelName="text-bison"` - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - /** An expression for filtering the results of the request. For field names both snake_case and - camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the - last segment of the Model's resource name. * `display_name` 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"`. * - `base_model_name` only supports = Some examples: * `model=1234` * `displayName="myDisplayName"` * - `labels.myKey="myValue"` * `baseModelName="text-bison"` - */ - public java.lang.String getFilter() { - return filter; - } + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * An expression for filtering the results of the request. For field names both snake_case - * and camelCase are supported. * `model` supports = and !=. `model` represents the Model - * ID, i.e. the last segment of the Model's resource name. * `display_name` 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"`. * `base_model_name` only supports = Some examples: * - * `model=1234` * `displayName="myDisplayName"` * `labels.myKey="myValue"` * - * `baseModelName="text-bison"` - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** 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/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @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; + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + public class Delete extends AiplatformRequest { - /** - * The standard list page token. Typically obtained via ListModelsResponse.next_page_token - * of the previous ModelService.ListModels call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + private static final String REST_PATH = "v1beta1/{+name}"; - /** The standard list page token. Typically obtained via ListModelsResponse.next_page_token of the - previous ModelService.ListModels call. - */ - public java.lang.String getPageToken() { - return pageToken; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); - /** - * The standard list page token. Typically obtained via ListModelsResponse.next_page_token - * of the previous ModelService.ListModels call. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - 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/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); + } + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Lists checkpoints of the specified model version. - * - * Create a request for the method "models.listCheckpoints". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link ListCheckpoints#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the model version to list checkpoints for. - * `projects/{project}/locations/{location}/models/{model}@{version}` Example: - * `projects/{project}/locations/{location}/models/{model}@2` or - * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias - * is specified, the latest version will be used. - * @return the request - */ - public ListCheckpoints listCheckpoints(java.lang.String name) throws java.io.IOException { - ListCheckpoints result = new ListCheckpoints(name); - initialize(result); - return result; - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - public class ListCheckpoints extends AiplatformRequest { + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - private static final String REST_PATH = "v1beta1/{+name}:listCheckpoints"; + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * Lists checkpoints of the specified model version. - * - * Create a request for the method "models.listCheckpoints". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link ListCheckpoints#execute()} method to invoke the remote - * operation.

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

- * - * @param name Required. The name of the model version to list checkpoints for. - * `projects/{project}/locations/{location}/models/{model}@{version}` Example: - * `projects/{project}/locations/{location}/models/{model}@2` or - * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias - * is specified, the latest version will be used. - * @since 1.13 - */ - protected ListCheckpoints(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse.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/[^/]+/models/[^/]+$"); - } - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public ListCheckpoints set$Xgafv(java.lang.String $Xgafv) { - return (ListCheckpoints) super.set$Xgafv($Xgafv); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public ListCheckpoints setAccessToken(java.lang.String accessToken) { - return (ListCheckpoints) super.setAccessToken(accessToken); - } + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public ListCheckpoints setAlt(java.lang.String alt) { - return (ListCheckpoints) super.setAlt(alt); - } + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } - @Override - public ListCheckpoints setCallback(java.lang.String callback) { - return (ListCheckpoints) super.setCallback(callback); - } + /** 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/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public ListCheckpoints setFields(java.lang.String fields) { - return (ListCheckpoints) super.setFields(fields); - } + @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; + } - @Override - public ListCheckpoints setKey(java.lang.String key) { - return (ListCheckpoints) super.setKey(key); - } + public class Get extends AiplatformRequest { - @Override - public ListCheckpoints setOauthToken(java.lang.String oauthToken) { - return (ListCheckpoints) super.setOauthToken(oauthToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public ListCheckpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListCheckpoints) super.setPrettyPrint(prettyPrint); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); - @Override - public ListCheckpoints setQuotaUser(java.lang.String quotaUser) { - return (ListCheckpoints) super.setQuotaUser(quotaUser); - } + /** + * 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/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); + } + } - @Override - public ListCheckpoints setUploadType(java.lang.String uploadType) { - return (ListCheckpoints) super.setUploadType(uploadType); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public ListCheckpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ListCheckpoints) super.setUploadProtocol(uploadProtocol); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Required. The name of the model version to list checkpoints for. - * `projects/{project}/locations/{location}/models/{model}@{version}` Example: - * `projects/{project}/locations/{location}/models/{model}@2` or - * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or - * alias is specified, the latest version will be used. - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** Required. The name of the model version to list checkpoints for. - `projects/{project}/locations/{location}/models/{model}@{version}` Example: - `projects/{project}/locations/{location}/models/{model}@2` or - `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias is - specified, the latest version will be used. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** - * Required. The name of the model version to list checkpoints for. - * `projects/{project}/locations/{location}/models/{model}@{version}` Example: - * `projects/{project}/locations/{location}/models/{model}@2` or - * `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or - * alias is specified, the latest version will be used. - */ - public ListCheckpoints 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/[^/]+/models/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** Optional. The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** Optional. The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** Optional. The standard list page size. */ - public ListCheckpoints setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** - * Optional. The standard list page token. Typically obtained via next_page_token of the - * previous ListModelVersionCheckpoints call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** Optional. The standard list page token. Typically obtained via next_page_token of the previous - ListModelVersionCheckpoints call. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** - * Optional. The standard list page token. Typically obtained via next_page_token of the - * previous ListModelVersionCheckpoints call. - */ - public ListCheckpoints setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public ListCheckpoints set(String parameterName, Object value) { - return (ListCheckpoints) super.set(parameterName, value); - } - } - /** - * Lists versions of the specified model. - * - * Create a request for the method "models.listVersions". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link ListVersions#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the model to list versions for. - * @return the request - */ - public ListVersions listVersions(java.lang.String name) throws java.io.IOException { - ListVersions result = new ListVersions(name); - initialize(result); - return result; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - public class ListVersions extends AiplatformRequest { + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - private static final String REST_PATH = "v1beta1/{+name}:listVersions"; + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } - /** - * Lists versions of the specified model. - * - * Create a request for the method "models.listVersions". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link ListVersions#execute()} method to invoke the remote - * operation.

{@link - * ListVersions#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 model to list versions for. - * @since 1.13 - */ - protected ListVersions(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListModelVersionsResponse.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/[^/]+/models/[^/]+$"); + /** 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/[^/]+/models/[^/]+/evaluations/[^/]+/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; } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class List 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}/operations"; - @Override - public ListVersions set$Xgafv(java.lang.String $Xgafv) { - return (ListVersions) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$"); - @Override - public ListVersions setAccessToken(java.lang.String accessToken) { - return (ListVersions) 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/[^/]+/models/[^/]+/evaluations/[^/]+$"); + } + } - @Override - public ListVersions setAlt(java.lang.String alt) { - return (ListVersions) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public ListVersions setCallback(java.lang.String callback) { - return (ListVersions) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public ListVersions setFields(java.lang.String fields) { - return (ListVersions) super.setFields(fields); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public ListVersions setKey(java.lang.String key) { - return (ListVersions) super.setKey(key); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public ListVersions setOauthToken(java.lang.String oauthToken) { - return (ListVersions) super.setOauthToken(oauthToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public ListVersions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListVersions) super.setPrettyPrint(prettyPrint); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public ListVersions setQuotaUser(java.lang.String quotaUser) { - return (ListVersions) super.setQuotaUser(quotaUser); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public ListVersions setUploadType(java.lang.String uploadType) { - return (ListVersions) super.setUploadType(uploadType); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public ListVersions setUploadProtocol(java.lang.String uploadProtocol) { - return (ListVersions) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** Required. The name of the model to list versions for. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** Required. The name of the model to list versions for. - */ - public java.lang.String getName() { - return name; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** Required. The name of the model to list versions for. */ - public ListVersions 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/[^/]+/models/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** - * An expression for filtering the results of the request. For field names both snake_case - * and camelCase are supported. * `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: * - * `labels.myKey="myValue"` - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** An expression for filtering the results of the request. For field names both snake_case and - camelCase are supported. * `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: * `labels.myKey="myValue"` - */ - public java.lang.String getFilter() { - return filter; - } + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * An expression for filtering the results of the request. For field names both snake_case - * and camelCase are supported. * `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: * - * `labels.myKey="myValue"` - */ - public ListVersions setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported fields: * `create_time` * `update_time` - * Example: `update_time asc, create_time desc`. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + /** 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/[^/]+/models/[^/]+/evaluations/[^/]+$"); + } + this.name = name; + 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: * `create_time` * `update_time` Example: `update_time asc, - create_time desc`. - */ - public java.lang.String getOrderBy() { - return orderBy; - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** - * A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - * after a field name for descending. Supported fields: * `create_time` * `update_time` - * Example: `update_time asc, create_time desc`. - */ - public ListVersions setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The standard list page size. */ - public ListVersions setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** - * The standard list page token. Typically obtained via next_page_token of the previous - * ListModelVersions call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** 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 next_page_token of the previous - ListModelVersions call. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * The standard list page token. Typically obtained via next_page_token of the previous - * ListModelVersions call. - */ - public ListVersions setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return 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. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; - /** Mask specifying which fields to read. */ - public ListVersions setReadMask(String readMask) { - this.readMask = readMask; - 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 java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } - @Override - public ListVersions set(String parameterName, Object value) { - return (ListVersions) super.set(parameterName, value); - } - } - /** - * Merges a set of aliases for a Model version. - * - * Create a request for the method "models.mergeVersionAliases". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link MergeVersionAliases#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the model version to merge aliases, with a version ID explicitly included. - * Example: `projects/{project}/locations/{location}/models/{model}@1234` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest} - * @return the request - */ - public MergeVersionAliases mergeVersionAliases(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest content) throws java.io.IOException { - MergeVersionAliases result = new MergeVersionAliases(name, content); - 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 List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } - public class MergeVersionAliases extends AiplatformRequest { + @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; + } - private static final String REST_PATH = "v1beta1/{+name}:mergeVersionAliases"; + public class Wait extends AiplatformRequest { - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + private static final String REST_PATH = "v1beta1/{+name}:wait"; - /** - * Merges a set of aliases for a Model version. - * - * Create a request for the method "models.mergeVersionAliases". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link MergeVersionAliases#execute()} method to invoke the remote - * operation.

{@link MergeVersionAliases#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 model version to merge aliases, with a version ID explicitly included. - * Example: `projects/{project}/locations/{location}/models/{model}@1234` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest} - * @since 1.13 - */ - protected MergeVersionAliases(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model.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/[^/]+/models/[^/]+$"); - } - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/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/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); + } + } - @Override - public MergeVersionAliases set$Xgafv(java.lang.String $Xgafv) { - return (MergeVersionAliases) super.set$Xgafv($Xgafv); - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - @Override - public MergeVersionAliases setAccessToken(java.lang.String accessToken) { - return (MergeVersionAliases) super.setAccessToken(accessToken); - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - @Override - public MergeVersionAliases setAlt(java.lang.String alt) { - return (MergeVersionAliases) super.setAlt(alt); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @Override - public MergeVersionAliases setCallback(java.lang.String callback) { - return (MergeVersionAliases) super.setCallback(callback); - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public MergeVersionAliases setFields(java.lang.String fields) { - return (MergeVersionAliases) super.setFields(fields); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public MergeVersionAliases setKey(java.lang.String key) { - return (MergeVersionAliases) super.setKey(key); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public MergeVersionAliases setOauthToken(java.lang.String oauthToken) { - return (MergeVersionAliases) super.setOauthToken(oauthToken); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - @Override - public MergeVersionAliases setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MergeVersionAliases) super.setPrettyPrint(prettyPrint); - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @Override - public MergeVersionAliases setQuotaUser(java.lang.String quotaUser) { - return (MergeVersionAliases) super.setQuotaUser(quotaUser); - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - @Override - public MergeVersionAliases setUploadType(java.lang.String uploadType) { - return (MergeVersionAliases) super.setUploadType(uploadType); - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public MergeVersionAliases setUploadProtocol(java.lang.String uploadProtocol) { - return (MergeVersionAliases) super.setUploadProtocol(uploadProtocol); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. The name of the model version to merge aliases, with a version ID explicitly - * included. Example: `projects/{project}/locations/{location}/models/{model}@1234` - */ - @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; - /** Required. The name of the model version to merge aliases, with a version ID explicitly included. - Example: `projects/{project}/locations/{location}/models/{model}@1234` - */ - public java.lang.String getName() { - return name; - } + /** The name of the operation resource to wait on. + */ + public java.lang.String getName() { + return name; + } - /** - * Required. The name of the model version to merge aliases, with a version ID explicitly - * included. Example: `projects/{project}/locations/{location}/models/{model}@1234` - */ - public MergeVersionAliases 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/[^/]+/models/[^/]+$"); - } - 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/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public MergeVersionAliases set(String parameterName, Object value) { - return (MergeVersionAliases) super.set(parameterName, value); - } - } - /** - * Updates a Model. - * - * Create a request for the method "models.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 Model. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + /** + * 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; - public class Patch extends AiplatformRequest { + /** 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; + } - private static final String REST_PATH = "v1beta1/{+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; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } + } /** - * Updates a Model. - * - * Create a request for the method "models.patch". + * An accessor for creating requests from the Slices collection. * - * 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.

+ *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.Slices.List request = aiplatform.slices().list(parameters ...)}
+           * 
* - * @param name Identifier. The resource name of the Model. - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model} - * @since 1.13 + * @return the resource collection */ - protected Patch(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model content) { - super(Aiplatform.this, "PATCH", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1Model.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/[^/]+/models/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Slices slices() { + return new Slices(); } - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + /** + * The "slices" collection of methods. + */ + public class Slices { - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + /** + * Imports a list of externally generated EvaluatedAnnotations. + * + * Create a request for the method "slices.batchImport". + * + * This request holds the parameters needed by the aiplatform server. After setting any optional + * parameters, call the {@link BatchImport#execute()} method to invoke the remote operation. + * + * @param parent Required. The name of the parent ModelEvaluationSlice resource. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{s + * lice}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest} + * @return the request + */ + public BatchImport batchImport(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest content) throws java.io.IOException { + BatchImport result = new BatchImport(parent, content); + initialize(result); + return result; + } - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + public class BatchImport extends AiplatformRequest { - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + private static final String REST_PATH = "v1beta1/{+parent}:batchImport"; - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$"); - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + /** + * Imports a list of externally generated EvaluatedAnnotations. + * + * Create a request for the method "slices.batchImport". + * + * This request holds the parameters needed by the the aiplatform server. After setting any + * optional parameters, call the {@link BatchImport#execute()} method to invoke the remote + * operation.

{@link + * BatchImport#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 parent ModelEvaluationSlice resource. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{s + * lice}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest} + * @since 1.13 + */ + protected BatchImport(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse.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/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$"); + } + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public BatchImport set$Xgafv(java.lang.String $Xgafv) { + return (BatchImport) super.set$Xgafv($Xgafv); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public BatchImport setAccessToken(java.lang.String accessToken) { + return (BatchImport) super.setAccessToken(accessToken); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public BatchImport setAlt(java.lang.String alt) { + return (BatchImport) super.setAlt(alt); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public BatchImport setCallback(java.lang.String callback) { + return (BatchImport) super.setCallback(callback); + } - /** Identifier. The resource name of the Model. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public BatchImport setFields(java.lang.String fields) { + return (BatchImport) super.setFields(fields); + } - /** Identifier. The resource name of the Model. - */ - public java.lang.String getName() { - return name; - } + @Override + public BatchImport setKey(java.lang.String key) { + return (BatchImport) super.setKey(key); + } - /** Identifier. The resource name of the Model. */ - 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/[^/]+/models/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public BatchImport setOauthToken(java.lang.String oauthToken) { + return (BatchImport) super.setOauthToken(oauthToken); + } - /** - * Required. The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. - */ - @com.google.api.client.util.Key - private String updateMask; + @Override + public BatchImport setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchImport) super.setPrettyPrint(prettyPrint); + } - /** Required. The update mask applies to the resource. For the `FieldMask` definition, see - google.protobuf.FieldMask. - */ - public String getUpdateMask() { - return updateMask; - } + @Override + public BatchImport setQuotaUser(java.lang.String quotaUser) { + return (BatchImport) super.setQuotaUser(quotaUser); + } - /** - * Required. The update mask applies to the resource. For the `FieldMask` definition, see - * google.protobuf.FieldMask. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + @Override + public BatchImport setUploadType(java.lang.String uploadType) { + return (BatchImport) super.setUploadType(uploadType); + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) 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 "models.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; - } + @Override + public BatchImport setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchImport) super.setUploadProtocol(uploadProtocol); + } - public class SetIamPolicy extends AiplatformRequest { + /** + * Required. The name of the parent ModelEvaluationSlice resource. Format: `projects/{ + * project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice + * }` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - private static final String REST_PATH = "v1beta1/{+resource}:setIamPolicy"; + /** Required. The name of the parent ModelEvaluationSlice resource. Format: + `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + */ + public java.lang.String getParent() { + return parent; + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + /** + * Required. The name of the parent ModelEvaluationSlice resource. Format: `projects/{ + * project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice + * }` + */ + public BatchImport 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/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$"); + } + this.parent = parent; + return this; + } - /** - * 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 "models.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/[^/]+/models/[^/]+$"); + @Override + public BatchImport set(String parameterName, Object value) { + return (BatchImport) super.set(parameterName, value); + } + } + /** + * Gets a ModelEvaluationSlice. + * + * Create a request for the method "slices.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 ModelEvaluationSlice resource. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{s + * lice}` + * @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 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); - } + public class Get extends AiplatformRequest { - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$"); - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } + /** + * Gets a ModelEvaluationSlice. + * + * Create a request for the method "slices.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 ModelEvaluationSlice resource. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{s + * lice}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelEvaluationSlice.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/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$"); + } + } - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** - * 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 Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** 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 Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * 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/[^/]+/models/[^/]+$"); - } - this.resource = resource; - return this; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @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 "models.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 Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - public class TestIamPermissions extends AiplatformRequest { + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - private static final String REST_PATH = "v1beta1/{+resource}:testIamPermissions"; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * 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 "models.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/[^/]+/models/[^/]+$"); - } - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } + /** + * Required. The name of the ModelEvaluationSlice resource. Format: `projects/{project + * }/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } + /** Required. The name of the ModelEvaluationSlice resource. Format: + `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + */ + public java.lang.String getName() { + return name; + } - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } + /** + * Required. The name of the ModelEvaluationSlice resource. Format: `projects/{project + * }/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + */ + 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/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists ModelEvaluationSlices in a ModelEvaluation. + * + * Create a request for the method "slices.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 ModelEvaluation to list the ModelEvaluationSlices from. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @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 TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } + public class List extends AiplatformRequest { - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } + private static final String REST_PATH = "v1beta1/{+parent}/slices"; - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$"); - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } + /** + * Lists ModelEvaluationSlices in a ModelEvaluation. + * + * Create a request for the method "slices.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 ModelEvaluation to list the ModelEvaluationSlices from. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse.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/[^/]+/models/[^/]+/evaluations/[^/]+$"); + } + } - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** - * 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 List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** 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 List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** - * 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/[^/]+/models/[^/]+$"); - } - this.resource = resource; - return this; - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * 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 List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** 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 List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** - * 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 List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - /** - * Incrementally update the dataset used for an examples model. - * - * Create a request for the method "models.updateExplanationDataset". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link UpdateExplanationDataset#execute()} method to invoke the remote - * operation. - * - * @param model Required. The resource name of the Model to update. Format: - * `projects/{project}/locations/{location}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest} - * @return the request - */ - public UpdateExplanationDataset updateExplanationDataset(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest content) throws java.io.IOException { - UpdateExplanationDataset result = new UpdateExplanationDataset(model, content); - initialize(result); - return result; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - public class UpdateExplanationDataset extends AiplatformRequest { + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - private static final String REST_PATH = "v1beta1/{+model}:updateExplanationDataset"; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - private final java.util.regex.Pattern MODEL_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** - * Incrementally update the dataset used for an examples model. - * - * Create a request for the method "models.updateExplanationDataset". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link UpdateExplanationDataset#execute()} method to invoke the - * remote operation.

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

- * - * @param model Required. The resource name of the Model to update. Format: - * `projects/{project}/locations/{location}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest} - * @since 1.13 - */ - protected UpdateExplanationDataset(java.lang.String model, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleLongrunningOperation.class); - this.model = com.google.api.client.util.Preconditions.checkNotNull(model, "Required parameter model must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), - "Parameter model must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/models/[^/]+$"); - } - } + /** + * Required. The resource name of the ModelEvaluation to list the + * ModelEvaluationSlices from. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public UpdateExplanationDataset set$Xgafv(java.lang.String $Xgafv) { - return (UpdateExplanationDataset) super.set$Xgafv($Xgafv); - } + /** Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices from. Format: + `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + */ + public java.lang.String getParent() { + return parent; + } - @Override - public UpdateExplanationDataset setAccessToken(java.lang.String accessToken) { - return (UpdateExplanationDataset) super.setAccessToken(accessToken); - } + /** + * Required. The resource name of the ModelEvaluation to list the + * ModelEvaluationSlices from. Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + */ + 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/[^/]+/models/[^/]+/evaluations/[^/]+$"); + } + this.parent = parent; + return this; + } - @Override - public UpdateExplanationDataset setAlt(java.lang.String alt) { - return (UpdateExplanationDataset) super.setAlt(alt); - } + /** The standard list filter. * `slice.dimension` - for =. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public UpdateExplanationDataset setCallback(java.lang.String callback) { - return (UpdateExplanationDataset) super.setCallback(callback); - } + /** The standard list filter. * `slice.dimension` - for =. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public UpdateExplanationDataset setFields(java.lang.String fields) { - return (UpdateExplanationDataset) super.setFields(fields); - } + /** The standard list filter. * `slice.dimension` - for =. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public UpdateExplanationDataset setKey(java.lang.String key) { - return (UpdateExplanationDataset) super.setKey(key); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public UpdateExplanationDataset setOauthToken(java.lang.String oauthToken) { - return (UpdateExplanationDataset) super.setOauthToken(oauthToken); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public UpdateExplanationDataset setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateExplanationDataset) super.setPrettyPrint(prettyPrint); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public UpdateExplanationDataset setQuotaUser(java.lang.String quotaUser) { - return (UpdateExplanationDataset) super.setQuotaUser(quotaUser); - } + /** + * The standard list page token. Typically obtained via + * ListModelEvaluationSlicesResponse.next_page_token of the previous + * ModelService.ListModelEvaluationSlices call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public UpdateExplanationDataset setUploadType(java.lang.String uploadType) { - return (UpdateExplanationDataset) super.setUploadType(uploadType); - } + /** The standard list page token. Typically obtained via + ListModelEvaluationSlicesResponse.next_page_token of the previous + ModelService.ListModelEvaluationSlices call. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public UpdateExplanationDataset setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateExplanationDataset) super.setUploadProtocol(uploadProtocol); - } + /** + * The standard list page token. Typically obtained via + * ListModelEvaluationSlicesResponse.next_page_token of the previous + * ModelService.ListModelEvaluationSlices call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * Required. The resource name of the Model to update. Format: - * `projects/{project}/locations/{location}/models/{model}` - */ - @com.google.api.client.util.Key - private java.lang.String model; + /** Mask specifying which fields to read. */ + @com.google.api.client.util.Key + private String readMask; - /** Required. The resource name of the Model to update. Format: - `projects/{project}/locations/{location}/models/{model}` - */ - public java.lang.String getModel() { - return model; - } + /** Mask specifying which fields to read. + */ + public String getReadMask() { + return readMask; + } - /** - * Required. The resource name of the Model to update. Format: - * `projects/{project}/locations/{location}/models/{model}` - */ - public UpdateExplanationDataset setModel(java.lang.String model) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MODEL_PATTERN.matcher(model).matches(), - "Parameter model must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + /** 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); + } } - this.model = model; - return this; - } - @Override - public UpdateExplanationDataset set(String parameterName, Object value) { - return (UpdateExplanationDataset) super.set(parameterName, value); } } /** - * Uploads a Model artifact into Vertex AI. - * - * Create a request for the method "models.upload". + * 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 Upload#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 parent Required. The resource name of the Location into which to upload the Model. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadModelRequest} - * @return the request + * @return the resource collection */ - public Upload upload(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadModelRequest content) throws java.io.IOException { - Upload result = new Upload(parent, content); - initialize(result); - return result; + public Operations operations() { + return new Operations(); } - public class Upload extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/models:upload"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * The "operations" collection of methods. + */ + public class Operations { /** - * Uploads a Model artifact into Vertex AI. + * 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 "models.upload". + * 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 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 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 parent Required. The resource name of the Location into which to upload the Model. Format: - * `projects/{project}/locations/{location}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadModelRequest} - * @since 1.13 + * @param name The name of the operation resource to be cancelled. + * @return the request */ - protected Upload(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1UploadModelRequest 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/[^/]+$"); - } + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; } - @Override - public Upload set$Xgafv(java.lang.String $Xgafv) { - return (Upload) super.set$Xgafv($Xgafv); - } + public class Cancel extends AiplatformRequest { - @Override - public Upload setAccessToken(java.lang.String accessToken) { - return (Upload) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}:cancel"; - @Override - public Upload setAlt(java.lang.String alt) { - return (Upload) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$"); - @Override - public Upload setCallback(java.lang.String callback) { - return (Upload) 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/[^/]+/models/[^/]+/operations/[^/]+$"); + } + } - @Override - public Upload setFields(java.lang.String fields) { - return (Upload) super.setFields(fields); - } + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } - @Override - public Upload setKey(java.lang.String key) { - return (Upload) super.setKey(key); - } + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } - @Override - public Upload setOauthToken(java.lang.String oauthToken) { - return (Upload) super.setOauthToken(oauthToken); - } + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } - @Override - public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Upload) super.setPrettyPrint(prettyPrint); - } + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } - @Override - public Upload setQuotaUser(java.lang.String quotaUser) { - return (Upload) super.setQuotaUser(quotaUser); - } + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } - @Override - public Upload setUploadType(java.lang.String uploadType) { - return (Upload) super.setUploadType(uploadType); - } + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } - @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) super.setUploadProtocol(uploadProtocol); - } + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the Location into which to upload the Model. Format: - * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } - /** Required. The resource name of the Location into which to upload the Model. Format: - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } - /** - * Required. The resource name of the Location into which to upload the Model. Format: - * `projects/{project}/locations/{location}` - */ - public Upload 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 Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } - this.parent = parent; - return this; - } - @Override - public Upload set(String parameterName, Object value) { - return (Upload) super.set(parameterName, value); - } - } + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } - /** - * An accessor for creating requests from the Evaluations collection. - * - *

The typical use is:

- *
-         *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Evaluations.List request = aiplatform.evaluations().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public Evaluations evaluations() { - return new Evaluations(); - } + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * The "evaluations" collection of methods. - */ - public class Evaluations { + /** 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/[^/]+/models/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } /** - * Gets a ModelEvaluation. + * 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 "evaluations.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the ModelEvaluation resource. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @param name The name of the operation resource to be deleted. * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Get 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/[^/]+/models/[^/]+/evaluations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$"); /** - * Gets a ModelEvaluation. + * 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 "evaluations.get". + * 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 Get#execute()} method to invoke the remote operation.

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

+ * optional parameters, call the {@link 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 ModelEvaluation resource. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @param name The name of the operation resource to be deleted. * @since 1.13 */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelEvaluation.class); + 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/[^/]+/models/[^/]+/evaluations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/models/[^/]+/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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the ModelEvaluation resource. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` - */ + /** The name of the operation resource to be deleted. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the ModelEvaluation resource. Format: - `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + /** The name of the operation resource to be deleted. */ public java.lang.String getName() { return name; } - /** - * Required. The name of the ModelEvaluation resource. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` - */ - public Get setName(java.lang.String name) { + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$"); } this.name = name; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Imports an externally generated ModelEvaluation. + * 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 "evaluations.import". + * 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 AiplatformImport#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. The name of the parent model resource. Format: - * `projects/{project}/locations/{location}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest} + * @param name The name of the operation resource. * @return the request */ - public AiplatformImport aiplatformImport(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest content) throws java.io.IOException { - AiplatformImport result = new AiplatformImport(parent, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class AiplatformImport extends AiplatformRequest { + public class Get extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+parent}/evaluations:import"; + private static final String REST_PATH = "v1beta1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$"); /** - * Imports an externally generated ModelEvaluation. + * 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 "evaluations.import". + * 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 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 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 name of the parent model resource. Format: - * `projects/{project}/locations/{location}/models/{model}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest} + * @param name The name of the operation resource. * @since 1.13 */ - protected AiplatformImport(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelEvaluation.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/[^/]+/models/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$"); } } @Override - public AiplatformImport set$Xgafv(java.lang.String $Xgafv) { - return (AiplatformImport) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AiplatformImport setAccessToken(java.lang.String accessToken) { - return (AiplatformImport) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AiplatformImport setAlt(java.lang.String alt) { - return (AiplatformImport) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AiplatformImport setCallback(java.lang.String callback) { - return (AiplatformImport) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AiplatformImport setFields(java.lang.String fields) { - return (AiplatformImport) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AiplatformImport setKey(java.lang.String key) { - return (AiplatformImport) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AiplatformImport setOauthToken(java.lang.String oauthToken) { - return (AiplatformImport) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AiplatformImport setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AiplatformImport) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AiplatformImport setQuotaUser(java.lang.String quotaUser) { - return (AiplatformImport) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AiplatformImport setUploadType(java.lang.String uploadType) { - return (AiplatformImport) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AiplatformImport setUploadProtocol(java.lang.String uploadProtocol) { - return (AiplatformImport) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** - * Required. The name of the parent model resource. Format: - * `projects/{project}/locations/{location}/models/{model}` - */ + @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 parent; + private java.lang.String name; - /** Required. The name of the parent model resource. Format: - `projects/{project}/locations/{location}/models/{model}` + /** The name of the operation resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The name of the parent model resource. Format: - * `projects/{project}/locations/{location}/models/{model}` - */ - public AiplatformImport 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/[^/]+/models/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @Override - public AiplatformImport set(String parameterName, Object value) { - return (AiplatformImport) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Lists ModelEvaluations in a Model. + * 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 "evaluations.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 Model to list the ModelEvaluations from. Format: - * `projects/{project}/locations/{location}/models/{model}` + * @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}/evaluations"; + 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/[^/]+/models/[^/]+$"); /** - * Lists ModelEvaluations in a Model. + * 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 "evaluations.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 Model to list the ModelEvaluations from. Format: - * `projects/{project}/locations/{location}/models/{model}` + * @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.GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse.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/[^/]+/models/[^/]+$"); } } @@ -126913,1781 +129758,1522 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The resource name of the Model to list the ModelEvaluations from. Format: - * `projects/{project}/locations/{location}/models/{model}` - */ + /** 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 Model to list the ModelEvaluations from. Format: - `projects/{project}/locations/{location}/models/{model}` + /** 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 Model to list the ModelEvaluations from. Format: - * `projects/{project}/locations/{location}/models/{model}` - */ - 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/[^/]+/models/[^/]+$"); } - 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; - } - - /** 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 - * ListModelEvaluationsResponse.next_page_token of the previous - * ModelService.ListModelEvaluations call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. Typically obtained via ListModelEvaluationsResponse.next_page_token - of the previous ModelService.ListModelEvaluations call. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * The standard list page token. Typically obtained via - * ListModelEvaluationsResponse.next_page_token of the previous - * ModelService.ListModelEvaluations 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/[^/]+/models/[^/]+/evaluations/[^/]+/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/[^/]+/models/[^/]+/evaluations/[^/]+/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/[^/]+/models/[^/]+/evaluations/[^/]+/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/[^/]+/models/[^/]+/evaluations/[^/]+/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/[^/]+/models/[^/]+/evaluations/[^/]+/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); - } + this.name = name; + return this; + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** 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/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } + /** + * 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; } + /** - * 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 + * 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 Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; } - public class Get extends AiplatformRequest { + @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; + } - private static final String REST_PATH = "v1beta1/{+name}"; + public class Wait extends AiplatformRequest { - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); + private static final String REST_PATH = "v1beta1/{+name}:wait"; - /** - * 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/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); - } - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$"); - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + /** + * 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/[^/]+/models/[^/]+/operations/[^/]+$"); } + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) 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. */ - @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. - */ - 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/[^/]+/models/[^/]+/operations/[^/]+$"); } + this.name = name; + return this; + } - /** 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/[^/]+/models/[^/]+/evaluations/[^/]+/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 Get set(String parameterName, Object value) { - return (Get) 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; } + /** - * 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 + * 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 List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; + public Wait setTimeout(String timeout) { + this.timeout = timeout; + return this; } - public class List extends AiplatformRequest { + @Override + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } - private static final String REST_PATH = "v1beta1/{+name}/operations"; + } + } + /** + * An accessor for creating requests from the MonitoredAgents collection. + * + *

The typical use is:

+ *
+       *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+       *   {@code Aiplatform.MonitoredAgents.List request = aiplatform.monitoredAgents().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public MonitoredAgents monitoredAgents() { + return new MonitoredAgents(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$"); + /** + * The "monitoredAgents" collection of methods. + */ + public class MonitoredAgents { - /** - * 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/[^/]+/models/[^/]+/evaluations/[^/]+$"); - } - } + /** + * Creates a new MonitoredAgent in a specific Location. + * + * Create a request for the method "monitoredAgents.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 MonitoredAgent in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MonitoredAgent} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MonitoredAgent content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class Create 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}/monitoredAgents"; - @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/[^/]+$"); - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * Creates a new MonitoredAgent in a specific Location. + * + * Create a request for the method "monitoredAgents.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 MonitoredAgent in. Format: + * `projects/{project}/locations/{location}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MonitoredAgent} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MonitoredAgent content) { + super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MonitoredAgent.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 List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @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 List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) 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 Location to create the MonitoredAgent in. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + /** Required. The resource name of the Location to create the MonitoredAgent in. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Required. The resource name of the Location to create the MonitoredAgent 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; + } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** + * Required. The ID to use for the MonitoredAgent, which will become the final component + * of the MonitoredAgent's resource name. + */ + @com.google.api.client.util.Key + private java.lang.String monitoredAgentId; - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + /** Required. The ID to use for the MonitoredAgent, which will become the final component of the + MonitoredAgent's resource name. + */ + public java.lang.String getMonitoredAgentId() { + return monitoredAgentId; + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** + * Required. The ID to use for the MonitoredAgent, which will become the final component + * of the MonitoredAgent's resource name. + */ + public Create setMonitoredAgentId(java.lang.String monitoredAgentId) { + this.monitoredAgentId = monitoredAgentId; + return this; + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a specific MonitoredAgent. + * + * Create a request for the method "monitoredAgents.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 MonitoredAgent resource to be deleted. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + public class Delete extends AiplatformRequest { - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + private static final String REST_PATH = "v1beta1/{+name}"; - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+$"); - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Deletes a specific MonitoredAgent. + * + * Create a request for the method "monitoredAgents.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 MonitoredAgent resource to be deleted. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + * @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/[^/]+/monitoredAgents/[^/]+$"); + } + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - /** - * 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 setAccessToken(java.lang.String accessToken) { + return (Delete) 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. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) 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 List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @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 Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - public class Wait extends AiplatformRequest { + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - private static final String REST_PATH = "v1beta1/{+name}:wait"; + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** - * 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/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); - } - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + /** + * Required. The name of the MonitoredAgent resource to be deleted. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + /** Required. The name of the MonitoredAgent resource to be deleted. Format: + `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + /** + * Required. The name of the MonitoredAgent resource to be deleted. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + 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/[^/]+/monitoredAgents/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Disables a specific MonitoredAgent. + * + * Create a request for the method "monitoredAgents.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 MonitoredAgent resource to be disabled. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest} + * @return the request + */ + public Disable disable(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest content) throws java.io.IOException { + Disable result = new Disable(name, content); + initialize(result); + return result; + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + public class Disable extends AiplatformRequest { - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + private static final String REST_PATH = "v1beta1/{+name}:disable"; - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+$"); - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + /** + * Disables a specific MonitoredAgent. + * + * Create a request for the method "monitoredAgents.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 MonitoredAgent resource to be disabled. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest} + * @since 1.13 + */ + protected Disable(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest 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/[^/]+/monitoredAgents/[^/]+$"); + } + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Disable set$Xgafv(java.lang.String $Xgafv) { + return (Disable) super.set$Xgafv($Xgafv); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Disable setAccessToken(java.lang.String accessToken) { + return (Disable) super.setAccessToken(accessToken); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public Disable setAlt(java.lang.String alt) { + return (Disable) super.setAlt(alt); + } - /** 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/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Disable setCallback(java.lang.String callback) { + return (Disable) super.setCallback(callback); + } - /** - * 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 Disable setFields(java.lang.String fields) { + return (Disable) super.setFields(fields); + } - /** 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 Disable setKey(java.lang.String key) { + return (Disable) super.setKey(key); + } - /** - * 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 Disable setOauthToken(java.lang.String oauthToken) { + return (Disable) super.setOauthToken(oauthToken); + } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } + @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); } - /** - * An accessor for creating requests from the Slices collection. - * - *

The typical use is:

- *
-           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-           *   {@code Aiplatform.Slices.List request = aiplatform.slices().list(parameters ...)}
-           * 
- * - * @return the resource collection - */ - public Slices slices() { - return new Slices(); + + @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); } /** - * The "slices" collection of methods. + * Required. The name of the MonitoredAgent resource to be disabled. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` */ - public class Slices { + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Imports a list of externally generated EvaluatedAnnotations. - * - * Create a request for the method "slices.batchImport". - * - * This request holds the parameters needed by the aiplatform server. After setting any optional - * parameters, call the {@link BatchImport#execute()} method to invoke the remote operation. - * - * @param parent Required. The name of the parent ModelEvaluationSlice resource. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{s - * lice}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest} - * @return the request - */ - public BatchImport batchImport(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest content) throws java.io.IOException { - BatchImport result = new BatchImport(parent, content); - initialize(result); - return result; + /** Required. The name of the MonitoredAgent resource to be disabled. Format: + `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the MonitoredAgent resource to be disabled. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + 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/[^/]+/monitoredAgents/[^/]+$"); } + this.name = name; + return this; + } - public class BatchImport extends AiplatformRequest { + @Override + public Disable set(String parameterName, Object value) { + return (Disable) super.set(parameterName, value); + } + } + /** + * Enables a specific MonitoredAgent. + * + * Create a request for the method "monitoredAgents.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 MonitoredAgent resource to be enabled. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest} + * @return the request + */ + public Enable enable(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest content) throws java.io.IOException { + Enable result = new Enable(name, content); + initialize(result); + return result; + } - private static final String REST_PATH = "v1beta1/{+parent}:batchImport"; + public class Enable extends AiplatformRequest { - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$"); + private static final String REST_PATH = "v1beta1/{+name}:enable"; - /** - * Imports a list of externally generated EvaluatedAnnotations. - * - * Create a request for the method "slices.batchImport". - * - * This request holds the parameters needed by the the aiplatform server. After setting any - * optional parameters, call the {@link BatchImport#execute()} method to invoke the remote - * operation.

{@link - * BatchImport#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 parent ModelEvaluationSlice resource. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{s - * lice}` - * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest} - * @since 1.13 - */ - protected BatchImport(java.lang.String parent, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest content) { - super(Aiplatform.this, "POST", REST_PATH, content, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse.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/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$"); - } - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+$"); - @Override - public BatchImport set$Xgafv(java.lang.String $Xgafv) { - return (BatchImport) super.set$Xgafv($Xgafv); - } + /** + * Enables a specific MonitoredAgent. + * + * Create a request for the method "monitoredAgents.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 MonitoredAgent resource to be enabled. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + * @param content the {@link com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest} + * @since 1.13 + */ + protected Enable(java.lang.String name, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest 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/[^/]+/monitoredAgents/[^/]+$"); + } + } - @Override - public BatchImport setAccessToken(java.lang.String accessToken) { - return (BatchImport) super.setAccessToken(accessToken); - } + @Override + public Enable set$Xgafv(java.lang.String $Xgafv) { + return (Enable) super.set$Xgafv($Xgafv); + } - @Override - public BatchImport setAlt(java.lang.String alt) { - return (BatchImport) super.setAlt(alt); - } + @Override + public Enable setAccessToken(java.lang.String accessToken) { + return (Enable) super.setAccessToken(accessToken); + } - @Override - public BatchImport setCallback(java.lang.String callback) { - return (BatchImport) super.setCallback(callback); - } + @Override + public Enable setAlt(java.lang.String alt) { + return (Enable) super.setAlt(alt); + } - @Override - public BatchImport setFields(java.lang.String fields) { - return (BatchImport) super.setFields(fields); - } + @Override + public Enable setCallback(java.lang.String callback) { + return (Enable) super.setCallback(callback); + } - @Override - public BatchImport setKey(java.lang.String key) { - return (BatchImport) super.setKey(key); - } + @Override + public Enable setFields(java.lang.String fields) { + return (Enable) super.setFields(fields); + } - @Override - public BatchImport setOauthToken(java.lang.String oauthToken) { - return (BatchImport) super.setOauthToken(oauthToken); - } + @Override + public Enable setKey(java.lang.String key) { + return (Enable) super.setKey(key); + } - @Override - public BatchImport setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchImport) super.setPrettyPrint(prettyPrint); - } + @Override + public Enable setOauthToken(java.lang.String oauthToken) { + return (Enable) super.setOauthToken(oauthToken); + } - @Override - public BatchImport setQuotaUser(java.lang.String quotaUser) { - return (BatchImport) super.setQuotaUser(quotaUser); - } + @Override + public Enable setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Enable) super.setPrettyPrint(prettyPrint); + } - @Override - public BatchImport setUploadType(java.lang.String uploadType) { - return (BatchImport) super.setUploadType(uploadType); - } + @Override + public Enable setQuotaUser(java.lang.String quotaUser) { + return (Enable) super.setQuotaUser(quotaUser); + } - @Override - public BatchImport setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchImport) super.setUploadProtocol(uploadProtocol); - } + @Override + public Enable setUploadType(java.lang.String uploadType) { + return (Enable) super.setUploadType(uploadType); + } - /** - * Required. The name of the parent ModelEvaluationSlice resource. Format: `projects/{ - * project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice - * }` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Enable setUploadProtocol(java.lang.String uploadProtocol) { + return (Enable) super.setUploadProtocol(uploadProtocol); + } - /** Required. The name of the parent ModelEvaluationSlice resource. Format: - `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` - */ - public java.lang.String getParent() { - return parent; - } + /** + * Required. The name of the MonitoredAgent resource to be enabled. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Required. The name of the parent ModelEvaluationSlice resource. Format: `projects/{ - * project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice - * }` - */ - public BatchImport 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/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$"); - } - this.parent = parent; - return this; - } + /** Required. The name of the MonitoredAgent resource to be enabled. Format: + `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + public java.lang.String getName() { + return name; + } - @Override - public BatchImport set(String parameterName, Object value) { - return (BatchImport) super.set(parameterName, value); - } - } - /** - * Gets a ModelEvaluationSlice. - * - * Create a request for the method "slices.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 ModelEvaluationSlice resource. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{s - * lice}` - * @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 name of the MonitoredAgent resource to be enabled. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + 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/[^/]+/monitoredAgents/[^/]+$"); } + this.name = name; + return this; + } - public class Get extends AiplatformRequest { + @Override + public Enable set(String parameterName, Object value) { + return (Enable) super.set(parameterName, value); + } + } + /** + * Gets the details of a specific MonitoredAgent. + * + * Create a request for the method "monitoredAgents.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 MonitoredAgent resource. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - private static final String REST_PATH = "v1beta1/{+name}"; + public class Get extends AiplatformRequest { - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$"); + private static final String REST_PATH = "v1beta1/{+name}"; - /** - * Gets a ModelEvaluationSlice. - * - * Create a request for the method "slices.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 ModelEvaluationSlice resource. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{s - * lice}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ModelEvaluationSlice.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/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$"); - } - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+$"); - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * Gets the details of a specific MonitoredAgent. + * + * Create a request for the method "monitoredAgents.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 MonitoredAgent resource. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1MonitoredAgent.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/[^/]+/monitoredAgents/[^/]+$"); + } + } - @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 Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * Required. The name of the ModelEvaluationSlice resource. Format: `projects/{project - * }/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` - */ - @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 ModelEvaluationSlice resource. Format: - `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` - */ - public java.lang.String getName() { - return name; - } + /** + * Required. The name of the MonitoredAgent resource. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Required. The name of the ModelEvaluationSlice resource. Format: `projects/{project - * }/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` - */ - 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/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$"); - } - this.name = name; - return this; - } + /** Required. The name of the MonitoredAgent resource. Format: + `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + public java.lang.String getName() { + return name; + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists ModelEvaluationSlices in a ModelEvaluation. - * - * Create a request for the method "slices.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 ModelEvaluation to list the ModelEvaluationSlices from. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` - * @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 MonitoredAgent resource. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + 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/[^/]+/monitoredAgents/[^/]+$"); } + this.name = name; + return this; + } - public class List extends AiplatformRequest { - - private static final String REST_PATH = "v1beta1/{+parent}/slices"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$"); - - /** - * Lists ModelEvaluationSlices in a ModelEvaluation. - * - * Create a request for the method "slices.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 ModelEvaluation to list the ModelEvaluationSlices from. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse.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/[^/]+/models/[^/]+/evaluations/[^/]+$"); - } - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists MonitoredAgents in a specific Location. + * + * Create a request for the method "monitoredAgents.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 MonitoredAgents 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; + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + public class List 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}/monitoredAgents"; - @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/[^/]+$"); - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * Lists MonitoredAgents in a specific Location. + * + * Create a request for the method "monitoredAgents.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 MonitoredAgents 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.GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse.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 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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Required. The resource name of the ModelEvaluation to list the - * ModelEvaluationSlices from. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices from. Format: - `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** - * Required. The resource name of the ModelEvaluation to list the - * ModelEvaluationSlices from. Format: - * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` - */ - 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/[^/]+/models/[^/]+/evaluations/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** The standard list filter. * `slice.dimension` - for =. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** The standard list filter. * `slice.dimension` - for =. - */ - public java.lang.String getFilter() { - return filter; - } + /** + * Required. The resource name of the Location to list the MonitoredAgents from. Format: + * `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** The standard list filter. * `slice.dimension` - for =. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** Required. The resource name of the Location to list the MonitoredAgents from. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** + * Required. The resource name of the Location to list the MonitoredAgents 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 page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** + * Optional. Optional AIP-160 filter, currently restricted to a single equality predicate + * on `state`: state = ACTIVE state = DISABLED state = ENABLING The value must be the + * exact name of a `MonitoredAgent.EnablementState` constant (case-sensitive): `ACTIVE`, + * `DISABLED`, `ENABLING`, or `ENABLEMENT_STATE_UNSPECIFIED`. (The proto reserves ordinals + * for additional future states like NEEDS_ACTION; this allow-list grows when the proto + * adds them.) A blank or absent filter returns every MonitoredAgent in the parent + * regardless of state. Anything else returns INVALID_ARGUMENT. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** Optional. Optional AIP-160 filter, currently restricted to a single equality predicate on `state`: + state = ACTIVE state = DISABLED state = ENABLING The value must be the exact name of a + `MonitoredAgent.EnablementState` constant (case-sensitive): `ACTIVE`, `DISABLED`, `ENABLING`, or + `ENABLEMENT_STATE_UNSPECIFIED`. (The proto reserves ordinals for additional future states like + NEEDS_ACTION; this allow-list grows when the proto adds them.) A blank or absent filter returns + every MonitoredAgent in the parent regardless of state. Anything else returns INVALID_ARGUMENT. + */ + public java.lang.String getFilter() { + return filter; + } - /** - * The standard list page token. Typically obtained via - * ListModelEvaluationSlicesResponse.next_page_token of the previous - * ModelService.ListModelEvaluationSlices call. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * Optional. Optional AIP-160 filter, currently restricted to a single equality predicate + * on `state`: state = ACTIVE state = DISABLED state = ENABLING The value must be the + * exact name of a `MonitoredAgent.EnablementState` constant (case-sensitive): `ACTIVE`, + * `DISABLED`, `ENABLING`, or `ENABLEMENT_STATE_UNSPECIFIED`. (The proto reserves ordinals + * for additional future states like NEEDS_ACTION; this allow-list grows when the proto + * adds them.) A blank or absent filter returns every MonitoredAgent in the parent + * regardless of state. Anything else returns INVALID_ARGUMENT. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** The standard list page token. Typically obtained via - ListModelEvaluationSlicesResponse.next_page_token of the previous - ModelService.ListModelEvaluationSlices call. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Optional. The standard list page size. The maximum value is 100; values above 100 will + * be coerced to 100. If unspecified, at most 10 MonitoredAgents will be returned. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** - * The standard list page token. Typically obtained via - * ListModelEvaluationSlicesResponse.next_page_token of the previous - * ModelService.ListModelEvaluationSlices call. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Optional. The standard list page size. The maximum value is 100; values above 100 will be coerced + to 100. If unspecified, at most 10 MonitoredAgents will be returned. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** Mask specifying which fields to read. */ - @com.google.api.client.util.Key - private String readMask; + /** + * Optional. The standard list page size. The maximum value is 100; values above 100 will + * be coerced to 100. If unspecified, at most 10 MonitoredAgents will be returned. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** Mask specifying which fields to read. - */ - public String getReadMask() { - return readMask; - } + /** Optional. The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** Mask specifying which fields to read. */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } + /** Optional. The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** Optional. The standard list 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); } } + /** - * An accessor for creating requests from the Operations collection. + * An accessor for creating requests from the AnalyzedSessions collection. * *

The typical use is:

*
          *   {@code Aiplatform aiplatform = new Aiplatform(...);}
-         *   {@code Aiplatform.Operations.List request = aiplatform.operations().list(parameters ...)}
+         *   {@code Aiplatform.AnalyzedSessions.List request = aiplatform.analyzedSessions().list(parameters ...)}
          * 
* * @return the resource collection */ - public Operations operations() { - return new Operations(); + public AnalyzedSessions analyzedSessions() { + return new AnalyzedSessions(); } /** - * The "operations" collection of methods. + * The "analyzedSessions" collection of methods. */ - public class Operations { + public class AnalyzedSessions { /** - * 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`. + * Aggregates AnalyzedSessions across MonitoredAgents. To aggregate across all MonitoredAgents in a + * location, use the following format for the parent field: + * `projects/{project}/locations/{location}/monitoredAgents/-` * - * Create a request for the method "operations.cancel". + * Create a request for the method "analyzedSessions.aggregate". * * 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. + * parameters, call the {@link Aggregate#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be cancelled. + * @param parent Required. The parent MonitoredAgent resource. Use the `-` wildcard for the monitored_agent segment + * to aggregate across multiple agents in the location. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` * @return the request */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); + public Aggregate aggregate(java.lang.String parent) throws java.io.IOException { + Aggregate result = new Aggregate(parent); initialize(result); return result; } - public class Cancel extends AiplatformRequest { + public class Aggregate extends AiplatformRequest { - private static final String REST_PATH = "v1beta1/{+name}:cancel"; + private static final String REST_PATH = "v1beta1/{+parent}/analyzedSessions:aggregate"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+$"); /** - * 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`. + * Aggregates AnalyzedSessions across MonitoredAgents. To aggregate across all MonitoredAgents in + * a location, use the following format for the parent field: + * `projects/{project}/locations/{location}/monitoredAgents/-` * - * Create a request for the method "operations.cancel". + * Create a request for the method "analyzedSessions.aggregate". * * 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.

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

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

* - * @param name The name of the operation resource to be cancelled. + * @param parent Required. The parent MonitoredAgent resource. Use the `-` wildcard for the monitored_agent segment + * to aggregate across multiple agents in the location. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` * @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."); + protected Aggregate(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse.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/[^/]+/models/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+$"); } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Aggregate set$Xgafv(java.lang.String $Xgafv) { + return (Aggregate) super.set$Xgafv($Xgafv); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Aggregate setAccessToken(java.lang.String accessToken) { + return (Aggregate) super.setAccessToken(accessToken); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Aggregate setAlt(java.lang.String alt) { + return (Aggregate) super.setAlt(alt); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Aggregate setCallback(java.lang.String callback) { + return (Aggregate) super.setCallback(callback); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Aggregate setFields(java.lang.String fields) { + return (Aggregate) super.setFields(fields); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Aggregate setKey(java.lang.String key) { + return (Aggregate) super.setKey(key); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Aggregate setOauthToken(java.lang.String oauthToken) { + return (Aggregate) super.setOauthToken(oauthToken); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Aggregate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Aggregate) super.setPrettyPrint(prettyPrint); } @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; + public Aggregate setQuotaUser(java.lang.String quotaUser) { + return (Aggregate) 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/[^/]+/models/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; + @Override + public Aggregate setUploadType(java.lang.String uploadType) { + return (Aggregate) super.setUploadType(uploadType); } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { + return (Aggregate) super.setUploadProtocol(uploadProtocol); } - } - /** - * 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}"; + /** + * Required. The parent MonitoredAgent resource. Use the `-` wildcard for the + * monitored_agent segment to aggregate across multiple agents in the location. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$"); + /** Required. The parent MonitoredAgent resource. Use the `-` wildcard for the monitored_agent segment + to aggregate across multiple agents in the location. Format: + `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + public java.lang.String getParent() { + return parent; + } /** - * 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 + * Required. The parent MonitoredAgent resource. Use the `-` wildcard for the + * monitored_agent segment to aggregate across multiple agents in the location. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` */ - 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."); + public Aggregate 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/[^/]+/models/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+$"); } + this.parent = parent; + return this; } - @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); - } + /** + * Optional. Filter expression restricting which AnalyzedSessions are included in the + * aggregation. Uses a subset of the `ListAnalyzedSessionsRequest.filter` grammar: a + * closed `detection_time` window with both bounds required, e.g. detection_time >= + * "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" The `severity` + * clause supported on ListAnalyzedSessions is intentionally rejected here: this + * response groups by severity (one entry per bucket per agent), so a severity filter + * would collapse the rollup to a single bucket and produce a misleading per-agent view. + * If empty, the aggregation covers the last 3 days. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + /** Optional. Filter expression restricting which AnalyzedSessions are included in the aggregation. + Uses a subset of the `ListAnalyzedSessionsRequest.filter` grammar: a closed `detection_time` window + with both bounds required, e.g. detection_time >= "2024-01-01T00:00:00Z" AND detection_time <= + "2024-01-08T00:00:00Z" The `severity` clause supported on ListAnalyzedSessions is intentionally + rejected here: this response groups by severity (one entry per bucket per agent), so a severity + filter would collapse the rollup to a single bucket and produce a misleading per-agent view. If + empty, the aggregation covers the last 3 days. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + /** + * Optional. Filter expression restricting which AnalyzedSessions are included in the + * aggregation. Uses a subset of the `ListAnalyzedSessionsRequest.filter` grammar: a + * closed `detection_time` window with both bounds required, e.g. detection_time >= + * "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" The `severity` + * clause supported on ListAnalyzedSessions is intentionally rejected here: this + * response groups by severity (one entry per bucket per agent), so a severity filter + * would collapse the rollup to a single bucket and produce a misleading per-agent view. + * If empty, the aggregation covers the last 3 days. + */ + public Aggregate setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** + * Optional. The standard list page size. The maximum value is 100; values above 100 + * will be coerced to 100. If unspecified, at most 10 MonitoredAgents will be returned. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + /** Optional. The standard list page size. The maximum value is 100; values above 100 will be coerced + to 100. If unspecified, at most 10 MonitoredAgents will be returned. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + /** + * Optional. The standard list page size. The maximum value is 100; values above 100 + * will be coerced to 100. If unspecified, at most 10 MonitoredAgents will be returned. + */ + public Aggregate setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } - /** The name of the operation resource to be deleted. */ + /** Optional. The standard list page token. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String pageToken; - /** The name of the operation resource to be deleted. + /** Optional. The standard list page token. */ - public java.lang.String getName() { - return name; + public java.lang.String getPageToken() { + return pageToken; } - /** 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/[^/]+/models/[^/]+/operations/[^/]+$"); - } - this.name = name; + /** Optional. The standard list page token. */ + public Aggregate setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Aggregate set(String parameterName, Object value) { + return (Aggregate) 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 the details of a specific AnalyzedSession. * - * Create a request for the method "operations.get". + * Create a request for the method "analyzedSessions.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 AnalyzedSession resource. Format: `projects/{project}/locations/{location} + * /monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -128696,34 +131282,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/[^/]+/models/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+/analyzedSessions/[^/]+$"); /** - * 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 the details of a specific AnalyzedSession. * - * Create a request for the method "operations.get". + * Create a request for the method "analyzedSessions.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 AnalyzedSession resource. Format: `projects/{project}/locations/{location} + * /monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}` * @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.GoogleCloudAiplatformV1beta1AnalyzedSession.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/[^/]+/models/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+/analyzedSessions/[^/]+$"); } } @@ -128792,78 +131378,103 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Required. The name of the AnalyzedSession resource. Format: `projects/{project}/locat + * ions/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session} + * ` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. The name of the AnalyzedSession resource. Format: `projects/{project}/locations/{location + }/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ + /** + * Required. The name of the AnalyzedSession resource. Format: `projects/{project}/locat + * ions/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session} + * ` + */ 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/[^/]+/models/[^/]+/operations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+/analyzedSessions/[^/]+$"); } this.name = name; return this; } + /** Optional. Resource view to control which fields are returned. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. Resource view to control which fields are returned. + */ + public java.lang.String getView() { + return view; + } + + /** Optional. Resource view to control which fields are returned. */ + public Get setView(java.lang.String view) { + this.view = view; + 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`. + * Lists AnalyzedSessions in a MonitoredAgent. * - * Create a request for the method "operations.list". + * Create a request for the method "analyzedSessions.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 MonitoredAgent resource. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` * @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}/analyzedSessions"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/models/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+$"); /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Lists AnalyzedSessions in a MonitoredAgent. * - * Create a request for the method "operations.list". + * Create a request for the method "analyzedSessions.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 MonitoredAgent resource. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` * @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.GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse.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/[^/]+/models/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+$"); } } @@ -128932,107 +131543,204 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Required. The parent MonitoredAgent resource. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ @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 MonitoredAgent resource. Format: + `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` */ - 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 MonitoredAgent resource. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + */ + 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/[^/]+/models/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - /** The standard list filter. */ + /** + * Optional. Filter expression restricting which AnalyzedSessions are returned. A subset + * of AIP-160 supporting two clauses joined by AND: 1. A closed time window on + * `detection_time`. If included, both bounds are required: detection_time >= "" AND + * detection_time <= "" 2. An equality on `severity`, where the value is the string + * representation of a Severity enum value (e.g., "CRITICAL", "HIGH", "MEDIUM", "LOW"). + * "SEVERITY_UNSPECIFIED" is not supported. The filter matches sessions whose maximum + * severity equals the requested bucket (a session whose detectors fire at LOW and + * CRITICAL is matched by `severity = "CRITICAL"`, not `severity = "LOW"`): severity = + * "CRITICAL" Both clauses are independently optional and may appear in either order. + * Each clause may appear at most once. Example (time window + severity): detection_time + * >= "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" AND severity = + * "CRITICAL" If empty, results are restricted to the last 3 days with no severity + * restriction. Other fields, additional operators, set membership (IN), and boolean + * combinations (OR, NOT, parentheses) are not yet supported. + */ @com.google.api.client.util.Key private java.lang.String filter; - /** The standard list filter. + /** Optional. Filter expression restricting which AnalyzedSessions are returned. A subset of AIP-160 + supporting two clauses joined by AND: 1. A closed time window on `detection_time`. If included, + both bounds are required: detection_time >= "" AND detection_time <= "" 2. An equality on + `severity`, where the value is the string representation of a Severity enum value (e.g., + "CRITICAL", "HIGH", "MEDIUM", "LOW"). "SEVERITY_UNSPECIFIED" is not supported. The filter matches + sessions whose maximum severity equals the requested bucket (a session whose detectors fire at LOW + and CRITICAL is matched by `severity = "CRITICAL"`, not `severity = "LOW"`): severity = "CRITICAL" + Both clauses are independently optional and may appear in either order. Each clause may appear at + most once. Example (time window + severity): detection_time >= "2024-01-01T00:00:00Z" AND + detection_time <= "2024-01-08T00:00:00Z" AND severity = "CRITICAL" If empty, results are restricted + to the last 3 days with no severity restriction. Other fields, additional operators, set membership + (IN), and boolean combinations (OR, NOT, parentheses) are not yet supported. */ public java.lang.String getFilter() { return filter; } - /** The standard list filter. */ + /** + * Optional. Filter expression restricting which AnalyzedSessions are returned. A subset + * of AIP-160 supporting two clauses joined by AND: 1. A closed time window on + * `detection_time`. If included, both bounds are required: detection_time >= "" AND + * detection_time <= "" 2. An equality on `severity`, where the value is the string + * representation of a Severity enum value (e.g., "CRITICAL", "HIGH", "MEDIUM", "LOW"). + * "SEVERITY_UNSPECIFIED" is not supported. The filter matches sessions whose maximum + * severity equals the requested bucket (a session whose detectors fire at LOW and + * CRITICAL is matched by `severity = "CRITICAL"`, not `severity = "LOW"`): severity = + * "CRITICAL" Both clauses are independently optional and may appear in either order. + * Each clause may appear at most once. Example (time window + severity): detection_time + * >= "2024-01-01T00:00:00Z" AND detection_time <= "2024-01-08T00:00:00Z" AND severity = + * "CRITICAL" If empty, results are restricted to the last 3 days with no severity + * restriction. Other fields, additional operators, set membership (IN), and boolean + * combinations (OR, NOT, parentheses) are not yet supported. + */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** The standard list page size. */ + /** + * Optional. Comma-separated list of fields to sort by, following AIP-132 syntax. The + * default sort direction is ascending; append " desc" to a field to sort descending. + * Subfields are not supported (no field listed below has any). Supported fields (any + * other field yields INVALID_ARGUMENT): * `latest_detection_time` - the session's most- + * recent flagged detection time. This is the column the landing page's "Detection time" + * header sorts on. Sorted by the underlying TIMESTAMP value (newer is "greater" so + * `latest_detection_time desc` puts the newest sessions first). * `max_severity_rank` - + * the session's bucketed maximum severity, ranked LOW=1 < MEDIUM=2 < HIGH=3 < + * CRITICAL=4 (matches `Severity` enum ordering). `max_severity_rank desc` puts the + * most-severe sessions first. The ranking is documented here per AIP-132 because the + * field is not a natural-comparator type. The server always appends `session_id ASC` as + * a stable tiebreak so pagination remains consistent across pages when the primary sort + * field has duplicates (e.g. multiple sessions with the same latest_detection_time + * within a second). If empty, defaults to `latest_detection_time desc` (the prior + * implicit behavior). Multi-field sort (e.g. `max_severity_rank desc, + * latest_detection_time desc`) is supported. The `order_by` value MUST match the value + * used on the call that minted any supplied `page_token` (AIP-158). Mismatches yield + * INVALID_ARGUMENT. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Comma-separated list of fields to sort by, following AIP-132 syntax. The default sort + direction is ascending; append " desc" to a field to sort descending. Subfields are not supported + (no field listed below has any). Supported fields (any other field yields INVALID_ARGUMENT): * + `latest_detection_time` - the session's most-recent flagged detection time. This is the column the + landing page's "Detection time" header sorts on. Sorted by the underlying TIMESTAMP value (newer is + "greater" so `latest_detection_time desc` puts the newest sessions first). * `max_severity_rank` - + the session's bucketed maximum severity, ranked LOW=1 < MEDIUM=2 < HIGH=3 < CRITICAL=4 (matches + `Severity` enum ordering). `max_severity_rank desc` puts the most-severe sessions first. The + ranking is documented here per AIP-132 because the field is not a natural-comparator type. The + server always appends `session_id ASC` as a stable tiebreak so pagination remains consistent across + pages when the primary sort field has duplicates (e.g. multiple sessions with the same + latest_detection_time within a second). If empty, defaults to `latest_detection_time desc` (the + prior implicit behavior). Multi-field sort (e.g. `max_severity_rank desc, latest_detection_time + desc`) is supported. The `order_by` value MUST match the value used on the call that minted any + supplied `page_token` (AIP-158). Mismatches yield INVALID_ARGUMENT. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Comma-separated list of fields to sort by, following AIP-132 syntax. The + * default sort direction is ascending; append " desc" to a field to sort descending. + * Subfields are not supported (no field listed below has any). Supported fields (any + * other field yields INVALID_ARGUMENT): * `latest_detection_time` - the session's most- + * recent flagged detection time. This is the column the landing page's "Detection time" + * header sorts on. Sorted by the underlying TIMESTAMP value (newer is "greater" so + * `latest_detection_time desc` puts the newest sessions first). * `max_severity_rank` - + * the session's bucketed maximum severity, ranked LOW=1 < MEDIUM=2 < HIGH=3 < + * CRITICAL=4 (matches `Severity` enum ordering). `max_severity_rank desc` puts the + * most-severe sessions first. The ranking is documented here per AIP-132 because the + * field is not a natural-comparator type. The server always appends `session_id ASC` as + * a stable tiebreak so pagination remains consistent across pages when the primary sort + * field has duplicates (e.g. multiple sessions with the same latest_detection_time + * within a second). If empty, defaults to `latest_detection_time desc` (the prior + * implicit behavior). Multi-field sort (e.g. `max_severity_rank desc, + * latest_detection_time desc`) is supported. The `order_by` value MUST match the value + * used on the call that minted any supplied `page_token` (AIP-158). Mismatches yield + * INVALID_ARGUMENT. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** Optional. The maximum number of analyzed sessions to return. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** The standard list page size. + /** Optional. The maximum number of analyzed sessions to return. */ public java.lang.Integer getPageSize() { return pageSize; } - /** The standard list page size. */ + /** Optional. The maximum number of analyzed sessions to return. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** The standard list page token. */ + /** Optional. A page token, received from a previous `ListAnalyzedSessions` call. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** The standard list page token. + /** Optional. A page token, received from a previous `ListAnalyzedSessions` call. */ public java.lang.String getPageToken() { return pageToken; } - /** The standard list page token. */ + /** Optional. A page token, received from a previous `ListAnalyzedSessions` 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. - */ + /** Optional. Resource view to control which fields are returned. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String view; - /** 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. + /** Optional. Resource view to control which fields are returned. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getView() { + return view; } - /** - * 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; + /** Optional. Resource view to control which fields are returned. */ + public List setView(java.lang.String view) { + this.view = view; return this; } @@ -129041,173 +131749,364 @@ 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". + * An accessor for creating requests from the AnalyzedInvocations 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. + *

The typical use is:

+ *
+           *   {@code Aiplatform aiplatform = new Aiplatform(...);}
+           *   {@code Aiplatform.AnalyzedInvocations.List request = aiplatform.analyzedInvocations().list(parameters ...)}
+           * 
* - * @param name The name of the operation resource to wait on. - * @return the request + * @return the resource collection */ - public Wait wait(java.lang.String name) throws java.io.IOException { - Wait result = new Wait(name); - initialize(result); - return result; + public AnalyzedInvocations analyzedInvocations() { + return new AnalyzedInvocations(); } - 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/[^/]+/models/[^/]+/operations/[^/]+$"); + /** + * The "analyzedInvocations" collection of methods. + */ + public class AnalyzedInvocations { /** - * 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. + * Gets the details of a specific AnalyzedInvocation. * - * Create a request for the method "operations.wait". + * Create a request for the method "analyzedInvocations.get". * - * 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.

+ * 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 to wait on. - * @since 1.13 + * @param name Required. The name of the AnalyzedInvocation resource. Format: `projects/{project}/locations/{locati + * on}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocati + * ons/{analyzed_invocation}` + * @return the request */ - 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/[^/]+/models/[^/]+/operations/[^/]+$"); - } + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); - } + public class Get extends AiplatformRequest { - @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1beta1/{+name}"; - @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+/analyzedSessions/[^/]+/analyzedInvocations/[^/]+$"); - @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); - } + /** + * Gets the details of a specific AnalyzedInvocation. + * + * Create a request for the method "analyzedInvocations.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 AnalyzedInvocation resource. Format: `projects/{project}/locations/{locati + * on}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocati + * ons/{analyzed_invocation}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1AnalyzedInvocation.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/[^/]+/monitoredAgents/[^/]+/analyzedSessions/[^/]+/analyzedInvocations/[^/]+$"); + } + } - @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** The name of the operation resource to wait on. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** The name of the operation resource to wait on. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** 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/[^/]+/models/[^/]+/operations/[^/]+$"); + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - 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 Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** 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 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 AnalyzedInvocation resource. Format: `projects/{project}/ + * locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_s + * ession}/analyzedInvocations/{analyzed_invocation}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the AnalyzedInvocation resource. Format: `projects/{project}/locations/{locat + ion}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{ana + lyzed_invocation}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the AnalyzedInvocation resource. Format: `projects/{project}/ + * locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_s + * ession}/analyzedInvocations/{analyzed_invocation}` + */ + 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/[^/]+/monitoredAgents/[^/]+/analyzedSessions/[^/]+/analyzedInvocations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) 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. + * Lists AnalyzedInvocations in a MonitoredAgent's AnalyzedSession. + * + * Create a request for the method "analyzedInvocations.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 AnalyzedSession resource. Format: `projects/{project}/locations/{location}/moni + * toredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}` + * @return the request */ - public Wait setTimeout(String timeout) { - this.timeout = timeout; - return this; + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + public class List extends AiplatformRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/analyzedInvocations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/monitoredAgents/[^/]+/analyzedSessions/[^/]+$"); + + /** + * Lists AnalyzedInvocations in a MonitoredAgent's AnalyzedSession. + * + * Create a request for the method "analyzedInvocations.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 AnalyzedSession resource. Format: `projects/{project}/locations/{location}/moni + * toredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Aiplatform.this, "GET", REST_PATH, null, com.google.api.services.aiplatform.v1beta1.model.GoogleCloudAiplatformV1beta1ListAnalyzedInvocationsResponse.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/[^/]+/monitoredAgents/[^/]+/analyzedSessions/[^/]+$"); + } + } + + @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 AnalyzedSession resource. Format: `projects/{project}/location + * s/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent AnalyzedSession resource. Format: `projects/{project}/locations/{location}/mon + itoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent AnalyzedSession resource. Format: `projects/{project}/location + * s/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}` + */ + 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/[^/]+/monitoredAgents/[^/]+/analyzedSessions/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. The maximum number of analyzed invocations to return. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of analyzed invocations to return. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. The maximum number of analyzed invocations to return. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListAnalyzedInvocations` call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListAnalyzedInvocations` call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListAnalyzedInvocations` 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); + } } - } + } } } /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AgentInteraction.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AgentInteraction.java index 627b052d273..d2a4ba72b25 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AgentInteraction.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AgentInteraction.java @@ -39,13 +39,19 @@ public final class GenaiVertexV1beta1AgentInteraction extends com.google.api.cli /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("deep_research_config") + @com.google.api.client.util.Key("code_mender_config") + private GenaiVertexV1beta1CodeMenderAgentConfig codeMenderConfig; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key private GenaiVertexV1beta1DeepResearchAgentConfig deepResearchConfig; /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("dynamic_config") + @com.google.api.client.util.Key private GenaiVertexV1beta1DynamicAgentConfig dynamicConfig; /** @@ -65,6 +71,21 @@ public GenaiVertexV1beta1AgentInteraction setAgent(java.lang.String agent) { return this; } + /** + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfig getCodeMenderConfig() { + return codeMenderConfig; + } + + /** + * @param codeMenderConfig codeMenderConfig or {@code null} for none + */ + public GenaiVertexV1beta1AgentInteraction setCodeMenderConfig(GenaiVertexV1beta1CodeMenderAgentConfig codeMenderConfig) { + this.codeMenderConfig = codeMenderConfig; + return this; + } + /** * @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/GenaiVertexV1beta1AudioContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AudioContent.java index 009b8a91519..fe1bb833a78 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AudioContent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AudioContent.java @@ -47,14 +47,14 @@ public final class GenaiVertexV1beta1AudioContent extends com.google.api.client. * The mime type of the audio. * The value may be {@code null}. */ - @com.google.api.client.util.Key("mime_type") + @com.google.api.client.util.Key private java.lang.String mimeType; /** * The sample rate of the audio. * The value may be {@code null}. */ - @com.google.api.client.util.Key("sample_rate") + @com.google.api.client.util.Key private java.lang.Integer sampleRate; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AudioDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AudioDelta.java index 61061c97261..8a3e11d04c0 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AudioDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AudioDelta.java @@ -45,7 +45,7 @@ public final class GenaiVertexV1beta1AudioDelta extends com.google.api.client.js /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("mime_type") + @com.google.api.client.util.Key private java.lang.String mimeType; /** @@ -59,7 +59,7 @@ public final class GenaiVertexV1beta1AudioDelta extends com.google.api.client.js * The sample rate of the audio. * The value may be {@code null}. */ - @com.google.api.client.util.Key("sample_rate") + @com.google.api.client.util.Key private java.lang.Integer sampleRate; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AudioResponseFormat.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AudioResponseFormat.java index c341550f68b..68e4567d471 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AudioResponseFormat.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1AudioResponseFormat.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1AudioResponseFormat extends com.google.api. * 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("bit_rate") + @com.google.api.client.util.Key private java.lang.Integer bitRate; /** @@ -47,14 +47,14 @@ public final class GenaiVertexV1beta1AudioResponseFormat extends com.google.api. * The MIME type of the audio output. * The value may be {@code null}. */ - @com.google.api.client.util.Key("mime_type") + @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("sample_rate") + @com.google.api.client.util.Key private java.lang.Integer sampleRate; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeExecutionResultContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeExecutionResultContent.java index c84b7175305..cb2336c5196 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeExecutionResultContent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeExecutionResultContent.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1CodeExecutionResultContent extends com.goog * Whether the code execution resulted in an error. * The value may be {@code null}. */ - @com.google.api.client.util.Key("is_error") + @com.google.api.client.util.Key private java.lang.Boolean isError; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeExecutionResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeExecutionResultDelta.java index 7dad093223f..683b7e3b0f4 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeExecutionResultDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeExecutionResultDelta.java @@ -32,7 +32,7 @@ public final class GenaiVertexV1beta1CodeExecutionResultDelta extends com.google /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("is_error") + @com.google.api.client.util.Key private java.lang.Boolean isError; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeExecutionResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeExecutionResultStep.java index 78c700464d9..a8c64bd731a 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeExecutionResultStep.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeExecutionResultStep.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1CodeExecutionResultStep extends com.google. * Whether the code execution resulted in an error. * The value may be {@code null}. */ - @com.google.api.client.util.Key("is_error") + @com.google.api.client.util.Key private java.lang.Boolean isError; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfig.java new file mode 100644 index 00000000000..2638daf0f49 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfig.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 the CodeMender 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 GenaiVertexV1beta1CodeMenderAgentConfig extends com.google.api.client.json.GenericJson { + + /** + * Parameters for finding vulnerabilities. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("find_request") + private GenaiVertexV1beta1CodeMenderAgentConfigFindRequest findRequest; + + /** + * Parameters for fixing vulnerabilities. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("fix_request") + private GenaiVertexV1beta1CodeMenderAgentConfigFixRequest fixRequest; + + /** + * Optional session-specific configurations to override default agent behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("session_config") + private GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig sessionConfig; + + /** + * Parameter for grouping multiple interactions that belong to the same CodeMender session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("session_id") + private java.lang.String sessionId; + + /** + * Parameters for finding vulnerabilities. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigFindRequest getFindRequest() { + return findRequest; + } + + /** + * Parameters for finding vulnerabilities. + * @param findRequest findRequest or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfig setFindRequest(GenaiVertexV1beta1CodeMenderAgentConfigFindRequest findRequest) { + this.findRequest = findRequest; + return this; + } + + /** + * Parameters for fixing vulnerabilities. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigFixRequest getFixRequest() { + return fixRequest; + } + + /** + * Parameters for fixing vulnerabilities. + * @param fixRequest fixRequest or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfig setFixRequest(GenaiVertexV1beta1CodeMenderAgentConfigFixRequest fixRequest) { + this.fixRequest = fixRequest; + return this; + } + + /** + * Optional session-specific configurations to override default agent behavior. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig getSessionConfig() { + return sessionConfig; + } + + /** + * Optional session-specific configurations to override default agent behavior. + * @param sessionConfig sessionConfig or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfig setSessionConfig(GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig sessionConfig) { + this.sessionConfig = sessionConfig; + return this; + } + + /** + * Parameter for grouping multiple interactions that belong to the same CodeMender session. + * @return value or {@code null} for none + */ + public java.lang.String getSessionId() { + return sessionId; + } + + /** + * Parameter for grouping multiple interactions that belong to the same CodeMender session. + * @param sessionId sessionId or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfig setSessionId(java.lang.String sessionId) { + this.sessionId = sessionId; + return this; + } + + @Override + public GenaiVertexV1beta1CodeMenderAgentConfig set(String fieldName, Object value) { + return (GenaiVertexV1beta1CodeMenderAgentConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1CodeMenderAgentConfig clone() { + return (GenaiVertexV1beta1CodeMenderAgentConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigFileContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigFileContent.java new file mode 100644 index 00000000000..06ad12ba1a6 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigFileContent.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; + +/** + * Content of a single file in the codebase. + * + *

This is 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 GenaiVertexV1beta1CodeMenderAgentConfigFileContent extends com.google.api.client.json.GenericJson { + + /** + * The UTF-8 encoded text content of the file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String content; + + /** + * The relative path of the file from the project root. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String path; + + /** + * The UTF-8 encoded text content of the file. + * @return value or {@code null} for none + */ + public java.lang.String getContent() { + return content; + } + + /** + * The UTF-8 encoded text content of the file. + * @param content content or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigFileContent setContent(java.lang.String content) { + this.content = content; + return this; + } + + /** + * The relative path of the file from the project root. + * @return value or {@code null} for none + */ + public java.lang.String getPath() { + return path; + } + + /** + * The relative path of the file from the project root. + * @param path path or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigFileContent setPath(java.lang.String path) { + this.path = path; + return this; + } + + @Override + public GenaiVertexV1beta1CodeMenderAgentConfigFileContent set(String fieldName, Object value) { + return (GenaiVertexV1beta1CodeMenderAgentConfigFileContent) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1CodeMenderAgentConfigFileContent clone() { + return (GenaiVertexV1beta1CodeMenderAgentConfigFileContent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigFindRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigFindRequest.java new file mode 100644 index 00000000000..ed45b4ad648 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigFindRequest.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 parameters specific to FIND sessions, used for discovering vulnerabilities in a codebase. + * + *

This is 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 GenaiVertexV1beta1CodeMenderAgentConfigFindRequest extends com.google.api.client.json.GenericJson { + + /** + * Additional context or custom instructions provided by the user to guide the vulnerability + * analysis. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The identifier of a specific finding to verify. This is primarily used in VERIFY mode to focus + * the agent's execution-based validation on a single vulnerability. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("finding_id") + private java.lang.String findingId; + + /** + * A list of source files to provide as context for the scan. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("source_files") + private java.util.List sourceFiles; + + static { + // hack to force ProGuard to consider GenaiVertexV1beta1CodeMenderAgentConfigFileContent 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(GenaiVertexV1beta1CodeMenderAgentConfigFileContent.class); + } + + /** + * Additional context or custom instructions provided by the user to guide the vulnerability + * analysis. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Additional context or custom instructions provided by the user to guide the vulnerability + * analysis. + * @param description description or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigFindRequest setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The identifier of a specific finding to verify. This is primarily used in VERIFY mode to focus + * the agent's execution-based validation on a single vulnerability. + * @return value or {@code null} for none + */ + public java.lang.String getFindingId() { + return findingId; + } + + /** + * The identifier of a specific finding to verify. This is primarily used in VERIFY mode to focus + * the agent's execution-based validation on a single vulnerability. + * @param findingId findingId or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigFindRequest setFindingId(java.lang.String findingId) { + this.findingId = findingId; + return this; + } + + /** + * A list of source files to provide as context for the scan. + * @return value or {@code null} for none + */ + public java.util.List getSourceFiles() { + return sourceFiles; + } + + /** + * A list of source files to provide as context for the scan. + * @param sourceFiles sourceFiles or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigFindRequest setSourceFiles(java.util.List sourceFiles) { + this.sourceFiles = sourceFiles; + return this; + } + + @Override + public GenaiVertexV1beta1CodeMenderAgentConfigFindRequest set(String fieldName, Object value) { + return (GenaiVertexV1beta1CodeMenderAgentConfigFindRequest) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1CodeMenderAgentConfigFindRequest clone() { + return (GenaiVertexV1beta1CodeMenderAgentConfigFindRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigFixRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigFixRequest.java new file mode 100644 index 00000000000..45bff59a574 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigFixRequest.java @@ -0,0 +1,129 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * 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 parameters specific to FIX sessions, used for generating and validating security patches. + * + *

This is 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 GenaiVertexV1beta1CodeMenderAgentConfigFixRequest extends com.google.api.client.json.GenericJson { + + /** + * Additional context or custom instructions provided by the user to guide the patch generation + * process. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The identifier of the specific security finding to be remediated. This ID maps to a previously + * discovered vulnerability. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("finding_id") + private java.lang.String findingId; + + /** + * A list of source files providing context for the remediation. These files are typically the + * ones containing the identified vulnerability. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("source_files") + private java.util.List sourceFiles; + + static { + // hack to force ProGuard to consider GenaiVertexV1beta1CodeMenderAgentConfigFileContent 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(GenaiVertexV1beta1CodeMenderAgentConfigFileContent.class); + } + + /** + * Additional context or custom instructions provided by the user to guide the patch generation + * process. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Additional context or custom instructions provided by the user to guide the patch generation + * process. + * @param description description or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigFixRequest setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The identifier of the specific security finding to be remediated. This ID maps to a previously + * discovered vulnerability. + * @return value or {@code null} for none + */ + public java.lang.String getFindingId() { + return findingId; + } + + /** + * The identifier of the specific security finding to be remediated. This ID maps to a previously + * discovered vulnerability. + * @param findingId findingId or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigFixRequest setFindingId(java.lang.String findingId) { + this.findingId = findingId; + return this; + } + + /** + * A list of source files providing context for the remediation. These files are typically the + * ones containing the identified vulnerability. + * @return value or {@code null} for none + */ + public java.util.List getSourceFiles() { + return sourceFiles; + } + + /** + * A list of source files providing context for the remediation. These files are typically the + * ones containing the identified vulnerability. + * @param sourceFiles sourceFiles or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigFixRequest setSourceFiles(java.util.List sourceFiles) { + this.sourceFiles = sourceFiles; + return this; + } + + @Override + public GenaiVertexV1beta1CodeMenderAgentConfigFixRequest set(String fieldName, Object value) { + return (GenaiVertexV1beta1CodeMenderAgentConfigFixRequest) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1CodeMenderAgentConfigFixRequest clone() { + return (GenaiVertexV1beta1CodeMenderAgentConfigFixRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig.java new file mode 100644 index 00000000000..1a5fc94011b --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig.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; + +/** + * The configuration of CodeMender sessions. + * + *

This is 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 GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig extends com.google.api.client.json.GenericJson { + + /** + * The maximum number of interaction rounds the agent is allowed to perform before reaching a + * timeout. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("max_rounds") + private java.lang.Integer maxRounds; + + /** + * The pipeline mode of a CodeMender session. It can only be used for a find session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("pipeline_mode") + private java.lang.String pipelineMode; + + /** + * The cognitive architecture or "thinking" topology used by the agent (e.g. "default", "deep"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String topology; + + /** + * The maximum number of interaction rounds the agent is allowed to perform before reaching a + * timeout. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxRounds() { + return maxRounds; + } + + /** + * The maximum number of interaction rounds the agent is allowed to perform before reaching a + * timeout. + * @param maxRounds maxRounds or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig setMaxRounds(java.lang.Integer maxRounds) { + this.maxRounds = maxRounds; + return this; + } + + /** + * The pipeline mode of a CodeMender session. It can only be used for a find session. + * @return value or {@code null} for none + */ + public java.lang.String getPipelineMode() { + return pipelineMode; + } + + /** + * The pipeline mode of a CodeMender session. It can only be used for a find session. + * @param pipelineMode pipelineMode or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig setPipelineMode(java.lang.String pipelineMode) { + this.pipelineMode = pipelineMode; + return this; + } + + /** + * The cognitive architecture or "thinking" topology used by the agent (e.g. "default", "deep"). + * @return value or {@code null} for none + */ + public java.lang.String getTopology() { + return topology; + } + + /** + * The cognitive architecture or "thinking" topology used by the agent (e.g. "default", "deep"). + * @param topology topology or {@code null} for none + */ + public GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig setTopology(java.lang.String topology) { + this.topology = topology; + return this; + } + + @Override + public GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig set(String fieldName, Object value) { + return (GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig clone() { + return (GenaiVertexV1beta1CodeMenderAgentConfigSessionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ComputerUse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ComputerUse.java index 6eb6c8da01c..991a427cd48 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ComputerUse.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ComputerUse.java @@ -40,7 +40,7 @@ public final class GenaiVertexV1beta1ComputerUse extends com.google.api.client.j * The list of predefined functions that are excluded from the model call. * The value may be {@code null}. */ - @com.google.api.client.util.Key("excluded_predefined_functions") + @com.google.api.client.util.Key private java.util.List excludedPredefinedFunctions; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1DeepResearchAgentConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1DeepResearchAgentConfig.java index 185ef8aa887..b69b1b3beda 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1DeepResearchAgentConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1DeepResearchAgentConfig.java @@ -35,21 +35,21 @@ public final class GenaiVertexV1beta1DeepResearchAgentConfig extends com.google. * if the user confirms the plan in the next turn. * The value may be {@code null}. */ - @com.google.api.client.util.Key("collaborative_planning") + @com.google.api.client.util.Key private java.lang.Boolean collaborativePlanning; /** * Enables bigquery tool for the Deep Research agent. * The value may be {@code null}. */ - @com.google.api.client.util.Key("enable_bigquery_tool") + @com.google.api.client.util.Key private java.lang.Boolean enableBigqueryTool; /** * Whether to include thought summaries in the response. * The value may be {@code null}. */ - @com.google.api.client.util.Key("thinking_summaries") + @com.google.api.client.util.Key private java.lang.String thinkingSummaries; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1DocumentContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1DocumentContent.java index cb7aa1eabcd..e5b5607f49c 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1DocumentContent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1DocumentContent.java @@ -40,7 +40,7 @@ public final class GenaiVertexV1beta1DocumentContent extends com.google.api.clie * The mime type of the document. * The value may be {@code null}. */ - @com.google.api.client.util.Key("mime_type") + @com.google.api.client.util.Key private java.lang.String mimeType; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1DocumentDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1DocumentDelta.java index f837f7380b1..03c489e522f 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1DocumentDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1DocumentDelta.java @@ -38,7 +38,7 @@ public final class GenaiVertexV1beta1DocumentDelta extends com.google.api.client /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("mime_type") + @com.google.api.client.util.Key private java.lang.String mimeType; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ExaAISearchConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ExaAISearchConfig.java new file mode 100644 index 00000000000..beeb7f30feb --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ExaAISearchConfig.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; + +/** + * Used to specify configuration for ExaAISearch. + * + *

This is 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 GenaiVertexV1beta1ExaAISearchConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The API key for ExaAiSearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("api_key") + private java.lang.String apiKey; + + /** + * Optional. This field can be used to pass any parameter from the Exa.ai Search API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("custom_config") + private java.util.Map customConfig; + + /** + * Required. The API key for ExaAiSearch. + * @return value or {@code null} for none + */ + public java.lang.String getApiKey() { + return apiKey; + } + + /** + * Required. The API key for ExaAiSearch. + * @param apiKey apiKey or {@code null} for none + */ + public GenaiVertexV1beta1ExaAISearchConfig setApiKey(java.lang.String apiKey) { + this.apiKey = apiKey; + return this; + } + + /** + * Optional. This field can be used to pass any parameter from the Exa.ai Search API. + * @return value or {@code null} for none + */ + public java.util.Map getCustomConfig() { + return customConfig; + } + + /** + * Optional. This field can be used to pass any parameter from the Exa.ai Search API. + * @param customConfig customConfig or {@code null} for none + */ + public GenaiVertexV1beta1ExaAISearchConfig setCustomConfig(java.util.Map customConfig) { + this.customConfig = customConfig; + return this; + } + + @Override + public GenaiVertexV1beta1ExaAISearchConfig set(String fieldName, Object value) { + return (GenaiVertexV1beta1ExaAISearchConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1ExaAISearchConfig clone() { + return (GenaiVertexV1beta1ExaAISearchConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FileCitation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FileCitation.java index 3929dbb60f9..e8a23e303d1 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FileCitation.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FileCitation.java @@ -33,35 +33,35 @@ public final class GenaiVertexV1beta1FileCitation extends com.google.api.client. * User provided metadata about the retrieved context. * The value may be {@code null}. */ - @com.google.api.client.util.Key("custom_metadata") + @com.google.api.client.util.Key private GenaiStruct customMetadata; /** * The URI of the file. * The value may be {@code null}. */ - @com.google.api.client.util.Key("document_uri") + @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("file_name") + @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("media_id") + @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("page_number") + @com.google.api.client.util.Key private java.lang.Integer pageNumber; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FileSearch.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FileSearch.java index 092b634414b..34b5a6b4300 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FileSearch.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FileSearch.java @@ -33,21 +33,21 @@ public final class GenaiVertexV1beta1FileSearch extends com.google.api.client.js * The file search store names to search. * The value may be {@code null}. */ - @com.google.api.client.util.Key("file_search_store_names") + @com.google.api.client.util.Key private java.util.List fileSearchStoreNames; /** * Metadata filter to apply to the semantic retrieval documents and chunks. * The value may be {@code null}. */ - @com.google.api.client.util.Key("metadata_filter") + @com.google.api.client.util.Key private java.lang.String metadataFilter; /** * The number of semantic retrieval chunks to retrieve. * The value may be {@code null}. */ - @com.google.api.client.util.Key("top_k") + @com.google.api.client.util.Key private java.lang.Integer topK; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FunctionResultContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FunctionResultContent.java index ab83ab89bb5..ec4ec5bbc63 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FunctionResultContent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FunctionResultContent.java @@ -39,7 +39,7 @@ public final class GenaiVertexV1beta1FunctionResultContent extends com.google.ap * Whether the tool call resulted in an error. * The value may be {@code null}. */ - @com.google.api.client.util.Key("is_error") + @com.google.api.client.util.Key private java.lang.Boolean isError; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FunctionResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FunctionResultDelta.java index d7c7bcc38ca..50b5eee908b 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FunctionResultDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FunctionResultDelta.java @@ -33,12 +33,12 @@ public final class GenaiVertexV1beta1FunctionResultDelta extends com.google.api. * The value may be {@code null}. */ @com.google.api.client.util.Key - private GenaiVertexV1beta1FunctionResultSubcontentList contentList; + private GenaiVertexV1beta1ContentList contentList; /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("is_error") + @com.google.api.client.util.Key private java.lang.Boolean isError; /** @@ -62,14 +62,14 @@ public final class GenaiVertexV1beta1FunctionResultDelta extends com.google.api. /** * @return value or {@code null} for none */ - public GenaiVertexV1beta1FunctionResultSubcontentList getContentList() { + public GenaiVertexV1beta1ContentList getContentList() { return contentList; } /** * @param contentList contentList or {@code null} for none */ - public GenaiVertexV1beta1FunctionResultDelta setContentList(GenaiVertexV1beta1FunctionResultSubcontentList contentList) { + public GenaiVertexV1beta1FunctionResultDelta setContentList(GenaiVertexV1beta1ContentList contentList) { this.contentList = contentList; return this; } diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FunctionResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FunctionResultStep.java index 38bf6d77182..6d939a93731 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FunctionResultStep.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1FunctionResultStep.java @@ -33,13 +33,13 @@ public final class GenaiVertexV1beta1FunctionResultStep extends com.google.api.c * The value may be {@code null}. */ @com.google.api.client.util.Key - private GenaiVertexV1beta1FunctionResultSubcontentList contentList; + private GenaiVertexV1beta1ContentList contentList; /** * Whether the tool call resulted in an error. * The value may be {@code null}. */ - @com.google.api.client.util.Key("is_error") + @com.google.api.client.util.Key private java.lang.Boolean isError; /** @@ -64,14 +64,14 @@ public final class GenaiVertexV1beta1FunctionResultStep extends com.google.api.c /** * @return value or {@code null} for none */ - public GenaiVertexV1beta1FunctionResultSubcontentList getContentList() { + public GenaiVertexV1beta1ContentList getContentList() { return contentList; } /** * @param contentList contentList or {@code null} for none */ - public GenaiVertexV1beta1FunctionResultStep setContentList(GenaiVertexV1beta1FunctionResultSubcontentList contentList) { + public GenaiVertexV1beta1FunctionResultStep setContentList(GenaiVertexV1beta1ContentList contentList) { this.contentList = contentList; return this; } diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GenerationConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GenerationConfig.java index b2ec848f365..a3b8b026cb2 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GenerationConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GenerationConfig.java @@ -29,20 +29,37 @@ @SuppressWarnings("javadoc") public final class GenaiVertexV1beta1GenerationConfig extends com.google.api.client.json.GenericJson { + /** + * Penalizes tokens based on their frequency in the generated text. A positive value helps to + * reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("frequency_penalty") + private java.lang.Float frequencyPenalty; + /** * Configuration for image interaction. * The value may be {@code null}. */ - @com.google.api.client.util.Key("image_config") + @com.google.api.client.util.Key private GenaiVertexV1beta1ImageConfig imageConfig; /** * The maximum number of tokens to include in the response. * The value may be {@code null}. */ - @com.google.api.client.util.Key("max_output_tokens") + @com.google.api.client.util.Key private java.lang.Integer maxOutputTokens; + /** + * Penalizes tokens that have already appeared in the generated text. A positive value encourages + * the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, + * 2.0]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("presence_penalty") + private java.lang.Float presencePenalty; + /** * Seed used in decoding for reproducibility. * The value may be {@code null}. @@ -54,14 +71,14 @@ public final class GenaiVertexV1beta1GenerationConfig extends com.google.api.cli * Configuration for speech interaction. * The value may be {@code null}. */ - @com.google.api.client.util.Key("speech_config") + @com.google.api.client.util.Key private java.util.List speechConfig; /** * A list of character sequences that will stop output interaction. * The value may be {@code null}. */ - @com.google.api.client.util.Key("stop_sequences") + @com.google.api.client.util.Key private java.util.List stopSequences; /** @@ -75,14 +92,14 @@ public final class GenaiVertexV1beta1GenerationConfig extends com.google.api.cli * The level of thought tokens that the model should generate. * The value may be {@code null}. */ - @com.google.api.client.util.Key("thinking_level") + @com.google.api.client.util.Key private java.lang.String thinkingLevel; /** * Whether to include thought summaries in the response. * The value may be {@code null}. */ - @com.google.api.client.util.Key("thinking_summaries") + @com.google.api.client.util.Key private java.lang.String thinkingSummaries; /** @@ -103,9 +120,28 @@ public final class GenaiVertexV1beta1GenerationConfig extends com.google.api.cli * The maximum cumulative probability of tokens to consider when sampling. * The value may be {@code null}. */ - @com.google.api.client.util.Key("top_p") + @com.google.api.client.util.Key private java.lang.Float topP; + /** + * Penalizes tokens based on their frequency in the generated text. A positive value helps to + * reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0]. + * @return value or {@code null} for none + */ + public java.lang.Float getFrequencyPenalty() { + return frequencyPenalty; + } + + /** + * Penalizes tokens based on their frequency in the generated text. A positive value helps to + * reduce the repetition of words and phrases. Valid values can range from [-2.0, 2.0]. + * @param frequencyPenalty frequencyPenalty or {@code null} for none + */ + public GenaiVertexV1beta1GenerationConfig setFrequencyPenalty(java.lang.Float frequencyPenalty) { + this.frequencyPenalty = frequencyPenalty; + return this; + } + /** * Configuration for image interaction. * @return value or {@code null} for none @@ -140,6 +176,27 @@ public GenaiVertexV1beta1GenerationConfig setMaxOutputTokens(java.lang.Integer m return this; } + /** + * Penalizes tokens that have already appeared in the generated text. A positive value encourages + * the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, + * 2.0]. + * @return value or {@code null} for none + */ + public java.lang.Float getPresencePenalty() { + return presencePenalty; + } + + /** + * Penalizes tokens that have already appeared in the generated text. A positive value encourages + * the model to generate more diverse and less repetitive text. Valid values can range from [-2.0, + * 2.0]. + * @param presencePenalty presencePenalty or {@code null} for none + */ + public GenaiVertexV1beta1GenerationConfig setPresencePenalty(java.lang.Float presencePenalty) { + this.presencePenalty = presencePenalty; + return this; + } + /** * Seed used in decoding for reproducibility. * @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/GenaiVertexV1beta1GoogleMaps.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMaps.java index c03b620b04c..d27e1889374 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMaps.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMaps.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1GoogleMaps extends com.google.api.client.js * Whether to return a widget context token in the tool call result of the response. * The value may be {@code null}. */ - @com.google.api.client.util.Key("enable_widget") + @com.google.api.client.util.Key private java.lang.Boolean enableWidget; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultContentGoogleMapsResult.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultContentGoogleMapsResult.java index 695167d4015..27a736e53be 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultContentGoogleMapsResult.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultContentGoogleMapsResult.java @@ -40,7 +40,7 @@ public final class GenaiVertexV1beta1GoogleMapsResultContentGoogleMapsResult ext * Resource name of the Google Maps widget context token. * The value may be {@code null}. */ - @com.google.api.client.util.Key("widget_context_token") + @com.google.api.client.util.Key private java.lang.String widgetContextToken; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultContentGoogleMapsResultPlaces.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultContentGoogleMapsResultPlaces.java index 5e201312852..019f99cdb71 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultContentGoogleMapsResultPlaces.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultContentGoogleMapsResultPlaces.java @@ -40,7 +40,7 @@ public final class GenaiVertexV1beta1GoogleMapsResultContentGoogleMapsResultPlac * The ID of the place, in `places/{place_id}` format. * The value may be {@code null}. */ - @com.google.api.client.util.Key("place_id") + @com.google.api.client.util.Key private java.lang.String placeId; /** @@ -48,7 +48,7 @@ public final class GenaiVertexV1beta1GoogleMapsResultContentGoogleMapsResultPlac * Google Maps. * The value may be {@code null}. */ - @com.google.api.client.util.Key("review_snippets") + @com.google.api.client.util.Key private java.util.List reviewSnippets; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultStepGoogleMapsResultItem.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultStepGoogleMapsResultItem.java index f40664dde96..b16b51bfcd8 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultStepGoogleMapsResultItem.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultStepGoogleMapsResultItem.java @@ -38,7 +38,7 @@ public final class GenaiVertexV1beta1GoogleMapsResultStepGoogleMapsResultItem ex /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("widget_context_token") + @com.google.api.client.util.Key private java.lang.String widgetContextToken; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces.java index 72858e540d5..171ce06bc08 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleMapsResultStepGoogleMapsResultItemGoogleMapsResultPlaces.java @@ -39,13 +39,13 @@ public final class GenaiVertexV1beta1GoogleMapsResultStepGoogleMapsResultItemGoo /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("place_id") + @com.google.api.client.util.Key private java.lang.String placeId; /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("review_snippets") + @com.google.api.client.util.Key private java.util.List reviewSnippets; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearch.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearch.java index 5ef5efe5c29..6d7ec2fca3a 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearch.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearch.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1GoogleSearch extends com.google.api.client. * The types of search grounding to enable. * The value may be {@code null}. */ - @com.google.api.client.util.Key("search_types") + @com.google.api.client.util.Key private java.util.List searchTypes; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchCallContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchCallContent.java index 93001f7a4eb..a42e36273f1 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchCallContent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchCallContent.java @@ -40,7 +40,7 @@ public final class GenaiVertexV1beta1GoogleSearchCallContent extends com.google. * The type of search grounding enabled. * The value may be {@code null}. */ - @com.google.api.client.util.Key("search_type") + @com.google.api.client.util.Key private java.lang.String searchType; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchCallStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchCallStep.java index e7badec9a7a..b3364e650f5 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchCallStep.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchCallStep.java @@ -40,7 +40,7 @@ public final class GenaiVertexV1beta1GoogleSearchCallStep extends com.google.api * The type of search grounding enabled. * The value may be {@code null}. */ - @com.google.api.client.util.Key("search_type") + @com.google.api.client.util.Key private java.lang.String searchType; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultContent.java index 36383ea2897..19833a2ac88 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultContent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultContent.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1GoogleSearchResultContent extends com.googl * Whether the Google Search resulted in an error. * The value may be {@code null}. */ - @com.google.api.client.util.Key("is_error") + @com.google.api.client.util.Key private java.lang.Boolean isError; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultContentGoogleSearchResult.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultContentGoogleSearchResult.java index 519b1a050c2..af79ae2c70e 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultContentGoogleSearchResult.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultContentGoogleSearchResult.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1GoogleSearchResultContentGoogleSearchResult * 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("search_suggestions") + @com.google.api.client.util.Key private java.lang.String searchSuggestions; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultDelta.java index 59fd5321743..61fc7c68dad 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultDelta.java @@ -32,7 +32,7 @@ public final class GenaiVertexV1beta1GoogleSearchResultDelta extends com.google. /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("is_error") + @com.google.api.client.util.Key private java.lang.Boolean isError; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultStep.java index 5aa6adfd570..0c227128d68 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultStep.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultStep.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1GoogleSearchResultStep extends com.google.a * Whether the Google Search resulted in an error. * The value may be {@code null}. */ - @com.google.api.client.util.Key("is_error") + @com.google.api.client.util.Key private java.lang.Boolean isError; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultStepGoogleSearchResultItem.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultStepGoogleSearchResultItem.java index 027dd29a400..eadda39453a 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultStepGoogleSearchResultItem.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1GoogleSearchResultStepGoogleSearchResultItem.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1GoogleSearchResultStepGoogleSearchResultIte * 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("search_suggestions") + @com.google.api.client.util.Key private java.lang.String searchSuggestions; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageConfig.java index d006d348cf0..fc51eb7b07c 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageConfig.java @@ -35,7 +35,7 @@ public final class GenaiVertexV1beta1ImageConfig extends com.google.api.client.j * reference images provided. * The value may be {@code null}. */ - @com.google.api.client.util.Key("aspect_ratio") + @com.google.api.client.util.Key private java.lang.String aspectRatio; /** @@ -43,7 +43,7 @@ public final class GenaiVertexV1beta1ImageConfig extends com.google.api.client.j * specified, the model will use default value `1K`. * The value may be {@code null}. */ - @com.google.api.client.util.Key("image_size") + @com.google.api.client.util.Key private java.lang.String imageSize; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageContent.java index d5058bc1c55..3816de06145 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageContent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageContent.java @@ -40,7 +40,7 @@ public final class GenaiVertexV1beta1ImageContent extends com.google.api.client. * The mime type of the image. * The value may be {@code null}. */ - @com.google.api.client.util.Key("mime_type") + @com.google.api.client.util.Key private java.lang.String mimeType; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageDelta.java index e13fc5aebfc..dcfdcf83946 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageDelta.java @@ -38,7 +38,7 @@ public final class GenaiVertexV1beta1ImageDelta extends com.google.api.client.js /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("mime_type") + @com.google.api.client.util.Key private java.lang.String mimeType; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageResponseFormat.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageResponseFormat.java index f3df7b12bf9..fe185b5da1c 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageResponseFormat.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ImageResponseFormat.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1ImageResponseFormat extends com.google.api. * The aspect ratio for the image output. * The value may be {@code null}. */ - @com.google.api.client.util.Key("aspect_ratio") + @com.google.api.client.util.Key private java.lang.String aspectRatio; /** @@ -47,14 +47,14 @@ public final class GenaiVertexV1beta1ImageResponseFormat extends com.google.api. * The size of the image output. * The value may be {@code null}. */ - @com.google.api.client.util.Key("image_size") + @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("mime_type") + @com.google.api.client.util.Key private java.lang.String mimeType; /** 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 46017d0b75f..9a3d5b1f094 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 @@ -62,7 +62,7 @@ public final class GenaiVertexV1beta1Interaction extends com.google.api.client.j * The environment ID for the interaction. Can be 'remote' for default environment. * The value may be {@code null}. */ - @com.google.api.client.util.Key("env_id") + @com.google.api.client.util.Key private java.lang.String envId; /** @@ -70,7 +70,7 @@ public final class GenaiVertexV1beta1Interaction extends com.google.api.client.j * set in the request. * The value may be {@code null}. */ - @com.google.api.client.util.Key("environment_id") + @com.google.api.client.util.Key private java.lang.String environmentId; /** @@ -104,7 +104,7 @@ public final class GenaiVertexV1beta1Interaction extends com.google.api.client.j * The ID of the previous interaction, if any. * The value may be {@code null}. */ - @com.google.api.client.util.Key("previous_interaction_id") + @com.google.api.client.util.Key private java.lang.String previousInteractionId; /** @@ -114,37 +114,37 @@ public final class GenaiVertexV1beta1Interaction extends com.google.api.client.j private GenaiVertexV1beta1EnvironmentConfig remoteEnvironment; /** + * Enforces that the generated response is a JSON object that complies with the JSON schema + * specified in this field. * The value may be {@code null}. */ @com.google.api.client.util.Key - private GenaiVertexV1beta1ResponseFormatList responseFormatList; + private GenaiValue responseFormat; /** * The value may be {@code null}. */ @com.google.api.client.util.Key - private GenaiVertexV1beta1ResponseFormat responseFormatSingleton; + private GenaiVertexV1beta1ResponseFormatList responseFormatList; /** - * Enforces that the generated response is a JSON object that complies with the JSON schema - * specified in this field. * The value may be {@code null}. */ - @com.google.api.client.util.Key("response_format") - private GenaiValue responseFormat; + @com.google.api.client.util.Key + private GenaiVertexV1beta1ResponseFormat responseFormatSingleton; /** * The mime type of the response. This is required if response_format is set. * The value may be {@code null}. */ - @com.google.api.client.util.Key("response_mime_type") + @com.google.api.client.util.Key private java.lang.String responseMimeType; /** * The requested modalities of the response (TEXT, IMAGE, AUDIO). * The value may be {@code null}. */ - @com.google.api.client.util.Key("response_modalities") + @com.google.api.client.util.Key private java.util.List responseModalities; /** @@ -186,7 +186,7 @@ public final class GenaiVertexV1beta1Interaction extends com.google.api.client.j * System instruction for the interaction. * The value may be {@code null}. */ - @com.google.api.client.util.Key("system_instruction") + @com.google.api.client.util.Key private java.lang.String systemInstruction; /** @@ -408,51 +408,51 @@ public GenaiVertexV1beta1Interaction setRemoteEnvironment(GenaiVertexV1beta1Envi } /** + * Enforces that the generated response is a JSON object that complies with the JSON schema + * specified in this field. * @return value or {@code null} for none */ - public GenaiVertexV1beta1ResponseFormatList getResponseFormatList() { - return responseFormatList; + public GenaiValue getResponseFormat() { + return responseFormat; } /** - * @param responseFormatList responseFormatList or {@code null} for none + * Enforces that the generated response is a JSON object that complies with the JSON schema + * specified in this field. + * @param responseFormat responseFormat or {@code null} for none */ - public GenaiVertexV1beta1Interaction setResponseFormatList(GenaiVertexV1beta1ResponseFormatList responseFormatList) { - this.responseFormatList = responseFormatList; + public GenaiVertexV1beta1Interaction setResponseFormat(GenaiValue responseFormat) { + this.responseFormat = responseFormat; return this; } /** * @return value or {@code null} for none */ - public GenaiVertexV1beta1ResponseFormat getResponseFormatSingleton() { - return responseFormatSingleton; + public GenaiVertexV1beta1ResponseFormatList getResponseFormatList() { + return responseFormatList; } /** - * @param responseFormatSingleton responseFormatSingleton or {@code null} for none + * @param responseFormatList responseFormatList or {@code null} for none */ - public GenaiVertexV1beta1Interaction setResponseFormatSingleton(GenaiVertexV1beta1ResponseFormat responseFormatSingleton) { - this.responseFormatSingleton = responseFormatSingleton; + public GenaiVertexV1beta1Interaction setResponseFormatList(GenaiVertexV1beta1ResponseFormatList responseFormatList) { + this.responseFormatList = responseFormatList; return this; } /** - * Enforces that the generated response is a JSON object that complies with the JSON schema - * specified in this field. * @return value or {@code null} for none */ - public GenaiValue getResponseFormat() { - return responseFormat; + public GenaiVertexV1beta1ResponseFormat getResponseFormatSingleton() { + return responseFormatSingleton; } /** - * Enforces that the generated response is a JSON object that complies with the JSON schema - * specified in this field. - * @param responseFormat responseFormat or {@code null} for none + * @param responseFormatSingleton responseFormatSingleton or {@code null} for none */ - public GenaiVertexV1beta1Interaction setResponseFormat(GenaiValue responseFormat) { - this.responseFormat = responseFormat; + public GenaiVertexV1beta1Interaction setResponseFormatSingleton(GenaiVertexV1beta1ResponseFormat responseFormatSingleton) { + this.responseFormatSingleton = responseFormatSingleton; return this; } diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStatusUpdate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStatusUpdate.java index dcccd83fc45..886632e6c80 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStatusUpdate.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStatusUpdate.java @@ -32,7 +32,7 @@ public final class GenaiVertexV1beta1InteractionStatusUpdate extends com.google. /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("interaction_id") + @com.google.api.client.util.Key private java.lang.String interactionId; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStreamingEvent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStreamingEvent.java index 9c14e1e0669..19ab3b5ff05 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStreamingEvent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1InteractionStreamingEvent.java @@ -61,7 +61,7 @@ public final class GenaiVertexV1beta1InteractionStreamingEvent extends com.googl * The event_id token to be used to resume the interaction stream, from this event. * The value may be {@code null}. */ - @com.google.api.client.util.Key("event_id") + @com.google.api.client.util.Key private java.lang.String eventId; /** 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 6587bfdac61..64a78f34e2a 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 @@ -33,77 +33,77 @@ public final class GenaiVertexV1beta1InteractionUsage extends com.google.api.cli * A breakdown of cached token usage by modality. * The value may be {@code null}. */ - @com.google.api.client.util.Key("cached_tokens_by_modality") + @com.google.api.client.util.Key private java.util.List cachedTokensByModality; /** * Grounding tool count. * The value may be {@code null}. */ - @com.google.api.client.util.Key("grounding_tool_count") + @com.google.api.client.util.Key private java.util.List groundingToolCount; /** * A breakdown of input token usage by modality. * The value may be {@code null}. */ - @com.google.api.client.util.Key("input_tokens_by_modality") + @com.google.api.client.util.Key private java.util.List inputTokensByModality; /** * A breakdown of output token usage by modality. * The value may be {@code null}. */ - @com.google.api.client.util.Key("output_tokens_by_modality") + @com.google.api.client.util.Key private java.util.List outputTokensByModality; /** * A breakdown of tool-use token usage by modality. * The value may be {@code null}. */ - @com.google.api.client.util.Key("tool_use_tokens_by_modality") + @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("total_cached_tokens") + @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("total_input_tokens") + @com.google.api.client.util.Key private java.lang.Integer totalInputTokens; /** * Total number of tokens across all the generated responses. * The value may be {@code null}. */ - @com.google.api.client.util.Key("total_output_tokens") + @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("total_thought_tokens") + @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("total_tokens") + @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("total_tool_use_tokens") + @com.google.api.client.util.Key private java.lang.Integer totalToolUseTokens; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServer.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServer.java index 497d5404dc1..81f754dd096 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServer.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServer.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1McpServer extends com.google.api.client.jso * The allowed tools. * The value may be {@code null}. */ - @com.google.api.client.util.Key("allowed_tools") + @com.google.api.client.util.Key private java.util.List allowedTools; static { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolCallContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolCallContent.java index 82e7208b913..9756f015559 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolCallContent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolCallContent.java @@ -47,7 +47,7 @@ public final class GenaiVertexV1beta1McpServerToolCallContent extends com.google * Required. The name of the used MCP server. * The value may be {@code null}. */ - @com.google.api.client.util.Key("server_name") + @com.google.api.client.util.Key private java.lang.String serverName; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolCallDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolCallDelta.java index 768c7300fb1..2681a5673af 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolCallDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolCallDelta.java @@ -44,7 +44,7 @@ public final class GenaiVertexV1beta1McpServerToolCallDelta extends com.google.a /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("server_name") + @com.google.api.client.util.Key private java.lang.String serverName; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolCallStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolCallStep.java index 129f7491444..d5618cee58c 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolCallStep.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolCallStep.java @@ -47,7 +47,7 @@ public final class GenaiVertexV1beta1McpServerToolCallStep extends com.google.ap * Required. The name of the used MCP server. * The value may be {@code null}. */ - @com.google.api.client.util.Key("server_name") + @com.google.api.client.util.Key private java.lang.String serverName; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolResultContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolResultContent.java index 4f8ec91bc2e..1b499e7ad04 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolResultContent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolResultContent.java @@ -46,7 +46,7 @@ public final class GenaiVertexV1beta1McpServerToolResultContent extends com.goog * The name of the used MCP server. * The value may be {@code null}. */ - @com.google.api.client.util.Key("server_name") + @com.google.api.client.util.Key private java.lang.String serverName; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolResultDelta.java index 505be4dd0f3..49baef32a75 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolResultDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolResultDelta.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1McpServerToolResultDelta extends com.google * The value may be {@code null}. */ @com.google.api.client.util.Key - private GenaiVertexV1beta1FunctionResultSubcontentList contentList; + private GenaiVertexV1beta1ContentList contentList; /** * The value may be {@code null}. @@ -44,7 +44,7 @@ public final class GenaiVertexV1beta1McpServerToolResultDelta extends com.google /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("server_name") + @com.google.api.client.util.Key private java.lang.String serverName; /** @@ -62,14 +62,14 @@ public final class GenaiVertexV1beta1McpServerToolResultDelta extends com.google /** * @return value or {@code null} for none */ - public GenaiVertexV1beta1FunctionResultSubcontentList getContentList() { + public GenaiVertexV1beta1ContentList getContentList() { return contentList; } /** * @param contentList contentList or {@code null} for none */ - public GenaiVertexV1beta1McpServerToolResultDelta setContentList(GenaiVertexV1beta1FunctionResultSubcontentList contentList) { + public GenaiVertexV1beta1McpServerToolResultDelta setContentList(GenaiVertexV1beta1ContentList contentList) { this.contentList = contentList; return this; } diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolResultStep.java index fb64f762153..608bdab2833 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolResultStep.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1McpServerToolResultStep.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1McpServerToolResultStep extends com.google. * The value may be {@code null}. */ @com.google.api.client.util.Key - private GenaiVertexV1beta1FunctionResultSubcontentList contentList; + private GenaiVertexV1beta1ContentList contentList; /** * Name of the tool which is called for this specific tool call. @@ -46,7 +46,7 @@ public final class GenaiVertexV1beta1McpServerToolResultStep extends com.google. * The name of the used MCP server. * The value may be {@code null}. */ - @com.google.api.client.util.Key("server_name") + @com.google.api.client.util.Key private java.lang.String serverName; /** @@ -64,14 +64,14 @@ public final class GenaiVertexV1beta1McpServerToolResultStep extends com.google. /** * @return value or {@code null} for none */ - public GenaiVertexV1beta1FunctionResultSubcontentList getContentList() { + public GenaiVertexV1beta1ContentList getContentList() { return contentList; } /** * @param contentList contentList or {@code null} for none */ - public GenaiVertexV1beta1McpServerToolResultStep setContentList(GenaiVertexV1beta1FunctionResultSubcontentList contentList) { + public GenaiVertexV1beta1McpServerToolResultStep setContentList(GenaiVertexV1beta1ContentList contentList) { this.contentList = contentList; return this; } diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ModelInteraction.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ModelInteraction.java index d5a308677ff..082ad8d2ab1 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ModelInteraction.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ModelInteraction.java @@ -29,11 +29,21 @@ @SuppressWarnings("javadoc") public final class GenaiVertexV1beta1ModelInteraction extends com.google.api.client.json.GenericJson { + /** + * The name of the cached content used as context to serve the prediction. Note: only used in + * explicit caching, where users can have control over caching (e.g. what content to cache) and + * enjoy guaranteed cost savings. Format: + * `projects/{project}/locations/{location}/cachedContents/{cachedContent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("cached_content") + private java.lang.String cachedContent; + /** * Input only. Configuration parameters for the model interaction. * The value may be {@code null}. */ - @com.google.api.client.util.Key("generation_config") + @com.google.api.client.util.Key private GenaiVertexV1beta1GenerationConfig generationConfig; /** @@ -43,6 +53,29 @@ public final class GenaiVertexV1beta1ModelInteraction extends com.google.api.cli @com.google.api.client.util.Key private java.lang.String model; + /** + * The name of the cached content used as context to serve the prediction. Note: only used in + * explicit caching, where users can have control over caching (e.g. what content to cache) and + * enjoy guaranteed cost savings. Format: + * `projects/{project}/locations/{location}/cachedContents/{cachedContent}` + * @return value or {@code null} for none + */ + public java.lang.String getCachedContent() { + return cachedContent; + } + + /** + * The name of the cached content used as context to serve the prediction. Note: only used in + * explicit caching, where users can have control over caching (e.g. what content to cache) and + * enjoy guaranteed cost savings. Format: + * `projects/{project}/locations/{location}/cachedContents/{cachedContent}` + * @param cachedContent cachedContent or {@code null} for none + */ + public GenaiVertexV1beta1ModelInteraction setCachedContent(java.lang.String cachedContent) { + this.cachedContent = cachedContent; + return this; + } + /** * Input only. Configuration parameters for the model interaction. * @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/GenaiVertexV1beta1ParallelAISearchConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ParallelAISearchConfig.java new file mode 100644 index 00000000000..f6b85867bf4 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ParallelAISearchConfig.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; + +/** + * Used to specify configuration for ParallelAISearch. + * + *

This is 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 GenaiVertexV1beta1ParallelAISearchConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The API key for ParallelAiSearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("api_key") + private java.lang.String apiKey; + + /** + * Optional. Custom configs for ParallelAiSearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("custom_config") + private java.util.Map customConfig; + + /** + * Optional. The API key for ParallelAiSearch. + * @return value or {@code null} for none + */ + public java.lang.String getApiKey() { + return apiKey; + } + + /** + * Optional. The API key for ParallelAiSearch. + * @param apiKey apiKey or {@code null} for none + */ + public GenaiVertexV1beta1ParallelAISearchConfig setApiKey(java.lang.String apiKey) { + this.apiKey = apiKey; + return this; + } + + /** + * Optional. Custom configs for ParallelAiSearch. + * @return value or {@code null} for none + */ + public java.util.Map getCustomConfig() { + return customConfig; + } + + /** + * Optional. Custom configs for ParallelAiSearch. + * @param customConfig customConfig or {@code null} for none + */ + public GenaiVertexV1beta1ParallelAISearchConfig setCustomConfig(java.util.Map customConfig) { + this.customConfig = customConfig; + return this; + } + + @Override + public GenaiVertexV1beta1ParallelAISearchConfig set(String fieldName, Object value) { + return (GenaiVertexV1beta1ParallelAISearchConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1ParallelAISearchConfig clone() { + return (GenaiVertexV1beta1ParallelAISearchConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1PlaceCitation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1PlaceCitation.java index 5e367634241..c7fc94b6a00 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1PlaceCitation.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1PlaceCitation.java @@ -40,7 +40,7 @@ public final class GenaiVertexV1beta1PlaceCitation extends com.google.api.client * The ID of the place, in `places/{place_id}` format. * The value may be {@code null}. */ - @com.google.api.client.util.Key("place_id") + @com.google.api.client.util.Key private java.lang.String placeId; /** @@ -48,7 +48,7 @@ public final class GenaiVertexV1beta1PlaceCitation extends com.google.api.client * Google Maps. * The value may be {@code null}. */ - @com.google.api.client.util.Key("review_snippets") + @com.google.api.client.util.Key private java.util.List reviewSnippets; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfig.java new file mode 100644 index 00000000000..39e3f6c4403 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfig.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; + +/** + * Use to specify configuration for RAG 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 GenaiVertexV1beta1RagStoreConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The representation of the rag source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("rag_resources") + private java.util.List ragResources; + + /** + * Optional. The retrieval config for the Rag query. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("rag_retrieval_config") + private GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig ragRetrievalConfig; + + /** + * Optional. Number of top k results to return from the selected corpora. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("similarity_top_k") + private java.lang.Integer similarityTopK; + + /** + * Optional. Only return results with vector distance smaller than the threshold. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("vector_distance_threshold") + private java.lang.Double vectorDistanceThreshold; + + /** + * Optional. The representation of the rag source. + * @return value or {@code null} for none + */ + public java.util.List getRagResources() { + return ragResources; + } + + /** + * Optional. The representation of the rag source. + * @param ragResources ragResources or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfig setRagResources(java.util.List ragResources) { + this.ragResources = ragResources; + return this; + } + + /** + * Optional. The retrieval config for the Rag query. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig getRagRetrievalConfig() { + return ragRetrievalConfig; + } + + /** + * Optional. The retrieval config for the Rag query. + * @param ragRetrievalConfig ragRetrievalConfig or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfig setRagRetrievalConfig(GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig ragRetrievalConfig) { + this.ragRetrievalConfig = ragRetrievalConfig; + return this; + } + + /** + * Optional. Number of top k results to return from the selected corpora. + * @return value or {@code null} for none + */ + public java.lang.Integer getSimilarityTopK() { + return similarityTopK; + } + + /** + * Optional. Number of top k results to return from the selected corpora. + * @param similarityTopK similarityTopK or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfig setSimilarityTopK(java.lang.Integer similarityTopK) { + this.similarityTopK = similarityTopK; + return this; + } + + /** + * Optional. Only return results with vector distance smaller than the threshold. + * @return value or {@code null} for none + */ + public java.lang.Double getVectorDistanceThreshold() { + return vectorDistanceThreshold; + } + + /** + * Optional. Only return results with vector distance smaller than the threshold. + * @param vectorDistanceThreshold vectorDistanceThreshold or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfig setVectorDistanceThreshold(java.lang.Double vectorDistanceThreshold) { + this.vectorDistanceThreshold = vectorDistanceThreshold; + return this; + } + + @Override + public GenaiVertexV1beta1RagStoreConfig set(String fieldName, Object value) { + return (GenaiVertexV1beta1RagStoreConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1RagStoreConfig clone() { + return (GenaiVertexV1beta1RagStoreConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagResource.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagResource.java new file mode 100644 index 00000000000..0e64719a86c --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagResource.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 definition of the Rag resource. + * + *

This is 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 GenaiVertexV1beta1RagStoreConfigRagResource extends com.google.api.client.json.GenericJson { + + /** + * Optional. RagCorpora resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("rag_corpus") + private java.lang.String ragCorpus; + + /** + * Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("rag_file_ids") + private java.util.List ragFileIds; + + /** + * Optional. RagCorpora resource name. + * @return value or {@code null} for none + */ + public java.lang.String getRagCorpus() { + return ragCorpus; + } + + /** + * Optional. RagCorpora resource name. + * @param ragCorpus ragCorpus or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagResource setRagCorpus(java.lang.String ragCorpus) { + this.ragCorpus = ragCorpus; + return this; + } + + /** + * Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. + * @return value or {@code null} for none + */ + public java.util.List getRagFileIds() { + return ragFileIds; + } + + /** + * Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. + * @param ragFileIds ragFileIds or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagResource setRagFileIds(java.util.List ragFileIds) { + this.ragFileIds = ragFileIds; + return this; + } + + @Override + public GenaiVertexV1beta1RagStoreConfigRagResource set(String fieldName, Object value) { + return (GenaiVertexV1beta1RagStoreConfigRagResource) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1RagStoreConfigRagResource clone() { + return (GenaiVertexV1beta1RagStoreConfigRagResource) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig.java new file mode 100644 index 00000000000..2f5146a695d --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig.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; + +/** + * Specifies the context retrieval config. + * + *

This is 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 GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Config for filters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter filter; + + /** + * Optional. Config for Hybrid Search. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("hybrid_search") + private GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch hybridSearch; + + /** + * Optional. Config for ranking and reranking. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking ranking; + + /** + * Optional. The number of contexts to retrieve. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("top_k") + private java.lang.Integer topK; + + /** + * Optional. Config for filters. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter getFilter() { + return filter; + } + + /** + * Optional. Config for filters. + * @param filter filter or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig setFilter(GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Config for Hybrid Search. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch getHybridSearch() { + return hybridSearch; + } + + /** + * Optional. Config for Hybrid Search. + * @param hybridSearch hybridSearch or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig setHybridSearch(GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch hybridSearch) { + this.hybridSearch = hybridSearch; + return this; + } + + /** + * Optional. Config for ranking and reranking. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking getRanking() { + return ranking; + } + + /** + * Optional. Config for ranking and reranking. + * @param ranking ranking or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig setRanking(GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking ranking) { + this.ranking = ranking; + return this; + } + + /** + * Optional. The number of contexts to retrieve. + * @return value or {@code null} for none + */ + public java.lang.Integer getTopK() { + return topK; + } + + /** + * Optional. The number of contexts to retrieve. + * @param topK topK or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig setTopK(java.lang.Integer topK) { + this.topK = topK; + return this; + } + + @Override + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig set(String fieldName, Object value) { + return (GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig clone() { + return (GenaiVertexV1beta1RagStoreConfigRagRetrievalConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter.java new file mode 100644 index 00000000000..5c5fbf2f1a7 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter.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; + +/** + * Config for filters. + * + *

This is 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 GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter extends com.google.api.client.json.GenericJson { + + /** + * Optional. String for metadata filtering. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("metadata_filter") + private java.lang.String metadataFilter; + + /** + * Optional. Only returns contexts with vector distance smaller than the threshold. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("vector_distance_threshold") + private java.lang.Double vectorDistanceThreshold; + + /** + * Optional. Only returns contexts with vector similarity larger than the threshold. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("vector_similarity_threshold") + private java.lang.Double vectorSimilarityThreshold; + + /** + * Optional. String for metadata filtering. + * @return value or {@code null} for none + */ + public java.lang.String getMetadataFilter() { + return metadataFilter; + } + + /** + * Optional. String for metadata filtering. + * @param metadataFilter metadataFilter or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter setMetadataFilter(java.lang.String metadataFilter) { + this.metadataFilter = metadataFilter; + return this; + } + + /** + * Optional. Only returns contexts with vector distance smaller than the threshold. + * @return value or {@code null} for none + */ + public java.lang.Double getVectorDistanceThreshold() { + return vectorDistanceThreshold; + } + + /** + * Optional. Only returns contexts with vector distance smaller than the threshold. + * @param vectorDistanceThreshold vectorDistanceThreshold or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter setVectorDistanceThreshold(java.lang.Double vectorDistanceThreshold) { + this.vectorDistanceThreshold = vectorDistanceThreshold; + return this; + } + + /** + * Optional. Only returns contexts with vector similarity larger than the threshold. + * @return value or {@code null} for none + */ + public java.lang.Double getVectorSimilarityThreshold() { + return vectorSimilarityThreshold; + } + + /** + * Optional. Only returns contexts with vector similarity larger than the threshold. + * @param vectorSimilarityThreshold vectorSimilarityThreshold or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter setVectorSimilarityThreshold(java.lang.Double vectorSimilarityThreshold) { + this.vectorSimilarityThreshold = vectorSimilarityThreshold; + return this; + } + + @Override + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter set(String fieldName, Object value) { + return (GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter clone() { + return (GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigFilter) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch.java new file mode 100644 index 00000000000..792ff368b54 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch.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 for Hybrid 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 GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch extends com.google.api.client.json.GenericJson { + + /** + * Optional. Alpha value controls the weight between dense and sparse vector search results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float alpha; + + /** + * Optional. Alpha value controls the weight between dense and sparse vector search results. + * @return value or {@code null} for none + */ + public java.lang.Float getAlpha() { + return alpha; + } + + /** + * Optional. Alpha value controls the weight between dense and sparse vector search results. + * @param alpha alpha or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch setAlpha(java.lang.Float alpha) { + this.alpha = alpha; + return this; + } + + @Override + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch set(String fieldName, Object value) { + return (GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch clone() { + return (GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigHybridSearch) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking.java new file mode 100644 index 00000000000..9c2df756698 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking.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 for ranking and reranking. + * + *

This is 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 GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking extends com.google.api.client.json.GenericJson { + + /** + * Optional. Config for Rank Service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("rank_service") + private GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService rankService; + + /** + * Optional. Config for Rank Service. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService getRankService() { + return rankService; + } + + /** + * Optional. Config for Rank Service. + * @param rankService rankService or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking setRankService(GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService rankService) { + this.rankService = rankService; + return this; + } + + @Override + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking set(String fieldName, Object value) { + return (GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking clone() { + return (GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRanking) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService.java new file mode 100644 index 00000000000..51cd0c8f693 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService.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 for Rank 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 GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService extends com.google.api.client.json.GenericJson { + + /** + * Optional. The model name of the rank service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("model_name") + private java.lang.String modelName; + + /** + * Optional. The model name of the rank service. + * @return value or {@code null} for none + */ + public java.lang.String getModelName() { + return modelName; + } + + /** + * Optional. The model name of the rank service. + * @param modelName modelName or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService setModelName(java.lang.String modelName) { + this.modelName = modelName; + return this; + } + + @Override + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService set(String fieldName, Object value) { + return (GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService) super.set(fieldName, value); + } + + @Override + public GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService clone() { + return (GenaiVertexV1beta1RagStoreConfigRagRetrievalConfigRankingRankService) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ResponseFormatList.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ResponseFormatList.java index 4f71e8bf0b9..f1cc999a844 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ResponseFormatList.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ResponseFormatList.java @@ -32,7 +32,7 @@ public final class GenaiVertexV1beta1ResponseFormatList extends com.google.api.c /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("response_formats") + @com.google.api.client.util.Key private java.util.List responseFormats; static { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Retrieval.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Retrieval.java index e2df6f03d44..e5f2ad339d5 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Retrieval.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Retrieval.java @@ -29,11 +29,32 @@ @SuppressWarnings("javadoc") public final class GenaiVertexV1beta1Retrieval extends com.google.api.client.json.GenericJson { + /** + * Used to specify configuration for ExaAISearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("exa_ai_search_config") + private GenaiVertexV1beta1ExaAISearchConfig exaAiSearchConfig; + + /** + * Used to specify configuration for ParallelAISearch. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("parallel_ai_search_config") + private GenaiVertexV1beta1ParallelAISearchConfig parallelAiSearchConfig; + + /** + * Used to specify configuration for RagStore. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("rag_store_config") + private GenaiVertexV1beta1RagStoreConfig ragStoreConfig; + /** * The types of file retrieval to enable. * The value may be {@code null}. */ - @com.google.api.client.util.Key("retrieval_types") + @com.google.api.client.util.Key private java.util.List retrievalTypes; /** @@ -43,6 +64,57 @@ public final class GenaiVertexV1beta1Retrieval extends com.google.api.client.jso @com.google.api.client.util.Key("vertex_ai_search_config") private GenaiVertexV1beta1VertexAISearchConfig vertexAiSearchConfig; + /** + * Used to specify configuration for ExaAISearch. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1ExaAISearchConfig getExaAiSearchConfig() { + return exaAiSearchConfig; + } + + /** + * Used to specify configuration for ExaAISearch. + * @param exaAiSearchConfig exaAiSearchConfig or {@code null} for none + */ + public GenaiVertexV1beta1Retrieval setExaAiSearchConfig(GenaiVertexV1beta1ExaAISearchConfig exaAiSearchConfig) { + this.exaAiSearchConfig = exaAiSearchConfig; + return this; + } + + /** + * Used to specify configuration for ParallelAISearch. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1ParallelAISearchConfig getParallelAiSearchConfig() { + return parallelAiSearchConfig; + } + + /** + * Used to specify configuration for ParallelAISearch. + * @param parallelAiSearchConfig parallelAiSearchConfig or {@code null} for none + */ + public GenaiVertexV1beta1Retrieval setParallelAiSearchConfig(GenaiVertexV1beta1ParallelAISearchConfig parallelAiSearchConfig) { + this.parallelAiSearchConfig = parallelAiSearchConfig; + return this; + } + + /** + * Used to specify configuration for RagStore. + * @return value or {@code null} for none + */ + public GenaiVertexV1beta1RagStoreConfig getRagStoreConfig() { + return ragStoreConfig; + } + + /** + * Used to specify configuration for RagStore. + * @param ragStoreConfig ragStoreConfig or {@code null} for none + */ + public GenaiVertexV1beta1Retrieval setRagStoreConfig(GenaiVertexV1beta1RagStoreConfig ragStoreConfig) { + this.ragStoreConfig = ragStoreConfig; + return this; + } + /** * The types of file retrieval to enable. * @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/GenaiVertexV1beta1ReviewSnippet.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ReviewSnippet.java index 1c5734db25f..dfa09d89605 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ReviewSnippet.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ReviewSnippet.java @@ -34,7 +34,7 @@ public final class GenaiVertexV1beta1ReviewSnippet extends com.google.api.client * The ID of the review snippet. * The value may be {@code null}. */ - @com.google.api.client.util.Key("review_id") + @com.google.api.client.util.Key private java.lang.String reviewId; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Step.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Step.java index 1c46e4a3f15..0604414d108 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Step.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1Step.java @@ -54,6 +54,7 @@ public final class GenaiVertexV1beta1Step extends com.google.api.client.json.Gen private GenaiVertexV1beta1ToolResultStep toolResult; /** + * DO NOT USE -- These are for 3P JSON only * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -120,6 +121,7 @@ public GenaiVertexV1beta1Step setToolResult(GenaiVertexV1beta1ToolResultStep too } /** + * DO NOT USE -- These are for 3P JSON only * @return value or {@code null} for none */ public GenaiVertexV1beta1UserInputStep getUserInput() { @@ -127,6 +129,7 @@ public GenaiVertexV1beta1UserInputStep getUserInput() { } /** + * DO NOT USE -- These are for 3P JSON only * @param userInput userInput or {@code null} for none */ public GenaiVertexV1beta1Step setUserInput(GenaiVertexV1beta1UserInputStep userInput) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1StreamMetadata.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1StreamMetadata.java index e82c1ed8aef..0691ecb5243 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1StreamMetadata.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1StreamMetadata.java @@ -33,20 +33,20 @@ public final class GenaiVertexV1beta1StreamMetadata extends com.google.api.clien * The value may be {@code null}. */ @com.google.api.client.util.Key - private GenaiVertexV1beta1InteractionUsage usage; + private GenaiVertexV1beta1InteractionUsage totalUsage; /** * @return value or {@code null} for none */ - public GenaiVertexV1beta1InteractionUsage getUsage() { - return usage; + public GenaiVertexV1beta1InteractionUsage getTotalUsage() { + return totalUsage; } /** - * @param usage usage or {@code null} for none + * @param totalUsage totalUsage or {@code null} for none */ - public GenaiVertexV1beta1StreamMetadata setUsage(GenaiVertexV1beta1InteractionUsage usage) { - this.usage = usage; + public GenaiVertexV1beta1StreamMetadata setTotalUsage(GenaiVertexV1beta1InteractionUsage totalUsage) { + this.totalUsage = totalUsage; return this; } diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TextContentAnnotation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TextContentAnnotation.java index e7db74d85b9..ff096b5bf98 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TextContentAnnotation.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TextContentAnnotation.java @@ -33,21 +33,21 @@ public final class GenaiVertexV1beta1TextContentAnnotation extends com.google.ap * End of the attributed segment, exclusive. * The value may be {@code null}. */ - @com.google.api.client.util.Key("end_index") + @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("file_citation") + @com.google.api.client.util.Key private GenaiVertexV1beta1FileCitation fileCitation; /** * A place citation annotation. * The value may be {@code null}. */ - @com.google.api.client.util.Key("place_citation") + @com.google.api.client.util.Key private GenaiVertexV1beta1PlaceCitation placeCitation; /** @@ -55,14 +55,14 @@ public final class GenaiVertexV1beta1TextContentAnnotation extends com.google.ap * of the segment, measured in bytes. * The value may be {@code null}. */ - @com.google.api.client.util.Key("start_index") + @com.google.api.client.util.Key private java.lang.Integer startIndex; /** * A URL citation annotation. * The value may be {@code null}. */ - @com.google.api.client.util.Key("url_citation") + @com.google.api.client.util.Key private GenaiVertexV1beta1UrlCitation urlCitation; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TextResponseFormat.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TextResponseFormat.java index 7583facbea7..0672632b4f0 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TextResponseFormat.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1TextResponseFormat.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1TextResponseFormat extends com.google.api.c * The MIME type of the text output. * The value may be {@code null}. */ - @com.google.api.client.util.Key("mime_type") + @com.google.api.client.util.Key private java.lang.String mimeType; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ThoughtStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ThoughtStep.java index e1d3461110e..6945c4183c8 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ThoughtStep.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ThoughtStep.java @@ -41,7 +41,13 @@ public final class GenaiVertexV1beta1ThoughtStep extends com.google.api.client.j * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.util.List summary; + private java.util.List summary; + + static { + // hack to force ProGuard to consider GenaiVertexV1beta1Content 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(GenaiVertexV1beta1Content.class); + } /** * A signature hash for backend validation. @@ -92,7 +98,7 @@ public GenaiVertexV1beta1ThoughtStep encodeSignature(byte[] signature) { * A summary of the thought. * @return value or {@code null} for none */ - public java.util.List getSummary() { + public java.util.List getSummary() { return summary; } @@ -100,7 +106,7 @@ public java.util.List getSummary() { * A summary of the thought. * @param summary summary or {@code null} for none */ - public GenaiVertexV1beta1ThoughtStep setSummary(java.util.List summary) { + public GenaiVertexV1beta1ThoughtStep setSummary(java.util.List summary) { this.summary = summary; return this; } diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ThoughtSummaryDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ThoughtSummaryDelta.java index 68b20be4e28..cadbf6d9df0 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ThoughtSummaryDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ThoughtSummaryDelta.java @@ -34,13 +34,13 @@ public final class GenaiVertexV1beta1ThoughtSummaryDelta extends com.google.api. * The value may be {@code null}. */ @com.google.api.client.util.Key - private GenaiVertexV1beta1ThoughtSummaryContent content; + private GenaiVertexV1beta1Content content; /** * A new summary item to be added to the thought. * @return value or {@code null} for none */ - public GenaiVertexV1beta1ThoughtSummaryContent getContent() { + public GenaiVertexV1beta1Content getContent() { return content; } @@ -48,7 +48,7 @@ public GenaiVertexV1beta1ThoughtSummaryContent getContent() { * A new summary item to be added to the thought. * @param content content or {@code null} for none */ - public GenaiVertexV1beta1ThoughtSummaryDelta setContent(GenaiVertexV1beta1ThoughtSummaryContent content) { + public GenaiVertexV1beta1ThoughtSummaryDelta setContent(GenaiVertexV1beta1Content content) { this.content = content; return this; } diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolChoiceConfig.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolChoiceConfig.java index 8248e8dd97c..62fcb4e589d 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolChoiceConfig.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolChoiceConfig.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1ToolChoiceConfig extends com.google.api.cli * The allowed tools. * The value may be {@code null}. */ - @com.google.api.client.util.Key("allowed_tools") + @com.google.api.client.util.Key private GenaiVertexV1beta1AllowedTools allowedTools; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolResultContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolResultContent.java index dd9f1ffd5c6..a2706e462f4 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolResultContent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolResultContent.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1ToolResultContent extends com.google.api.cl * Required. ID to match the ID from the function call block. * The value may be {@code null}. */ - @com.google.api.client.util.Key("call_id") + @com.google.api.client.util.Key private java.lang.String callId; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolResultDelta.java index 5a58aecc09a..d7e0ada55c4 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolResultDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolResultDelta.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1ToolResultDelta extends com.google.api.clie * Required. ID to match the ID from the function call block. * The value may be {@code null}. */ - @com.google.api.client.util.Key("call_id") + @com.google.api.client.util.Key private java.lang.String callId; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolResultStep.java index bf26ad7b281..b8f43cb1da0 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolResultStep.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1ToolResultStep.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1ToolResultStep extends com.google.api.clien * Required. ID to match the ID from the function call block. * The value may be {@code null}. */ - @com.google.api.client.util.Key("call_id") + @com.google.api.client.util.Key private java.lang.String callId; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UrlContextResultContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UrlContextResultContent.java index 5b881c2d250..4a65ea004b5 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UrlContextResultContent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UrlContextResultContent.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1UrlContextResultContent extends com.google. * Whether the URL context resulted in an error. * The value may be {@code null}. */ - @com.google.api.client.util.Key("is_error") + @com.google.api.client.util.Key private java.lang.Boolean isError; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UrlContextResultDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UrlContextResultDelta.java index 9ca4f5ce5da..1a95f752ac0 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UrlContextResultDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UrlContextResultDelta.java @@ -32,7 +32,7 @@ public final class GenaiVertexV1beta1UrlContextResultDelta extends com.google.ap /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("is_error") + @com.google.api.client.util.Key private java.lang.Boolean isError; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UrlContextResultStep.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UrlContextResultStep.java index 03f12672623..4ff6f5c18cf 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UrlContextResultStep.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1UrlContextResultStep.java @@ -33,7 +33,7 @@ public final class GenaiVertexV1beta1UrlContextResultStep extends com.google.api * Whether the URL context resulted in an error. * The value may be {@code null}. */ - @com.google.api.client.util.Key("is_error") + @com.google.api.client.util.Key private java.lang.Boolean isError; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1VideoContent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1VideoContent.java index aadcfc31124..3c4d7014593 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1VideoContent.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1VideoContent.java @@ -40,7 +40,7 @@ public final class GenaiVertexV1beta1VideoContent extends com.google.api.client. * The mime type of the video. * The value may be {@code null}. */ - @com.google.api.client.util.Key("mime_type") + @com.google.api.client.util.Key private java.lang.String mimeType; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1VideoDelta.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1VideoDelta.java index a3f8a7e0428..37a0a5b96b3 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1VideoDelta.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GenaiVertexV1beta1VideoDelta.java @@ -38,7 +38,7 @@ public final class GenaiVertexV1beta1VideoDelta extends com.google.api.client.js /** * The value may be {@code null}. */ - @com.google.api.client.util.Key("mime_type") + @com.google.api.client.util.Key private java.lang.String mimeType; /** diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.java new file mode 100644 index 00000000000..7e76768f58f --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.java @@ -0,0 +1,177 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * 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; + +/** + * Resource representing an Agent Anomaly Detection Scope. + * + *

This is 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 GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope extends com.google.api.client.json.GenericJson { + + /** + * Optional. When true, agents created in Agent Engine that share log and observability buckets + * with this scope are automatically enrolled as MonitoredAgents. When false, agents must be + * enrolled explicitly via MonitoredAgent operations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean autoEnroll; + + /** + * Optional. User provided display name of the AgentAnomalyDetectionScope. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. Customer owned Cloud Logging bucket resource names attached to this scope. Format: + * `projects/{project}/locations/{location}/buckets/{bucket}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List logBuckets; + + /** + * Identifier. The resource name of the AgentAnomalyDetectionScope. Format: `projects/{project}/lo + * cations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. Customer owned Cloud Observability bucket resource names attached to this scope. + * Format: `projects/{project}/locations/{location}/observationBuckets/{observation_bucket}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List observabilityBuckets; + + /** + * Optional. When true, agents created in Agent Engine that share log and observability buckets + * with this scope are automatically enrolled as MonitoredAgents. When false, agents must be + * enrolled explicitly via MonitoredAgent operations. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAutoEnroll() { + return autoEnroll; + } + + /** + * Optional. When true, agents created in Agent Engine that share log and observability buckets + * with this scope are automatically enrolled as MonitoredAgents. When false, agents must be + * enrolled explicitly via MonitoredAgent operations. + * @param autoEnroll autoEnroll or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope setAutoEnroll(java.lang.Boolean autoEnroll) { + this.autoEnroll = autoEnroll; + return this; + } + + /** + * Optional. User provided display name of the AgentAnomalyDetectionScope. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. User provided display name of the AgentAnomalyDetectionScope. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. Customer owned Cloud Logging bucket resource names attached to this scope. Format: + * `projects/{project}/locations/{location}/buckets/{bucket}`. + * @return value or {@code null} for none + */ + public java.util.List getLogBuckets() { + return logBuckets; + } + + /** + * Required. Customer owned Cloud Logging bucket resource names attached to this scope. Format: + * `projects/{project}/locations/{location}/buckets/{bucket}`. + * @param logBuckets logBuckets or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope setLogBuckets(java.util.List logBuckets) { + this.logBuckets = logBuckets; + return this; + } + + /** + * Identifier. The resource name of the AgentAnomalyDetectionScope. Format: `projects/{project}/lo + * cations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the AgentAnomalyDetectionScope. Format: `projects/{project}/lo + * cations/{location}/agentAnomalyDetectionScopes/{agent_anomaly_detection_scope}` + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. Customer owned Cloud Observability bucket resource names attached to this scope. + * Format: `projects/{project}/locations/{location}/observationBuckets/{observation_bucket}`. + * @return value or {@code null} for none + */ + public java.util.List getObservabilityBuckets() { + return observabilityBuckets; + } + + /** + * Required. Customer owned Cloud Observability bucket resource names attached to this scope. + * Format: `projects/{project}/locations/{location}/observationBuckets/{observation_bucket}`. + * @param observabilityBuckets observabilityBuckets or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope setObservabilityBuckets(java.util.List observabilityBuckets) { + this.observabilityBuckets = observabilityBuckets; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope clone() { + return (GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentResource.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentResource.java new file mode 100644 index 00000000000..e6fbb98fd92 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AgentResource.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; + +/** + * Defines the identity of an agent being monitored. + * + *

This is 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 GoogleCloudAiplatformV1beta1AgentResource extends com.google.api.client.json.GenericJson { + + /** + * Required. The full resource name of the agent to monitor. For REASONING_ENGINE, format: + * `projects/{project}/locations/{location}/reasoningEngines/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agent; + + /** + * Required. The type of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentType; + + /** + * Output only. The GCP location (region) of the agent resource (e.g. `us-central1`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * Required. The full resource name of the agent to monitor. For REASONING_ENGINE, format: + * `projects/{project}/locations/{location}/reasoningEngines/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getAgent() { + return agent; + } + + /** + * Required. The full resource name of the agent to monitor. For REASONING_ENGINE, format: + * `projects/{project}/locations/{location}/reasoningEngines/{agent}` + * @param agent agent or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentResource setAgent(java.lang.String agent) { + this.agent = agent; + return this; + } + + /** + * Required. The type of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getAgentType() { + return agentType; + } + + /** + * Required. The type of the agent. + * @param agentType agentType or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentResource setAgentType(java.lang.String agentType) { + this.agentType = agentType; + return this; + } + + /** + * Output only. The GCP location (region) of the agent resource (e.g. `us-central1`). + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * Output only. The GCP location (region) of the agent resource (e.g. `us-central1`). + * @param location location or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentResource setLocation(java.lang.String location) { + this.location = location; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AgentResource set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AgentResource) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AgentResource clone() { + return (GoogleCloudAiplatformV1beta1AgentResource) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse.java new file mode 100644 index 00000000000..17410de4466 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse.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; + +/** + * Response containing aggregated AnalyzedSession statistics, grouped by MonitoredAgent. + * + *

This is 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 GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse extends com.google.api.client.json.GenericJson { + + /** + * Aggregated statistics — exactly one entry per unique MonitoredAgent matched by the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List agentAggregates; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Overall summary across every MonitoredAgent included in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary summary; + + /** + * Aggregated statistics — exactly one entry per unique MonitoredAgent matched by the request. + * @return value or {@code null} for none + */ + public java.util.List getAgentAggregates() { + return agentAggregates; + } + + /** + * Aggregated statistics — exactly one entry per unique MonitoredAgent matched by the request. + * @param agentAggregates agentAggregates or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse setAgentAggregates(java.util.List agentAggregates) { + this.agentAggregates = agentAggregates; + return this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Overall summary across every MonitoredAgent included in the response. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary getSummary() { + return summary; + } + + /** + * Overall summary across every MonitoredAgent included in the response. + * @param summary summary or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse setSummary(GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary summary) { + this.summary = summary; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse clone() { + return (GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate.java new file mode 100644 index 00000000000..0c09b833deb --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate.java @@ -0,0 +1,255 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * 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; + +/** + * Aggregated statistics for one MonitoredAgent. + * + *

This is 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 GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate extends com.google.api.client.json.GenericJson { + + /** + * Output only. The human-readable display name of the MonitoredAgent, denormalized from + * `monitored_agents.display_name`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentDisplayName; + + /** + * The agent resource name. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentResourceName; + + /** + * Output only. The enablement state of the MonitoredAgent (e.g. ACTIVE, DISABLED, ENABLING, + * INELIGIBLE, NEEDS_ACTION), denormalized from `monitored_agents.state`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentStatus; + + /** + * The number of anomalous (SESSION_STATE_FLAGGED) sessions for this agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer anomalousSessionsCount; + + /** + * The latest session update_time observed for this agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String latestSessionTime; + + /** + * The MonitoredAgent resource name. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String monitoredAgent; + + /** + * Map of severity level (string representation of Severity) to detector summaries aggregated + * across all sessions for this agent. The key is the string representation of Severity enum: + * "SEVERITY_UNSPECIFIED", "SEVERITY_CRITICAL", "SEVERITY_HIGH", "SEVERITY_MEDIUM", + * "SEVERITY_LOW". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map severities; + + /** + * The number of analyzed sessions for this agent matched by the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalSessionsCount; + + /** + * Output only. The human-readable display name of the MonitoredAgent, denormalized from + * `monitored_agents.display_name`. + * @return value or {@code null} for none + */ + public java.lang.String getAgentDisplayName() { + return agentDisplayName; + } + + /** + * Output only. The human-readable display name of the MonitoredAgent, denormalized from + * `monitored_agents.display_name`. + * @param agentDisplayName agentDisplayName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate setAgentDisplayName(java.lang.String agentDisplayName) { + this.agentDisplayName = agentDisplayName; + return this; + } + + /** + * The agent resource name. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getAgentResourceName() { + return agentResourceName; + } + + /** + * The agent resource name. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{agent}` + * @param agentResourceName agentResourceName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate setAgentResourceName(java.lang.String agentResourceName) { + this.agentResourceName = agentResourceName; + return this; + } + + /** + * Output only. The enablement state of the MonitoredAgent (e.g. ACTIVE, DISABLED, ENABLING, + * INELIGIBLE, NEEDS_ACTION), denormalized from `monitored_agents.state`. + * @return value or {@code null} for none + */ + public java.lang.String getAgentStatus() { + return agentStatus; + } + + /** + * Output only. The enablement state of the MonitoredAgent (e.g. ACTIVE, DISABLED, ENABLING, + * INELIGIBLE, NEEDS_ACTION), denormalized from `monitored_agents.state`. + * @param agentStatus agentStatus or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate setAgentStatus(java.lang.String agentStatus) { + this.agentStatus = agentStatus; + return this; + } + + /** + * The number of anomalous (SESSION_STATE_FLAGGED) sessions for this agent. + * @return value or {@code null} for none + */ + public java.lang.Integer getAnomalousSessionsCount() { + return anomalousSessionsCount; + } + + /** + * The number of anomalous (SESSION_STATE_FLAGGED) sessions for this agent. + * @param anomalousSessionsCount anomalousSessionsCount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate setAnomalousSessionsCount(java.lang.Integer anomalousSessionsCount) { + this.anomalousSessionsCount = anomalousSessionsCount; + return this; + } + + /** + * The latest session update_time observed for this agent. + * @return value or {@code null} for none + */ + public String getLatestSessionTime() { + return latestSessionTime; + } + + /** + * The latest session update_time observed for this agent. + * @param latestSessionTime latestSessionTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate setLatestSessionTime(String latestSessionTime) { + this.latestSessionTime = latestSessionTime; + return this; + } + + /** + * The MonitoredAgent resource name. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + * @return value or {@code null} for none + */ + public java.lang.String getMonitoredAgent() { + return monitoredAgent; + } + + /** + * The MonitoredAgent resource name. Format: + * `projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}` + * @param monitoredAgent monitoredAgent or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate setMonitoredAgent(java.lang.String monitoredAgent) { + this.monitoredAgent = monitoredAgent; + return this; + } + + /** + * Map of severity level (string representation of Severity) to detector summaries aggregated + * across all sessions for this agent. The key is the string representation of Severity enum: + * "SEVERITY_UNSPECIFIED", "SEVERITY_CRITICAL", "SEVERITY_HIGH", "SEVERITY_MEDIUM", + * "SEVERITY_LOW". + * @return value or {@code null} for none + */ + public java.util.Map getSeverities() { + return severities; + } + + /** + * Map of severity level (string representation of Severity) to detector summaries aggregated + * across all sessions for this agent. The key is the string representation of Severity enum: + * "SEVERITY_UNSPECIFIED", "SEVERITY_CRITICAL", "SEVERITY_HIGH", "SEVERITY_MEDIUM", + * "SEVERITY_LOW". + * @param severities severities or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate setSeverities(java.util.Map severities) { + this.severities = severities; + return this; + } + + /** + * The number of analyzed sessions for this agent matched by the request. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalSessionsCount() { + return totalSessionsCount; + } + + /** + * The number of analyzed sessions for this agent matched by the request. + * @param totalSessionsCount totalSessionsCount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate setTotalSessionsCount(java.lang.Integer totalSessionsCount) { + this.totalSessionsCount = totalSessionsCount; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate clone() { + return (GoogleCloudAiplatformV1beta1AggregateAnalyzedSessionsResponseAgentAggregate) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedInvocation.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedInvocation.java new file mode 100644 index 00000000000..ab4ac978334 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedInvocation.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; + +/** + * An analyzed invocation for monitored agent's session. + * + *

This is 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 GoogleCloudAiplatformV1beta1AnalyzedInvocation extends com.google.api.client.json.GenericJson { + + /** + * Output only. The assessment of the invocation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1Assessment assessment; + + /** + * Output only. The invocation ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String invocationId; + + /** + * Output only. The state of the invocation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String invocationState; + + /** + * Identifier. The resource name of the AnalyzedInvocation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The assessment of the invocation. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Assessment getAssessment() { + return assessment; + } + + /** + * Output only. The assessment of the invocation. + * @param assessment assessment or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedInvocation setAssessment(GoogleCloudAiplatformV1beta1Assessment assessment) { + this.assessment = assessment; + return this; + } + + /** + * Output only. The invocation ID. + * @return value or {@code null} for none + */ + public java.lang.String getInvocationId() { + return invocationId; + } + + /** + * Output only. The invocation ID. + * @param invocationId invocationId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedInvocation setInvocationId(java.lang.String invocationId) { + this.invocationId = invocationId; + return this; + } + + /** + * Output only. The state of the invocation. + * @return value or {@code null} for none + */ + public java.lang.String getInvocationState() { + return invocationState; + } + + /** + * Output only. The state of the invocation. + * @param invocationState invocationState or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedInvocation setInvocationState(java.lang.String invocationState) { + this.invocationState = invocationState; + return this; + } + + /** + * Identifier. The resource name of the AnalyzedInvocation. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the AnalyzedInvocation. + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedInvocation setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AnalyzedInvocation set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AnalyzedInvocation) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AnalyzedInvocation clone() { + return (GoogleCloudAiplatformV1beta1AnalyzedInvocation) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSession.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSession.java new file mode 100644 index 00000000000..e4f15ab1330 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSession.java @@ -0,0 +1,333 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * 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 analyzed session for a monitored 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 GoogleCloudAiplatformV1beta1AnalyzedSession extends com.google.api.client.json.GenericJson { + + /** + * Output only. The human-readable display name of the MonitoredAgent that owns this session, + * denormalized from `monitored_agents.display_name` so the UI can render an agent name in the + * per-session feed without an extra `getMonitoredAgent` round-trip. May be empty when the + * session's agent_id is not enrolled as a MonitoredAgent (i.e. the JOIN missed); the + * `agent_resource_name` URN is always present and can be used as a fallback identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentDisplayName; + + /** + * Output only. The agent resource name. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentResourceName; + + /** + * Output only. The current enablement state of the MonitoredAgent that owns this session (e.g. + * ACTIVE, DISABLED, ENABLING, INELIGIBLE, NEEDS_ACTION), denormalized from + * `monitored_agents.state`. Defaults to ENABLEMENT_STATE_UNSPECIFIED when the agent is not + * enrolled (the JOIN missed) or its state column is empty / unknown. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentState; + + /** + * Output only. Overall security assessment. Populated only in FULL view. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1Assessment assessment; + + /** + * Output only. The creation time of the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The latest analyzed time of the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String latestAnalyzedTime; + + /** + * Identifier. The resource name of the AnalyzedSession. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The session ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sessionId; + + /** + * Output only. The state of the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sessionState; + + /** + * Output only. Map of severity counts for listing analyzed sessions. The key is the string + * representation of Severity. Populated in BASIC view only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map severities; + + /** + * Output only. The user ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** + * Output only. The human-readable display name of the MonitoredAgent that owns this session, + * denormalized from `monitored_agents.display_name` so the UI can render an agent name in the + * per-session feed without an extra `getMonitoredAgent` round-trip. May be empty when the + * session's agent_id is not enrolled as a MonitoredAgent (i.e. the JOIN missed); the + * `agent_resource_name` URN is always present and can be used as a fallback identifier. + * @return value or {@code null} for none + */ + public java.lang.String getAgentDisplayName() { + return agentDisplayName; + } + + /** + * Output only. The human-readable display name of the MonitoredAgent that owns this session, + * denormalized from `monitored_agents.display_name` so the UI can render an agent name in the + * per-session feed without an extra `getMonitoredAgent` round-trip. May be empty when the + * session's agent_id is not enrolled as a MonitoredAgent (i.e. the JOIN missed); the + * `agent_resource_name` URN is always present and can be used as a fallback identifier. + * @param agentDisplayName agentDisplayName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSession setAgentDisplayName(java.lang.String agentDisplayName) { + this.agentDisplayName = agentDisplayName; + return this; + } + + /** + * Output only. The agent resource name. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getAgentResourceName() { + return agentResourceName; + } + + /** + * Output only. The agent resource name. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{agent}` + * @param agentResourceName agentResourceName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSession setAgentResourceName(java.lang.String agentResourceName) { + this.agentResourceName = agentResourceName; + return this; + } + + /** + * Output only. The current enablement state of the MonitoredAgent that owns this session (e.g. + * ACTIVE, DISABLED, ENABLING, INELIGIBLE, NEEDS_ACTION), denormalized from + * `monitored_agents.state`. Defaults to ENABLEMENT_STATE_UNSPECIFIED when the agent is not + * enrolled (the JOIN missed) or its state column is empty / unknown. + * @return value or {@code null} for none + */ + public java.lang.String getAgentState() { + return agentState; + } + + /** + * Output only. The current enablement state of the MonitoredAgent that owns this session (e.g. + * ACTIVE, DISABLED, ENABLING, INELIGIBLE, NEEDS_ACTION), denormalized from + * `monitored_agents.state`. Defaults to ENABLEMENT_STATE_UNSPECIFIED when the agent is not + * enrolled (the JOIN missed) or its state column is empty / unknown. + * @param agentState agentState or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSession setAgentState(java.lang.String agentState) { + this.agentState = agentState; + return this; + } + + /** + * Output only. Overall security assessment. Populated only in FULL view. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Assessment getAssessment() { + return assessment; + } + + /** + * Output only. Overall security assessment. Populated only in FULL view. + * @param assessment assessment or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSession setAssessment(GoogleCloudAiplatformV1beta1Assessment assessment) { + this.assessment = assessment; + return this; + } + + /** + * Output only. The creation time of the session. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The creation time of the session. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSession setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The latest analyzed time of the session. + * @return value or {@code null} for none + */ + public String getLatestAnalyzedTime() { + return latestAnalyzedTime; + } + + /** + * Output only. The latest analyzed time of the session. + * @param latestAnalyzedTime latestAnalyzedTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSession setLatestAnalyzedTime(String latestAnalyzedTime) { + this.latestAnalyzedTime = latestAnalyzedTime; + return this; + } + + /** + * Identifier. The resource name of the AnalyzedSession. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the AnalyzedSession. + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSession setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The session ID. + * @return value or {@code null} for none + */ + public java.lang.String getSessionId() { + return sessionId; + } + + /** + * Output only. The session ID. + * @param sessionId sessionId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSession setSessionId(java.lang.String sessionId) { + this.sessionId = sessionId; + return this; + } + + /** + * Output only. The state of the session. + * @return value or {@code null} for none + */ + public java.lang.String getSessionState() { + return sessionState; + } + + /** + * Output only. The state of the session. + * @param sessionState sessionState or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSession setSessionState(java.lang.String sessionState) { + this.sessionState = sessionState; + return this; + } + + /** + * Output only. Map of severity counts for listing analyzed sessions. The key is the string + * representation of Severity. Populated in BASIC view only. + * @return value or {@code null} for none + */ + public java.util.Map getSeverities() { + return severities; + } + + /** + * Output only. Map of severity counts for listing analyzed sessions. The key is the string + * representation of Severity. Populated in BASIC view only. + * @param severities severities or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSession setSeverities(java.util.Map severities) { + this.severities = severities; + return this; + } + + /** + * Output only. The user ID. + * @return value or {@code null} for none + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Output only. The user ID. + * @param userId userId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSession setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AnalyzedSession set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AnalyzedSession) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AnalyzedSession clone() { + return (GoogleCloudAiplatformV1beta1AnalyzedSession) 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 new file mode 100644 index 00000000000..cdc3cb065c0 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary.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; + +/** + * Breakdown of anomalies by severity. + * + *

This is 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 GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary extends com.google.api.client.json.GenericJson { + + /** + * The list of detectors summaries for this severity level. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List detectorIds; + + /** + * Output only. The number of distinct sessions whose MAX severity equals `severity_level`. Each + * session is counted in exactly one bucket -- the highest severity that any of its detectors + * reached -- so summing `sessions_count` across all populated entries in a `severities` map + * equals the total anomalous session count for that scope (per-agent or view summary). Distinct + * from `detector_ids.size`: a session whose detectors fire at LOW and CRITICAL contributes one + * entry to `sessions_count` (in CRITICAL only) but contributes detector IDs to BOTH the LOW and + * CRITICAL buckets' `detector_ids` lists. For AAD audit landing-page scorecards, prefer + * `sessions_count` -- "Critical anomalies" means sessions ranked critical, not distinct critical- + * firing detectors. On AggregateAnalyzedSessionsResponse.summary, this is a TRUE GLOBAL count + * across all anomalous active agents in scope (not page-scoped). On per-agent entries within + * `agent_aggregates`, it's per-agent. On ListAnalyzedSessionsResponse, it is currently page- + * scoped to match the existing summary semantics on that API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sessionsCount; + + /** + * The severity level of the detector. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String severityLevel; + + /** + * The list of detectors summaries for this severity level. + * @return value or {@code null} for none + */ + public java.util.List getDetectorIds() { + return detectorIds; + } + + /** + * The list of detectors summaries for this severity level. + * @param detectorIds detectorIds or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary setDetectorIds(java.util.List detectorIds) { + this.detectorIds = detectorIds; + return this; + } + + /** + * Output only. The number of distinct sessions whose MAX severity equals `severity_level`. Each + * session is counted in exactly one bucket -- the highest severity that any of its detectors + * reached -- so summing `sessions_count` across all populated entries in a `severities` map + * equals the total anomalous session count for that scope (per-agent or view summary). Distinct + * from `detector_ids.size`: a session whose detectors fire at LOW and CRITICAL contributes one + * entry to `sessions_count` (in CRITICAL only) but contributes detector IDs to BOTH the LOW and + * CRITICAL buckets' `detector_ids` lists. For AAD audit landing-page scorecards, prefer + * `sessions_count` -- "Critical anomalies" means sessions ranked critical, not distinct critical- + * firing detectors. On AggregateAnalyzedSessionsResponse.summary, this is a TRUE GLOBAL count + * across all anomalous active agents in scope (not page-scoped). On per-agent entries within + * `agent_aggregates`, it's per-agent. On ListAnalyzedSessionsResponse, it is currently page- + * scoped to match the existing summary semantics on that API. + * @return value or {@code null} for none + */ + public java.lang.Integer getSessionsCount() { + return sessionsCount; + } + + /** + * Output only. The number of distinct sessions whose MAX severity equals `severity_level`. Each + * session is counted in exactly one bucket -- the highest severity that any of its detectors + * reached -- so summing `sessions_count` across all populated entries in a `severities` map + * equals the total anomalous session count for that scope (per-agent or view summary). Distinct + * from `detector_ids.size`: a session whose detectors fire at LOW and CRITICAL contributes one + * entry to `sessions_count` (in CRITICAL only) but contributes detector IDs to BOTH the LOW and + * CRITICAL buckets' `detector_ids` lists. For AAD audit landing-page scorecards, prefer + * `sessions_count` -- "Critical anomalies" means sessions ranked critical, not distinct critical- + * firing detectors. On AggregateAnalyzedSessionsResponse.summary, this is a TRUE GLOBAL count + * across all anomalous active agents in scope (not page-scoped). On per-agent entries within + * `agent_aggregates`, it's per-agent. On ListAnalyzedSessionsResponse, it is currently page- + * scoped to match the existing summary semantics on that API. + * @param sessionsCount sessionsCount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary setSessionsCount(java.lang.Integer sessionsCount) { + this.sessionsCount = sessionsCount; + return this; + } + + /** + * The severity level of the detector. + * @return value or {@code null} for none + */ + public java.lang.String getSeverityLevel() { + return severityLevel; + } + + /** + * The severity level of the detector. + * @param severityLevel severityLevel or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary setSeverityLevel(java.lang.String severityLevel) { + this.severityLevel = severityLevel; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary clone() { + return (GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Assessment.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Assessment.java new file mode 100644 index 00000000000..756e3cbbe04 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1Assessment.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; + +/** + * Detailed assessment for an analyzed session. + * + *

This is 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 GoogleCloudAiplatformV1beta1Assessment extends com.google.api.client.json.GenericJson { + + /** + * The list of detector findings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List detectorFindings; + + /** + * The list of detector findings. + * @return value or {@code null} for none + */ + public java.util.List getDetectorFindings() { + return detectorFindings; + } + + /** + * The list of detector findings. + * @param detectorFindings detectorFindings or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1Assessment setDetectorFindings(java.util.List detectorFindings) { + this.detectorFindings = detectorFindings; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1Assessment set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1Assessment) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1Assessment clone() { + return (GoogleCloudAiplatformV1beta1Assessment) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AssessmentDetectorFinding.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AssessmentDetectorFinding.java new file mode 100644 index 00000000000..afa419c6729 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1AssessmentDetectorFinding.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; + +/** + * The details of a detector's assessment within an analyzed session. + * + *

This is 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 GoogleCloudAiplatformV1beta1AssessmentDetectorFinding extends com.google.api.client.json.GenericJson { + + /** + * The detector ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String detectorId; + + /** + * The detector display name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The explanation of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * The probability that this finding is an anomaly, in the range [0.0, 1.0]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double probability; + + /** + * The list of recommendations for this detector finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List recommendations; + + /** + * The severity of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String severity; + + /** + * The detector ID. + * @return value or {@code null} for none + */ + public java.lang.String getDetectorId() { + return detectorId; + } + + /** + * The detector ID. + * @param detectorId detectorId or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AssessmentDetectorFinding setDetectorId(java.lang.String detectorId) { + this.detectorId = detectorId; + return this; + } + + /** + * The detector display name. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The detector display name. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AssessmentDetectorFinding setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The explanation of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * The explanation of the finding. + * @param explanation explanation or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AssessmentDetectorFinding setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * The probability that this finding is an anomaly, in the range [0.0, 1.0]. + * @return value or {@code null} for none + */ + public java.lang.Double getProbability() { + return probability; + } + + /** + * The probability that this finding is an anomaly, in the range [0.0, 1.0]. + * @param probability probability or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AssessmentDetectorFinding setProbability(java.lang.Double probability) { + this.probability = probability; + return this; + } + + /** + * The list of recommendations for this detector finding. + * @return value or {@code null} for none + */ + public java.util.List getRecommendations() { + return recommendations; + } + + /** + * The list of recommendations for this detector finding. + * @param recommendations recommendations or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AssessmentDetectorFinding setRecommendations(java.util.List recommendations) { + this.recommendations = recommendations; + return this; + } + + /** + * The severity of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getSeverity() { + return severity; + } + + /** + * The severity of the finding. + * @param severity severity or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AssessmentDetectorFinding setSeverity(java.lang.String severity) { + this.severity = severity; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1AssessmentDetectorFinding set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1AssessmentDetectorFinding) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1AssessmentDetectorFinding clone() { + return (GoogleCloudAiplatformV1beta1AssessmentDetectorFinding) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest.java new file mode 100644 index 00000000000..0c1ac9f6c94 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest.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.DisableMonitoredAgent. + * + *

This is 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 GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest clone() { + return (GoogleCloudAiplatformV1beta1DisableMonitoredAgentRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest.java new file mode 100644 index 00000000000..3866e1d4bc7 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest.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.EnableMonitoredAgent. + * + *

This is 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 GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest clone() { + return (GoogleCloudAiplatformV1beta1EnableMonitoredAgentRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMaps.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMaps.java index 3ddfe5eed94..902cb8b2f97 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMaps.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GoogleMaps.java @@ -30,14 +30,18 @@ public final class GoogleCloudAiplatformV1beta1GoogleMaps extends com.google.api.client.json.GenericJson { /** - * Optional. If true, include the widget context token in the response. + * Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps + * is being deprecated; this field is planned for removal and no longer has any effect once + * removed. If true, include the widget context token in the response. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean enableWidget; /** - * Optional. If true, include the widget context token in the response. + * Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps + * is being deprecated; this field is planned for removal and no longer has any effect once + * removed. If true, include the widget context token in the response. * @return value or {@code null} for none */ public java.lang.Boolean getEnableWidget() { @@ -45,7 +49,9 @@ public java.lang.Boolean getEnableWidget() { } /** - * Optional. If true, include the widget context token in the response. + * Optional. Deprecated: The Google Maps contextual widget behavior in Grounding with Google Maps + * is being deprecated; this field is planned for removal and no longer has any effect once + * removed. If true, include the widget context token in the response. * @param enableWidget enableWidget or {@code null} for none */ public GoogleCloudAiplatformV1beta1GoogleMaps setEnableWidget(java.lang.Boolean enableWidget) { diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GroundingMetadata.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GroundingMetadata.java index 0caf6233bc0..d85d9c4e157 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GroundingMetadata.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1GroundingMetadata.java @@ -32,7 +32,9 @@ public final class GoogleCloudAiplatformV1beta1GroundingMetadata extends com.google.api.client.json.GenericJson { /** - * Optional. Output only. A token that can be used to render a Google Maps widget with the + * Optional. Output only. Deprecated: The Google Maps contextual widget behavior in Grounding with + * Google Maps is being deprecated; this field is planned for removal and will no longer be + * populated once removed. A token that can be used to render a Google Maps widget with the * contextual data. This field is populated only when the grounding source is Google Maps. * The value may be {@code null}. */ @@ -110,7 +112,9 @@ public final class GoogleCloudAiplatformV1beta1GroundingMetadata extends com.goo private java.util.List webSearchQueries; /** - * Optional. Output only. A token that can be used to render a Google Maps widget with the + * Optional. Output only. Deprecated: The Google Maps contextual widget behavior in Grounding with + * Google Maps is being deprecated; this field is planned for removal and will no longer be + * populated once removed. A token that can be used to render a Google Maps widget with the * contextual data. This field is populated only when the grounding source is Google Maps. * @return value or {@code null} for none */ @@ -119,7 +123,9 @@ public java.lang.String getGoogleMapsWidgetContextToken() { } /** - * Optional. Output only. A token that can be used to render a Google Maps widget with the + * Optional. Output only. Deprecated: The Google Maps contextual widget behavior in Grounding with + * Google Maps is being deprecated; this field is planned for removal and will no longer be + * populated once removed. A token that can be used to render a Google Maps widget with the * contextual data. This field is populated only when the grounding source is Google Maps. * @param googleMapsWidgetContextToken googleMapsWidgetContextToken or {@code null} for none */ From ae46f2bd9ca2d92930084c7a61cba4893aa0f059 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 14 Jun 2026 18:35:52 -0700 Subject: [PATCH 2/2] chore: regenerate aiplatform client --- ...stAgentAnomalyDetectionScopesResponse.java | 99 +++++++ ...1beta1ListAnalyzedInvocationsResponse.java | 96 +++++++ ...rmV1beta1ListAnalyzedSessionsResponse.java | 126 +++++++++ ...stAnalyzedSessionsResponseViewSummary.java | 168 +++++++++++ ...ormV1beta1ListMonitoredAgentsResponse.java | 123 ++++++++ ...eCloudAiplatformV1beta1MonitoredAgent.java | 264 ++++++++++++++++++ ...CloudAiplatformV1beta1ToolComputerUse.java | 24 ++ .../v1beta1/2.0.0/pom.xml | 4 +- .../v1beta1/README.md | 4 +- 9 files changed, 904 insertions(+), 4 deletions(-) create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAgentAnomalyDetectionScopesResponse.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedInvocationsResponse.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse.java create mode 100644 clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1MonitoredAgent.java diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAgentAnomalyDetectionScopesResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAgentAnomalyDetectionScopesResponse.java new file mode 100644 index 00000000000..47f9e227f84 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAgentAnomalyDetectionScopesResponse.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; + +/** + * Response message for AgentAnomalyDetectionService.ListAgentAnomalyDetectionScopes. + * + *

This is 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 GoogleCloudAiplatformV1beta1ListAgentAnomalyDetectionScopesResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of AgentAnomalyDetectionScopes that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List agentAnomalyDetectionScopes; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope 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(GoogleCloudAiplatformV1beta1AgentAnomalyDetectionScope.class); + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of AgentAnomalyDetectionScopes that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getAgentAnomalyDetectionScopes() { + return agentAnomalyDetectionScopes; + } + + /** + * A list of AgentAnomalyDetectionScopes that matches the specified filter in the request. + * @param agentAnomalyDetectionScopes agentAnomalyDetectionScopes or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListAgentAnomalyDetectionScopesResponse setAgentAnomalyDetectionScopes(java.util.List agentAnomalyDetectionScopes) { + this.agentAnomalyDetectionScopes = agentAnomalyDetectionScopes; + return this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListAgentAnomalyDetectionScopesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListAgentAnomalyDetectionScopesResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListAgentAnomalyDetectionScopesResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListAgentAnomalyDetectionScopesResponse clone() { + return (GoogleCloudAiplatformV1beta1ListAgentAnomalyDetectionScopesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedInvocationsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedInvocationsResponse.java new file mode 100644 index 00000000000..edf7f764484 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedInvocationsResponse.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 to list analyzed invocations. + * + *

This is 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 GoogleCloudAiplatformV1beta1ListAnalyzedInvocationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of analyzed invocations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List analyzedInvocations; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1AnalyzedInvocation 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(GoogleCloudAiplatformV1beta1AnalyzedInvocation.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 analyzed invocations. + * @return value or {@code null} for none + */ + public java.util.List getAnalyzedInvocations() { + return analyzedInvocations; + } + + /** + * The list of analyzed invocations. + * @param analyzedInvocations analyzedInvocations or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListAnalyzedInvocationsResponse setAnalyzedInvocations(java.util.List analyzedInvocations) { + this.analyzedInvocations = analyzedInvocations; + 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 GoogleCloudAiplatformV1beta1ListAnalyzedInvocationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListAnalyzedInvocationsResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListAnalyzedInvocationsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListAnalyzedInvocationsResponse clone() { + return (GoogleCloudAiplatformV1beta1ListAnalyzedInvocationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse.java new file mode 100644 index 00000000000..32f45ba56fe --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse.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; + +/** + * Response to list analyzed sessions. + * + *

This is 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 GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of analyzed sessions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List analyzedSessions; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1AnalyzedSession 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(GoogleCloudAiplatformV1beta1AnalyzedSession.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; + + /** + * Summary statistics for the sessions returned on the current page. This is computed across the + * current page only (not the full result set) and is populated on every page. Callers that need + * aggregate statistics across the entire result set should use AggregateAnalyzedSessions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary summary; + + /** + * The list of analyzed sessions. + * @return value or {@code null} for none + */ + public java.util.List getAnalyzedSessions() { + return analyzedSessions; + } + + /** + * The list of analyzed sessions. + * @param analyzedSessions analyzedSessions or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse setAnalyzedSessions(java.util.List analyzedSessions) { + this.analyzedSessions = analyzedSessions; + 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 GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Summary statistics for the sessions returned on the current page. This is computed across the + * current page only (not the full result set) and is populated on every page. Callers that need + * aggregate statistics across the entire result set should use AggregateAnalyzedSessions. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary getSummary() { + return summary; + } + + /** + * Summary statistics for the sessions returned on the current page. This is computed across the + * current page only (not the full result set) and is populated on every page. Callers that need + * aggregate statistics across the entire result set should use AggregateAnalyzedSessions. + * @param summary summary or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse setSummary(GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary summary) { + this.summary = summary; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse clone() { + return (GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary.java new file mode 100644 index 00000000000..4e27d3ac2e7 --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary.java @@ -0,0 +1,168 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * 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 view summary. + * + *

This is 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 GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. The number of distinct agents matching the request scope that have at least one + * anomalous session in the time window. On `AggregateAnalyzedSessionsResponse.summary` (wildcard + * parent), this is a true GLOBAL count across all anomalous active agents, NOT the page-row + * count. The denominator for an "anomalous active agents" scorecard pairs this with + * `ListMonitoredAgentsResponse.total_size` (filtered to `state = ACTIVE`). On + * `ListAnalyzedSessionsResponse.summary`, this field is not populated (the API is per-session, + * not per-agent). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer anomalousAgentsCount; + + /** + * Number of anomalous sessions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer anomalousSessionsCount; + + /** + * The list of severity summaries for the analyzed sessions. The key is the string representation + * of Severity enum: "SEVERITY_UNSPECIFIED", "SEVERITY_CRITICAL", "SEVERITY_HIGH", + * "SEVERITY_MEDIUM", "SEVERITY_LOW". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map severities; + + static { + // hack to force ProGuard to consider GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary 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(GoogleCloudAiplatformV1beta1AnalyzedSessionSeveritySummary.class); + } + + /** + * Total number of sessions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalSessionsCount; + + /** + * Output only. The number of distinct agents matching the request scope that have at least one + * anomalous session in the time window. On `AggregateAnalyzedSessionsResponse.summary` (wildcard + * parent), this is a true GLOBAL count across all anomalous active agents, NOT the page-row + * count. The denominator for an "anomalous active agents" scorecard pairs this with + * `ListMonitoredAgentsResponse.total_size` (filtered to `state = ACTIVE`). On + * `ListAnalyzedSessionsResponse.summary`, this field is not populated (the API is per-session, + * not per-agent). + * @return value or {@code null} for none + */ + public java.lang.Integer getAnomalousAgentsCount() { + return anomalousAgentsCount; + } + + /** + * Output only. The number of distinct agents matching the request scope that have at least one + * anomalous session in the time window. On `AggregateAnalyzedSessionsResponse.summary` (wildcard + * parent), this is a true GLOBAL count across all anomalous active agents, NOT the page-row + * count. The denominator for an "anomalous active agents" scorecard pairs this with + * `ListMonitoredAgentsResponse.total_size` (filtered to `state = ACTIVE`). On + * `ListAnalyzedSessionsResponse.summary`, this field is not populated (the API is per-session, + * not per-agent). + * @param anomalousAgentsCount anomalousAgentsCount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary setAnomalousAgentsCount(java.lang.Integer anomalousAgentsCount) { + this.anomalousAgentsCount = anomalousAgentsCount; + return this; + } + + /** + * Number of anomalous sessions. + * @return value or {@code null} for none + */ + public java.lang.Integer getAnomalousSessionsCount() { + return anomalousSessionsCount; + } + + /** + * Number of anomalous sessions. + * @param anomalousSessionsCount anomalousSessionsCount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary setAnomalousSessionsCount(java.lang.Integer anomalousSessionsCount) { + this.anomalousSessionsCount = anomalousSessionsCount; + return this; + } + + /** + * The list of severity summaries for the analyzed sessions. The key is the string representation + * of Severity enum: "SEVERITY_UNSPECIFIED", "SEVERITY_CRITICAL", "SEVERITY_HIGH", + * "SEVERITY_MEDIUM", "SEVERITY_LOW". + * @return value or {@code null} for none + */ + public java.util.Map getSeverities() { + return severities; + } + + /** + * The list of severity summaries for the analyzed sessions. The key is the string representation + * of Severity enum: "SEVERITY_UNSPECIFIED", "SEVERITY_CRITICAL", "SEVERITY_HIGH", + * "SEVERITY_MEDIUM", "SEVERITY_LOW". + * @param severities severities or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary setSeverities(java.util.Map severities) { + this.severities = severities; + return this; + } + + /** + * Total number of sessions. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalSessionsCount() { + return totalSessionsCount; + } + + /** + * Total number of sessions. + * @param totalSessionsCount totalSessionsCount or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary setTotalSessionsCount(java.lang.Integer totalSessionsCount) { + this.totalSessionsCount = totalSessionsCount; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary clone() { + return (GoogleCloudAiplatformV1beta1ListAnalyzedSessionsResponseViewSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse.java new file mode 100644 index 00000000000..2d8a6310ecd --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse.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; + +/** + * Response message for AgentAnomalyDetectionService.ListMonitoredAgents. + * + *

This is 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 GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of MonitoredAgents that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List monitoredAgents; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The total number of MonitoredAgents in the request scope after the request `filter` (if any) is + * applied. With no filter this is the unconditional count of MonitoredAgents in the parent; with + * `filter = "state = ACTIVE"` it is the active-agent count, and so on. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalSize; + + /** + * A list of MonitoredAgents that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getMonitoredAgents() { + return monitoredAgents; + } + + /** + * A list of MonitoredAgents that matches the specified filter in the request. + * @param monitoredAgents monitoredAgents or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse setMonitoredAgents(java.util.List monitoredAgents) { + this.monitoredAgents = monitoredAgents; + return this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The total number of MonitoredAgents in the request scope after the request `filter` (if any) is + * applied. With no filter this is the unconditional count of MonitoredAgents in the parent; with + * `filter = "state = ACTIVE"` it is the active-agent count, and so on. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalSize() { + return totalSize; + } + + /** + * The total number of MonitoredAgents in the request scope after the request `filter` (if any) is + * applied. With no filter this is the unconditional count of MonitoredAgents in the parent; with + * `filter = "state = ACTIVE"` it is the active-agent count, and so on. + * @param totalSize totalSize or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse setTotalSize(java.lang.Integer totalSize) { + this.totalSize = totalSize; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse clone() { + return (GoogleCloudAiplatformV1beta1ListMonitoredAgentsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1MonitoredAgent.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1MonitoredAgent.java new file mode 100644 index 00000000000..0a9e21a40cd --- /dev/null +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1MonitoredAgent.java @@ -0,0 +1,264 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * 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 monitored agent in a specific Location. + * + *

This is 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 GoogleCloudAiplatformV1beta1MonitoredAgent extends com.google.api.client.json.GenericJson { + + /** + * Required. The configuration for the agent being monitored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAiplatformV1beta1AgentResource agentResource; + + /** + * Output only. The time the MonitoredAgent was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The display name of the MonitoredAgent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The log buckets configured for the agent, in MVP this will be restricted to 1. + * Format: `projects/{project}/locations/{location}/buckets/{bucket}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List logBuckets; + + /** + * Identifier. The resource name of the MonitoredAgent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The observability buckets configured for the agent, in MVP this will be restricted to + * 1. Format: `projects/{project}/locations/{location}/observationBuckets/{observation_bucket}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List observabilityBuckets; + + /** + * Output only. The current state of the agent's enablement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. A brief message explaining the current state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. The time the MonitoredAgent was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. The configuration for the agent being monitored. + * @return value or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1AgentResource getAgentResource() { + return agentResource; + } + + /** + * Required. The configuration for the agent being monitored. + * @param agentResource agentResource or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1MonitoredAgent setAgentResource(GoogleCloudAiplatformV1beta1AgentResource agentResource) { + this.agentResource = agentResource; + return this; + } + + /** + * Output only. The time the MonitoredAgent was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the MonitoredAgent was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1MonitoredAgent setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. The display name of the MonitoredAgent. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The display name of the MonitoredAgent. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1MonitoredAgent setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. The log buckets configured for the agent, in MVP this will be restricted to 1. + * Format: `projects/{project}/locations/{location}/buckets/{bucket}` + * @return value or {@code null} for none + */ + public java.util.List getLogBuckets() { + return logBuckets; + } + + /** + * Optional. The log buckets configured for the agent, in MVP this will be restricted to 1. + * Format: `projects/{project}/locations/{location}/buckets/{bucket}` + * @param logBuckets logBuckets or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1MonitoredAgent setLogBuckets(java.util.List logBuckets) { + this.logBuckets = logBuckets; + return this; + } + + /** + * Identifier. The resource name of the MonitoredAgent. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the MonitoredAgent. + * @param name name or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1MonitoredAgent setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The observability buckets configured for the agent, in MVP this will be restricted to + * 1. Format: `projects/{project}/locations/{location}/observationBuckets/{observation_bucket}` + * @return value or {@code null} for none + */ + public java.util.List getObservabilityBuckets() { + return observabilityBuckets; + } + + /** + * Optional. The observability buckets configured for the agent, in MVP this will be restricted to + * 1. Format: `projects/{project}/locations/{location}/observationBuckets/{observation_bucket}` + * @param observabilityBuckets observabilityBuckets or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1MonitoredAgent setObservabilityBuckets(java.util.List observabilityBuckets) { + this.observabilityBuckets = observabilityBuckets; + return this; + } + + /** + * Output only. The current state of the agent's enablement. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The current state of the agent's enablement. + * @param state state or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1MonitoredAgent setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. A brief message explaining the current state. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. A brief message explaining the current state. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1MonitoredAgent setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. The time the MonitoredAgent was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The time the MonitoredAgent was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1MonitoredAgent setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudAiplatformV1beta1MonitoredAgent set(String fieldName, Object value) { + return (GoogleCloudAiplatformV1beta1MonitoredAgent) super.set(fieldName, value); + } + + @Override + public GoogleCloudAiplatformV1beta1MonitoredAgent clone() { + return (GoogleCloudAiplatformV1beta1MonitoredAgent) super.clone(); + } + +} diff --git a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ToolComputerUse.java b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ToolComputerUse.java index 896cca3c43a..28a52ae2934 100644 --- a/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ToolComputerUse.java +++ b/clients/google-api-services-aiplatform/v1beta1/2.0.0/com/google/api/services/aiplatform/v1beta1/model/GoogleCloudAiplatformV1beta1ToolComputerUse.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudAiplatformV1beta1ToolComputerUse extends com.google.api.client.json.GenericJson { + /** + * Optional. Enables the prompt injection detection check on computer-use request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enablePromptInjectionDetection; + /** * Required. The environment being operated. * The value may be {@code null}. @@ -47,6 +54,23 @@ public final class GoogleCloudAiplatformV1beta1ToolComputerUse extends com.googl @com.google.api.client.util.Key private java.util.List excludedPredefinedFunctions; + /** + * Optional. Enables the prompt injection detection check on computer-use request. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnablePromptInjectionDetection() { + return enablePromptInjectionDetection; + } + + /** + * Optional. Enables the prompt injection detection check on computer-use request. + * @param enablePromptInjectionDetection enablePromptInjectionDetection or {@code null} for none + */ + public GoogleCloudAiplatformV1beta1ToolComputerUse setEnablePromptInjectionDetection(java.lang.Boolean enablePromptInjectionDetection) { + this.enablePromptInjectionDetection = enablePromptInjectionDetection; + return this; + } + /** * Required. The environment being operated. * @return value or {@code null} for none 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 b9e8d57e2e9..721453342c6 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-rev20260605-2.0.0 - Agent Platform API v1beta1-rev20260605-2.0.0 + v1beta1-rev20260609-2.0.0 + Agent Platform API v1beta1-rev20260609-2.0.0 jar 2011 diff --git a/clients/google-api-services-aiplatform/v1beta1/README.md b/clients/google-api-services-aiplatform/v1beta1/README.md index a6c371d8cd9..083c6aee1ca 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-rev20260605-2.0.0 + v1beta1-rev20260609-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260605-2.0.0' + implementation 'com.google.apis:google-api-services-aiplatform:v1beta1-rev20260609-2.0.0' } ```