From 599254ecddba4d8480e442b56de0db0f2d2897e8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Jul 2022 19:00:26 +0200 Subject: [PATCH 01/22] chore(deps): update dependency com.google.cloud:google-cloud-aiplatform to v3 (#986) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-aiplatform](https://togithub.com/googleapis/java-) | `2.9.7` -> `3.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-aiplatform/3.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-aiplatform/3.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-aiplatform/3.1.0/compatibility-slim/2.9.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-aiplatform/3.1.0/confidence-slim/2.9.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- README.md | 8 ++++---- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8820b7d4a..d86b7dda5 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud google-cloud-aiplatform - 2.9.7 + 3.1.0 ``` @@ -30,7 +30,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 2.9.7 + 3.1.0 ``` @@ -45,13 +45,13 @@ implementation 'com.google.cloud:google-cloud-aiplatform' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.0.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.1.0" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ab713f9b9..86b627985 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-aiplatform - 2.9.7 + 3.1.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 53509874d..62816d020 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -27,7 +27,7 @@ com.google.cloud google-cloud-aiplatform - 2.9.7 + 3.1.0 From 9289b3ec172c4145d708a4195ed405675f3b062e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 15 Jul 2022 19:12:23 +0000 Subject: [PATCH 02/22] build: marking dependencies (8) non-required (#1472) (#993) Co-authored-by: Anthonios Partheniou Source-Link: https://github.com/googleapis/synthtool/commit/72c64b725262e1c7e5e28f3f07681afc77347dab Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:b2e8f445ca0e605d4bbefbfdbdf7335692d75cf1647af62243828dcc0ea4e690 --- .github/.OwlBot.lock.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index de9173d95..6bf3e92e7 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 -# created: 2022-07-13T13:53:17.676447481Z + digest: sha256:b2e8f445ca0e605d4bbefbfdbdf7335692d75cf1647af62243828dcc0ea4e690 +# created: 2022-07-14T21:08:10.768472192Z From 5c115ec31d4b1aef0387b84d526ef950f10eebc1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Jul 2022 17:02:38 +0200 Subject: [PATCH 03/22] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.0 (#995) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.3.0` -> `3.4.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/compatibility-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/confidence-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 73a8a17ac..971bfee3c 100644 --- a/pom.xml +++ b/pom.xml @@ -124,7 +124,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.3.0 + 3.4.0 From 416662c47f7c1cda91426daaca835eaf3709267f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Jul 2022 19:24:10 +0200 Subject: [PATCH 04/22] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3 (#996) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-deploy-plugin](https://maven.apache.org/plugins/) | `2.8.2` -> `3.0.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/compatibility-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/confidence-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index b03ae2ddc..28b597419 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -38,7 +38,7 @@ org.apache.maven.plugins maven-deploy-plugin - 2.8.2 + 3.0.0 true From f3e6d4fe833160ab34ef0d87bd58dadf62aef502 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 20 Jul 2022 14:04:19 +0000 Subject: [PATCH 05/22] feat: add a DeploymentResourcePool API resource_definition (#997) - [ ] Regenerate this pull request now. feat: add shared_resources for supported prediction_resources PiperOrigin-RevId: 461971827 Source-Link: https://github.com/googleapis/googleapis/commit/0b24d03e9fce0161815012125bd43acab83d6798 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d3298e7762e2e071cf4850277325bbfeb94ede9b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDMyOThlNzc2MmUyZTA3MWNmNDg1MDI3NzMyNWJiZmViOTRlZGU5YiJ9 --- .../aiplatform/v1beta1/DeployedModel.java | 255 ++++++++++++++++++ .../v1beta1/DeployedModelOrBuilder.java | 43 +++ .../cloud/aiplatform/v1beta1/Endpoint.java | 8 +- .../aiplatform/v1beta1/EndpointOrBuilder.java | 2 +- .../aiplatform/v1beta1/EndpointProto.java | 61 +++-- .../cloud/aiplatform/v1beta1/endpoint.proto | 11 + 6 files changed, 348 insertions(+), 32 deletions(-) diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java index cb0df5f67..16d0eecde 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java @@ -199,6 +199,13 @@ private DeployedModel( privateEndpoints_ = subBuilder.buildPartial(); } + break; + } + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + predictionResourcesCase_ = 17; + predictionResources_ = s; break; } case 146: @@ -253,6 +260,7 @@ public enum PredictionResourcesCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { DEDICATED_RESOURCES(7), AUTOMATIC_RESOURCES(8), + SHARED_RESOURCES(17), PREDICTIONRESOURCES_NOT_SET(0); private final int value; @@ -275,6 +283,8 @@ public static PredictionResourcesCase forNumber(int value) { return DEDICATED_RESOURCES; case 8: return AUTOMATIC_RESOURCES; + case 17: + return SHARED_RESOURCES; case 0: return PREDICTIONRESOURCES_NOT_SET; default: @@ -401,6 +411,82 @@ public com.google.cloud.aiplatform.v1beta1.AutomaticResources getAutomaticResour return com.google.cloud.aiplatform.v1beta1.AutomaticResources.getDefaultInstance(); } + public static final int SHARED_RESOURCES_FIELD_NUMBER = 17; + /** + * + * + *
+   * The resource name of the shared DeploymentResourcePool to deploy on.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string shared_resources = 17 [(.google.api.resource_reference) = { ... } + * + * @return Whether the sharedResources field is set. + */ + public boolean hasSharedResources() { + return predictionResourcesCase_ == 17; + } + /** + * + * + *
+   * The resource name of the shared DeploymentResourcePool to deploy on.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string shared_resources = 17 [(.google.api.resource_reference) = { ... } + * + * @return The sharedResources. + */ + public java.lang.String getSharedResources() { + java.lang.Object ref = ""; + if (predictionResourcesCase_ == 17) { + ref = predictionResources_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (predictionResourcesCase_ == 17) { + predictionResources_ = s; + } + return s; + } + } + /** + * + * + *
+   * The resource name of the shared DeploymentResourcePool to deploy on.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string shared_resources = 17 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for sharedResources. + */ + public com.google.protobuf.ByteString getSharedResourcesBytes() { + java.lang.Object ref = ""; + if (predictionResourcesCase_ == 17) { + ref = predictionResources_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (predictionResourcesCase_ == 17) { + predictionResources_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** @@ -943,6 +1029,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (privateEndpoints_ != null) { output.writeMessage(14, getPrivateEndpoints()); } + if (predictionResourcesCase_ == 17) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, predictionResources_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, modelVersionId_); } @@ -992,6 +1081,9 @@ public int getSerializedSize() { if (privateEndpoints_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getPrivateEndpoints()); } + if (predictionResourcesCase_ == 17) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, predictionResources_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, modelVersionId_); } @@ -1038,6 +1130,9 @@ public boolean equals(final java.lang.Object obj) { case 8: if (!getAutomaticResources().equals(other.getAutomaticResources())) return false; break; + case 17: + if (!getSharedResources().equals(other.getSharedResources())) return false; + break; case 0: default: } @@ -1087,6 +1182,10 @@ public int hashCode() { hash = (37 * hash) + AUTOMATIC_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getAutomaticResources().hashCode(); break; + case 17: + hash = (37 * hash) + SHARED_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSharedResources().hashCode(); + break; case 0: default: } @@ -1310,6 +1409,9 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel buildPartial() { result.predictionResources_ = automaticResourcesBuilder_.build(); } } + if (predictionResourcesCase_ == 17) { + result.predictionResources_ = predictionResources_; + } result.id_ = id_; result.model_ = model_; result.modelVersionId_ = modelVersionId_; @@ -1429,6 +1531,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other mergeAutomaticResources(other.getAutomaticResources()); break; } + case SHARED_RESOURCES: + { + predictionResourcesCase_ = 17; + predictionResources_ = other.predictionResources_; + onChanged(); + break; + } case PREDICTIONRESOURCES_NOT_SET: { break; @@ -1928,6 +2037,152 @@ public Builder clearAutomaticResources() { return automaticResourcesBuilder_; } + /** + * + * + *
+     * The resource name of the shared DeploymentResourcePool to deploy on.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string shared_resources = 17 [(.google.api.resource_reference) = { ... } + * + * @return Whether the sharedResources field is set. + */ + @java.lang.Override + public boolean hasSharedResources() { + return predictionResourcesCase_ == 17; + } + /** + * + * + *
+     * The resource name of the shared DeploymentResourcePool to deploy on.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string shared_resources = 17 [(.google.api.resource_reference) = { ... } + * + * @return The sharedResources. + */ + @java.lang.Override + public java.lang.String getSharedResources() { + java.lang.Object ref = ""; + if (predictionResourcesCase_ == 17) { + ref = predictionResources_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (predictionResourcesCase_ == 17) { + predictionResources_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the shared DeploymentResourcePool to deploy on.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string shared_resources = 17 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for sharedResources. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSharedResourcesBytes() { + java.lang.Object ref = ""; + if (predictionResourcesCase_ == 17) { + ref = predictionResources_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (predictionResourcesCase_ == 17) { + predictionResources_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the shared DeploymentResourcePool to deploy on.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string shared_resources = 17 [(.google.api.resource_reference) = { ... } + * + * @param value The sharedResources to set. + * @return This builder for chaining. + */ + public Builder setSharedResources(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + predictionResourcesCase_ = 17; + predictionResources_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the shared DeploymentResourcePool to deploy on.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string shared_resources = 17 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearSharedResources() { + if (predictionResourcesCase_ == 17) { + predictionResourcesCase_ = 0; + predictionResources_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The resource name of the shared DeploymentResourcePool to deploy on.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string shared_resources = 17 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for sharedResources to set. + * @return This builder for chaining. + */ + public Builder setSharedResourcesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + predictionResourcesCase_ = 17; + predictionResources_ = value; + onChanged(); + return this; + } + private java.lang.Object id_ = ""; /** * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java index 67dcb95c2..52282f1f4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java @@ -99,6 +99,49 @@ public interface DeployedModelOrBuilder */ com.google.cloud.aiplatform.v1beta1.AutomaticResourcesOrBuilder getAutomaticResourcesOrBuilder(); + /** + * + * + *
+   * The resource name of the shared DeploymentResourcePool to deploy on.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string shared_resources = 17 [(.google.api.resource_reference) = { ... } + * + * @return Whether the sharedResources field is set. + */ + boolean hasSharedResources(); + /** + * + * + *
+   * The resource name of the shared DeploymentResourcePool to deploy on.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string shared_resources = 17 [(.google.api.resource_reference) = { ... } + * + * @return The sharedResources. + */ + java.lang.String getSharedResources(); + /** + * + * + *
+   * The resource name of the shared DeploymentResourcePool to deploy on.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string shared_resources = 17 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for sharedResources. + */ + com.google.protobuf.ByteString getSharedResourcesBytes(); + /** * * diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java index 68877eb86..87baef8d4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java @@ -1048,7 +1048,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is - * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=120 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -3864,7 +3864,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is - * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=120 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -3885,7 +3885,7 @@ public boolean getEnablePrivateServiceConnect() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is - * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=120 * @param value The enablePrivateServiceConnect to set. * @return This builder for chaining. */ @@ -3909,7 +3909,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is - * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=120 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java index 4077e9c00..f3d34883e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java @@ -536,7 +536,7 @@ java.lang.String getLabelsOrDefault( * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is - * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=120 * @return The enablePrivateServiceConnect. */ @java.lang.Deprecated diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java index aa44d24b0..8de0efd0c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java @@ -95,37 +95,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:e\352Ab\n\"aip" + "latform.googleapis.com/Endpoint\022 Date: Tue, 26 Jul 2022 19:26:29 +0000 Subject: [PATCH 06/22] feat: add DeploymentResourcePool in aiplatform v1beta1 deployment_resource_pool.proto (#998) - [ ] Regenerate this pull request now. feat: add DeploymentResourcePoolService in aiplatform v1beta1 deployment_resource_pool_service.proto feat: add SHARED_RESOURCES to DeploymentResourcesType in aiplatform v1beta1 model.proto PiperOrigin-RevId: 463147866 Source-Link: https://github.com/googleapis/googleapis/commit/627646187513c840b8481a0b4f6249eba04a418f Source-Link: https://github.com/googleapis/googleapis-gen/commit/57665f4b491d7c0f1e466e430701dbae0472f64e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTc2NjVmNGI0OTFkN2MwZjFlNDY2ZTQzMDcwMWRiYWUwNDcyZjY0ZSJ9 chore(bazel): update protobuf to v3.21.3 chore(bazel): update gax-java to 2.18.4 PiperOrigin-RevId: 463115700 Source-Link: https://github.com/googleapis/googleapis/commit/52130a9c3c289e6bc4ab1784bdde6081abdf3dd9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6a4d9d9bb3afb20b0f5fa4f5d9f6740b1d0eb19a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmE0ZDlkOWJiM2FmYjIwYjBmNWZhNGY1ZDlmNjc0MGIxZDBlYjE5YSJ9 --- .../DeploymentResourcePoolServiceClient.java | 1580 +++++++++++++++ ...DeploymentResourcePoolServiceSettings.java | 358 ++++ .../aiplatform/v1beta1/gapic_metadata.json | 39 + .../aiplatform/v1beta1/package-info.java | 18 + .../DeploymentResourcePoolServiceStub.java | 147 ++ ...oymentResourcePoolServiceStubSettings.java | 868 ++++++++ ...entResourcePoolServiceCallableFactory.java | 115 ++ ...GrpcDeploymentResourcePoolServiceStub.java | 566 ++++++ ...ploymentResourcePoolServiceClientTest.java | 816 ++++++++ .../MockDeploymentResourcePoolService.java | 59 + ...MockDeploymentResourcePoolServiceImpl.java | 169 ++ .../DeploymentResourcePoolServiceGrpc.java | 885 ++++++++ .../com/google/cloud/aiplatform/v1/Model.java | 9 +- ...ploymentResourcePoolOperationMetadata.java | 782 ++++++++ ...esourcePoolOperationMetadataOrBuilder.java | 61 + .../CreateDeploymentResourcePoolRequest.java | 1200 +++++++++++ ...eploymentResourcePoolRequestOrBuilder.java | 131 ++ .../DeleteDeploymentResourcePoolRequest.java | 684 +++++++ ...eploymentResourcePoolRequestOrBuilder.java | 58 + .../v1beta1/DeploymentResourcePool.java | 1256 ++++++++++++ .../v1beta1/DeploymentResourcePoolName.java | 240 +++ .../DeploymentResourcePoolOrBuilder.java | 133 ++ .../v1beta1/DeploymentResourcePoolProto.java | 96 + .../DeploymentResourcePoolServiceProto.java | 275 +++ .../cloud/aiplatform/v1beta1/Endpoint.java | 8 +- .../aiplatform/v1beta1/EndpointOrBuilder.java | 2 +- .../aiplatform/v1beta1/EndpointProto.java | 8 +- .../GetDeploymentResourcePoolRequest.java | 679 +++++++ ...eploymentResourcePoolRequestOrBuilder.java | 58 + .../ListDeploymentResourcePoolsRequest.java | 974 +++++++++ ...ploymentResourcePoolsRequestOrBuilder.java | 103 + .../ListDeploymentResourcePoolsResponse.java | 1235 ++++++++++++ ...loymentResourcePoolsResponseOrBuilder.java | 116 ++ .../cloud/aiplatform/v1beta1/Model.java | 33 +- .../cloud/aiplatform/v1beta1/ModelProto.java | 49 +- .../cloud/aiplatform/v1beta1/ProjectName.java | 168 ++ .../v1beta1/QueryDeployedModelsRequest.java | 960 +++++++++ .../QueryDeployedModelsRequestOrBuilder.java | 101 + .../v1beta1/QueryDeployedModelsResponse.java | 1783 +++++++++++++++++ .../QueryDeployedModelsResponseOrBuilder.java | 182 ++ ...ploymentResourcePoolOperationMetadata.java | 782 ++++++++ ...esourcePoolOperationMetadataOrBuilder.java | 61 + .../v1beta1/deployment_resource_pool.proto | 50 + .../deployment_resource_pool_service.proto | 219 ++ .../cloud/aiplatform/v1beta1/endpoint.proto | 4 - .../cloud/aiplatform/v1beta1/model.proto | 4 + 46 files changed, 18075 insertions(+), 49 deletions(-) create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClient.java create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceSettings.java create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStub.java create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStubSettings.java create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDeploymentResourcePoolServiceCallableFactory.java create mode 100644 google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDeploymentResourcePoolServiceStub.java create mode 100644 google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClientTest.java create mode 100644 google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDeploymentResourcePoolService.java create mode 100644 google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDeploymentResourcePoolServiceImpl.java create mode 100644 grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceGrpc.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolOperationMetadata.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolOperationMetadataOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDeploymentResourcePoolRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDeploymentResourcePoolRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolName.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolProto.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceProto.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDeploymentResourcePoolRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDeploymentResourcePoolRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsResponse.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsResponseOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ProjectName.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsRequest.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsRequestOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsResponse.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsResponseOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDeploymentResourcePoolOperationMetadata.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDeploymentResourcePoolOperationMetadataOrBuilder.java create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto create mode 100644 proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClient.java new file mode 100644 index 000000000..bbc1b86b9 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClient.java @@ -0,0 +1,1580 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.stub.DeploymentResourcePoolServiceStub; +import com.google.cloud.aiplatform.v1beta1.stub.DeploymentResourcePoolServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: A service that manages the DeploymentResourcePool resource. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+ *     DeploymentResourcePoolServiceClient.create()) {
+ *   DeploymentResourcePoolName name =
+ *       DeploymentResourcePoolName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]");
+ *   DeploymentResourcePool response =
+ *       deploymentResourcePoolServiceClient.getDeploymentResourcePool(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the DeploymentResourcePoolServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * DeploymentResourcePoolServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DeploymentResourcePoolServiceSettings deploymentResourcePoolServiceSettings =
+ *     DeploymentResourcePoolServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+ *     DeploymentResourcePoolServiceClient.create(deploymentResourcePoolServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DeploymentResourcePoolServiceSettings deploymentResourcePoolServiceSettings =
+ *     DeploymentResourcePoolServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+ *     DeploymentResourcePoolServiceClient.create(deploymentResourcePoolServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class DeploymentResourcePoolServiceClient implements BackgroundResource { + private final DeploymentResourcePoolServiceSettings settings; + private final DeploymentResourcePoolServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of DeploymentResourcePoolServiceClient with default settings. */ + public static final DeploymentResourcePoolServiceClient create() throws IOException { + return create(DeploymentResourcePoolServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DeploymentResourcePoolServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final DeploymentResourcePoolServiceClient create( + DeploymentResourcePoolServiceSettings settings) throws IOException { + return new DeploymentResourcePoolServiceClient(settings); + } + + /** + * Constructs an instance of DeploymentResourcePoolServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(DeploymentResourcePoolServiceSettings). + */ + public static final DeploymentResourcePoolServiceClient create( + DeploymentResourcePoolServiceStub stub) { + return new DeploymentResourcePoolServiceClient(stub); + } + + /** + * Constructs an instance of DeploymentResourcePoolServiceClient, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected DeploymentResourcePoolServiceClient(DeploymentResourcePoolServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = + ((DeploymentResourcePoolServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected DeploymentResourcePoolServiceClient(DeploymentResourcePoolServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final DeploymentResourcePoolServiceSettings getSettings() { + return settings; + } + + public DeploymentResourcePoolServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   DeploymentResourcePool deploymentResourcePool = DeploymentResourcePool.newBuilder().build();
+   *   String deploymentResourcePoolId = "deploymentResourcePoolId1805697578";
+   *   DeploymentResourcePool response =
+   *       deploymentResourcePoolServiceClient
+   *           .createDeploymentResourcePoolAsync(
+   *               parent, deploymentResourcePool, deploymentResourcePoolId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent location resource where this DeploymentResourcePool will be + * created. Format: projects/{project}/locations/{location} + * @param deploymentResourcePool Required. The DeploymentResourcePool to create. + * @param deploymentResourcePoolId Required. The ID to use for the DeploymentResourcePool, which + * will become the final component of the DeploymentResourcePool's resource name. + *

The maximum length is 63 characters, and valid characters are + * `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolAsync( + LocationName parent, + DeploymentResourcePool deploymentResourcePool, + String deploymentResourcePoolId) { + CreateDeploymentResourcePoolRequest request = + CreateDeploymentResourcePoolRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDeploymentResourcePool(deploymentResourcePool) + .setDeploymentResourcePoolId(deploymentResourcePoolId) + .build(); + return createDeploymentResourcePoolAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   DeploymentResourcePool deploymentResourcePool = DeploymentResourcePool.newBuilder().build();
+   *   String deploymentResourcePoolId = "deploymentResourcePoolId1805697578";
+   *   DeploymentResourcePool response =
+   *       deploymentResourcePoolServiceClient
+   *           .createDeploymentResourcePoolAsync(
+   *               parent, deploymentResourcePool, deploymentResourcePoolId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent location resource where this DeploymentResourcePool will be + * created. Format: projects/{project}/locations/{location} + * @param deploymentResourcePool Required. The DeploymentResourcePool to create. + * @param deploymentResourcePoolId Required. The ID to use for the DeploymentResourcePool, which + * will become the final component of the DeploymentResourcePool's resource name. + *

The maximum length is 63 characters, and valid characters are + * `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolAsync( + String parent, + DeploymentResourcePool deploymentResourcePool, + String deploymentResourcePoolId) { + CreateDeploymentResourcePoolRequest request = + CreateDeploymentResourcePoolRequest.newBuilder() + .setParent(parent) + .setDeploymentResourcePool(deploymentResourcePool) + .setDeploymentResourcePoolId(deploymentResourcePoolId) + .build(); + return createDeploymentResourcePoolAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   CreateDeploymentResourcePoolRequest request =
+   *       CreateDeploymentResourcePoolRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDeploymentResourcePool(DeploymentResourcePool.newBuilder().build())
+   *           .setDeploymentResourcePoolId("deploymentResourcePoolId1805697578")
+   *           .build();
+   *   DeploymentResourcePool response =
+   *       deploymentResourcePoolServiceClient.createDeploymentResourcePoolAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + DeploymentResourcePool, CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolAsync(CreateDeploymentResourcePoolRequest request) { + return createDeploymentResourcePoolOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   CreateDeploymentResourcePoolRequest request =
+   *       CreateDeploymentResourcePoolRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDeploymentResourcePool(DeploymentResourcePool.newBuilder().build())
+   *           .setDeploymentResourcePoolId("deploymentResourcePoolId1805697578")
+   *           .build();
+   *   OperationFuture
+   *       future =
+   *           deploymentResourcePoolServiceClient
+   *               .createDeploymentResourcePoolOperationCallable()
+   *               .futureCall(request);
+   *   // Do something.
+   *   DeploymentResourcePool response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateDeploymentResourcePoolRequest, + DeploymentResourcePool, + CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolOperationCallable() { + return stub.createDeploymentResourcePoolOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   CreateDeploymentResourcePoolRequest request =
+   *       CreateDeploymentResourcePoolRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDeploymentResourcePool(DeploymentResourcePool.newBuilder().build())
+   *           .setDeploymentResourcePoolId("deploymentResourcePoolId1805697578")
+   *           .build();
+   *   ApiFuture future =
+   *       deploymentResourcePoolServiceClient
+   *           .createDeploymentResourcePoolCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createDeploymentResourcePoolCallable() { + return stub.createDeploymentResourcePoolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   DeploymentResourcePoolName name =
+   *       DeploymentResourcePoolName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]");
+   *   DeploymentResourcePool response =
+   *       deploymentResourcePoolServiceClient.getDeploymentResourcePool(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DeploymentResourcePool to retrieve. Format: + * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeploymentResourcePool getDeploymentResourcePool(DeploymentResourcePoolName name) { + GetDeploymentResourcePoolRequest request = + GetDeploymentResourcePoolRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDeploymentResourcePool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   String name =
+   *       DeploymentResourcePoolName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]")
+   *           .toString();
+   *   DeploymentResourcePool response =
+   *       deploymentResourcePoolServiceClient.getDeploymentResourcePool(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DeploymentResourcePool to retrieve. Format: + * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeploymentResourcePool getDeploymentResourcePool(String name) { + GetDeploymentResourcePoolRequest request = + GetDeploymentResourcePoolRequest.newBuilder().setName(name).build(); + return getDeploymentResourcePool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   GetDeploymentResourcePoolRequest request =
+   *       GetDeploymentResourcePoolRequest.newBuilder()
+   *           .setName(
+   *               DeploymentResourcePoolName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]")
+   *                   .toString())
+   *           .build();
+   *   DeploymentResourcePool response =
+   *       deploymentResourcePoolServiceClient.getDeploymentResourcePool(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DeploymentResourcePool getDeploymentResourcePool( + GetDeploymentResourcePoolRequest request) { + return getDeploymentResourcePoolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   GetDeploymentResourcePoolRequest request =
+   *       GetDeploymentResourcePoolRequest.newBuilder()
+   *           .setName(
+   *               DeploymentResourcePoolName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       deploymentResourcePoolServiceClient
+   *           .getDeploymentResourcePoolCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   DeploymentResourcePool response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getDeploymentResourcePoolCallable() { + return stub.getDeploymentResourcePoolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeploymentResourcePools in a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   for (DeploymentResourcePool element :
+   *       deploymentResourcePoolServiceClient.listDeploymentResourcePools(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent Location which owns this collection of + * DeploymentResourcePools. Format: projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePools( + ProjectName parent) { + ListDeploymentResourcePoolsRequest request = + ListDeploymentResourcePoolsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDeploymentResourcePools(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeploymentResourcePools in a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   for (DeploymentResourcePool element :
+   *       deploymentResourcePoolServiceClient.listDeploymentResourcePools(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent Location which owns this collection of + * DeploymentResourcePools. Format: projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePools(String parent) { + ListDeploymentResourcePoolsRequest request = + ListDeploymentResourcePoolsRequest.newBuilder().setParent(parent).build(); + return listDeploymentResourcePools(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeploymentResourcePools in a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   ListDeploymentResourcePoolsRequest request =
+   *       ListDeploymentResourcePoolsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (DeploymentResourcePool element :
+   *       deploymentResourcePoolServiceClient.listDeploymentResourcePools(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDeploymentResourcePoolsPagedResponse listDeploymentResourcePools( + ListDeploymentResourcePoolsRequest request) { + return listDeploymentResourcePoolsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeploymentResourcePools in a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   ListDeploymentResourcePoolsRequest request =
+   *       ListDeploymentResourcePoolsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       deploymentResourcePoolServiceClient
+   *           .listDeploymentResourcePoolsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (DeploymentResourcePool element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsPagedResponse> + listDeploymentResourcePoolsPagedCallable() { + return stub.listDeploymentResourcePoolsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeploymentResourcePools in a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   ListDeploymentResourcePoolsRequest request =
+   *       ListDeploymentResourcePoolsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDeploymentResourcePoolsResponse response =
+   *         deploymentResourcePoolServiceClient.listDeploymentResourcePoolsCallable().call(request);
+   *     for (DeploymentResourcePool element : response.getDeploymentResourcePoolsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsResponse> + listDeploymentResourcePoolsCallable() { + return stub.listDeploymentResourcePoolsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   DeploymentResourcePoolName name =
+   *       DeploymentResourcePoolName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]");
+   *   deploymentResourcePoolServiceClient.deleteDeploymentResourcePoolAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the DeploymentResourcePool to delete. Format: + * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDeploymentResourcePoolAsync( + DeploymentResourcePoolName name) { + DeleteDeploymentResourcePoolRequest request = + DeleteDeploymentResourcePoolRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteDeploymentResourcePoolAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   String name =
+   *       DeploymentResourcePoolName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]")
+   *           .toString();
+   *   deploymentResourcePoolServiceClient.deleteDeploymentResourcePoolAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the DeploymentResourcePool to delete. Format: + * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDeploymentResourcePoolAsync( + String name) { + DeleteDeploymentResourcePoolRequest request = + DeleteDeploymentResourcePoolRequest.newBuilder().setName(name).build(); + return deleteDeploymentResourcePoolAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   DeleteDeploymentResourcePoolRequest request =
+   *       DeleteDeploymentResourcePoolRequest.newBuilder()
+   *           .setName(
+   *               DeploymentResourcePoolName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]")
+   *                   .toString())
+   *           .build();
+   *   deploymentResourcePoolServiceClient.deleteDeploymentResourcePoolAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDeploymentResourcePoolAsync( + DeleteDeploymentResourcePoolRequest request) { + return deleteDeploymentResourcePoolOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   DeleteDeploymentResourcePoolRequest request =
+   *       DeleteDeploymentResourcePoolRequest.newBuilder()
+   *           .setName(
+   *               DeploymentResourcePoolName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       deploymentResourcePoolServiceClient
+   *           .deleteDeploymentResourcePoolOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteDeploymentResourcePoolRequest, Empty, DeleteOperationMetadata> + deleteDeploymentResourcePoolOperationCallable() { + return stub.deleteDeploymentResourcePoolOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   DeleteDeploymentResourcePoolRequest request =
+   *       DeleteDeploymentResourcePoolRequest.newBuilder()
+   *           .setName(
+   *               DeploymentResourcePoolName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       deploymentResourcePoolServiceClient
+   *           .deleteDeploymentResourcePoolCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteDeploymentResourcePoolCallable() { + return stub.deleteDeploymentResourcePoolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeployedModels that have been deployed on this DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   String deploymentResourcePool = "deploymentResourcePool-1928845137";
+   *   for (DeployedModel element :
+   *       deploymentResourcePoolServiceClient
+   *           .queryDeployedModels(deploymentResourcePool)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param deploymentResourcePool Required. The name of the target DeploymentResourcePool to query. + * Format: + * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryDeployedModelsPagedResponse queryDeployedModels(String deploymentResourcePool) { + QueryDeployedModelsRequest request = + QueryDeployedModelsRequest.newBuilder() + .setDeploymentResourcePool(deploymentResourcePool) + .build(); + return queryDeployedModels(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeployedModels that have been deployed on this DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   QueryDeployedModelsRequest request =
+   *       QueryDeployedModelsRequest.newBuilder()
+   *           .setDeploymentResourcePool("deploymentResourcePool-1928845137")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (DeployedModel element :
+   *       deploymentResourcePoolServiceClient.queryDeployedModels(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryDeployedModelsPagedResponse queryDeployedModels( + QueryDeployedModelsRequest request) { + return queryDeployedModelsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeployedModels that have been deployed on this DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   QueryDeployedModelsRequest request =
+   *       QueryDeployedModelsRequest.newBuilder()
+   *           .setDeploymentResourcePool("deploymentResourcePool-1928845137")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       deploymentResourcePoolServiceClient
+   *           .queryDeployedModelsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (DeployedModel element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + queryDeployedModelsPagedCallable() { + return stub.queryDeployedModelsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List DeployedModels that have been deployed on this DeploymentResourcePool. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   QueryDeployedModelsRequest request =
+   *       QueryDeployedModelsRequest.newBuilder()
+   *           .setDeploymentResourcePool("deploymentResourcePool-1928845137")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     QueryDeployedModelsResponse response =
+   *         deploymentResourcePoolServiceClient.queryDeployedModelsCallable().call(request);
+   *     for (DeployedModel element : response.getDeployedModelsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + queryDeployedModelsCallable() { + return stub.queryDeployedModelsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element :
+   *       deploymentResourcePoolServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       deploymentResourcePoolServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         deploymentResourcePoolServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = deploymentResourcePoolServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       deploymentResourcePoolServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = deploymentResourcePoolServiceClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       deploymentResourcePoolServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = deploymentResourcePoolServiceClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       deploymentResourcePoolServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response =
+   *       deploymentResourcePoolServiceClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+   *     DeploymentResourcePoolServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       deploymentResourcePoolServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListDeploymentResourcePoolsPagedResponse + extends AbstractPagedListResponse< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + DeploymentResourcePool, + ListDeploymentResourcePoolsPage, + ListDeploymentResourcePoolsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + DeploymentResourcePool> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDeploymentResourcePoolsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDeploymentResourcePoolsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDeploymentResourcePoolsPagedResponse(ListDeploymentResourcePoolsPage page) { + super(page, ListDeploymentResourcePoolsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDeploymentResourcePoolsPage + extends AbstractPage< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + DeploymentResourcePool, + ListDeploymentResourcePoolsPage> { + + private ListDeploymentResourcePoolsPage( + PageContext< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + DeploymentResourcePool> + context, + ListDeploymentResourcePoolsResponse response) { + super(context, response); + } + + private static ListDeploymentResourcePoolsPage createEmptyPage() { + return new ListDeploymentResourcePoolsPage(null, null); + } + + @Override + protected ListDeploymentResourcePoolsPage createPage( + PageContext< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + DeploymentResourcePool> + context, + ListDeploymentResourcePoolsResponse response) { + return new ListDeploymentResourcePoolsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + DeploymentResourcePool> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDeploymentResourcePoolsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + DeploymentResourcePool, + ListDeploymentResourcePoolsPage, + ListDeploymentResourcePoolsFixedSizeCollection> { + + private ListDeploymentResourcePoolsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDeploymentResourcePoolsFixedSizeCollection createEmptyCollection() { + return new ListDeploymentResourcePoolsFixedSizeCollection(null, 0); + } + + @Override + protected ListDeploymentResourcePoolsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDeploymentResourcePoolsFixedSizeCollection(pages, collectionSize); + } + } + + public static class QueryDeployedModelsPagedResponse + extends AbstractPagedListResponse< + QueryDeployedModelsRequest, + QueryDeployedModelsResponse, + DeployedModel, + QueryDeployedModelsPage, + QueryDeployedModelsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryDeployedModelsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryDeployedModelsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryDeployedModelsPagedResponse(QueryDeployedModelsPage page) { + super(page, QueryDeployedModelsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryDeployedModelsPage + extends AbstractPage< + QueryDeployedModelsRequest, + QueryDeployedModelsResponse, + DeployedModel, + QueryDeployedModelsPage> { + + private QueryDeployedModelsPage( + PageContext context, + QueryDeployedModelsResponse response) { + super(context, response); + } + + private static QueryDeployedModelsPage createEmptyPage() { + return new QueryDeployedModelsPage(null, null); + } + + @Override + protected QueryDeployedModelsPage createPage( + PageContext context, + QueryDeployedModelsResponse response) { + return new QueryDeployedModelsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryDeployedModelsFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryDeployedModelsRequest, + QueryDeployedModelsResponse, + DeployedModel, + QueryDeployedModelsPage, + QueryDeployedModelsFixedSizeCollection> { + + private QueryDeployedModelsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryDeployedModelsFixedSizeCollection createEmptyCollection() { + return new QueryDeployedModelsFixedSizeCollection(null, 0); + } + + @Override + protected QueryDeployedModelsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new QueryDeployedModelsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceSettings.java new file mode 100644 index 000000000..dd6ed54a3 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceSettings.java @@ -0,0 +1,358 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListDeploymentResourcePoolsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.QueryDeployedModelsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1beta1.stub.DeploymentResourcePoolServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DeploymentResourcePoolServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getDeploymentResourcePool to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DeploymentResourcePoolServiceSettings.Builder deploymentResourcePoolServiceSettingsBuilder =
+ *     DeploymentResourcePoolServiceSettings.newBuilder();
+ * deploymentResourcePoolServiceSettingsBuilder
+ *     .getDeploymentResourcePoolSettings()
+ *     .setRetrySettings(
+ *         deploymentResourcePoolServiceSettingsBuilder
+ *             .getDeploymentResourcePoolSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DeploymentResourcePoolServiceSettings deploymentResourcePoolServiceSettings =
+ *     deploymentResourcePoolServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class DeploymentResourcePoolServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to createDeploymentResourcePool. */ + public UnaryCallSettings + createDeploymentResourcePoolSettings() { + return ((DeploymentResourcePoolServiceStubSettings) getStubSettings()) + .createDeploymentResourcePoolSettings(); + } + + /** Returns the object with the settings used for calls to createDeploymentResourcePool. */ + public OperationCallSettings< + CreateDeploymentResourcePoolRequest, + DeploymentResourcePool, + CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolOperationSettings() { + return ((DeploymentResourcePoolServiceStubSettings) getStubSettings()) + .createDeploymentResourcePoolOperationSettings(); + } + + /** Returns the object with the settings used for calls to getDeploymentResourcePool. */ + public UnaryCallSettings + getDeploymentResourcePoolSettings() { + return ((DeploymentResourcePoolServiceStubSettings) getStubSettings()) + .getDeploymentResourcePoolSettings(); + } + + /** Returns the object with the settings used for calls to listDeploymentResourcePools. */ + public PagedCallSettings< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + ListDeploymentResourcePoolsPagedResponse> + listDeploymentResourcePoolsSettings() { + return ((DeploymentResourcePoolServiceStubSettings) getStubSettings()) + .listDeploymentResourcePoolsSettings(); + } + + /** Returns the object with the settings used for calls to deleteDeploymentResourcePool. */ + public UnaryCallSettings + deleteDeploymentResourcePoolSettings() { + return ((DeploymentResourcePoolServiceStubSettings) getStubSettings()) + .deleteDeploymentResourcePoolSettings(); + } + + /** Returns the object with the settings used for calls to deleteDeploymentResourcePool. */ + public OperationCallSettings + deleteDeploymentResourcePoolOperationSettings() { + return ((DeploymentResourcePoolServiceStubSettings) getStubSettings()) + .deleteDeploymentResourcePoolOperationSettings(); + } + + /** Returns the object with the settings used for calls to queryDeployedModels. */ + public PagedCallSettings< + QueryDeployedModelsRequest, QueryDeployedModelsResponse, QueryDeployedModelsPagedResponse> + queryDeployedModelsSettings() { + return ((DeploymentResourcePoolServiceStubSettings) getStubSettings()) + .queryDeployedModelsSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((DeploymentResourcePoolServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((DeploymentResourcePoolServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((DeploymentResourcePoolServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((DeploymentResourcePoolServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((DeploymentResourcePoolServiceStubSettings) getStubSettings()) + .testIamPermissionsSettings(); + } + + public static final DeploymentResourcePoolServiceSettings create( + DeploymentResourcePoolServiceStubSettings stub) throws IOException { + return new DeploymentResourcePoolServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DeploymentResourcePoolServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DeploymentResourcePoolServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DeploymentResourcePoolServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DeploymentResourcePoolServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DeploymentResourcePoolServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DeploymentResourcePoolServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DeploymentResourcePoolServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DeploymentResourcePoolServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DeploymentResourcePoolServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DeploymentResourcePoolServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DeploymentResourcePoolServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DeploymentResourcePoolServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DeploymentResourcePoolServiceStubSettings.newBuilder()); + } + + public DeploymentResourcePoolServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DeploymentResourcePoolServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createDeploymentResourcePool. */ + public UnaryCallSettings.Builder + createDeploymentResourcePoolSettings() { + return getStubSettingsBuilder().createDeploymentResourcePoolSettings(); + } + + /** Returns the builder for the settings used for calls to createDeploymentResourcePool. */ + public OperationCallSettings.Builder< + CreateDeploymentResourcePoolRequest, + DeploymentResourcePool, + CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolOperationSettings() { + return getStubSettingsBuilder().createDeploymentResourcePoolOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getDeploymentResourcePool. */ + public UnaryCallSettings.Builder + getDeploymentResourcePoolSettings() { + return getStubSettingsBuilder().getDeploymentResourcePoolSettings(); + } + + /** Returns the builder for the settings used for calls to listDeploymentResourcePools. */ + public PagedCallSettings.Builder< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + ListDeploymentResourcePoolsPagedResponse> + listDeploymentResourcePoolsSettings() { + return getStubSettingsBuilder().listDeploymentResourcePoolsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDeploymentResourcePool. */ + public UnaryCallSettings.Builder + deleteDeploymentResourcePoolSettings() { + return getStubSettingsBuilder().deleteDeploymentResourcePoolSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDeploymentResourcePool. */ + public OperationCallSettings.Builder< + DeleteDeploymentResourcePoolRequest, Empty, DeleteOperationMetadata> + deleteDeploymentResourcePoolOperationSettings() { + return getStubSettingsBuilder().deleteDeploymentResourcePoolOperationSettings(); + } + + /** Returns the builder for the settings used for calls to queryDeployedModels. */ + public PagedCallSettings.Builder< + QueryDeployedModelsRequest, + QueryDeployedModelsResponse, + QueryDeployedModelsPagedResponse> + queryDeployedModelsSettings() { + return getStubSettingsBuilder().queryDeployedModelsSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public DeploymentResourcePoolServiceSettings build() throws IOException { + return new DeploymentResourcePoolServiceSettings(this); + } + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index 92d1913cf..a50c2f33b 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -62,6 +62,45 @@ } } }, + "DeploymentResourcePoolService": { + "clients": { + "grpc": { + "libraryClient": "DeploymentResourcePoolServiceClient", + "rpcs": { + "CreateDeploymentResourcePool": { + "methods": ["createDeploymentResourcePoolAsync", "createDeploymentResourcePoolAsync", "createDeploymentResourcePoolAsync", "createDeploymentResourcePoolOperationCallable", "createDeploymentResourcePoolCallable"] + }, + "DeleteDeploymentResourcePool": { + "methods": ["deleteDeploymentResourcePoolAsync", "deleteDeploymentResourcePoolAsync", "deleteDeploymentResourcePoolAsync", "deleteDeploymentResourcePoolOperationCallable", "deleteDeploymentResourcePoolCallable"] + }, + "GetDeploymentResourcePool": { + "methods": ["getDeploymentResourcePool", "getDeploymentResourcePool", "getDeploymentResourcePool", "getDeploymentResourcePoolCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListDeploymentResourcePools": { + "methods": ["listDeploymentResourcePools", "listDeploymentResourcePools", "listDeploymentResourcePools", "listDeploymentResourcePoolsPagedCallable", "listDeploymentResourcePoolsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "QueryDeployedModels": { + "methods": ["queryDeployedModels", "queryDeployedModels", "queryDeployedModelsPagedCallable", "queryDeployedModelsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + } + } + } + } + }, "EndpointService": { "clients": { "grpc": { diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java index 63c457bab..4f3bed271 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java @@ -35,6 +35,24 @@ * } * } * + *

======================= DeploymentResourcePoolServiceClient ======================= + * + *

Service Description: A service that manages the DeploymentResourcePool resource. + * + *

Sample for DeploymentResourcePoolServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
+ *     DeploymentResourcePoolServiceClient.create()) {
+ *   DeploymentResourcePoolName name =
+ *       DeploymentResourcePoolName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]");
+ *   DeploymentResourcePool response =
+ *       deploymentResourcePoolServiceClient.getDeploymentResourcePool(name);
+ * }
+ * }
+ * *

======================= EndpointServiceClient ======================= * *

Service Description: A service for managing Vertex AI's Endpoints. diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStub.java new file mode 100644 index 000000000..c0f9acaf8 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStub.java @@ -0,0 +1,147 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub; + +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListDeploymentResourcePoolsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.QueryDeployedModelsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool; +import com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; +import com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; +import com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; +import com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; +import com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DeploymentResourcePoolService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class DeploymentResourcePoolServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public OperationCallable< + CreateDeploymentResourcePoolRequest, + DeploymentResourcePool, + CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createDeploymentResourcePoolOperationCallable()"); + } + + public UnaryCallable + createDeploymentResourcePoolCallable() { + throw new UnsupportedOperationException( + "Not implemented: createDeploymentResourcePoolCallable()"); + } + + public UnaryCallable + getDeploymentResourcePoolCallable() { + throw new UnsupportedOperationException("Not implemented: getDeploymentResourcePoolCallable()"); + } + + public UnaryCallable + listDeploymentResourcePoolsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDeploymentResourcePoolsPagedCallable()"); + } + + public UnaryCallable + listDeploymentResourcePoolsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDeploymentResourcePoolsCallable()"); + } + + public OperationCallable + deleteDeploymentResourcePoolOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteDeploymentResourcePoolOperationCallable()"); + } + + public UnaryCallable + deleteDeploymentResourcePoolCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteDeploymentResourcePoolCallable()"); + } + + public UnaryCallable + queryDeployedModelsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: queryDeployedModelsPagedCallable()"); + } + + public UnaryCallable + queryDeployedModelsCallable() { + throw new UnsupportedOperationException("Not implemented: queryDeployedModelsCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStubSettings.java new file mode 100644 index 000000000..fdaa96aaa --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DeploymentResourcePoolServiceStubSettings.java @@ -0,0 +1,868 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub; + +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListDeploymentResourcePoolsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.QueryDeployedModelsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeployedModel; +import com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool; +import com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; +import com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; +import com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; +import com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; +import com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DeploymentResourcePoolServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getDeploymentResourcePool to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DeploymentResourcePoolServiceStubSettings.Builder deploymentResourcePoolServiceSettingsBuilder =
+ *     DeploymentResourcePoolServiceStubSettings.newBuilder();
+ * deploymentResourcePoolServiceSettingsBuilder
+ *     .getDeploymentResourcePoolSettings()
+ *     .setRetrySettings(
+ *         deploymentResourcePoolServiceSettingsBuilder
+ *             .getDeploymentResourcePoolSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DeploymentResourcePoolServiceStubSettings deploymentResourcePoolServiceSettings =
+ *     deploymentResourcePoolServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class DeploymentResourcePoolServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + createDeploymentResourcePoolSettings; + private final OperationCallSettings< + CreateDeploymentResourcePoolRequest, + DeploymentResourcePool, + CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolOperationSettings; + private final UnaryCallSettings + getDeploymentResourcePoolSettings; + private final PagedCallSettings< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + ListDeploymentResourcePoolsPagedResponse> + listDeploymentResourcePoolsSettings; + private final UnaryCallSettings + deleteDeploymentResourcePoolSettings; + private final OperationCallSettings< + DeleteDeploymentResourcePoolRequest, Empty, DeleteOperationMetadata> + deleteDeploymentResourcePoolOperationSettings; + private final PagedCallSettings< + QueryDeployedModelsRequest, QueryDeployedModelsResponse, QueryDeployedModelsPagedResponse> + queryDeployedModelsSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + DeploymentResourcePool> + LIST_DEPLOYMENT_RESOURCE_POOLS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + DeploymentResourcePool>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDeploymentResourcePoolsRequest injectToken( + ListDeploymentResourcePoolsRequest payload, String token) { + return ListDeploymentResourcePoolsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListDeploymentResourcePoolsRequest injectPageSize( + ListDeploymentResourcePoolsRequest payload, int pageSize) { + return ListDeploymentResourcePoolsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListDeploymentResourcePoolsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDeploymentResourcePoolsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListDeploymentResourcePoolsResponse payload) { + return payload.getDeploymentResourcePoolsList() == null + ? ImmutableList.of() + : payload.getDeploymentResourcePoolsList(); + } + }; + + private static final PagedListDescriptor< + QueryDeployedModelsRequest, QueryDeployedModelsResponse, DeployedModel> + QUERY_DEPLOYED_MODELS_PAGE_STR_DESC = + new PagedListDescriptor< + QueryDeployedModelsRequest, QueryDeployedModelsResponse, DeployedModel>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryDeployedModelsRequest injectToken( + QueryDeployedModelsRequest payload, String token) { + return QueryDeployedModelsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryDeployedModelsRequest injectPageSize( + QueryDeployedModelsRequest payload, int pageSize) { + return QueryDeployedModelsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryDeployedModelsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryDeployedModelsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(QueryDeployedModelsResponse payload) { + return payload.getDeployedModelsList() == null + ? ImmutableList.of() + : payload.getDeployedModelsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + ListDeploymentResourcePoolsPagedResponse> + LIST_DEPLOYMENT_RESOURCE_POOLS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + ListDeploymentResourcePoolsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsResponse> + callable, + ListDeploymentResourcePoolsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + DeploymentResourcePool> + pageContext = + PageContext.create( + callable, LIST_DEPLOYMENT_RESOURCE_POOLS_PAGE_STR_DESC, request, context); + return ListDeploymentResourcePoolsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + QueryDeployedModelsRequest, QueryDeployedModelsResponse, QueryDeployedModelsPagedResponse> + QUERY_DEPLOYED_MODELS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryDeployedModelsRequest, + QueryDeployedModelsResponse, + QueryDeployedModelsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryDeployedModelsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, QUERY_DEPLOYED_MODELS_PAGE_STR_DESC, request, context); + return QueryDeployedModelsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createDeploymentResourcePool. */ + public UnaryCallSettings + createDeploymentResourcePoolSettings() { + return createDeploymentResourcePoolSettings; + } + + /** Returns the object with the settings used for calls to createDeploymentResourcePool. */ + public OperationCallSettings< + CreateDeploymentResourcePoolRequest, + DeploymentResourcePool, + CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolOperationSettings() { + return createDeploymentResourcePoolOperationSettings; + } + + /** Returns the object with the settings used for calls to getDeploymentResourcePool. */ + public UnaryCallSettings + getDeploymentResourcePoolSettings() { + return getDeploymentResourcePoolSettings; + } + + /** Returns the object with the settings used for calls to listDeploymentResourcePools. */ + public PagedCallSettings< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + ListDeploymentResourcePoolsPagedResponse> + listDeploymentResourcePoolsSettings() { + return listDeploymentResourcePoolsSettings; + } + + /** Returns the object with the settings used for calls to deleteDeploymentResourcePool. */ + public UnaryCallSettings + deleteDeploymentResourcePoolSettings() { + return deleteDeploymentResourcePoolSettings; + } + + /** Returns the object with the settings used for calls to deleteDeploymentResourcePool. */ + public OperationCallSettings + deleteDeploymentResourcePoolOperationSettings() { + return deleteDeploymentResourcePoolOperationSettings; + } + + /** Returns the object with the settings used for calls to queryDeployedModels. */ + public PagedCallSettings< + QueryDeployedModelsRequest, QueryDeployedModelsResponse, QueryDeployedModelsPagedResponse> + queryDeployedModelsSettings() { + return queryDeployedModelsSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public DeploymentResourcePoolServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDeploymentResourcePoolServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "aiplatform.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "aiplatform.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion(DeploymentResourcePoolServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DeploymentResourcePoolServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createDeploymentResourcePoolSettings = + settingsBuilder.createDeploymentResourcePoolSettings().build(); + createDeploymentResourcePoolOperationSettings = + settingsBuilder.createDeploymentResourcePoolOperationSettings().build(); + getDeploymentResourcePoolSettings = settingsBuilder.getDeploymentResourcePoolSettings().build(); + listDeploymentResourcePoolsSettings = + settingsBuilder.listDeploymentResourcePoolsSettings().build(); + deleteDeploymentResourcePoolSettings = + settingsBuilder.deleteDeploymentResourcePoolSettings().build(); + deleteDeploymentResourcePoolOperationSettings = + settingsBuilder.deleteDeploymentResourcePoolOperationSettings().build(); + queryDeployedModelsSettings = settingsBuilder.queryDeployedModelsSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for DeploymentResourcePoolServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createDeploymentResourcePoolSettings; + private final OperationCallSettings.Builder< + CreateDeploymentResourcePoolRequest, + DeploymentResourcePool, + CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolOperationSettings; + private final UnaryCallSettings.Builder< + GetDeploymentResourcePoolRequest, DeploymentResourcePool> + getDeploymentResourcePoolSettings; + private final PagedCallSettings.Builder< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + ListDeploymentResourcePoolsPagedResponse> + listDeploymentResourcePoolsSettings; + private final UnaryCallSettings.Builder + deleteDeploymentResourcePoolSettings; + private final OperationCallSettings.Builder< + DeleteDeploymentResourcePoolRequest, Empty, DeleteOperationMetadata> + deleteDeploymentResourcePoolOperationSettings; + private final PagedCallSettings.Builder< + QueryDeployedModelsRequest, + QueryDeployedModelsResponse, + QueryDeployedModelsPagedResponse> + queryDeployedModelsSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createDeploymentResourcePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDeploymentResourcePoolOperationSettings = OperationCallSettings.newBuilder(); + getDeploymentResourcePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDeploymentResourcePoolsSettings = + PagedCallSettings.newBuilder(LIST_DEPLOYMENT_RESOURCE_POOLS_PAGE_STR_FACT); + deleteDeploymentResourcePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDeploymentResourcePoolOperationSettings = OperationCallSettings.newBuilder(); + queryDeployedModelsSettings = + PagedCallSettings.newBuilder(QUERY_DEPLOYED_MODELS_PAGE_STR_FACT); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createDeploymentResourcePoolSettings, + getDeploymentResourcePoolSettings, + listDeploymentResourcePoolsSettings, + deleteDeploymentResourcePoolSettings, + queryDeployedModelsSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(DeploymentResourcePoolServiceStubSettings settings) { + super(settings); + + createDeploymentResourcePoolSettings = + settings.createDeploymentResourcePoolSettings.toBuilder(); + createDeploymentResourcePoolOperationSettings = + settings.createDeploymentResourcePoolOperationSettings.toBuilder(); + getDeploymentResourcePoolSettings = settings.getDeploymentResourcePoolSettings.toBuilder(); + listDeploymentResourcePoolsSettings = + settings.listDeploymentResourcePoolsSettings.toBuilder(); + deleteDeploymentResourcePoolSettings = + settings.deleteDeploymentResourcePoolSettings.toBuilder(); + deleteDeploymentResourcePoolOperationSettings = + settings.deleteDeploymentResourcePoolOperationSettings.toBuilder(); + queryDeployedModelsSettings = settings.queryDeployedModelsSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createDeploymentResourcePoolSettings, + getDeploymentResourcePoolSettings, + listDeploymentResourcePoolsSettings, + deleteDeploymentResourcePoolSettings, + queryDeployedModelsSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createDeploymentResourcePoolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getDeploymentResourcePoolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listDeploymentResourcePoolsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteDeploymentResourcePoolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .queryDeployedModelsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createDeploymentResourcePoolOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DeploymentResourcePool.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateDeploymentResourcePoolOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteDeploymentResourcePoolOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createDeploymentResourcePool. */ + public UnaryCallSettings.Builder + createDeploymentResourcePoolSettings() { + return createDeploymentResourcePoolSettings; + } + + /** Returns the builder for the settings used for calls to createDeploymentResourcePool. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateDeploymentResourcePoolRequest, + DeploymentResourcePool, + CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolOperationSettings() { + return createDeploymentResourcePoolOperationSettings; + } + + /** Returns the builder for the settings used for calls to getDeploymentResourcePool. */ + public UnaryCallSettings.Builder + getDeploymentResourcePoolSettings() { + return getDeploymentResourcePoolSettings; + } + + /** Returns the builder for the settings used for calls to listDeploymentResourcePools. */ + public PagedCallSettings.Builder< + ListDeploymentResourcePoolsRequest, + ListDeploymentResourcePoolsResponse, + ListDeploymentResourcePoolsPagedResponse> + listDeploymentResourcePoolsSettings() { + return listDeploymentResourcePoolsSettings; + } + + /** Returns the builder for the settings used for calls to deleteDeploymentResourcePool. */ + public UnaryCallSettings.Builder + deleteDeploymentResourcePoolSettings() { + return deleteDeploymentResourcePoolSettings; + } + + /** Returns the builder for the settings used for calls to deleteDeploymentResourcePool. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteDeploymentResourcePoolRequest, Empty, DeleteOperationMetadata> + deleteDeploymentResourcePoolOperationSettings() { + return deleteDeploymentResourcePoolOperationSettings; + } + + /** Returns the builder for the settings used for calls to queryDeployedModels. */ + public PagedCallSettings.Builder< + QueryDeployedModelsRequest, + QueryDeployedModelsResponse, + QueryDeployedModelsPagedResponse> + queryDeployedModelsSettings() { + return queryDeployedModelsSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public DeploymentResourcePoolServiceStubSettings build() throws IOException { + return new DeploymentResourcePoolServiceStubSettings(this); + } + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDeploymentResourcePoolServiceCallableFactory.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDeploymentResourcePoolServiceCallableFactory.java new file mode 100644 index 000000000..ec7266063 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDeploymentResourcePoolServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the DeploymentResourcePoolService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcDeploymentResourcePoolServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDeploymentResourcePoolServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDeploymentResourcePoolServiceStub.java new file mode 100644 index 000000000..9d1435a99 --- /dev/null +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDeploymentResourcePoolServiceStub.java @@ -0,0 +1,566 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub; + +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListDeploymentResourcePoolsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.QueryDeployedModelsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool; +import com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; +import com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; +import com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; +import com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; +import com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DeploymentResourcePoolService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcDeploymentResourcePoolServiceStub extends DeploymentResourcePoolServiceStub { + private static final MethodDescriptor + createDeploymentResourcePoolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService/CreateDeploymentResourcePool") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDeploymentResourcePoolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDeploymentResourcePoolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService/GetDeploymentResourcePool") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDeploymentResourcePoolRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DeploymentResourcePool.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsResponse> + listDeploymentResourcePoolsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService/ListDeploymentResourcePools") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDeploymentResourcePoolsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDeploymentResourcePoolsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDeploymentResourcePoolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService/DeleteDeploymentResourcePool") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDeploymentResourcePoolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + queryDeployedModelsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService/QueryDeployedModels") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryDeployedModelsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryDeployedModelsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable + createDeploymentResourcePoolCallable; + private final OperationCallable< + CreateDeploymentResourcePoolRequest, + DeploymentResourcePool, + CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolOperationCallable; + private final UnaryCallable + getDeploymentResourcePoolCallable; + private final UnaryCallable< + ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsResponse> + listDeploymentResourcePoolsCallable; + private final UnaryCallable< + ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsPagedResponse> + listDeploymentResourcePoolsPagedCallable; + private final UnaryCallable + deleteDeploymentResourcePoolCallable; + private final OperationCallable< + DeleteDeploymentResourcePoolRequest, Empty, DeleteOperationMetadata> + deleteDeploymentResourcePoolOperationCallable; + private final UnaryCallable + queryDeployedModelsCallable; + private final UnaryCallable + queryDeployedModelsPagedCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDeploymentResourcePoolServiceStub create( + DeploymentResourcePoolServiceStubSettings settings) throws IOException { + return new GrpcDeploymentResourcePoolServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDeploymentResourcePoolServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcDeploymentResourcePoolServiceStub( + DeploymentResourcePoolServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDeploymentResourcePoolServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDeploymentResourcePoolServiceStub( + DeploymentResourcePoolServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcDeploymentResourcePoolServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcDeploymentResourcePoolServiceStub( + DeploymentResourcePoolServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcDeploymentResourcePoolServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcDeploymentResourcePoolServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcDeploymentResourcePoolServiceStub( + DeploymentResourcePoolServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + createDeploymentResourcePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDeploymentResourcePoolMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getDeploymentResourcePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDeploymentResourcePoolMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listDeploymentResourcePoolsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listDeploymentResourcePoolsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + deleteDeploymentResourcePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDeploymentResourcePoolMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + queryDeployedModelsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(queryDeployedModelsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "deployment_resource_pool", + String.valueOf(request.getDeploymentResourcePool())); + return params.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + + this.createDeploymentResourcePoolCallable = + callableFactory.createUnaryCallable( + createDeploymentResourcePoolTransportSettings, + settings.createDeploymentResourcePoolSettings(), + clientContext); + this.createDeploymentResourcePoolOperationCallable = + callableFactory.createOperationCallable( + createDeploymentResourcePoolTransportSettings, + settings.createDeploymentResourcePoolOperationSettings(), + clientContext, + operationsStub); + this.getDeploymentResourcePoolCallable = + callableFactory.createUnaryCallable( + getDeploymentResourcePoolTransportSettings, + settings.getDeploymentResourcePoolSettings(), + clientContext); + this.listDeploymentResourcePoolsCallable = + callableFactory.createUnaryCallable( + listDeploymentResourcePoolsTransportSettings, + settings.listDeploymentResourcePoolsSettings(), + clientContext); + this.listDeploymentResourcePoolsPagedCallable = + callableFactory.createPagedCallable( + listDeploymentResourcePoolsTransportSettings, + settings.listDeploymentResourcePoolsSettings(), + clientContext); + this.deleteDeploymentResourcePoolCallable = + callableFactory.createUnaryCallable( + deleteDeploymentResourcePoolTransportSettings, + settings.deleteDeploymentResourcePoolSettings(), + clientContext); + this.deleteDeploymentResourcePoolOperationCallable = + callableFactory.createOperationCallable( + deleteDeploymentResourcePoolTransportSettings, + settings.deleteDeploymentResourcePoolOperationSettings(), + clientContext, + operationsStub); + this.queryDeployedModelsCallable = + callableFactory.createUnaryCallable( + queryDeployedModelsTransportSettings, + settings.queryDeployedModelsSettings(), + clientContext); + this.queryDeployedModelsPagedCallable = + callableFactory.createPagedCallable( + queryDeployedModelsTransportSettings, + settings.queryDeployedModelsSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + createDeploymentResourcePoolCallable() { + return createDeploymentResourcePoolCallable; + } + + @Override + public OperationCallable< + CreateDeploymentResourcePoolRequest, + DeploymentResourcePool, + CreateDeploymentResourcePoolOperationMetadata> + createDeploymentResourcePoolOperationCallable() { + return createDeploymentResourcePoolOperationCallable; + } + + @Override + public UnaryCallable + getDeploymentResourcePoolCallable() { + return getDeploymentResourcePoolCallable; + } + + @Override + public UnaryCallable + listDeploymentResourcePoolsCallable() { + return listDeploymentResourcePoolsCallable; + } + + @Override + public UnaryCallable + listDeploymentResourcePoolsPagedCallable() { + return listDeploymentResourcePoolsPagedCallable; + } + + @Override + public UnaryCallable + deleteDeploymentResourcePoolCallable() { + return deleteDeploymentResourcePoolCallable; + } + + @Override + public OperationCallable + deleteDeploymentResourcePoolOperationCallable() { + return deleteDeploymentResourcePoolOperationCallable; + } + + @Override + public UnaryCallable + queryDeployedModelsCallable() { + return queryDeployedModelsCallable; + } + + @Override + public UnaryCallable + queryDeployedModelsPagedCallable() { + return queryDeployedModelsPagedCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClientTest.java new file mode 100644 index 000000000..bf01fef5d --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClientTest.java @@ -0,0 +1,816 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListDeploymentResourcePoolsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.QueryDeployedModelsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DeploymentResourcePoolServiceClientTest { + private static MockDeploymentResourcePoolService mockDeploymentResourcePoolService; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DeploymentResourcePoolServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockDeploymentResourcePoolService = new MockDeploymentResourcePoolService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList( + mockDeploymentResourcePoolService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DeploymentResourcePoolServiceSettings settings = + DeploymentResourcePoolServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DeploymentResourcePoolServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createDeploymentResourcePoolTest() throws Exception { + DeploymentResourcePool expectedResponse = + DeploymentResourcePool.newBuilder() + .setName( + DeploymentResourcePoolName.of( + "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]") + .toString()) + .setDedicatedResources(DedicatedResources.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDeploymentResourcePoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDeploymentResourcePoolService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DeploymentResourcePool deploymentResourcePool = DeploymentResourcePool.newBuilder().build(); + String deploymentResourcePoolId = "deploymentResourcePoolId1805697578"; + + DeploymentResourcePool actualResponse = + client + .createDeploymentResourcePoolAsync( + parent, deploymentResourcePool, deploymentResourcePoolId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeploymentResourcePoolService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDeploymentResourcePoolRequest actualRequest = + ((CreateDeploymentResourcePoolRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(deploymentResourcePool, actualRequest.getDeploymentResourcePool()); + Assert.assertEquals(deploymentResourcePoolId, actualRequest.getDeploymentResourcePoolId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDeploymentResourcePoolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeploymentResourcePoolService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DeploymentResourcePool deploymentResourcePool = DeploymentResourcePool.newBuilder().build(); + String deploymentResourcePoolId = "deploymentResourcePoolId1805697578"; + client + .createDeploymentResourcePoolAsync( + parent, deploymentResourcePool, deploymentResourcePoolId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createDeploymentResourcePoolTest2() throws Exception { + DeploymentResourcePool expectedResponse = + DeploymentResourcePool.newBuilder() + .setName( + DeploymentResourcePoolName.of( + "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]") + .toString()) + .setDedicatedResources(DedicatedResources.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDeploymentResourcePoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDeploymentResourcePoolService.addResponse(resultOperation); + + String parent = "parent-995424086"; + DeploymentResourcePool deploymentResourcePool = DeploymentResourcePool.newBuilder().build(); + String deploymentResourcePoolId = "deploymentResourcePoolId1805697578"; + + DeploymentResourcePool actualResponse = + client + .createDeploymentResourcePoolAsync( + parent, deploymentResourcePool, deploymentResourcePoolId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeploymentResourcePoolService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDeploymentResourcePoolRequest actualRequest = + ((CreateDeploymentResourcePoolRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(deploymentResourcePool, actualRequest.getDeploymentResourcePool()); + Assert.assertEquals(deploymentResourcePoolId, actualRequest.getDeploymentResourcePoolId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDeploymentResourcePoolExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeploymentResourcePoolService.addException(exception); + + try { + String parent = "parent-995424086"; + DeploymentResourcePool deploymentResourcePool = DeploymentResourcePool.newBuilder().build(); + String deploymentResourcePoolId = "deploymentResourcePoolId1805697578"; + client + .createDeploymentResourcePoolAsync( + parent, deploymentResourcePool, deploymentResourcePoolId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getDeploymentResourcePoolTest() throws Exception { + DeploymentResourcePool expectedResponse = + DeploymentResourcePool.newBuilder() + .setName( + DeploymentResourcePoolName.of( + "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]") + .toString()) + .setDedicatedResources(DedicatedResources.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockDeploymentResourcePoolService.addResponse(expectedResponse); + + DeploymentResourcePoolName name = + DeploymentResourcePoolName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]"); + + DeploymentResourcePool actualResponse = client.getDeploymentResourcePool(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeploymentResourcePoolService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDeploymentResourcePoolRequest actualRequest = + ((GetDeploymentResourcePoolRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDeploymentResourcePoolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeploymentResourcePoolService.addException(exception); + + try { + DeploymentResourcePoolName name = + DeploymentResourcePoolName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]"); + client.getDeploymentResourcePool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDeploymentResourcePoolTest2() throws Exception { + DeploymentResourcePool expectedResponse = + DeploymentResourcePool.newBuilder() + .setName( + DeploymentResourcePoolName.of( + "[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]") + .toString()) + .setDedicatedResources(DedicatedResources.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockDeploymentResourcePoolService.addResponse(expectedResponse); + + String name = "name3373707"; + + DeploymentResourcePool actualResponse = client.getDeploymentResourcePool(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeploymentResourcePoolService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDeploymentResourcePoolRequest actualRequest = + ((GetDeploymentResourcePoolRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDeploymentResourcePoolExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeploymentResourcePoolService.addException(exception); + + try { + String name = "name3373707"; + client.getDeploymentResourcePool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentResourcePoolsTest() throws Exception { + DeploymentResourcePool responsesElement = DeploymentResourcePool.newBuilder().build(); + ListDeploymentResourcePoolsResponse expectedResponse = + ListDeploymentResourcePoolsResponse.newBuilder() + .setNextPageToken("") + .addAllDeploymentResourcePools(Arrays.asList(responsesElement)) + .build(); + mockDeploymentResourcePoolService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListDeploymentResourcePoolsPagedResponse pagedListResponse = + client.listDeploymentResourcePools(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentResourcePoolsList().get(0), resources.get(0)); + + List actualRequests = mockDeploymentResourcePoolService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDeploymentResourcePoolsRequest actualRequest = + ((ListDeploymentResourcePoolsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDeploymentResourcePoolsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeploymentResourcePoolService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listDeploymentResourcePools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDeploymentResourcePoolsTest2() throws Exception { + DeploymentResourcePool responsesElement = DeploymentResourcePool.newBuilder().build(); + ListDeploymentResourcePoolsResponse expectedResponse = + ListDeploymentResourcePoolsResponse.newBuilder() + .setNextPageToken("") + .addAllDeploymentResourcePools(Arrays.asList(responsesElement)) + .build(); + mockDeploymentResourcePoolService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDeploymentResourcePoolsPagedResponse pagedListResponse = + client.listDeploymentResourcePools(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeploymentResourcePoolsList().get(0), resources.get(0)); + + List actualRequests = mockDeploymentResourcePoolService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDeploymentResourcePoolsRequest actualRequest = + ((ListDeploymentResourcePoolsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDeploymentResourcePoolsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeploymentResourcePoolService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDeploymentResourcePools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDeploymentResourcePoolTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDeploymentResourcePoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDeploymentResourcePoolService.addResponse(resultOperation); + + DeploymentResourcePoolName name = + DeploymentResourcePoolName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]"); + + client.deleteDeploymentResourcePoolAsync(name).get(); + + List actualRequests = mockDeploymentResourcePoolService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDeploymentResourcePoolRequest actualRequest = + ((DeleteDeploymentResourcePoolRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDeploymentResourcePoolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeploymentResourcePoolService.addException(exception); + + try { + DeploymentResourcePoolName name = + DeploymentResourcePoolName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]"); + client.deleteDeploymentResourcePoolAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteDeploymentResourcePoolTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDeploymentResourcePoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDeploymentResourcePoolService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteDeploymentResourcePoolAsync(name).get(); + + List actualRequests = mockDeploymentResourcePoolService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDeploymentResourcePoolRequest actualRequest = + ((DeleteDeploymentResourcePoolRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDeploymentResourcePoolExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeploymentResourcePoolService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDeploymentResourcePoolAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void queryDeployedModelsTest() throws Exception { + DeployedModel responsesElement = DeployedModel.newBuilder().build(); + QueryDeployedModelsResponse expectedResponse = + QueryDeployedModelsResponse.newBuilder() + .setNextPageToken("") + .addAllDeployedModels(Arrays.asList(responsesElement)) + .build(); + mockDeploymentResourcePoolService.addResponse(expectedResponse); + + String deploymentResourcePool = "deploymentResourcePool-1928845137"; + + QueryDeployedModelsPagedResponse pagedListResponse = + client.queryDeployedModels(deploymentResourcePool); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDeployedModelsList().get(0), resources.get(0)); + + List actualRequests = mockDeploymentResourcePoolService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryDeployedModelsRequest actualRequest = ((QueryDeployedModelsRequest) actualRequests.get(0)); + + Assert.assertEquals(deploymentResourcePool, actualRequest.getDeploymentResourcePool()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryDeployedModelsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeploymentResourcePoolService.addException(exception); + + try { + String deploymentResourcePool = "deploymentResourcePool-1928845137"; + client.queryDeployedModels(deploymentResourcePool); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDeploymentResourcePoolService.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDeploymentResourcePoolService.java new file mode 100644 index 000000000..6757a1906 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDeploymentResourcePoolService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDeploymentResourcePoolService implements MockGrpcService { + private final MockDeploymentResourcePoolServiceImpl serviceImpl; + + public MockDeploymentResourcePoolService() { + serviceImpl = new MockDeploymentResourcePoolServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDeploymentResourcePoolServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDeploymentResourcePoolServiceImpl.java new file mode 100644 index 000000000..22f2d4e17 --- /dev/null +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDeploymentResourcePoolServiceImpl.java @@ -0,0 +1,169 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceGrpc.DeploymentResourcePoolServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDeploymentResourcePoolServiceImpl extends DeploymentResourcePoolServiceImplBase { + private List requests; + private Queue responses; + + public MockDeploymentResourcePoolServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createDeploymentResourcePool( + CreateDeploymentResourcePoolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateDeploymentResourcePool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDeploymentResourcePool( + GetDeploymentResourcePoolRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DeploymentResourcePool) { + requests.add(request); + responseObserver.onNext(((DeploymentResourcePool) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetDeploymentResourcePool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DeploymentResourcePool.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDeploymentResourcePools( + ListDeploymentResourcePoolsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDeploymentResourcePoolsResponse) { + requests.add(request); + responseObserver.onNext(((ListDeploymentResourcePoolsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListDeploymentResourcePools, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDeploymentResourcePoolsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDeploymentResourcePool( + DeleteDeploymentResourcePoolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteDeploymentResourcePool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryDeployedModels( + QueryDeployedModelsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryDeployedModelsResponse) { + requests.add(request); + responseObserver.onNext(((QueryDeployedModelsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method QueryDeployedModels, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryDeployedModelsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceGrpc.java new file mode 100644 index 000000000..37f71abd1 --- /dev/null +++ b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceGrpc.java @@ -0,0 +1,885 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.aiplatform.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A service that manages the DeploymentResourcePool resource.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DeploymentResourcePoolServiceGrpc { + + private DeploymentResourcePoolServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest, + com.google.longrunning.Operation> + getCreateDeploymentResourcePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDeploymentResourcePool", + requestType = com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest, + com.google.longrunning.Operation> + getCreateDeploymentResourcePoolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest, + com.google.longrunning.Operation> + getCreateDeploymentResourcePoolMethod; + if ((getCreateDeploymentResourcePoolMethod = + DeploymentResourcePoolServiceGrpc.getCreateDeploymentResourcePoolMethod) + == null) { + synchronized (DeploymentResourcePoolServiceGrpc.class) { + if ((getCreateDeploymentResourcePoolMethod = + DeploymentResourcePoolServiceGrpc.getCreateDeploymentResourcePoolMethod) + == null) { + DeploymentResourcePoolServiceGrpc.getCreateDeploymentResourcePoolMethod = + getCreateDeploymentResourcePoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateDeploymentResourcePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .CreateDeploymentResourcePoolRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DeploymentResourcePoolServiceMethodDescriptorSupplier( + "CreateDeploymentResourcePool")) + .build(); + } + } + } + return getCreateDeploymentResourcePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool> + getGetDeploymentResourcePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDeploymentResourcePool", + requestType = com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool> + getGetDeploymentResourcePoolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool> + getGetDeploymentResourcePoolMethod; + if ((getGetDeploymentResourcePoolMethod = + DeploymentResourcePoolServiceGrpc.getGetDeploymentResourcePoolMethod) + == null) { + synchronized (DeploymentResourcePoolServiceGrpc.class) { + if ((getGetDeploymentResourcePoolMethod = + DeploymentResourcePoolServiceGrpc.getGetDeploymentResourcePoolMethod) + == null) { + DeploymentResourcePoolServiceGrpc.getGetDeploymentResourcePoolMethod = + getGetDeploymentResourcePoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDeploymentResourcePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool + .getDefaultInstance())) + .setSchemaDescriptor( + new DeploymentResourcePoolServiceMethodDescriptorSupplier( + "GetDeploymentResourcePool")) + .build(); + } + } + } + return getGetDeploymentResourcePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest, + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse> + getListDeploymentResourcePoolsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeploymentResourcePools", + requestType = com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest, + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse> + getListDeploymentResourcePoolsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest, + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse> + getListDeploymentResourcePoolsMethod; + if ((getListDeploymentResourcePoolsMethod = + DeploymentResourcePoolServiceGrpc.getListDeploymentResourcePoolsMethod) + == null) { + synchronized (DeploymentResourcePoolServiceGrpc.class) { + if ((getListDeploymentResourcePoolsMethod = + DeploymentResourcePoolServiceGrpc.getListDeploymentResourcePoolsMethod) + == null) { + DeploymentResourcePoolServiceGrpc.getListDeploymentResourcePoolsMethod = + getListDeploymentResourcePoolsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListDeploymentResourcePools")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .ListDeploymentResourcePoolsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new DeploymentResourcePoolServiceMethodDescriptorSupplier( + "ListDeploymentResourcePools")) + .build(); + } + } + } + return getListDeploymentResourcePoolsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest, + com.google.longrunning.Operation> + getDeleteDeploymentResourcePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDeploymentResourcePool", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest, + com.google.longrunning.Operation> + getDeleteDeploymentResourcePoolMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest, + com.google.longrunning.Operation> + getDeleteDeploymentResourcePoolMethod; + if ((getDeleteDeploymentResourcePoolMethod = + DeploymentResourcePoolServiceGrpc.getDeleteDeploymentResourcePoolMethod) + == null) { + synchronized (DeploymentResourcePoolServiceGrpc.class) { + if ((getDeleteDeploymentResourcePoolMethod = + DeploymentResourcePoolServiceGrpc.getDeleteDeploymentResourcePoolMethod) + == null) { + DeploymentResourcePoolServiceGrpc.getDeleteDeploymentResourcePoolMethod = + getDeleteDeploymentResourcePoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteDeploymentResourcePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .DeleteDeploymentResourcePoolRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DeploymentResourcePoolServiceMethodDescriptorSupplier( + "DeleteDeploymentResourcePool")) + .build(); + } + } + } + return getDeleteDeploymentResourcePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest, + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse> + getQueryDeployedModelsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryDeployedModels", + requestType = com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest, + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse> + getQueryDeployedModelsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest, + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse> + getQueryDeployedModelsMethod; + if ((getQueryDeployedModelsMethod = + DeploymentResourcePoolServiceGrpc.getQueryDeployedModelsMethod) + == null) { + synchronized (DeploymentResourcePoolServiceGrpc.class) { + if ((getQueryDeployedModelsMethod = + DeploymentResourcePoolServiceGrpc.getQueryDeployedModelsMethod) + == null) { + DeploymentResourcePoolServiceGrpc.getQueryDeployedModelsMethod = + getQueryDeployedModelsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryDeployedModels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DeploymentResourcePoolServiceMethodDescriptorSupplier( + "QueryDeployedModels")) + .build(); + } + } + } + return getQueryDeployedModelsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DeploymentResourcePoolServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeploymentResourcePoolServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentResourcePoolServiceStub(channel, callOptions); + } + }; + return DeploymentResourcePoolServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DeploymentResourcePoolServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeploymentResourcePoolServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentResourcePoolServiceBlockingStub(channel, callOptions); + } + }; + return DeploymentResourcePoolServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DeploymentResourcePoolServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DeploymentResourcePoolServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentResourcePoolServiceFutureStub(channel, callOptions); + } + }; + return DeploymentResourcePoolServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A service that manages the DeploymentResourcePool resource.
+   * 
+ */ + public abstract static class DeploymentResourcePoolServiceImplBase + implements io.grpc.BindableService { + + /** + * + * + *
+     * Create a DeploymentResourcePool.
+     * 
+ */ + public void createDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDeploymentResourcePoolMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a DeploymentResourcePool.
+     * 
+ */ + public void getDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDeploymentResourcePoolMethod(), responseObserver); + } + + /** + * + * + *
+     * List DeploymentResourcePools in a location.
+     * 
+ */ + public void listDeploymentResourcePools( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeploymentResourcePoolsMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a DeploymentResourcePool.
+     * 
+ */ + public void deleteDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDeploymentResourcePoolMethod(), responseObserver); + } + + /** + * + * + *
+     * List DeployedModels that have been deployed on this DeploymentResourcePool.
+     * 
+ */ + public void queryDeployedModels( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryDeployedModelsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateDeploymentResourcePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_DEPLOYMENT_RESOURCE_POOL))) + .addMethod( + getGetDeploymentResourcePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool>( + this, METHODID_GET_DEPLOYMENT_RESOURCE_POOL))) + .addMethod( + getListDeploymentResourcePoolsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest, + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse>( + this, METHODID_LIST_DEPLOYMENT_RESOURCE_POOLS))) + .addMethod( + getDeleteDeploymentResourcePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_DEPLOYMENT_RESOURCE_POOL))) + .addMethod( + getQueryDeployedModelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest, + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse>( + this, METHODID_QUERY_DEPLOYED_MODELS))) + .build(); + } + } + + /** + * + * + *
+   * A service that manages the DeploymentResourcePool resource.
+   * 
+ */ + public static final class DeploymentResourcePoolServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DeploymentResourcePoolServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeploymentResourcePoolServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentResourcePoolServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a DeploymentResourcePool.
+     * 
+ */ + public void createDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDeploymentResourcePoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a DeploymentResourcePool.
+     * 
+ */ + public void getDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeploymentResourcePoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List DeploymentResourcePools in a location.
+     * 
+ */ + public void listDeploymentResourcePools( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeploymentResourcePoolsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a DeploymentResourcePool.
+     * 
+ */ + public void deleteDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDeploymentResourcePoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List DeployedModels that have been deployed on this DeploymentResourcePool.
+     * 
+ */ + public void queryDeployedModels( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryDeployedModelsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service that manages the DeploymentResourcePool resource.
+   * 
+ */ + public static final class DeploymentResourcePoolServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DeploymentResourcePoolServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeploymentResourcePoolServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentResourcePoolServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a DeploymentResourcePool.
+     * 
+ */ + public com.google.longrunning.Operation createDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDeploymentResourcePoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a DeploymentResourcePool.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeploymentResourcePoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List DeploymentResourcePools in a location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse + listDeploymentResourcePools( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeploymentResourcePoolsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a DeploymentResourcePool.
+     * 
+ */ + public com.google.longrunning.Operation deleteDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDeploymentResourcePoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List DeployedModels that have been deployed on this DeploymentResourcePool.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse queryDeployedModels( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryDeployedModelsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service that manages the DeploymentResourcePool resource.
+   * 
+ */ + public static final class DeploymentResourcePoolServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DeploymentResourcePoolServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DeploymentResourcePoolServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DeploymentResourcePoolServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a DeploymentResourcePool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDeploymentResourcePoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a DeploymentResourcePool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool> + getDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeploymentResourcePoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List DeploymentResourcePools in a location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse> + listDeploymentResourcePools( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeploymentResourcePoolsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a DeploymentResourcePool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDeploymentResourcePoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List DeployedModels that have been deployed on this DeploymentResourcePool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse> + queryDeployedModels( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryDeployedModelsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_DEPLOYMENT_RESOURCE_POOL = 0; + private static final int METHODID_GET_DEPLOYMENT_RESOURCE_POOL = 1; + private static final int METHODID_LIST_DEPLOYMENT_RESOURCE_POOLS = 2; + private static final int METHODID_DELETE_DEPLOYMENT_RESOURCE_POOL = 3; + private static final int METHODID_QUERY_DEPLOYED_MODELS = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final DeploymentResourcePoolServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DeploymentResourcePoolServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_DEPLOYMENT_RESOURCE_POOL: + serviceImpl.createDeploymentResourcePool( + (com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DEPLOYMENT_RESOURCE_POOL: + serviceImpl.getDeploymentResourcePool( + (com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool>) + responseObserver); + break; + case METHODID_LIST_DEPLOYMENT_RESOURCE_POOLS: + serviceImpl.listDeploymentResourcePools( + (com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse>) + responseObserver); + break; + case METHODID_DELETE_DEPLOYMENT_RESOURCE_POOL: + serviceImpl.deleteDeploymentResourcePool( + (com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_QUERY_DEPLOYED_MODELS: + serviceImpl.queryDeployedModels( + (com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class DeploymentResourcePoolServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DeploymentResourcePoolServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DeploymentResourcePoolService"); + } + } + + private static final class DeploymentResourcePoolServiceFileDescriptorSupplier + extends DeploymentResourcePoolServiceBaseDescriptorSupplier { + DeploymentResourcePoolServiceFileDescriptorSupplier() {} + } + + private static final class DeploymentResourcePoolServiceMethodDescriptorSupplier + extends DeploymentResourcePoolServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DeploymentResourcePoolServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DeploymentResourcePoolServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new DeploymentResourcePoolServiceFileDescriptorSupplier()) + .addMethod(getCreateDeploymentResourcePoolMethod()) + .addMethod(getGetDeploymentResourcePoolMethod()) + .addMethod(getListDeploymentResourcePoolsMethod()) + .addMethod(getDeleteDeploymentResourcePoolMethod()) + .addMethod(getQueryDeployedModelsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java index 30bc3c295..a122dacf2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java @@ -1975,8 +1975,8 @@ public int getExportableContentsValue(int index) { * repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of exportableContents at the given index. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for exportableContents to set. * @return This builder for chaining. */ public Builder setExportableContentsValue(int index, int value) { @@ -7946,9 +7946,8 @@ public int getSupportedDeploymentResourcesTypesValue(int index) { * repeated .google.cloud.aiplatform.v1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedDeploymentResourcesTypes at the given - * index. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for supportedDeploymentResourcesTypes to set. * @return This builder for chaining. */ public Builder setSupportedDeploymentResourcesTypesValue(int index, int value) { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolOperationMetadata.java new file mode 100644 index 000000000..dde04fab8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolOperationMetadata.java @@ -0,0 +1,782 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Runtime operation information for CreateDeploymentResourcePool method.
+ * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata} + */ +public final class CreateDeploymentResourcePoolOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata) + CreateDeploymentResourcePoolOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDeploymentResourcePoolOperationMetadata.newBuilder() to construct. + private CreateDeploymentResourcePoolOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDeploymentResourcePoolOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDeploymentResourcePoolOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateDeploymentResourcePoolOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder subBuilder = + null; + if (genericMetadata_ != null) { + subBuilder = genericMetadata_.toBuilder(); + } + genericMetadata_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(genericMetadata_); + genericMetadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + .Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return getGenericMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (genericMetadata_ != null) { + output.writeMessage(1, getGenericMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (genericMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Runtime operation information for CreateDeploymentResourcePool method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata) + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + .class, + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + build() { + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata( + this); + if (genericMetadataBuilder_ == null) { + result.genericMetadata_ = genericMetadata_; + } else { + result.genericMetadata_ = genericMetadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + onChanged(); + } else { + genericMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + onChanged(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (genericMetadata_ != null) { + genericMetadata_ = + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( + genericMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + genericMetadata_ = value; + } + onChanged(); + } else { + genericMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + getGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1 + .CreateDeploymentResourcePoolOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDeploymentResourcePoolOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDeploymentResourcePoolOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolOperationMetadataOrBuilder.java new file mode 100644 index 000000000..630b91d77 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolOperationMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateDeploymentResourcePoolOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolRequest.java new file mode 100644 index 000000000..7b1021c89 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolRequest.java @@ -0,0 +1,1200 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for CreateDeploymentResourcePool method.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest} + */ +public final class CreateDeploymentResourcePoolRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest) + CreateDeploymentResourcePoolRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDeploymentResourcePoolRequest.newBuilder() to construct. + private CreateDeploymentResourcePoolRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDeploymentResourcePoolRequest() { + parent_ = ""; + deploymentResourcePoolId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDeploymentResourcePoolRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateDeploymentResourcePoolRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder subBuilder = null; + if (deploymentResourcePool_ != null) { + subBuilder = deploymentResourcePool_.toBuilder(); + } + deploymentResourcePool_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentResourcePool_); + deploymentResourcePool_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + deploymentResourcePoolId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent location resource where this DeploymentResourcePool will be
+   * created. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent location resource where this DeploymentResourcePool will be
+   * created. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYMENT_RESOURCE_POOL_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool deploymentResourcePool_; + /** + * + * + *
+   * Required. The DeploymentResourcePool to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deploymentResourcePool field is set. + */ + @java.lang.Override + public boolean hasDeploymentResourcePool() { + return deploymentResourcePool_ != null; + } + /** + * + * + *
+   * Required. The DeploymentResourcePool to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentResourcePool. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDeploymentResourcePool() { + return deploymentResourcePool_ == null + ? com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.getDefaultInstance() + : deploymentResourcePool_; + } + /** + * + * + *
+   * Required. The DeploymentResourcePool to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder + getDeploymentResourcePoolOrBuilder() { + return getDeploymentResourcePool(); + } + + public static final int DEPLOYMENT_RESOURCE_POOL_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object deploymentResourcePoolId_; + /** + * + * + *
+   * Required. The ID to use for the DeploymentResourcePool, which
+   * will become the final component of the DeploymentResourcePool's resource
+   * name.
+   * The maximum length is 63 characters, and valid characters
+   * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.
+   * 
+ * + * string deployment_resource_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentResourcePoolId. + */ + @java.lang.Override + public java.lang.String getDeploymentResourcePoolId() { + java.lang.Object ref = deploymentResourcePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentResourcePoolId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID to use for the DeploymentResourcePool, which
+   * will become the final component of the DeploymentResourcePool's resource
+   * name.
+   * The maximum length is 63 characters, and valid characters
+   * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.
+   * 
+ * + * string deployment_resource_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentResourcePoolId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentResourcePoolIdBytes() { + java.lang.Object ref = deploymentResourcePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentResourcePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (deploymentResourcePool_ != null) { + output.writeMessage(2, getDeploymentResourcePool()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deploymentResourcePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deploymentResourcePoolId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (deploymentResourcePool_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentResourcePool()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deploymentResourcePoolId_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deploymentResourcePoolId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDeploymentResourcePool() != other.hasDeploymentResourcePool()) return false; + if (hasDeploymentResourcePool()) { + if (!getDeploymentResourcePool().equals(other.getDeploymentResourcePool())) return false; + } + if (!getDeploymentResourcePoolId().equals(other.getDeploymentResourcePoolId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDeploymentResourcePool()) { + hash = (37 * hash) + DEPLOYMENT_RESOURCE_POOL_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentResourcePool().hashCode(); + } + hash = (37 * hash) + DEPLOYMENT_RESOURCE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentResourcePoolId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateDeploymentResourcePool method.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest) + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (deploymentResourcePoolBuilder_ == null) { + deploymentResourcePool_ = null; + } else { + deploymentResourcePool_ = null; + deploymentResourcePoolBuilder_ = null; + } + deploymentResourcePoolId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest(this); + result.parent_ = parent_; + if (deploymentResourcePoolBuilder_ == null) { + result.deploymentResourcePool_ = deploymentResourcePool_; + } else { + result.deploymentResourcePool_ = deploymentResourcePoolBuilder_.build(); + } + result.deploymentResourcePoolId_ = deploymentResourcePoolId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasDeploymentResourcePool()) { + mergeDeploymentResourcePool(other.getDeploymentResourcePool()); + } + if (!other.getDeploymentResourcePoolId().isEmpty()) { + deploymentResourcePoolId_ = other.deploymentResourcePoolId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent location resource where this DeploymentResourcePool will be
+     * created. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent location resource where this DeploymentResourcePool will be
+     * created. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent location resource where this DeploymentResourcePool will be
+     * created. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent location resource where this DeploymentResourcePool will be
+     * created. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent location resource where this DeploymentResourcePool will be
+     * created. Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool deploymentResourcePool_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder> + deploymentResourcePoolBuilder_; + /** + * + * + *
+     * Required. The DeploymentResourcePool to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deploymentResourcePool field is set. + */ + public boolean hasDeploymentResourcePool() { + return deploymentResourcePoolBuilder_ != null || deploymentResourcePool_ != null; + } + /** + * + * + *
+     * Required. The DeploymentResourcePool to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentResourcePool. + */ + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDeploymentResourcePool() { + if (deploymentResourcePoolBuilder_ == null) { + return deploymentResourcePool_ == null + ? com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.getDefaultInstance() + : deploymentResourcePool_; + } else { + return deploymentResourcePoolBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The DeploymentResourcePool to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool value) { + if (deploymentResourcePoolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentResourcePool_ = value; + onChanged(); + } else { + deploymentResourcePoolBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The DeploymentResourcePool to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder builderForValue) { + if (deploymentResourcePoolBuilder_ == null) { + deploymentResourcePool_ = builderForValue.build(); + onChanged(); + } else { + deploymentResourcePoolBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The DeploymentResourcePool to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDeploymentResourcePool( + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool value) { + if (deploymentResourcePoolBuilder_ == null) { + if (deploymentResourcePool_ != null) { + deploymentResourcePool_ = + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.newBuilder( + deploymentResourcePool_) + .mergeFrom(value) + .buildPartial(); + } else { + deploymentResourcePool_ = value; + } + onChanged(); + } else { + deploymentResourcePoolBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The DeploymentResourcePool to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDeploymentResourcePool() { + if (deploymentResourcePoolBuilder_ == null) { + deploymentResourcePool_ = null; + onChanged(); + } else { + deploymentResourcePool_ = null; + deploymentResourcePoolBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The DeploymentResourcePool to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder + getDeploymentResourcePoolBuilder() { + + onChanged(); + return getDeploymentResourcePoolFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The DeploymentResourcePool to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder + getDeploymentResourcePoolOrBuilder() { + if (deploymentResourcePoolBuilder_ != null) { + return deploymentResourcePoolBuilder_.getMessageOrBuilder(); + } else { + return deploymentResourcePool_ == null + ? com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.getDefaultInstance() + : deploymentResourcePool_; + } + } + /** + * + * + *
+     * Required. The DeploymentResourcePool to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder> + getDeploymentResourcePoolFieldBuilder() { + if (deploymentResourcePoolBuilder_ == null) { + deploymentResourcePoolBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder>( + getDeploymentResourcePool(), getParentForChildren(), isClean()); + deploymentResourcePool_ = null; + } + return deploymentResourcePoolBuilder_; + } + + private java.lang.Object deploymentResourcePoolId_ = ""; + /** + * + * + *
+     * Required. The ID to use for the DeploymentResourcePool, which
+     * will become the final component of the DeploymentResourcePool's resource
+     * name.
+     * The maximum length is 63 characters, and valid characters
+     * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.
+     * 
+ * + * string deployment_resource_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentResourcePoolId. + */ + public java.lang.String getDeploymentResourcePoolId() { + java.lang.Object ref = deploymentResourcePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentResourcePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID to use for the DeploymentResourcePool, which
+     * will become the final component of the DeploymentResourcePool's resource
+     * name.
+     * The maximum length is 63 characters, and valid characters
+     * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.
+     * 
+ * + * string deployment_resource_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for deploymentResourcePoolId. + */ + public com.google.protobuf.ByteString getDeploymentResourcePoolIdBytes() { + java.lang.Object ref = deploymentResourcePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentResourcePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID to use for the DeploymentResourcePool, which
+     * will become the final component of the DeploymentResourcePool's resource
+     * name.
+     * The maximum length is 63 characters, and valid characters
+     * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.
+     * 
+ * + * string deployment_resource_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The deploymentResourcePoolId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentResourcePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deploymentResourcePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for the DeploymentResourcePool, which
+     * will become the final component of the DeploymentResourcePool's resource
+     * name.
+     * The maximum length is 63 characters, and valid characters
+     * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.
+     * 
+ * + * string deployment_resource_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentResourcePoolId() { + + deploymentResourcePoolId_ = getDefaultInstance().getDeploymentResourcePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID to use for the DeploymentResourcePool, which
+     * will become the final component of the DeploymentResourcePool's resource
+     * name.
+     * The maximum length is 63 characters, and valid characters
+     * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.
+     * 
+ * + * string deployment_resource_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for deploymentResourcePoolId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentResourcePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deploymentResourcePoolId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDeploymentResourcePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDeploymentResourcePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolRequestOrBuilder.java new file mode 100644 index 000000000..844f6a201 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDeploymentResourcePoolRequestOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateDeploymentResourcePoolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent location resource where this DeploymentResourcePool will be
+   * created. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent location resource where this DeploymentResourcePool will be
+   * created. Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The DeploymentResourcePool to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the deploymentResourcePool field is set. + */ + boolean hasDeploymentResourcePool(); + /** + * + * + *
+   * Required. The DeploymentResourcePool to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentResourcePool. + */ + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDeploymentResourcePool(); + /** + * + * + *
+   * Required. The DeploymentResourcePool to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder + getDeploymentResourcePoolOrBuilder(); + + /** + * + * + *
+   * Required. The ID to use for the DeploymentResourcePool, which
+   * will become the final component of the DeploymentResourcePool's resource
+   * name.
+   * The maximum length is 63 characters, and valid characters
+   * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.
+   * 
+ * + * string deployment_resource_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentResourcePoolId. + */ + java.lang.String getDeploymentResourcePoolId(); + /** + * + * + *
+   * Required. The ID to use for the DeploymentResourcePool, which
+   * will become the final component of the DeploymentResourcePool's resource
+   * name.
+   * The maximum length is 63 characters, and valid characters
+   * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.
+   * 
+ * + * string deployment_resource_pool_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentResourcePoolId. + */ + com.google.protobuf.ByteString getDeploymentResourcePoolIdBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDeploymentResourcePoolRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDeploymentResourcePoolRequest.java new file mode 100644 index 000000000..f6f81cdaf --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDeploymentResourcePoolRequest.java @@ -0,0 +1,684 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for DeleteDeploymentResourcePool method.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest} + */ +public final class DeleteDeploymentResourcePoolRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest) + DeleteDeploymentResourcePoolRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteDeploymentResourcePoolRequest.newBuilder() to construct. + private DeleteDeploymentResourcePoolRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDeploymentResourcePoolRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDeploymentResourcePoolRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteDeploymentResourcePoolRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteDeploymentResourcePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteDeploymentResourcePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the DeploymentResourcePool to delete.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DeploymentResourcePool to delete.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteDeploymentResourcePool method.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest) + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteDeploymentResourcePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteDeploymentResourcePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteDeploymentResourcePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DeploymentResourcePool to delete.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DeploymentResourcePool to delete.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DeploymentResourcePool to delete.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DeploymentResourcePool to delete.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DeploymentResourcePool to delete.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDeploymentResourcePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDeploymentResourcePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDeploymentResourcePoolRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDeploymentResourcePoolRequestOrBuilder.java new file mode 100644 index 000000000..7b418c6e8 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDeploymentResourcePoolRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteDeploymentResourcePoolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DeploymentResourcePool to delete.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DeploymentResourcePool to delete.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java new file mode 100644 index 000000000..5e2ae0417 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java @@ -0,0 +1,1256 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A description of resources that can be shared by multiple DeployedModels,
+ * whose underlying specification consists of a DedicatedResources.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeploymentResourcePool} + */ +public final class DeploymentResourcePool extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeploymentResourcePool) + DeploymentResourcePoolOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeploymentResourcePool.newBuilder() to construct. + private DeploymentResourcePool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeploymentResourcePool() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeploymentResourcePool(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeploymentResourcePool( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.DedicatedResources.Builder subBuilder = null; + if (dedicatedResources_ != null) { + subBuilder = dedicatedResources_.toBuilder(); + } + dedicatedResources_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DedicatedResources.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dedicatedResources_); + dedicatedResources_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolProto + .internal_static_google_cloud_aiplatform_v1beta1_DeploymentResourcePool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolProto + .internal_static_google_cloud_aiplatform_v1beta1_DeploymentResourcePool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.class, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the DeploymentResourcePool.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the DeploymentResourcePool.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEDICATED_RESOURCES_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.DedicatedResources dedicatedResources_; + /** + * + * + *
+   * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dedicatedResources field is set. + */ + @java.lang.Override + public boolean hasDedicatedResources() { + return dedicatedResources_ != null; + } + /** + * + * + *
+   * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dedicatedResources. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DedicatedResources getDedicatedResources() { + return dedicatedResources_ == null + ? com.google.cloud.aiplatform.v1beta1.DedicatedResources.getDefaultInstance() + : dedicatedResources_; + } + /** + * + * + *
+   * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DedicatedResourcesOrBuilder + getDedicatedResourcesOrBuilder() { + return getDedicatedResources(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this DeploymentResourcePool was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this DeploymentResourcePool was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this DeploymentResourcePool was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (dedicatedResources_ != null) { + output.writeMessage(2, getDedicatedResources()); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (dedicatedResources_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDedicatedResources()); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool other = + (com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDedicatedResources() != other.hasDedicatedResources()) return false; + if (hasDedicatedResources()) { + if (!getDedicatedResources().equals(other.getDedicatedResources())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDedicatedResources()) { + hash = (37 * hash) + DEDICATED_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getDedicatedResources().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A description of resources that can be shared by multiple DeployedModels,
+   * whose underlying specification consists of a DedicatedResources.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeploymentResourcePool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeploymentResourcePool) + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolProto + .internal_static_google_cloud_aiplatform_v1beta1_DeploymentResourcePool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolProto + .internal_static_google_cloud_aiplatform_v1beta1_DeploymentResourcePool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.class, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (dedicatedResourcesBuilder_ == null) { + dedicatedResources_ = null; + } else { + dedicatedResources_ = null; + dedicatedResourcesBuilder_ = null; + } + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolProto + .internal_static_google_cloud_aiplatform_v1beta1_DeploymentResourcePool_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool build() { + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool result = + new com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool(this); + result.name_ = name_; + if (dedicatedResourcesBuilder_ == null) { + result.dedicatedResources_ = dedicatedResources_; + } else { + result.dedicatedResources_ = dedicatedResourcesBuilder_.build(); + } + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool other) { + if (other == com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasDedicatedResources()) { + mergeDedicatedResources(other.getDedicatedResources()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the DeploymentResourcePool.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the DeploymentResourcePool.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the DeploymentResourcePool.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the DeploymentResourcePool.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the DeploymentResourcePool.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.DedicatedResources dedicatedResources_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DedicatedResources, + com.google.cloud.aiplatform.v1beta1.DedicatedResources.Builder, + com.google.cloud.aiplatform.v1beta1.DedicatedResourcesOrBuilder> + dedicatedResourcesBuilder_; + /** + * + * + *
+     * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dedicatedResources field is set. + */ + public boolean hasDedicatedResources() { + return dedicatedResourcesBuilder_ != null || dedicatedResources_ != null; + } + /** + * + * + *
+     * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dedicatedResources. + */ + public com.google.cloud.aiplatform.v1beta1.DedicatedResources getDedicatedResources() { + if (dedicatedResourcesBuilder_ == null) { + return dedicatedResources_ == null + ? com.google.cloud.aiplatform.v1beta1.DedicatedResources.getDefaultInstance() + : dedicatedResources_; + } else { + return dedicatedResourcesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDedicatedResources( + com.google.cloud.aiplatform.v1beta1.DedicatedResources value) { + if (dedicatedResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dedicatedResources_ = value; + onChanged(); + } else { + dedicatedResourcesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDedicatedResources( + com.google.cloud.aiplatform.v1beta1.DedicatedResources.Builder builderForValue) { + if (dedicatedResourcesBuilder_ == null) { + dedicatedResources_ = builderForValue.build(); + onChanged(); + } else { + dedicatedResourcesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDedicatedResources( + com.google.cloud.aiplatform.v1beta1.DedicatedResources value) { + if (dedicatedResourcesBuilder_ == null) { + if (dedicatedResources_ != null) { + dedicatedResources_ = + com.google.cloud.aiplatform.v1beta1.DedicatedResources.newBuilder(dedicatedResources_) + .mergeFrom(value) + .buildPartial(); + } else { + dedicatedResources_ = value; + } + onChanged(); + } else { + dedicatedResourcesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDedicatedResources() { + if (dedicatedResourcesBuilder_ == null) { + dedicatedResources_ = null; + onChanged(); + } else { + dedicatedResources_ = null; + dedicatedResourcesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DedicatedResources.Builder + getDedicatedResourcesBuilder() { + + onChanged(); + return getDedicatedResourcesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DedicatedResourcesOrBuilder + getDedicatedResourcesOrBuilder() { + if (dedicatedResourcesBuilder_ != null) { + return dedicatedResourcesBuilder_.getMessageOrBuilder(); + } else { + return dedicatedResources_ == null + ? com.google.cloud.aiplatform.v1beta1.DedicatedResources.getDefaultInstance() + : dedicatedResources_; + } + } + /** + * + * + *
+     * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DedicatedResources, + com.google.cloud.aiplatform.v1beta1.DedicatedResources.Builder, + com.google.cloud.aiplatform.v1beta1.DedicatedResourcesOrBuilder> + getDedicatedResourcesFieldBuilder() { + if (dedicatedResourcesBuilder_ == null) { + dedicatedResourcesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DedicatedResources, + com.google.cloud.aiplatform.v1beta1.DedicatedResources.Builder, + com.google.cloud.aiplatform.v1beta1.DedicatedResourcesOrBuilder>( + getDedicatedResources(), getParentForChildren(), isClean()); + dedicatedResources_ = null; + } + return dedicatedResourcesBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this DeploymentResourcePool was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this DeploymentResourcePool was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this DeploymentResourcePool was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DeploymentResourcePool was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DeploymentResourcePool was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DeploymentResourcePool was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DeploymentResourcePool was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this DeploymentResourcePool was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this DeploymentResourcePool was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeploymentResourcePool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeploymentResourcePool) + private static final com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentResourcePool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeploymentResourcePool(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolName.java new file mode 100644 index 000000000..67cf61f0f --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolName.java @@ -0,0 +1,240 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DeploymentResourcePoolName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DEPLOYMENT_RESOURCE_POOL = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String deploymentResourcePool; + + @Deprecated + protected DeploymentResourcePoolName() { + project = null; + location = null; + deploymentResourcePool = null; + } + + private DeploymentResourcePoolName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + deploymentResourcePool = Preconditions.checkNotNull(builder.getDeploymentResourcePool()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDeploymentResourcePool() { + return deploymentResourcePool; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DeploymentResourcePoolName of( + String project, String location, String deploymentResourcePool) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDeploymentResourcePool(deploymentResourcePool) + .build(); + } + + public static String format(String project, String location, String deploymentResourcePool) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDeploymentResourcePool(deploymentResourcePool) + .build() + .toString(); + } + + public static DeploymentResourcePoolName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DEPLOYMENT_RESOURCE_POOL.validatedMatch( + formattedString, + "DeploymentResourcePoolName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("deployment_resource_pool")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DeploymentResourcePoolName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DEPLOYMENT_RESOURCE_POOL.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (deploymentResourcePool != null) { + fieldMapBuilder.put("deployment_resource_pool", deploymentResourcePool); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DEPLOYMENT_RESOURCE_POOL.instantiate( + "project", + project, + "location", + location, + "deployment_resource_pool", + deploymentResourcePool); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + DeploymentResourcePoolName that = ((DeploymentResourcePoolName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.deploymentResourcePool, that.deploymentResourcePool); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(deploymentResourcePool); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}. + */ + public static class Builder { + private String project; + private String location; + private String deploymentResourcePool; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDeploymentResourcePool() { + return deploymentResourcePool; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDeploymentResourcePool(String deploymentResourcePool) { + this.deploymentResourcePool = deploymentResourcePool; + return this; + } + + private Builder(DeploymentResourcePoolName deploymentResourcePoolName) { + this.project = deploymentResourcePoolName.project; + this.location = deploymentResourcePoolName.location; + this.deploymentResourcePool = deploymentResourcePoolName.deploymentResourcePool; + } + + public DeploymentResourcePoolName build() { + return new DeploymentResourcePoolName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolOrBuilder.java new file mode 100644 index 000000000..acd57669e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeploymentResourcePoolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeploymentResourcePool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the DeploymentResourcePool.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the DeploymentResourcePool.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dedicatedResources field is set. + */ + boolean hasDedicatedResources(); + /** + * + * + *
+   * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dedicatedResources. + */ + com.google.cloud.aiplatform.v1beta1.DedicatedResources getDedicatedResources(); + /** + * + * + *
+   * Required. The underlying DedicatedResources that the DeploymentResourcePool uses.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.DedicatedResourcesOrBuilder getDedicatedResourcesOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this DeploymentResourcePool was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this DeploymentResourcePool was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this DeploymentResourcePool was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolProto.java new file mode 100644 index 000000000..a5debc83b --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolProto.java @@ -0,0 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class DeploymentResourcePoolProto { + private DeploymentResourcePoolProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeploymentResourcePool_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeploymentResourcePool_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n>google/cloud/aiplatform/v1beta1/deploy" + + "ment_resource_pool.proto\022\037google.cloud.a" + + "iplatform.v1beta1\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\0327g" + + "oogle/cloud/aiplatform/v1beta1/machine_r" + + "esources.proto\032\037google/protobuf/timestam" + + "p.proto\"\315\002\n\026DeploymentResourcePool\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022U\n\023dedicated_resources\030\002 \001" + + "(\01323.google.cloud.aiplatform.v1beta1.Ded" + + "icatedResourcesB\003\340A\002\0224\n\013create_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003:\222\001\352A\216" + + "\001\n0aiplatform.googleapis.com/DeploymentR" + + "esourcePool\022Zprojects/{project}/location" + + "s/{location}/deploymentResourcePools/{de" + + "ployment_resource_pool}B\370\001\n#com.google.c" + + "loud.aiplatform.v1beta1B\033DeploymentResou" + + "rcePoolProtoP\001ZIgoogle.golang.org/genpro" + + "to/googleapis/cloud/aiplatform/v1beta1;a" + + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006prot" + + "o3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_DeploymentResourcePool_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_DeploymentResourcePool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeploymentResourcePool_descriptor, + new java.lang.String[] { + "Name", "DedicatedResources", "CreateTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.MachineResourcesProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceProto.java new file mode 100644 index 000000000..defb7db37 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceProto.java @@ -0,0 +1,275 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class DeploymentResourcePoolServiceProto { + private DeploymentResourcePoolServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetDeploymentResourcePoolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetDeploymentResourcePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateDeploymentResourcePoolOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateDeploymentResourcePoolOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteDeploymentResourcePoolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteDeploymentResourcePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nFgoogle/cloud/aiplatform/v1beta1/deploy" + + "ment_resource_pool_service.proto\022\037google" + + ".cloud.aiplatform.v1beta1\032\034google/api/an" + + "notations.proto\032\027google/api/client.proto" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\0328google/cloud/aipla" + + "tform/v1beta1/deployed_model_ref.proto\032>" + + "google/cloud/aiplatform/v1beta1/deployme" + + "nt_resource_pool.proto\032.google/cloud/aip" + + "latform/v1beta1/endpoint.proto\032/google/c" + + "loud/aiplatform/v1beta1/operation.proto\032" + + "#google/longrunning/operations.proto\"\352\001\n" + + "#CreateDeploymentResourcePoolRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022^\n\030deployment_resource_p" + + "ool\030\002 \001(\01327.google.cloud.aiplatform.v1be" + + "ta1.DeploymentResourcePoolB\003\340A\002\022(\n\033deplo" + + "yment_resource_pool_id\030\003 \001(\tB\003\340A\002\"\204\001\n-Cr" + + "eateDeploymentResourcePoolOperationMetad" + + "ata\022S\n\020generic_metadata\030\001 \001(\01329.google.c" + + "loud.aiplatform.v1beta1.GenericOperation" + + "Metadata\"j\n GetDeploymentResourcePoolReq" + + "uest\022F\n\004name\030\001 \001(\tB8\340A\002\372A2\n0aiplatform.g" + + "oogleapis.com/DeploymentResourcePool\"\206\001\n" + + "\"ListDeploymentResourcePoolsRequest\0229\n\006p" + + "arent\030\001 \001(\tB)\340A\002\372A#\022!locations.googleapi" + + "s.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"\232\001\n#ListDeploymentResource" + + "PoolsResponse\022Z\n\031deployment_resource_poo" + + "ls\030\001 \003(\01327.google.cloud.aiplatform.v1bet" + + "a1.DeploymentResourcePool\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\204\001\n-UpdateDeploymentResourceP" + + "oolOperationMetadata\022S\n\020generic_metadata" + + "\030\001 \001(\01329.google.cloud.aiplatform.v1beta1" + + ".GenericOperationMetadata\"m\n#DeleteDeplo" + + "ymentResourcePoolRequest\022F\n\004name\030\001 \001(\tB8" + + "\340A\002\372A2\n0aiplatform.googleapis.com/Deploy" + + "mentResourcePool\"j\n\032QueryDeployedModelsR" + + "equest\022%\n\030deployment_resource_pool\030\001 \001(\t" + + "B\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\"\323\001\n\033QueryDeployedModelsResponse\022K\n\017" + + "deployed_models\030\001 \003(\0132..google.cloud.aip" + + "latform.v1beta1.DeployedModelB\002\030\001\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\022N\n\023deployed_model_ref" + + "s\030\003 \003(\01321.google.cloud.aiplatform.v1beta" + + "1.DeployedModelRef2\337\013\n\035DeploymentResourc" + + "ePoolService\022\331\002\n\034CreateDeploymentResourc" + + "ePool\022D.google.cloud.aiplatform.v1beta1." + + "CreateDeploymentResourcePoolRequest\032\035.go" + + "ogle.longrunning.Operation\"\323\001\202\323\344\223\002E\"@/v1" + + "beta1/{parent=projects/*/locations/*}/de" + + "ploymentResourcePools:\001*\332A;parent,deploy" + + "ment_resource_pool,deployment_resource_p" + + "ool_id\312AG\n\026DeploymentResourcePool\022-Creat" + + "eDeploymentResourcePoolOperationMetadata" + + "\022\350\001\n\031GetDeploymentResourcePool\022A.google." + + "cloud.aiplatform.v1beta1.GetDeploymentRe" + + "sourcePoolRequest\0327.google.cloud.aiplatf" + + "orm.v1beta1.DeploymentResourcePool\"O\202\323\344\223" + + "\002B\022@/v1beta1/{name=projects/*/locations/" + + "*/deploymentResourcePools/*}\332A\004name\022\373\001\n\033" + + "ListDeploymentResourcePools\022C.google.clo" + + "ud.aiplatform.v1beta1.ListDeploymentReso" + + "urcePoolsRequest\032D.google.cloud.aiplatfo" + + "rm.v1beta1.ListDeploymentResourcePoolsRe" + + "sponse\"Q\202\323\344\223\002B\022@/v1beta1/{parent=project" + + "s/*/locations/*}/deploymentResourcePools" + + "\332A\006parent\022\210\002\n\034DeleteDeploymentResourcePo" + + "ol\022D.google.cloud.aiplatform.v1beta1.Del" + + "eteDeploymentResourcePoolRequest\032\035.googl" + + "e.longrunning.Operation\"\202\001\202\323\344\223\002B*@/v1bet" + + "a1/{name=projects/*/locations/*/deployme" + + "ntResourcePools/*}\332A\004name\312A0\n\025google.pro" + + "tobuf.Empty\022\027DeleteOperationMetadata\022\236\002\n" + + "\023QueryDeployedModels\022;.google.cloud.aipl" + + "atform.v1beta1.QueryDeployedModelsReques" + + "t\032<.google.cloud.aiplatform.v1beta1.Quer" + + "yDeployedModelsResponse\"\213\001\202\323\344\223\002j\022h/v1bet" + + "a1/{deployment_resource_pool=projects/*/" + + "locations/*/deploymentResourcePools/*}:q" + + "ueryDeployedModels\332A\030deployment_resource" + + "_pool\032M\312A\031aiplatform.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\377\001\n#com.google.cloud.aiplatform.v1b" + + "eta1B\"DeploymentResourcePoolServiceProto" + + "P\001ZIgoogle.golang.org/genproto/googleapi" + + "s/cloud/aiplatform/v1beta1;aiplatform\252\002\037" + + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" + + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clou" + + "d::AIPlatform::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.DeployedModelNameProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.EndpointProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolRequest_descriptor, + new java.lang.String[] { + "Parent", "DeploymentResourcePool", "DeploymentResourcePoolId", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateDeploymentResourcePoolOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetDeploymentResourcePoolRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_GetDeploymentResourcePoolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetDeploymentResourcePoolRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsResponse_descriptor, + new java.lang.String[] { + "DeploymentResourcePools", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateDeploymentResourcePoolOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1beta1_UpdateDeploymentResourcePoolOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateDeploymentResourcePoolOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteDeploymentResourcePoolRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_DeleteDeploymentResourcePoolRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteDeploymentResourcePoolRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsRequest_descriptor, + new java.lang.String[] { + "DeploymentResourcePool", "PageSize", "PageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsResponse_descriptor, + new java.lang.String[] { + "DeployedModels", "NextPageToken", "DeployedModelRefs", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.DeployedModelNameProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.EndpointProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java index 87baef8d4..68877eb86 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java @@ -1048,7 +1048,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is - * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=120 + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -3864,7 +3864,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is - * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=120 + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -3885,7 +3885,7 @@ public boolean getEnablePrivateServiceConnect() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is - * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=120 + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 * @param value The enablePrivateServiceConnect to set. * @return This builder for chaining. */ @@ -3909,7 +3909,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is - * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=120 + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java index f3d34883e..4077e9c00 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java @@ -536,7 +536,7 @@ java.lang.String getLabelsOrDefault( * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect is - * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=120 + * deprecated. See google/cloud/aiplatform/v1beta1/endpoint.proto;l=116 * @return The enablePrivateServiceConnect. */ @java.lang.Deprecated diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java index 8de0efd0c..d3124bae4 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java @@ -121,16 +121,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "g\022\017\n\007enabled\030\001 \001(\010\022\025\n\rsampling_rate\030\002 \001(" + "\001\022R\n\024bigquery_destination\030\003 \001(\01324.google" + ".cloud.aiplatform.v1beta1.BigQueryDestin" - + "ationB\374\002\n#com.google.cloud.aiplatform.v1" + + "ationB\352\001\n#com.google.cloud.aiplatform.v1" + "beta1B\rEndpointProtoP\001ZIgoogle.golang.or" + "g/genproto/googleapis/cloud/aiplatform/v" + "1beta1;aiplatform\252\002\037Google.Cloud.AIPlatf" + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" - + "a1\352A\216\001\n0aiplatform.googleapis.com/Deploy" - + "mentResourcePool\022Zprojects/{project}/loc" - + "ations/{location}/deploymentResourcePool" - + "s/{deployment_resource_pool}b\006proto3" + + "a1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -222,7 +219,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDeploymentResourcePoolRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDeploymentResourcePoolRequest.java new file mode 100644 index 000000000..e7d51293e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDeploymentResourcePoolRequest.java @@ -0,0 +1,679 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for GetDeploymentResourcePool method.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest} + */ +public final class GetDeploymentResourcePoolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest) + GetDeploymentResourcePoolRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDeploymentResourcePoolRequest.newBuilder() to construct. + private GetDeploymentResourcePoolRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDeploymentResourcePoolRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDeploymentResourcePoolRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetDeploymentResourcePoolRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetDeploymentResourcePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetDeploymentResourcePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.class, + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the DeploymentResourcePool to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DeploymentResourcePool to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest other = + (com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetDeploymentResourcePool method.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest) + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetDeploymentResourcePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetDeploymentResourcePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.class, + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetDeploymentResourcePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest build() { + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest result = + new com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DeploymentResourcePool to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DeploymentResourcePool to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DeploymentResourcePool to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DeploymentResourcePool to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DeploymentResourcePool to retrieve.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDeploymentResourcePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDeploymentResourcePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDeploymentResourcePoolRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDeploymentResourcePoolRequestOrBuilder.java new file mode 100644 index 000000000..fe23d37a7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDeploymentResourcePoolRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetDeploymentResourcePoolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DeploymentResourcePool to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DeploymentResourcePool to retrieve.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsRequest.java new file mode 100644 index 000000000..5422a2f49 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsRequest.java @@ -0,0 +1,974 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for ListDeploymentResourcePools method.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest} + */ +public final class ListDeploymentResourcePoolsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest) + ListDeploymentResourcePoolsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDeploymentResourcePoolsRequest.newBuilder() to construct. + private ListDeploymentResourcePoolsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeploymentResourcePoolsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeploymentResourcePoolsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListDeploymentResourcePoolsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent Location which owns this collection of DeploymentResourcePools.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent Location which owns this collection of DeploymentResourcePools.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of DeploymentResourcePools to return. The service may
+   * return fewer than this value.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object 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.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * 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.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListDeploymentResourcePools method.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest) + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent Location which owns this collection of DeploymentResourcePools.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent Location which owns this collection of DeploymentResourcePools.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent Location which owns this collection of DeploymentResourcePools.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent Location which owns this collection of DeploymentResourcePools.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent Location which owns this collection of DeploymentResourcePools.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of DeploymentResourcePools to return. The service may
+     * return fewer than this value.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of DeploymentResourcePools to return. The service may
+     * return fewer than this value.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of DeploymentResourcePools to return. The service may
+     * return fewer than this value.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object 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.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + 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.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + 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.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentResourcePoolsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDeploymentResourcePoolsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsRequestOrBuilder.java new file mode 100644 index 000000000..d2e9bd6c5 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListDeploymentResourcePoolsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent Location which owns this collection of DeploymentResourcePools.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent Location which owns this collection of DeploymentResourcePools.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of DeploymentResourcePools to return. The service may
+   * return fewer than this value.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * 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.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * 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.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsResponse.java new file mode 100644 index 000000000..3b1cbc331 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsResponse.java @@ -0,0 +1,1235 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for ListDeploymentResourcePools method.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse} + */ +public final class ListDeploymentResourcePoolsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) + ListDeploymentResourcePoolsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDeploymentResourcePoolsResponse.newBuilder() to construct. + private ListDeploymentResourcePoolsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDeploymentResourcePoolsResponse() { + deploymentResourcePools_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDeploymentResourcePoolsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListDeploymentResourcePoolsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deploymentResourcePools_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool>(); + mutable_bitField0_ |= 0x00000001; + } + deploymentResourcePools_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + deploymentResourcePools_ = java.util.Collections.unmodifiableList(deploymentResourcePools_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.Builder.class); + } + + public static final int DEPLOYMENT_RESOURCE_POOLS_FIELD_NUMBER = 1; + private java.util.List + deploymentResourcePools_; + /** + * + * + *
+   * The DeploymentResourcePools from the specified location.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + @java.lang.Override + public java.util.List + getDeploymentResourcePoolsList() { + return deploymentResourcePools_; + } + /** + * + * + *
+   * The DeploymentResourcePools from the specified location.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder> + getDeploymentResourcePoolsOrBuilderList() { + return deploymentResourcePools_; + } + /** + * + * + *
+   * The DeploymentResourcePools from the specified location.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + @java.lang.Override + public int getDeploymentResourcePoolsCount() { + return deploymentResourcePools_.size(); + } + /** + * + * + *
+   * The DeploymentResourcePools from the specified location.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDeploymentResourcePools( + int index) { + return deploymentResourcePools_.get(index); + } + /** + * + * + *
+   * The DeploymentResourcePools from the specified location.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder + getDeploymentResourcePoolsOrBuilder(int index) { + return deploymentResourcePools_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object 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.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < deploymentResourcePools_.size(); i++) { + output.writeMessage(1, deploymentResourcePools_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deploymentResourcePools_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, deploymentResourcePools_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) obj; + + if (!getDeploymentResourcePoolsList().equals(other.getDeploymentResourcePoolsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDeploymentResourcePoolsCount() > 0) { + hash = (37 * hash) + DEPLOYMENT_RESOURCE_POOLS_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentResourcePoolsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListDeploymentResourcePools method.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDeploymentResourcePoolsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (deploymentResourcePoolsBuilder_ == null) { + deploymentResourcePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + deploymentResourcePoolsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDeploymentResourcePoolsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse(this); + int from_bitField0_ = bitField0_; + if (deploymentResourcePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deploymentResourcePools_ = + java.util.Collections.unmodifiableList(deploymentResourcePools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deploymentResourcePools_ = deploymentResourcePools_; + } else { + result.deploymentResourcePools_ = deploymentResourcePoolsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse + .getDefaultInstance()) return this; + if (deploymentResourcePoolsBuilder_ == null) { + if (!other.deploymentResourcePools_.isEmpty()) { + if (deploymentResourcePools_.isEmpty()) { + deploymentResourcePools_ = other.deploymentResourcePools_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeploymentResourcePoolsIsMutable(); + deploymentResourcePools_.addAll(other.deploymentResourcePools_); + } + onChanged(); + } + } else { + if (!other.deploymentResourcePools_.isEmpty()) { + if (deploymentResourcePoolsBuilder_.isEmpty()) { + deploymentResourcePoolsBuilder_.dispose(); + deploymentResourcePoolsBuilder_ = null; + deploymentResourcePools_ = other.deploymentResourcePools_; + bitField0_ = (bitField0_ & ~0x00000001); + deploymentResourcePoolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeploymentResourcePoolsFieldBuilder() + : null; + } else { + deploymentResourcePoolsBuilder_.addAllMessages(other.deploymentResourcePools_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + deploymentResourcePools_ = java.util.Collections.emptyList(); + + private void ensureDeploymentResourcePoolsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deploymentResourcePools_ = + new java.util.ArrayList( + deploymentResourcePools_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder> + deploymentResourcePoolsBuilder_; + + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public java.util.List + getDeploymentResourcePoolsList() { + if (deploymentResourcePoolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deploymentResourcePools_); + } else { + return deploymentResourcePoolsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public int getDeploymentResourcePoolsCount() { + if (deploymentResourcePoolsBuilder_ == null) { + return deploymentResourcePools_.size(); + } else { + return deploymentResourcePoolsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDeploymentResourcePools( + int index) { + if (deploymentResourcePoolsBuilder_ == null) { + return deploymentResourcePools_.get(index); + } else { + return deploymentResourcePoolsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public Builder setDeploymentResourcePools( + int index, com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool value) { + if (deploymentResourcePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentResourcePoolsIsMutable(); + deploymentResourcePools_.set(index, value); + onChanged(); + } else { + deploymentResourcePoolsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public Builder setDeploymentResourcePools( + int index, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder builderForValue) { + if (deploymentResourcePoolsBuilder_ == null) { + ensureDeploymentResourcePoolsIsMutable(); + deploymentResourcePools_.set(index, builderForValue.build()); + onChanged(); + } else { + deploymentResourcePoolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public Builder addDeploymentResourcePools( + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool value) { + if (deploymentResourcePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentResourcePoolsIsMutable(); + deploymentResourcePools_.add(value); + onChanged(); + } else { + deploymentResourcePoolsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public Builder addDeploymentResourcePools( + int index, com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool value) { + if (deploymentResourcePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeploymentResourcePoolsIsMutable(); + deploymentResourcePools_.add(index, value); + onChanged(); + } else { + deploymentResourcePoolsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public Builder addDeploymentResourcePools( + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder builderForValue) { + if (deploymentResourcePoolsBuilder_ == null) { + ensureDeploymentResourcePoolsIsMutable(); + deploymentResourcePools_.add(builderForValue.build()); + onChanged(); + } else { + deploymentResourcePoolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public Builder addDeploymentResourcePools( + int index, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder builderForValue) { + if (deploymentResourcePoolsBuilder_ == null) { + ensureDeploymentResourcePoolsIsMutable(); + deploymentResourcePools_.add(index, builderForValue.build()); + onChanged(); + } else { + deploymentResourcePoolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public Builder addAllDeploymentResourcePools( + java.lang.Iterable + values) { + if (deploymentResourcePoolsBuilder_ == null) { + ensureDeploymentResourcePoolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deploymentResourcePools_); + onChanged(); + } else { + deploymentResourcePoolsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public Builder clearDeploymentResourcePools() { + if (deploymentResourcePoolsBuilder_ == null) { + deploymentResourcePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deploymentResourcePoolsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public Builder removeDeploymentResourcePools(int index) { + if (deploymentResourcePoolsBuilder_ == null) { + ensureDeploymentResourcePoolsIsMutable(); + deploymentResourcePools_.remove(index); + onChanged(); + } else { + deploymentResourcePoolsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder + getDeploymentResourcePoolsBuilder(int index) { + return getDeploymentResourcePoolsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder + getDeploymentResourcePoolsOrBuilder(int index) { + if (deploymentResourcePoolsBuilder_ == null) { + return deploymentResourcePools_.get(index); + } else { + return deploymentResourcePoolsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder> + getDeploymentResourcePoolsOrBuilderList() { + if (deploymentResourcePoolsBuilder_ != null) { + return deploymentResourcePoolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deploymentResourcePools_); + } + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder + addDeploymentResourcePoolsBuilder() { + return getDeploymentResourcePoolsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.getDefaultInstance()); + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder + addDeploymentResourcePoolsBuilder(int index) { + return getDeploymentResourcePoolsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.getDefaultInstance()); + } + /** + * + * + *
+     * The DeploymentResourcePools from the specified location.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + public java.util.List + getDeploymentResourcePoolsBuilderList() { + return getDeploymentResourcePoolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder> + getDeploymentResourcePoolsFieldBuilder() { + if (deploymentResourcePoolsBuilder_ == null) { + deploymentResourcePoolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool.Builder, + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder>( + deploymentResourcePools_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deploymentResourcePools_ = null; + } + return deploymentResourcePoolsBuilder_; + } + + private java.lang.Object 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.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + 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.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + 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.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDeploymentResourcePoolsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDeploymentResourcePoolsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsResponseOrBuilder.java new file mode 100644 index 000000000..d2596ffbb --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDeploymentResourcePoolsResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListDeploymentResourcePoolsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DeploymentResourcePools from the specified location.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + java.util.List + getDeploymentResourcePoolsList(); + /** + * + * + *
+   * The DeploymentResourcePools from the specified location.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool getDeploymentResourcePools(int index); + /** + * + * + *
+   * The DeploymentResourcePools from the specified location.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + int getDeploymentResourcePoolsCount(); + /** + * + * + *
+   * The DeploymentResourcePools from the specified location.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + java.util.List + getDeploymentResourcePoolsOrBuilderList(); + /** + * + * + *
+   * The DeploymentResourcePools from the specified location.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeploymentResourcePool deployment_resource_pools = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolOrBuilder + getDeploymentResourcePoolsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java index faf74ffcd..b86d0caab 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java @@ -493,6 +493,17 @@ public enum DeploymentResourcesType implements com.google.protobuf.ProtocolMessa * AUTOMATIC_RESOURCES = 2; */ AUTOMATIC_RESOURCES(2), + /** + * + * + *
+     * Resources that can be shared by multiple [DeployedModels][google.cloud.aiplatform.v1beta1.DeployedModel].
+     * A pre-configured [DeploymentResourcePool][google.cloud.aiplatform.v1beta1.DeploymentResourcePool] is required.
+     * 
+ * + * SHARED_RESOURCES = 3; + */ + SHARED_RESOURCES(3), UNRECOGNIZED(-1), ; @@ -528,6 +539,17 @@ public enum DeploymentResourcesType implements com.google.protobuf.ProtocolMessa * AUTOMATIC_RESOURCES = 2; */ public static final int AUTOMATIC_RESOURCES_VALUE = 2; + /** + * + * + *
+     * Resources that can be shared by multiple [DeployedModels][google.cloud.aiplatform.v1beta1.DeployedModel].
+     * A pre-configured [DeploymentResourcePool][google.cloud.aiplatform.v1beta1.DeploymentResourcePool] is required.
+     * 
+ * + * SHARED_RESOURCES = 3; + */ + public static final int SHARED_RESOURCES_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -559,6 +581,8 @@ public static DeploymentResourcesType forNumber(int value) { return DEDICATED_RESOURCES; case 2: return AUTOMATIC_RESOURCES; + case 3: + return SHARED_RESOURCES; default: return null; } @@ -1988,8 +2012,8 @@ public int getExportableContentsValue(int index) { * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of exportableContents at the given index. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for exportableContents to set. * @return This builder for chaining. */ public Builder setExportableContentsValue(int index, int value) { @@ -7976,9 +8000,8 @@ public int getSupportedDeploymentResourcesTypesValue(int index) { * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of supportedDeploymentResourcesTypes at the given - * index. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for supportedDeploymentResourcesTypes to set. * @return This builder for chaining. */ public Builder setSupportedDeploymentResourcesTypesValue(int index, int value) { diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java index 0949cc438..6489449ac 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java @@ -70,7 +70,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eta1/env_var.proto\0321google/cloud/aiplatf" + "orm/v1beta1/explanation.proto\032\034google/pr" + "otobuf/struct.proto\032\037google/protobuf/tim" - + "estamp.proto\"\237\016\n\005Model\022\014\n\004name\030\001 \001(\t\022\032\n\n" + + "estamp.proto\"\266\016\n\005Model\022\014\n\004name\030\001 \001(\t\022\032\n\n" + "version_id\030\034 \001(\tB\006\340A\005\340A\003\022\027\n\017version_alia" + "ses\030\035 \003(\t\022<\n\023version_create_time\030\037 \001(\0132\032" + ".google.protobuf.TimestampB\003\340A\003\022<\n\023versi" @@ -110,29 +110,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "bleContentB\003\340A\003\"P\n\021ExportableContent\022\"\n\036" + "EXPORTABLE_CONTENT_UNSPECIFIED\020\000\022\014\n\010ARTI" + "FACT\020\001\022\t\n\005IMAGE\020\002\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\027DeploymentRe" - + "sourcesType\022)\n%DEPLOYMENT_RESOURCES_TYPE" - + "_UNSPECIFIED\020\000\022\027\n\023DEDICATED_RESOURCES\020\001\022" - + "\027\n\023AUTOMATIC_RESOURCES\020\002:\\\352AY\n\037aiplatfor" - + "m.googleapis.com/Model\0226projects/{projec" - + "t}/locations/{location}/models/{model}\"{" - + "\n\017PredictSchemata\022 \n\023instance_schema_uri" - + "\030\001 \001(\tB\003\340A\005\022\"\n\025parameters_schema_uri\030\002 \001" - + "(\tB\003\340A\005\022\"\n\025prediction_schema_uri\030\003 \001(\tB\003" - + "\340A\005\"\205\002\n\022ModelContainerSpec\022\031\n\timage_uri\030" - + "\001 \001(\tB\006\340A\002\340A\005\022\024\n\007command\030\002 \003(\tB\003\340A\005\022\021\n\004a" - + "rgs\030\003 \003(\tB\003\340A\005\0229\n\003env\030\004 \003(\0132\'.google.clo" - + "ud.aiplatform.v1beta1.EnvVarB\003\340A\005\0229\n\005por" - + "ts\030\005 \003(\0132%.google.cloud.aiplatform.v1bet" - + "a1.PortB\003\340A\005\022\032\n\rpredict_route\030\006 \001(\tB\003\340A\005" - + "\022\031\n\014health_route\030\007 \001(\tB\003\340A\005\"\036\n\004Port\022\026\n\016c" - + "ontainer_port\030\003 \001(\005B\347\001\n#com.google.cloud" - + ".aiplatform.v1beta1B\nModelProtoP\001ZIgoogl" - + "e.golang.org/genproto/googleapis/cloud/a" - + "iplatform/v1beta1;aiplatform\252\002\037Google.Cl" - + "oud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AI" - + "Platform\\V1beta1\352\002\"Google::Cloud::AIPlat" - + "form::V1beta1b\006proto3" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\214\001\n\027DeploymentR" + + "esourcesType\022)\n%DEPLOYMENT_RESOURCES_TYP" + + "E_UNSPECIFIED\020\000\022\027\n\023DEDICATED_RESOURCES\020\001" + + "\022\027\n\023AUTOMATIC_RESOURCES\020\002\022\024\n\020SHARED_RESO" + + "URCES\020\003:\\\352AY\n\037aiplatform.googleapis.com/" + + "Model\0226projects/{project}/locations/{loc" + + "ation}/models/{model}\"{\n\017PredictSchemata" + + "\022 \n\023instance_schema_uri\030\001 \001(\tB\003\340A\005\022\"\n\025pa" + + "rameters_schema_uri\030\002 \001(\tB\003\340A\005\022\"\n\025predic" + + "tion_schema_uri\030\003 \001(\tB\003\340A\005\"\205\002\n\022ModelCont" + + "ainerSpec\022\031\n\timage_uri\030\001 \001(\tB\006\340A\002\340A\005\022\024\n\007" + + "command\030\002 \003(\tB\003\340A\005\022\021\n\004args\030\003 \003(\tB\003\340A\005\0229\n" + + "\003env\030\004 \003(\0132\'.google.cloud.aiplatform.v1b" + + "eta1.EnvVarB\003\340A\005\0229\n\005ports\030\005 \003(\0132%.google" + + ".cloud.aiplatform.v1beta1.PortB\003\340A\005\022\032\n\rp" + + "redict_route\030\006 \001(\tB\003\340A\005\022\031\n\014health_route\030" + + "\007 \001(\tB\003\340A\005\"\036\n\004Port\022\026\n\016container_port\030\003 \001" + + "(\005B\347\001\n#com.google.cloud.aiplatform.v1bet" + + "a1B\nModelProtoP\001ZIgoogle.golang.org/genp" + + "roto/googleapis/cloud/aiplatform/v1beta1" + + ";aiplatform\252\002\037Google.Cloud.AIPlatform.V1" + + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" + + "\002\"Google::Cloud::AIPlatform::V1beta1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ProjectName.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ProjectName.java new file mode 100644 index 000000000..7aace6b86 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ProjectName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ProjectName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + private volatile Map fieldValuesMap; + private final String project; + + @Deprecated + protected ProjectName() { + project = null; + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT.instantiate("project", project); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ProjectName that = ((ProjectName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(ProjectName projectName) { + this.project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsRequest.java new file mode 100644 index 000000000..aa456edb0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsRequest.java @@ -0,0 +1,960 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for QueryDeployedModels method.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest} + */ +public final class QueryDeployedModelsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest) + QueryDeployedModelsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryDeployedModelsRequest.newBuilder() to construct. + private QueryDeployedModelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryDeployedModelsRequest() { + deploymentResourcePool_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryDeployedModelsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private QueryDeployedModelsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + deploymentResourcePool_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.class, + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.Builder.class); + } + + public static final int DEPLOYMENT_RESOURCE_POOL_FIELD_NUMBER = 1; + private volatile java.lang.Object deploymentResourcePool_; + /** + * + * + *
+   * Required. The name of the target DeploymentResourcePool to query.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string deployment_resource_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentResourcePool. + */ + @java.lang.Override + public java.lang.String getDeploymentResourcePool() { + java.lang.Object ref = deploymentResourcePool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentResourcePool_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the target DeploymentResourcePool to query.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string deployment_resource_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentResourcePool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeploymentResourcePoolBytes() { + java.lang.Object ref = deploymentResourcePool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentResourcePool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of DeployedModels to return. The service may return
+   * fewer than this value.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object 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.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * 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.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deploymentResourcePool_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deploymentResourcePool_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deploymentResourcePool_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deploymentResourcePool_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest other = + (com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest) obj; + + if (!getDeploymentResourcePool().equals(other.getDeploymentResourcePool())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEPLOYMENT_RESOURCE_POOL_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentResourcePool().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for QueryDeployedModels method.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest) + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.class, + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + deploymentResourcePool_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest build() { + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest result = + new com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest(this); + result.deploymentResourcePool_ = deploymentResourcePool_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.getDefaultInstance()) + return this; + if (!other.getDeploymentResourcePool().isEmpty()) { + deploymentResourcePool_ = other.deploymentResourcePool_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object deploymentResourcePool_ = ""; + /** + * + * + *
+     * Required. The name of the target DeploymentResourcePool to query.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string deployment_resource_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentResourcePool. + */ + public java.lang.String getDeploymentResourcePool() { + java.lang.Object ref = deploymentResourcePool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentResourcePool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the target DeploymentResourcePool to query.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string deployment_resource_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentResourcePool. + */ + public com.google.protobuf.ByteString getDeploymentResourcePoolBytes() { + java.lang.Object ref = deploymentResourcePool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deploymentResourcePool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the target DeploymentResourcePool to query.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string deployment_resource_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The deploymentResourcePool to set. + * @return This builder for chaining. + */ + public Builder setDeploymentResourcePool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deploymentResourcePool_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the target DeploymentResourcePool to query.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string deployment_resource_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDeploymentResourcePool() { + + deploymentResourcePool_ = getDefaultInstance().getDeploymentResourcePool(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the target DeploymentResourcePool to query.
+     * Format:
+     * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+     * 
+ * + * string deployment_resource_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for deploymentResourcePool to set. + * @return This builder for chaining. + */ + public Builder setDeploymentResourcePoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deploymentResourcePool_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of DeployedModels to return. The service may return
+     * fewer than this value.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of DeployedModels to return. The service may return
+     * fewer than this value.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of DeployedModels to return. The service may return
+     * fewer than this value.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object 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.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + 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.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + 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.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest) + private static final com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryDeployedModelsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryDeployedModelsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsRequestOrBuilder.java new file mode 100644 index 000000000..a33870557 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface QueryDeployedModelsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the target DeploymentResourcePool to query.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string deployment_resource_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deploymentResourcePool. + */ + java.lang.String getDeploymentResourcePool(); + /** + * + * + *
+   * Required. The name of the target DeploymentResourcePool to query.
+   * Format:
+   * projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
+   * 
+ * + * string deployment_resource_pool = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deploymentResourcePool. + */ + com.google.protobuf.ByteString getDeploymentResourcePoolBytes(); + + /** + * + * + *
+   * The maximum number of DeployedModels to return. The service may return
+   * fewer than this value.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * 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.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * 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.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsResponse.java new file mode 100644 index 000000000..68eb2bad7 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsResponse.java @@ -0,0 +1,1783 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for QueryDeployedModels method.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse} + */ +public final class QueryDeployedModelsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) + QueryDeployedModelsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryDeployedModelsResponse.newBuilder() to construct. + private QueryDeployedModelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryDeployedModelsResponse() { + deployedModels_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + deployedModelRefs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryDeployedModelsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private QueryDeployedModelsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deployedModels_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + deployedModels_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DeployedModel.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + deployedModelRefs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + deployedModelRefs_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DeployedModelRef.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + deployedModelRefs_ = java.util.Collections.unmodifiableList(deployedModelRefs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.class, + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.Builder.class); + } + + public static final int DEPLOYED_MODELS_FIELD_NUMBER = 1; + private java.util.List deployedModels_; + /** + * + * + *
+   * DEPRECATED Use deployed_model_refs instead.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List getDeployedModelsList() { + return deployedModels_; + } + /** + * + * + *
+   * DEPRECATED Use deployed_model_refs instead.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List + getDeployedModelsOrBuilderList() { + return deployedModels_; + } + /** + * + * + *
+   * DEPRECATED Use deployed_model_refs instead.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getDeployedModelsCount() { + return deployedModels_.size(); + } + /** + * + * + *
+   * DEPRECATED Use deployed_model_refs instead.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.DeployedModel getDeployedModels(int index) { + return deployedModels_.get(index); + } + /** + * + * + *
+   * DEPRECATED Use deployed_model_refs instead.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.DeployedModelOrBuilder getDeployedModelsOrBuilder( + int index) { + return deployedModels_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object 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.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOYED_MODEL_REFS_FIELD_NUMBER = 3; + private java.util.List deployedModelRefs_; + /** + * + * + *
+   * References to the DeployedModels that share the specified
+   * deploymentResourcePool.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + @java.lang.Override + public java.util.List + getDeployedModelRefsList() { + return deployedModelRefs_; + } + /** + * + * + *
+   * References to the DeployedModels that share the specified
+   * deploymentResourcePool.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + @java.lang.Override + public java.util.List + getDeployedModelRefsOrBuilderList() { + return deployedModelRefs_; + } + /** + * + * + *
+   * References to the DeployedModels that share the specified
+   * deploymentResourcePool.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + @java.lang.Override + public int getDeployedModelRefsCount() { + return deployedModelRefs_.size(); + } + /** + * + * + *
+   * References to the DeployedModels that share the specified
+   * deploymentResourcePool.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedModelRef getDeployedModelRefs(int index) { + return deployedModelRefs_.get(index); + } + /** + * + * + *
+   * References to the DeployedModels that share the specified
+   * deploymentResourcePool.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder + getDeployedModelRefsOrBuilder(int index) { + return deployedModelRefs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < deployedModels_.size(); i++) { + output.writeMessage(1, deployedModels_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < deployedModelRefs_.size(); i++) { + output.writeMessage(3, deployedModelRefs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deployedModels_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, deployedModels_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + for (int i = 0; i < deployedModelRefs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, deployedModelRefs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse other = + (com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) obj; + + if (!getDeployedModelsList().equals(other.getDeployedModelsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDeployedModelRefsList().equals(other.getDeployedModelRefsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDeployedModelsCount() > 0) { + hash = (37 * hash) + DEPLOYED_MODELS_FIELD_NUMBER; + hash = (53 * hash) + getDeployedModelsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getDeployedModelRefsCount() > 0) { + hash = (37 * hash) + DEPLOYED_MODEL_REFS_FIELD_NUMBER; + hash = (53 * hash) + getDeployedModelRefsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for QueryDeployedModels method.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.class, + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDeployedModelsFieldBuilder(); + getDeployedModelRefsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (deployedModelsBuilder_ == null) { + deployedModels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + deployedModelsBuilder_.clear(); + } + nextPageToken_ = ""; + + if (deployedModelRefsBuilder_ == null) { + deployedModelRefs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + deployedModelRefsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_QueryDeployedModelsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse build() { + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse result = + new com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse(this); + int from_bitField0_ = bitField0_; + if (deployedModelsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deployedModels_ = deployedModels_; + } else { + result.deployedModels_ = deployedModelsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (deployedModelRefsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + deployedModelRefs_ = java.util.Collections.unmodifiableList(deployedModelRefs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.deployedModelRefs_ = deployedModelRefs_; + } else { + result.deployedModelRefs_ = deployedModelRefsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.getDefaultInstance()) + return this; + if (deployedModelsBuilder_ == null) { + if (!other.deployedModels_.isEmpty()) { + if (deployedModels_.isEmpty()) { + deployedModels_ = other.deployedModels_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeployedModelsIsMutable(); + deployedModels_.addAll(other.deployedModels_); + } + onChanged(); + } + } else { + if (!other.deployedModels_.isEmpty()) { + if (deployedModelsBuilder_.isEmpty()) { + deployedModelsBuilder_.dispose(); + deployedModelsBuilder_ = null; + deployedModels_ = other.deployedModels_; + bitField0_ = (bitField0_ & ~0x00000001); + deployedModelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeployedModelsFieldBuilder() + : null; + } else { + deployedModelsBuilder_.addAllMessages(other.deployedModels_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (deployedModelRefsBuilder_ == null) { + if (!other.deployedModelRefs_.isEmpty()) { + if (deployedModelRefs_.isEmpty()) { + deployedModelRefs_ = other.deployedModelRefs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDeployedModelRefsIsMutable(); + deployedModelRefs_.addAll(other.deployedModelRefs_); + } + onChanged(); + } + } else { + if (!other.deployedModelRefs_.isEmpty()) { + if (deployedModelRefsBuilder_.isEmpty()) { + deployedModelRefsBuilder_.dispose(); + deployedModelRefsBuilder_ = null; + deployedModelRefs_ = other.deployedModelRefs_; + bitField0_ = (bitField0_ & ~0x00000002); + deployedModelRefsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDeployedModelRefsFieldBuilder() + : null; + } else { + deployedModelRefsBuilder_.addAllMessages(other.deployedModelRefs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List deployedModels_ = + java.util.Collections.emptyList(); + + private void ensureDeployedModelsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deployedModels_ = + new java.util.ArrayList( + deployedModels_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedModel, + com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedModelOrBuilder> + deployedModelsBuilder_; + + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getDeployedModelsList() { + if (deployedModelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deployedModels_); + } else { + return deployedModelsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public int getDeployedModelsCount() { + if (deployedModelsBuilder_ == null) { + return deployedModels_.size(); + } else { + return deployedModelsBuilder_.getCount(); + } + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.DeployedModel getDeployedModels(int index) { + if (deployedModelsBuilder_ == null) { + return deployedModels_.get(index); + } else { + return deployedModelsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setDeployedModels( + int index, com.google.cloud.aiplatform.v1beta1.DeployedModel value) { + if (deployedModelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeployedModelsIsMutable(); + deployedModels_.set(index, value); + onChanged(); + } else { + deployedModelsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setDeployedModels( + int index, com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder builderForValue) { + if (deployedModelsBuilder_ == null) { + ensureDeployedModelsIsMutable(); + deployedModels_.set(index, builderForValue.build()); + onChanged(); + } else { + deployedModelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addDeployedModels(com.google.cloud.aiplatform.v1beta1.DeployedModel value) { + if (deployedModelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeployedModelsIsMutable(); + deployedModels_.add(value); + onChanged(); + } else { + deployedModelsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addDeployedModels( + int index, com.google.cloud.aiplatform.v1beta1.DeployedModel value) { + if (deployedModelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeployedModelsIsMutable(); + deployedModels_.add(index, value); + onChanged(); + } else { + deployedModelsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addDeployedModels( + com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder builderForValue) { + if (deployedModelsBuilder_ == null) { + ensureDeployedModelsIsMutable(); + deployedModels_.add(builderForValue.build()); + onChanged(); + } else { + deployedModelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addDeployedModels( + int index, com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder builderForValue) { + if (deployedModelsBuilder_ == null) { + ensureDeployedModelsIsMutable(); + deployedModels_.add(index, builderForValue.build()); + onChanged(); + } else { + deployedModelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAllDeployedModels( + java.lang.Iterable values) { + if (deployedModelsBuilder_ == null) { + ensureDeployedModelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployedModels_); + onChanged(); + } else { + deployedModelsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearDeployedModels() { + if (deployedModelsBuilder_ == null) { + deployedModels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deployedModelsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder removeDeployedModels(int index) { + if (deployedModelsBuilder_ == null) { + ensureDeployedModelsIsMutable(); + deployedModels_.remove(index); + onChanged(); + } else { + deployedModelsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder getDeployedModelsBuilder( + int index) { + return getDeployedModelsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.DeployedModelOrBuilder getDeployedModelsOrBuilder( + int index) { + if (deployedModelsBuilder_ == null) { + return deployedModels_.get(index); + } else { + return deployedModelsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getDeployedModelsOrBuilderList() { + if (deployedModelsBuilder_ != null) { + return deployedModelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deployedModels_); + } + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder addDeployedModelsBuilder() { + return getDeployedModelsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.DeployedModel.getDefaultInstance()); + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder addDeployedModelsBuilder( + int index) { + return getDeployedModelsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.DeployedModel.getDefaultInstance()); + } + /** + * + * + *
+     * DEPRECATED Use deployed_model_refs instead.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getDeployedModelsBuilderList() { + return getDeployedModelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedModel, + com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedModelOrBuilder> + getDeployedModelsFieldBuilder() { + if (deployedModelsBuilder_ == null) { + deployedModelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedModel, + com.google.cloud.aiplatform.v1beta1.DeployedModel.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedModelOrBuilder>( + deployedModels_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deployedModels_ = null; + } + return deployedModelsBuilder_; + } + + private java.lang.Object 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.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + 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.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + 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.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private java.util.List + deployedModelRefs_ = java.util.Collections.emptyList(); + + private void ensureDeployedModelRefsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + deployedModelRefs_ = + new java.util.ArrayList( + deployedModelRefs_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedModelRef, + com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder> + deployedModelRefsBuilder_; + + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public java.util.List + getDeployedModelRefsList() { + if (deployedModelRefsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deployedModelRefs_); + } else { + return deployedModelRefsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public int getDeployedModelRefsCount() { + if (deployedModelRefsBuilder_ == null) { + return deployedModelRefs_.size(); + } else { + return deployedModelRefsBuilder_.getCount(); + } + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedModelRef getDeployedModelRefs(int index) { + if (deployedModelRefsBuilder_ == null) { + return deployedModelRefs_.get(index); + } else { + return deployedModelRefsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public Builder setDeployedModelRefs( + int index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef value) { + if (deployedModelRefsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeployedModelRefsIsMutable(); + deployedModelRefs_.set(index, value); + onChanged(); + } else { + deployedModelRefsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public Builder setDeployedModelRefs( + int index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder builderForValue) { + if (deployedModelRefsBuilder_ == null) { + ensureDeployedModelRefsIsMutable(); + deployedModelRefs_.set(index, builderForValue.build()); + onChanged(); + } else { + deployedModelRefsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public Builder addDeployedModelRefs( + com.google.cloud.aiplatform.v1beta1.DeployedModelRef value) { + if (deployedModelRefsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeployedModelRefsIsMutable(); + deployedModelRefs_.add(value); + onChanged(); + } else { + deployedModelRefsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public Builder addDeployedModelRefs( + int index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef value) { + if (deployedModelRefsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeployedModelRefsIsMutable(); + deployedModelRefs_.add(index, value); + onChanged(); + } else { + deployedModelRefsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public Builder addDeployedModelRefs( + com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder builderForValue) { + if (deployedModelRefsBuilder_ == null) { + ensureDeployedModelRefsIsMutable(); + deployedModelRefs_.add(builderForValue.build()); + onChanged(); + } else { + deployedModelRefsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public Builder addDeployedModelRefs( + int index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder builderForValue) { + if (deployedModelRefsBuilder_ == null) { + ensureDeployedModelRefsIsMutable(); + deployedModelRefs_.add(index, builderForValue.build()); + onChanged(); + } else { + deployedModelRefsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public Builder addAllDeployedModelRefs( + java.lang.Iterable values) { + if (deployedModelRefsBuilder_ == null) { + ensureDeployedModelRefsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployedModelRefs_); + onChanged(); + } else { + deployedModelRefsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public Builder clearDeployedModelRefs() { + if (deployedModelRefsBuilder_ == null) { + deployedModelRefs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + deployedModelRefsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public Builder removeDeployedModelRefs(int index) { + if (deployedModelRefsBuilder_ == null) { + ensureDeployedModelRefsIsMutable(); + deployedModelRefs_.remove(index); + onChanged(); + } else { + deployedModelRefsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder getDeployedModelRefsBuilder( + int index) { + return getDeployedModelRefsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder + getDeployedModelRefsOrBuilder(int index) { + if (deployedModelRefsBuilder_ == null) { + return deployedModelRefs_.get(index); + } else { + return deployedModelRefsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public java.util.List + getDeployedModelRefsOrBuilderList() { + if (deployedModelRefsBuilder_ != null) { + return deployedModelRefsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deployedModelRefs_); + } + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder + addDeployedModelRefsBuilder() { + return getDeployedModelRefsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.DeployedModelRef.getDefaultInstance()); + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder addDeployedModelRefsBuilder( + int index) { + return getDeployedModelRefsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef.getDefaultInstance()); + } + /** + * + * + *
+     * References to the DeployedModels that share the specified
+     * deploymentResourcePool.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + public java.util.List + getDeployedModelRefsBuilderList() { + return getDeployedModelRefsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedModelRef, + com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder> + getDeployedModelRefsFieldBuilder() { + if (deployedModelRefsBuilder_ == null) { + deployedModelRefsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeployedModelRef, + com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder, + com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder>( + deployedModelRefs_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + deployedModelRefs_ = null; + } + return deployedModelRefsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) + private static final com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryDeployedModelsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueryDeployedModelsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsResponseOrBuilder.java new file mode 100644 index 000000000..032816995 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/QueryDeployedModelsResponseOrBuilder.java @@ -0,0 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface QueryDeployedModelsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * DEPRECATED Use deployed_model_refs instead.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + java.util.List getDeployedModelsList(); + /** + * + * + *
+   * DEPRECATED Use deployed_model_refs instead.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.DeployedModel getDeployedModels(int index); + /** + * + * + *
+   * DEPRECATED Use deployed_model_refs instead.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + int getDeployedModelsCount(); + /** + * + * + *
+   * DEPRECATED Use deployed_model_refs instead.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + java.util.List + getDeployedModelsOrBuilderList(); + /** + * + * + *
+   * DEPRECATED Use deployed_model_refs instead.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModel deployed_models = 1 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.DeployedModelOrBuilder getDeployedModelsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * References to the DeployedModels that share the specified
+   * deploymentResourcePool.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + java.util.List getDeployedModelRefsList(); + /** + * + * + *
+   * References to the DeployedModels that share the specified
+   * deploymentResourcePool.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.DeployedModelRef getDeployedModelRefs(int index); + /** + * + * + *
+   * References to the DeployedModels that share the specified
+   * deploymentResourcePool.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + int getDeployedModelRefsCount(); + /** + * + * + *
+   * References to the DeployedModels that share the specified
+   * deploymentResourcePool.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + java.util.List + getDeployedModelRefsOrBuilderList(); + /** + * + * + *
+   * References to the DeployedModels that share the specified
+   * deploymentResourcePool.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_model_refs = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder getDeployedModelRefsOrBuilder( + int index); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDeploymentResourcePoolOperationMetadata.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDeploymentResourcePoolOperationMetadata.java new file mode 100644 index 000000000..f5e912afc --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDeploymentResourcePoolOperationMetadata.java @@ -0,0 +1,782 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Runtime operation information for UpdateDeploymentResourcePool method.
+ * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata} + */ +public final class UpdateDeploymentResourcePoolOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata) + UpdateDeploymentResourcePoolOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDeploymentResourcePoolOperationMetadata.newBuilder() to construct. + private UpdateDeploymentResourcePoolOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDeploymentResourcePoolOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDeploymentResourcePoolOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateDeploymentResourcePoolOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder subBuilder = + null; + if (genericMetadata_ != null) { + subBuilder = genericMetadata_.toBuilder(); + } + genericMetadata_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(genericMetadata_); + genericMetadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateDeploymentResourcePoolOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateDeploymentResourcePoolOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + .Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return getGenericMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (genericMetadata_ != null) { + output.writeMessage(1, getGenericMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (genericMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Runtime operation information for UpdateDeploymentResourcePool method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata) + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateDeploymentResourcePoolOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateDeploymentResourcePoolOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + .class, + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateDeploymentResourcePoolOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + build() { + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata( + this); + if (genericMetadataBuilder_ == null) { + result.genericMetadata_ = genericMetadata_; + } else { + result.genericMetadata_ = genericMetadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + onChanged(); + } else { + genericMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + onChanged(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (genericMetadata_ != null) { + genericMetadata_ = + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( + genericMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + genericMetadata_ = value; + } + onChanged(); + } else { + genericMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The operation generic information.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + getGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1 + .UpdateDeploymentResourcePoolOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDeploymentResourcePoolOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateDeploymentResourcePoolOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDeploymentResourcePoolOperationMetadataOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDeploymentResourcePoolOperationMetadataOrBuilder.java new file mode 100644 index 000000000..1a1db25a6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateDeploymentResourcePoolOperationMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateDeploymentResourcePoolOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The operation generic information.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto new file mode 100644 index 000000000..2249e655c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto @@ -0,0 +1,50 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "DeploymentResourcePoolProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// A description of resources that can be shared by multiple DeployedModels, +// whose underlying specification consists of a DedicatedResources. +message DeploymentResourcePool { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/DeploymentResourcePool" + pattern: "projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}" + }; + + // Output only. The resource name of the DeploymentResourcePool. + // Format: + // projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The underlying DedicatedResources that the DeploymentResourcePool uses. + DedicatedResources dedicated_resources = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Timestamp when this DeploymentResourcePool was created. + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto new file mode 100644 index 000000000..11eddf67c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool_service.proto @@ -0,0 +1,219 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/deployed_model_ref.proto"; +import "google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto"; +import "google/cloud/aiplatform/v1beta1/endpoint.proto"; +import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/longrunning/operations.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "DeploymentResourcePoolServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// A service that manages the DeploymentResourcePool resource. +service DeploymentResourcePoolService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Create a DeploymentResourcePool. + rpc CreateDeploymentResourcePool(CreateDeploymentResourcePoolRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/deploymentResourcePools" + body: "*" + }; + option (google.api.method_signature) = "parent,deployment_resource_pool,deployment_resource_pool_id"; + option (google.longrunning.operation_info) = { + response_type: "DeploymentResourcePool" + metadata_type: "CreateDeploymentResourcePoolOperationMetadata" + }; + } + + // Get a DeploymentResourcePool. + rpc GetDeploymentResourcePool(GetDeploymentResourcePoolRequest) returns (DeploymentResourcePool) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List DeploymentResourcePools in a location. + rpc ListDeploymentResourcePools(ListDeploymentResourcePoolsRequest) returns (ListDeploymentResourcePoolsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/deploymentResourcePools" + }; + option (google.api.method_signature) = "parent"; + } + + // Delete a DeploymentResourcePool. + rpc DeleteDeploymentResourcePool(DeleteDeploymentResourcePoolRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // List DeployedModels that have been deployed on this DeploymentResourcePool. + rpc QueryDeployedModels(QueryDeployedModelsRequest) returns (QueryDeployedModelsResponse) { + option (google.api.http) = { + get: "/v1beta1/{deployment_resource_pool=projects/*/locations/*/deploymentResourcePools/*}:queryDeployedModels" + }; + option (google.api.method_signature) = "deployment_resource_pool"; + } +} + +// Request message for CreateDeploymentResourcePool method. +message CreateDeploymentResourcePoolRequest { + // Required. The parent location resource where this DeploymentResourcePool will be + // created. Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The DeploymentResourcePool to create. + DeploymentResourcePool deployment_resource_pool = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the DeploymentResourcePool, which + // will become the final component of the DeploymentResourcePool's resource + // name. + // + // The maximum length is 63 characters, and valid characters + // are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. + string deployment_resource_pool_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Runtime operation information for CreateDeploymentResourcePool method. +message CreateDeploymentResourcePoolOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for GetDeploymentResourcePool method. +message GetDeploymentResourcePoolRequest { + // Required. The name of the DeploymentResourcePool to retrieve. + // Format: + // projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DeploymentResourcePool" + } + ]; +} + +// Request message for ListDeploymentResourcePools method. +message ListDeploymentResourcePoolsRequest { + // Required. The parent Location which owns this collection of DeploymentResourcePools. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "locations.googleapis.com/Location" + } + ]; + + // The maximum number of DeploymentResourcePools to return. The service may + // return fewer than this value. + int32 page_size = 2; + + // 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. + string page_token = 3; +} + +// Response message for ListDeploymentResourcePools method. +message ListDeploymentResourcePoolsResponse { + // The DeploymentResourcePools from the specified location. + repeated DeploymentResourcePool deployment_resource_pools = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Runtime operation information for UpdateDeploymentResourcePool method. +message UpdateDeploymentResourcePoolOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for DeleteDeploymentResourcePool method. +message DeleteDeploymentResourcePoolRequest { + // Required. The name of the DeploymentResourcePool to delete. + // Format: + // projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DeploymentResourcePool" + } + ]; +} + +// Request message for QueryDeployedModels method. +message QueryDeployedModelsRequest { + // Required. The name of the target DeploymentResourcePool to query. + // Format: + // projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool} + string deployment_resource_pool = 1 [(google.api.field_behavior) = REQUIRED]; + + // The maximum number of DeployedModels to return. The service may return + // fewer than this value. + int32 page_size = 2; + + // 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. + string page_token = 3; +} + +// Response message for QueryDeployedModels method. +message QueryDeployedModelsResponse { + // DEPRECATED Use deployed_model_refs instead. + repeated DeployedModel deployed_models = 1 [deprecated = true]; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // References to the DeployedModels that share the specified + // deploymentResourcePool. + repeated DeployedModelRef deployed_model_refs = 3; +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto index e99590864..0236e532f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -31,10 +31,6 @@ option java_outer_classname = "EndpointProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; -option (google.api.resource_definition) = { - type: "aiplatform.googleapis.com/DeploymentResourcePool" - pattern: "projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}" -}; // Models are deployed into it, and afterwards Endpoint is called to obtain // predictions and explanations. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto index d17275bb8..ba9b2cd5a 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto @@ -98,6 +98,10 @@ message Model { // Resources that to large degree are decided by Vertex AI, and require // only a modest additional configuration. AUTOMATIC_RESOURCES = 2; + + // Resources that can be shared by multiple [DeployedModels][google.cloud.aiplatform.v1beta1.DeployedModel]. + // A pre-configured [DeploymentResourcePool][google.cloud.aiplatform.v1beta1.DeploymentResourcePool] is required. + SHARED_RESOURCES = 3; } // The resource name of the Model. From 3935d8f04c4585b02f1614149803ef8eed87d4e2 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 29 Jul 2022 21:54:22 +0000 Subject: [PATCH 07/22] feat: making network arg optional in aiplatform v1 custom_job.proto (#999) - [ ] Regenerate this pull request now. feat: added SHARED_RESOURCES enum to aiplatform v1 model.proto docs: doc edits to aiplatform v1 dataset_service.proto, job_service.proto, model_service.proto, pipeline_service.proto, saved_query.proto, study.proto, types.proto PiperOrigin-RevId: 463932566 Source-Link: https://github.com/googleapis/googleapis/commit/37aaa1e56495d4aea90a2b588add247e070f155d Source-Link: https://github.com/googleapis/googleapis-gen/commit/081281ce1f8dbf0a7282ae3ecc601fea58355db4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDgxMjgxY2UxZjhkYmYwYTcyODJhZTNlY2M2MDFmZWE1ODM1NWRiNCJ9 feat: making network arg optional in aiplatform v1beta1 custom_job.proto feat: DeploymentResourcePool and DeployementResourcePoolService added to aiplatform v1beta1 model.proto (cl/463147866) docs: doc edits to aiplatform v1beta1 job_service.proto, model_service.proto, pipeline_service.proto, saved_query.proto, study.proto, types.proto PiperOrigin-RevId: 463932106 Source-Link: https://github.com/googleapis/googleapis/commit/efbe03db268487cd42bfa21fa81c44318a293ae0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e012128b7d3fc99a996d5a95d3765d406bf2797e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTAxMjEyOGI3ZDNmYzk5YTk5NmQ1YTk1ZDM3NjVkNDA2YmYyNzk3ZSJ9 --- .../cloud/aiplatform/v1/CustomJobProto.java | 68 +++++----- .../cloud/aiplatform/v1/CustomJobSpec.java | 46 ++++--- .../aiplatform/v1/CustomJobSpecOrBuilder.java | 12 +- .../cloud/aiplatform/v1/DoubleArray.java | 20 +-- .../aiplatform/v1/DoubleArrayOrBuilder.java | 6 +- .../v1/ListBatchPredictionJobsRequest.java | 112 +++++++++------- ...stBatchPredictionJobsRequestOrBuilder.java | 32 +++-- .../aiplatform/v1/ListCustomJobsRequest.java | 98 ++++++++------ .../v1/ListCustomJobsRequestOrBuilder.java | 28 ++-- .../v1/ListDataLabelingJobsRequest.java | 98 ++++++++------ .../ListDataLabelingJobsRequestOrBuilder.java | 28 ++-- .../ListHyperparameterTuningJobsRequest.java | 98 ++++++++------ ...erparameterTuningJobsRequestOrBuilder.java | 28 ++-- ...tModelDeploymentMonitoringJobsRequest.java | 70 ++++++++++ ...loymentMonitoringJobsRequestOrBuilder.java | 20 +++ .../v1/ListPipelineJobsRequest.java | 42 +++--- .../v1/ListPipelineJobsRequestOrBuilder.java | 12 +- .../v1/ListSavedQueriesResponse.java | 69 ++++++---- .../v1/ListSavedQueriesResponseOrBuilder.java | 15 ++- .../v1/ListTrainingPipelinesRequest.java | 112 ++++++++++------ ...ListTrainingPipelinesRequestOrBuilder.java | 32 +++-- .../com/google/cloud/aiplatform/v1/Model.java | 24 ++++ .../cloud/aiplatform/v1/ModelProto.java | 47 +++---- .../cloud/aiplatform/v1/SavedQuery.java | 14 +- .../aiplatform/v1/SavedQueryOrBuilder.java | 4 +- .../google/cloud/aiplatform/v1/StudySpec.java | 126 +++++++++--------- .../aiplatform/v1/StudySpecOrBuilder.java | 4 +- .../cloud/aiplatform/v1/custom_job.proto | 13 +- .../cloud/aiplatform/v1/dataset_service.proto | 5 +- .../cloud/aiplatform/v1/job_service.proto | 89 +++++++------ .../google/cloud/aiplatform/v1/model.proto | 4 + .../cloud/aiplatform/v1/model_service.proto | 3 + .../aiplatform/v1/pipeline_service.proto | 28 ++-- .../cloud/aiplatform/v1/saved_query.proto | 2 +- .../google/cloud/aiplatform/v1/study.proto | 14 +- .../google/cloud/aiplatform/v1/types.proto | 2 +- .../aiplatform/v1beta1/CustomJobProto.java | 70 +++++----- .../aiplatform/v1beta1/CustomJobSpec.java | 46 ++++--- .../v1beta1/CustomJobSpecOrBuilder.java | 12 +- .../cloud/aiplatform/v1beta1/DoubleArray.java | 20 +-- .../v1beta1/DoubleArrayOrBuilder.java | 6 +- .../ListBatchPredictionJobsRequest.java | 112 +++++++++------- ...stBatchPredictionJobsRequestOrBuilder.java | 32 +++-- .../v1beta1/ListCustomJobsRequest.java | 98 ++++++++------ .../ListCustomJobsRequestOrBuilder.java | 28 ++-- .../v1beta1/ListDataLabelingJobsRequest.java | 98 ++++++++------ .../ListDataLabelingJobsRequestOrBuilder.java | 28 ++-- .../ListHyperparameterTuningJobsRequest.java | 98 ++++++++------ ...erparameterTuningJobsRequestOrBuilder.java | 28 ++-- ...tModelDeploymentMonitoringJobsRequest.java | 70 ++++++++++ ...loymentMonitoringJobsRequestOrBuilder.java | 20 +++ .../v1beta1/ListPipelineJobsRequest.java | 42 +++--- .../ListPipelineJobsRequestOrBuilder.java | 12 +- .../v1beta1/ListSavedQueriesResponse.java | 69 ++++++---- .../ListSavedQueriesResponseOrBuilder.java | 15 ++- .../v1beta1/ListTrainingPipelinesRequest.java | 112 ++++++++++------ ...ListTrainingPipelinesRequestOrBuilder.java | 32 +++-- .../cloud/aiplatform/v1beta1/SavedQuery.java | 14 +- .../v1beta1/SavedQueryOrBuilder.java | 4 +- .../cloud/aiplatform/v1beta1/StudySpec.java | 126 +++++++++--------- .../v1beta1/StudySpecOrBuilder.java | 4 +- .../cloud/aiplatform/v1beta1/custom_job.proto | 13 +- .../aiplatform/v1beta1/dataset_service.proto | 5 +- .../aiplatform/v1beta1/job_service.proto | 89 +++++++------ .../aiplatform/v1beta1/model_service.proto | 2 + .../aiplatform/v1beta1/pipeline_service.proto | 28 ++-- .../aiplatform/v1beta1/saved_query.proto | 2 +- .../cloud/aiplatform/v1beta1/study.proto | 14 +- .../cloud/aiplatform/v1beta1/types.proto | 2 +- 69 files changed, 1662 insertions(+), 1114 deletions(-) diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java index 930436c10..078d06528 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java @@ -100,44 +100,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ebAccessUrisEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\t:\0028\001:i\352Af\n#aiplatform.googleapis.co" + "m/CustomJob\022?projects/{project}/location" - + "s/{location}/customJobs/{custom_job}\"\266\003\n" + + "s/{location}/customJobs/{custom_job}\"\271\003\n" + "\rCustomJobSpec\022J\n\021worker_pool_specs\030\001 \003(" + "\0132*.google.cloud.aiplatform.v1.WorkerPoo" + "lSpecB\003\340A\002\022:\n\nscheduling\030\003 \001(\0132&.google." + "cloud.aiplatform.v1.Scheduling\022\027\n\017servic" - + "e_account\030\004 \001(\t\0224\n\007network\030\005 \001(\tB#\372A \n\036c" - + "ompute.googleapis.com/Network\022\037\n\022reserve" - + "d_ip_ranges\030\r \003(\tB\003\340A\001\022I\n\025base_output_di" - + "rectory\030\006 \001(\0132*.google.cloud.aiplatform." - + "v1.GcsDestination\022B\n\013tensorboard\030\007 \001(\tB-" - + "\340A\001\372A\'\n%aiplatform.googleapis.com/Tensor" - + "board\022\036\n\021enable_web_access\030\n \001(\010B\003\340A\001\"\206\003" - + "\n\016WorkerPoolSpec\022C\n\016container_spec\030\006 \001(\013" - + "2).google.cloud.aiplatform.v1.ContainerS" - + "pecH\000\022L\n\023python_package_spec\030\007 \001(\0132-.goo" - + "gle.cloud.aiplatform.v1.PythonPackageSpe" - + "cH\000\022E\n\014machine_spec\030\001 \001(\0132\'.google.cloud" - + ".aiplatform.v1.MachineSpecB\006\340A\001\340A\005\022\032\n\rre" - + "plica_count\030\002 \001(\003B\003\340A\001\022=\n\nnfs_mounts\030\004 \003" - + "(\0132$.google.cloud.aiplatform.v1.NfsMount" - + "B\003\340A\001\0227\n\tdisk_spec\030\005 \001(\0132$.google.cloud." - + "aiplatform.v1.DiskSpecB\006\n\004task\"w\n\rContai" - + "nerSpec\022\026\n\timage_uri\030\001 \001(\tB\003\340A\002\022\017\n\007comma" - + "nd\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022/\n\003env\030\004 \003(\0132\".go" - + "ogle.cloud.aiplatform.v1.EnvVar\"\252\001\n\021Pyth" - + "onPackageSpec\022\037\n\022executor_image_uri\030\001 \001(" - + "\tB\003\340A\002\022\031\n\014package_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpyt" - + "hon_module\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\022/\n\003e" - + "nv\030\005 \003(\0132\".google.cloud.aiplatform.v1.En" - + "vVar\"_\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.go" - + "ogle.protobuf.Duration\022%\n\035restart_job_on" - + "_worker_restart\030\003 \001(\010B\322\001\n\036com.google.clo" - + "ud.aiplatform.v1B\016CustomJobProtoP\001ZDgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "aiplatform/v1;aiplatform\252\002\032Google.Cloud." - + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\" - + "V1\352\002\035Google::Cloud::AIPlatform::V1b\006prot" - + "o3" + + "e_account\030\004 \001(\t\0227\n\007network\030\005 \001(\tB&\340A\001\372A " + + "\n\036compute.googleapis.com/Network\022\037\n\022rese" + + "rved_ip_ranges\030\r \003(\tB\003\340A\001\022I\n\025base_output" + + "_directory\030\006 \001(\0132*.google.cloud.aiplatfo" + + "rm.v1.GcsDestination\022B\n\013tensorboard\030\007 \001(" + + "\tB-\340A\001\372A\'\n%aiplatform.googleapis.com/Ten" + + "sorboard\022\036\n\021enable_web_access\030\n \001(\010B\003\340A\001" + + "\"\206\003\n\016WorkerPoolSpec\022C\n\016container_spec\030\006 " + + "\001(\0132).google.cloud.aiplatform.v1.Contain" + + "erSpecH\000\022L\n\023python_package_spec\030\007 \001(\0132-." + + "google.cloud.aiplatform.v1.PythonPackage" + + "SpecH\000\022E\n\014machine_spec\030\001 \001(\0132\'.google.cl" + + "oud.aiplatform.v1.MachineSpecB\006\340A\001\340A\005\022\032\n" + + "\rreplica_count\030\002 \001(\003B\003\340A\001\022=\n\nnfs_mounts\030" + + "\004 \003(\0132$.google.cloud.aiplatform.v1.NfsMo" + + "untB\003\340A\001\0227\n\tdisk_spec\030\005 \001(\0132$.google.clo" + + "ud.aiplatform.v1.DiskSpecB\006\n\004task\"w\n\rCon" + + "tainerSpec\022\026\n\timage_uri\030\001 \001(\tB\003\340A\002\022\017\n\007co" + + "mmand\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022/\n\003env\030\004 \003(\0132\"" + + ".google.cloud.aiplatform.v1.EnvVar\"\252\001\n\021P" + + "ythonPackageSpec\022\037\n\022executor_image_uri\030\001" + + " \001(\tB\003\340A\002\022\031\n\014package_uris\030\002 \003(\tB\003\340A\002\022\032\n\r" + + "python_module\030\003 \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\022/" + + "\n\003env\030\005 \003(\0132\".google.cloud.aiplatform.v1" + + ".EnvVar\"_\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031" + + ".google.protobuf.Duration\022%\n\035restart_job" + + "_on_worker_restart\030\003 \001(\010B\322\001\n\036com.google." + + "cloud.aiplatform.v1B\016CustomJobProtoP\001ZDg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/aiplatform/v1;aiplatform\252\002\032Google.Clo" + + "ud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfo" + + "rm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java index 158a9c661..9a9e43bc4 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpec.java @@ -23,7 +23,7 @@ * *
  * Represents the spec of a CustomJob.
- * Next Id: 14
+ * Next Id: 15
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1.CustomJobSpec} @@ -399,7 +399,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
-   * The full name of the Compute Engine
+   * Optional. The full name of the Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
    * should be peered. For example, `projects/12345/global/networks/myVPC`.
    * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -412,7 +412,9 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
    * If this field is left unspecified, the job is not peered with any network.
    * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The network. */ @@ -432,7 +434,7 @@ public java.lang.String getNetwork() { * * *
-   * The full name of the Compute Engine
+   * Optional. The full name of the Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
    * should be peered. For example, `projects/12345/global/networks/myVPC`.
    * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -445,7 +447,9 @@ public java.lang.String getNetwork() {
    * If this field is left unspecified, the job is not peered with any network.
    * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for network. */ @@ -964,7 +968,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Represents the spec of a CustomJob.
-   * Next Id: 14
+   * Next Id: 15
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1.CustomJobSpec} @@ -1978,7 +1982,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { * * *
-     * The full name of the Compute Engine
+     * Optional. The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
      * should be peered. For example, `projects/12345/global/networks/myVPC`.
      * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -1991,7 +1995,9 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
      * If this field is left unspecified, the job is not peered with any network.
      * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The network. */ @@ -2010,7 +2016,7 @@ public java.lang.String getNetwork() { * * *
-     * The full name of the Compute Engine
+     * Optional. The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
      * should be peered. For example, `projects/12345/global/networks/myVPC`.
      * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -2023,7 +2029,9 @@ public java.lang.String getNetwork() {
      * If this field is left unspecified, the job is not peered with any network.
      * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for network. */ @@ -2042,7 +2050,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
-     * The full name of the Compute Engine
+     * Optional. The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
      * should be peered. For example, `projects/12345/global/networks/myVPC`.
      * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -2055,7 +2063,9 @@ public com.google.protobuf.ByteString getNetworkBytes() {
      * If this field is left unspecified, the job is not peered with any network.
      * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The network to set. * @return This builder for chaining. @@ -2073,7 +2083,7 @@ public Builder setNetwork(java.lang.String value) { * * *
-     * The full name of the Compute Engine
+     * Optional. The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
      * should be peered. For example, `projects/12345/global/networks/myVPC`.
      * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -2086,7 +2096,9 @@ public Builder setNetwork(java.lang.String value) {
      * If this field is left unspecified, the job is not peered with any network.
      * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -2100,7 +2112,7 @@ public Builder clearNetwork() { * * *
-     * The full name of the Compute Engine
+     * Optional. The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
      * should be peered. For example, `projects/12345/global/networks/myVPC`.
      * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -2113,7 +2125,9 @@ public Builder clearNetwork() {
      * If this field is left unspecified, the job is not peered with any network.
      * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for network to set. * @return This builder for chaining. diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java index da092fa37..00ac945f1 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobSpecOrBuilder.java @@ -167,7 +167,7 @@ public interface CustomJobSpecOrBuilder * * *
-   * The full name of the Compute Engine
+   * Optional. The full name of the Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
    * should be peered. For example, `projects/12345/global/networks/myVPC`.
    * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -180,7 +180,9 @@ public interface CustomJobSpecOrBuilder
    * If this field is left unspecified, the job is not peered with any network.
    * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The network. */ @@ -189,7 +191,7 @@ public interface CustomJobSpecOrBuilder * * *
-   * The full name of the Compute Engine
+   * Optional. The full name of the Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
    * should be peered. For example, `projects/12345/global/networks/myVPC`.
    * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -202,7 +204,9 @@ public interface CustomJobSpecOrBuilder
    * If this field is left unspecified, the job is not peered with any network.
    * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for network. */ diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArray.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArray.java index b2cd88d1e..387df3056 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArray.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArray.java @@ -139,7 +139,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * A list of bool values.
+   * A list of double values.
    * 
* * repeated double values = 1; @@ -154,7 +154,7 @@ public java.util.List getValuesList() { * * *
-   * A list of bool values.
+   * A list of double values.
    * 
* * repeated double values = 1; @@ -168,7 +168,7 @@ public int getValuesCount() { * * *
-   * A list of bool values.
+   * A list of double values.
    * 
* * repeated double values = 1; @@ -537,7 +537,7 @@ private void ensureValuesIsMutable() { * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; @@ -553,7 +553,7 @@ public java.util.List getValuesList() { * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; @@ -567,7 +567,7 @@ public int getValuesCount() { * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; @@ -582,7 +582,7 @@ public double getValues(int index) { * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; @@ -601,7 +601,7 @@ public Builder setValues(int index, double value) { * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; @@ -619,7 +619,7 @@ public Builder addValues(double value) { * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; @@ -637,7 +637,7 @@ public Builder addAllValues(java.lang.Iterable value * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArrayOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArrayOrBuilder.java index 6afd27ac1..a8459474d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArrayOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DoubleArrayOrBuilder.java @@ -27,7 +27,7 @@ public interface DoubleArrayOrBuilder * * *
-   * A list of bool values.
+   * A list of double values.
    * 
* * repeated double values = 1; @@ -39,7 +39,7 @@ public interface DoubleArrayOrBuilder * * *
-   * A list of bool values.
+   * A list of double values.
    * 
* * repeated double values = 1; @@ -51,7 +51,7 @@ public interface DoubleArrayOrBuilder * * *
-   * A list of bool values.
+   * A list of double values.
    * 
* * repeated double values = 1; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java index 91ce49b6d..29c4c3aae 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequest.java @@ -213,14 +213,16 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   *   * `model_display_name` supports = and !=
+   *   * `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.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -245,14 +247,16 @@ public java.lang.String getFilter() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   *   * `model_display_name` supports = and !=
+   *   * `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.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -916,14 +920,16 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     *   * `model_display_name` supports = and !=
+     *   * `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.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -947,14 +953,16 @@ public java.lang.String getFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     *   * `model_display_name` supports = and !=
+     *   * `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.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -978,14 +986,16 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     *   * `model_display_name` supports = and !=
+     *   * `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.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1008,14 +1018,16 @@ public Builder setFilter(java.lang.String value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     *   * `model_display_name` supports = and !=
+     *   * `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.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1034,14 +1046,16 @@ public Builder clearFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     *   * `model_display_name` supports = and !=
+     *   * `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.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequestOrBuilder.java index 9ddb064f4..76a88144f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListBatchPredictionJobsRequestOrBuilder.java @@ -60,14 +60,16 @@ public interface ListBatchPredictionJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   *   * `model_display_name` supports = and !=
+   *   * `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.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -81,14 +83,16 @@ public interface ListBatchPredictionJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   *   * `model_display_name` supports = and !=
+   *   * `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.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequest.java index 1bf57c7b9..b150498ab 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequest.java @@ -212,13 +212,15 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -243,13 +245,15 @@ public java.lang.String getFilter() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -909,13 +913,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -939,13 +945,15 @@ public java.lang.String getFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -969,13 +977,15 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -998,13 +1008,15 @@ public Builder setFilter(java.lang.String value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1023,13 +1035,15 @@ public Builder clearFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequestOrBuilder.java index 3e8119c22..788f3f218 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCustomJobsRequestOrBuilder.java @@ -60,13 +60,15 @@ public interface ListCustomJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -80,13 +82,15 @@ public interface ListCustomJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java index 37d37fe4a..d96747530 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequest.java @@ -220,13 +220,15 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -251,13 +253,15 @@ public java.lang.String getFilter() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -990,13 +994,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1020,13 +1026,15 @@ public java.lang.String getFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1050,13 +1058,15 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1079,13 +1089,15 @@ public Builder setFilter(java.lang.String value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1104,13 +1116,15 @@ public Builder clearFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequestOrBuilder.java index e62afebd9..0078edcec 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDataLabelingJobsRequestOrBuilder.java @@ -60,13 +60,15 @@ public interface ListDataLabelingJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -80,13 +82,15 @@ public interface ListDataLabelingJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequest.java index 88961f399..62b8b1fc8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequest.java @@ -214,13 +214,15 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -245,13 +247,15 @@ public java.lang.String getFilter() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -920,13 +924,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -950,13 +956,15 @@ public java.lang.String getFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -980,13 +988,15 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1009,13 +1019,15 @@ public Builder setFilter(java.lang.String value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1034,13 +1046,15 @@ public Builder clearFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequestOrBuilder.java index 3eaefc01a..56d50aa92 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListHyperparameterTuningJobsRequestOrBuilder.java @@ -60,13 +60,15 @@ public interface ListHyperparameterTuningJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -80,13 +82,15 @@ public interface ListHyperparameterTuningJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequest.java index 28109badf..298ea2d96 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequest.java @@ -214,6 +214,16 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * 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.
+   * 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"`
    * 
* * string filter = 2; @@ -237,6 +247,16 @@ public java.lang.String getFilter() { * *
    * The standard list filter.
+   * Supported fields:
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
+   * 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"`
    * 
* * string filter = 2; @@ -902,6 +922,16 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * 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.
+     * 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"`
      * 
* * string filter = 2; @@ -924,6 +954,16 @@ public java.lang.String getFilter() { * *
      * The standard list filter.
+     * Supported fields:
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
+     * 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"`
      * 
* * string filter = 2; @@ -946,6 +986,16 @@ public com.google.protobuf.ByteString getFilterBytes() { * *
      * 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.
+     * 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"`
      * 
* * string filter = 2; @@ -967,6 +1017,16 @@ public Builder setFilter(java.lang.String value) { * *
      * 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.
+     * 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"`
      * 
* * string filter = 2; @@ -984,6 +1044,16 @@ public Builder clearFilter() { * *
      * 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.
+     * 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"`
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequestOrBuilder.java index 1cdaef646..e8c66e5d8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelDeploymentMonitoringJobsRequestOrBuilder.java @@ -59,6 +59,16 @@ public interface ListModelDeploymentMonitoringJobsRequestOrBuilder * *
    * 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.
+   * 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"`
    * 
* * string filter = 2; @@ -71,6 +81,16 @@ public interface ListModelDeploymentMonitoringJobsRequestOrBuilder * *
    * 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.
+   * 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"`
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java index f0f58eae8..5c4e5895b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequest.java @@ -208,8 +208,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -220,7 +220,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -259,8 +259,8 @@ public java.lang.String getFilter() { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -271,7 +271,7 @@ public java.lang.String getFilter() { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -959,8 +959,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -971,7 +971,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1009,8 +1009,8 @@ public java.lang.String getFilter() { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -1021,7 +1021,7 @@ public java.lang.String getFilter() { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1059,8 +1059,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -1071,7 +1071,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1108,8 +1108,8 @@ public Builder setFilter(java.lang.String value) { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -1120,7 +1120,7 @@ public Builder setFilter(java.lang.String value) { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1153,8 +1153,8 @@ public Builder clearFilter() { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -1165,7 +1165,7 @@ public Builder clearFilter() { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java index 8e0b26a59..3866f9a4f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListPipelineJobsRequestOrBuilder.java @@ -63,8 +63,8 @@ public interface ListPipelineJobsRequestOrBuilder * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -75,7 +75,7 @@ public interface ListPipelineJobsRequestOrBuilder * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -103,8 +103,8 @@ public interface ListPipelineJobsRequestOrBuilder * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -115,7 +115,7 @@ public interface ListPipelineJobsRequestOrBuilder * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java index 9648dd14e..06000abbd 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java @@ -136,7 +136,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -149,7 +150,8 @@ public java.util.List getSavedQueries * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -163,7 +165,8 @@ public java.util.List getSavedQueries * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -176,7 +179,8 @@ public int getSavedQueriesCount() { * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -189,7 +193,8 @@ public com.google.cloud.aiplatform.v1.SavedQuery getSavedQueries(int index) { * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -646,7 +651,8 @@ private void ensureSavedQueriesIsMutable() { * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -662,7 +668,8 @@ public java.util.List getSavedQueries * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -678,7 +685,8 @@ public int getSavedQueriesCount() { * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -694,7 +702,8 @@ public com.google.cloud.aiplatform.v1.SavedQuery getSavedQueries(int index) { * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -716,7 +725,8 @@ public Builder setSavedQueries(int index, com.google.cloud.aiplatform.v1.SavedQu * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -736,7 +746,8 @@ public Builder setSavedQueries( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -758,7 +769,8 @@ public Builder addSavedQueries(com.google.cloud.aiplatform.v1.SavedQuery value) * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -780,7 +792,8 @@ public Builder addSavedQueries(int index, com.google.cloud.aiplatform.v1.SavedQu * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -800,7 +813,8 @@ public Builder addSavedQueries( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -820,7 +834,8 @@ public Builder addSavedQueries( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -840,7 +855,8 @@ public Builder addAllSavedQueries( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -859,7 +875,8 @@ public Builder clearSavedQueries() { * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -878,7 +895,8 @@ public Builder removeSavedQueries(int index) { * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -890,7 +908,8 @@ public com.google.cloud.aiplatform.v1.SavedQuery.Builder getSavedQueriesBuilder( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -906,7 +925,8 @@ public com.google.cloud.aiplatform.v1.SavedQueryOrBuilder getSavedQueriesOrBuild * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -923,7 +943,8 @@ public com.google.cloud.aiplatform.v1.SavedQueryOrBuilder getSavedQueriesOrBuild * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -936,7 +957,8 @@ public com.google.cloud.aiplatform.v1.SavedQuery.Builder addSavedQueriesBuilder( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -949,7 +971,8 @@ public com.google.cloud.aiplatform.v1.SavedQuery.Builder addSavedQueriesBuilder( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponseOrBuilder.java index a78ca8315..10837c9d2 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponseOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponseOrBuilder.java @@ -27,7 +27,8 @@ public interface ListSavedQueriesResponseOrBuilder * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -37,7 +38,8 @@ public interface ListSavedQueriesResponseOrBuilder * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -47,7 +49,8 @@ public interface ListSavedQueriesResponseOrBuilder * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -57,7 +60,8 @@ public interface ListSavedQueriesResponseOrBuilder * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; @@ -68,7 +72,8 @@ public interface ListSavedQueriesResponseOrBuilder * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java index c416434d2..e15ee5417 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequest.java @@ -212,13 +212,17 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+   *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+   *   * `NOT display_name="my_pipeline"`
+   *   * `create_time>"2021-05-18T00:00:00Z"`
+   *   * `training_task_definition:"*automl_text_classification*"`
    * 
* * string filter = 2; @@ -243,13 +247,17 @@ public java.lang.String getFilter() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+   *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+   *   * `NOT display_name="my_pipeline"`
+   *   * `create_time>"2021-05-18T00:00:00Z"`
+   *   * `training_task_definition:"*automl_text_classification*"`
    * 
* * string filter = 2; @@ -910,13 +918,17 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+     *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+     *   * `NOT display_name="my_pipeline"`
+     *   * `create_time>"2021-05-18T00:00:00Z"`
+     *   * `training_task_definition:"*automl_text_classification*"`
      * 
* * string filter = 2; @@ -940,13 +952,17 @@ public java.lang.String getFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+     *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+     *   * `NOT display_name="my_pipeline"`
+     *   * `create_time>"2021-05-18T00:00:00Z"`
+     *   * `training_task_definition:"*automl_text_classification*"`
      * 
* * string filter = 2; @@ -970,13 +986,17 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+     *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+     *   * `NOT display_name="my_pipeline"`
+     *   * `create_time>"2021-05-18T00:00:00Z"`
+     *   * `training_task_definition:"*automl_text_classification*"`
      * 
* * string filter = 2; @@ -999,13 +1019,17 @@ public Builder setFilter(java.lang.String value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+     *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+     *   * `NOT display_name="my_pipeline"`
+     *   * `create_time>"2021-05-18T00:00:00Z"`
+     *   * `training_task_definition:"*automl_text_classification*"`
      * 
* * string filter = 2; @@ -1024,13 +1048,17 @@ public Builder clearFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+     *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+     *   * `NOT display_name="my_pipeline"`
+     *   * `create_time>"2021-05-18T00:00:00Z"`
+     *   * `training_task_definition:"*automl_text_classification*"`
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequestOrBuilder.java index 27be8acdc..0e2820ccd 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListTrainingPipelinesRequestOrBuilder.java @@ -60,13 +60,17 @@ public interface ListTrainingPipelinesRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+   *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+   *   * `NOT display_name="my_pipeline"`
+   *   * `create_time>"2021-05-18T00:00:00Z"`
+   *   * `training_task_definition:"*automl_text_classification*"`
    * 
* * string filter = 2; @@ -80,13 +84,17 @@ public interface ListTrainingPipelinesRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+   *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+   *   * `NOT display_name="my_pipeline"`
+   *   * `create_time>"2021-05-18T00:00:00Z"`
+   *   * `training_task_definition:"*automl_text_classification*"`
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java index a122dacf2..0f6de358c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java @@ -488,6 +488,17 @@ public enum DeploymentResourcesType implements com.google.protobuf.ProtocolMessa * AUTOMATIC_RESOURCES = 2; */ AUTOMATIC_RESOURCES(2), + /** + * + * + *
+     * Resources that can be shared by multiple [DeployedModels][google.cloud.aiplatform.v1.DeployedModel].
+     * A pre-configured [DeploymentResourcePool][] is required.
+     * 
+ * + * SHARED_RESOURCES = 3; + */ + SHARED_RESOURCES(3), UNRECOGNIZED(-1), ; @@ -523,6 +534,17 @@ public enum DeploymentResourcesType implements com.google.protobuf.ProtocolMessa * AUTOMATIC_RESOURCES = 2; */ public static final int AUTOMATIC_RESOURCES_VALUE = 2; + /** + * + * + *
+     * Resources that can be shared by multiple [DeployedModels][google.cloud.aiplatform.v1.DeployedModel].
+     * A pre-configured [DeploymentResourcePool][] is required.
+     * 
+ * + * SHARED_RESOURCES = 3; + */ + public static final int SHARED_RESOURCES_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -554,6 +576,8 @@ public static DeploymentResourcesType forNumber(int value) { return DEDICATED_RESOURCES; case 2: return AUTOMATIC_RESOURCES; + case 3: + return SHARED_RESOURCES; default: return null; } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java index 6af901ae0..49f222a4d 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java @@ -69,7 +69,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cloud/aiplatform/v1/env_var.proto\032,googl" + "e/cloud/aiplatform/v1/explanation.proto\032" + "\034google/protobuf/struct.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\362\r\n\005Model\022\014\n\004name" + + "otobuf/timestamp.proto\"\211\016\n\005Model\022\014\n\004name" + "\030\001 \001(\t\022\032\n\nversion_id\030\034 \001(\tB\006\340A\005\340A\003\022\027\n\017ve" + "rsion_aliases\030\035 \003(\t\022<\n\023version_create_ti" + "me\030\037 \001(\0132\032.google.protobuf.TimestampB\003\340A" @@ -108,28 +108,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "portableContentB\003\340A\003\"P\n\021ExportableConten" + "t\022\"\n\036EXPORTABLE_CONTENT_UNSPECIFIED\020\000\022\014\n" + "\010ARTIFACT\020\001\022\t\n\005IMAGE\020\002\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\027Deploym" - + "entResourcesType\022)\n%DEPLOYMENT_RESOURCES" - + "_TYPE_UNSPECIFIED\020\000\022\027\n\023DEDICATED_RESOURC" - + "ES\020\001\022\027\n\023AUTOMATIC_RESOURCES\020\002:\\\352AY\n\037aipl" - + "atform.googleapis.com/Model\0226projects/{p" - + "roject}/locations/{location}/models/{mod" - + "el}\"{\n\017PredictSchemata\022 \n\023instance_schem" - + "a_uri\030\001 \001(\tB\003\340A\005\022\"\n\025parameters_schema_ur" - + "i\030\002 \001(\tB\003\340A\005\022\"\n\025prediction_schema_uri\030\003 " - + "\001(\tB\003\340A\005\"\373\001\n\022ModelContainerSpec\022\031\n\timage" - + "_uri\030\001 \001(\tB\006\340A\002\340A\005\022\024\n\007command\030\002 \003(\tB\003\340A\005" - + "\022\021\n\004args\030\003 \003(\tB\003\340A\005\0224\n\003env\030\004 \003(\0132\".googl" - + "e.cloud.aiplatform.v1.EnvVarB\003\340A\005\0224\n\005por" - + "ts\030\005 \003(\0132 .google.cloud.aiplatform.v1.Po" - + "rtB\003\340A\005\022\032\n\rpredict_route\030\006 \001(\tB\003\340A\005\022\031\n\014h" - + "ealth_route\030\007 \001(\tB\003\340A\005\"\036\n\004Port\022\026\n\016contai" - + "ner_port\030\003 \001(\005B\316\001\n\036com.google.cloud.aipl" - + "atform.v1B\nModelProtoP\001ZDgoogle.golang.o" - + "rg/genproto/googleapis/cloud/aiplatform/" - + "v1;aiplatform\252\002\032Google.Cloud.AIPlatform." - + "V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google" - + "::Cloud::AIPlatform::V1b\006proto3" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\214\001\n\027Deploy" + + "mentResourcesType\022)\n%DEPLOYMENT_RESOURCE" + + "S_TYPE_UNSPECIFIED\020\000\022\027\n\023DEDICATED_RESOUR" + + "CES\020\001\022\027\n\023AUTOMATIC_RESOURCES\020\002\022\024\n\020SHARED" + + "_RESOURCES\020\003:\\\352AY\n\037aiplatform.googleapis" + + ".com/Model\0226projects/{project}/locations" + + "/{location}/models/{model}\"{\n\017PredictSch" + + "emata\022 \n\023instance_schema_uri\030\001 \001(\tB\003\340A\005\022" + + "\"\n\025parameters_schema_uri\030\002 \001(\tB\003\340A\005\022\"\n\025p" + + "rediction_schema_uri\030\003 \001(\tB\003\340A\005\"\373\001\n\022Mode" + + "lContainerSpec\022\031\n\timage_uri\030\001 \001(\tB\006\340A\002\340A" + + "\005\022\024\n\007command\030\002 \003(\tB\003\340A\005\022\021\n\004args\030\003 \003(\tB\003\340" + + "A\005\0224\n\003env\030\004 \003(\0132\".google.cloud.aiplatfor" + + "m.v1.EnvVarB\003\340A\005\0224\n\005ports\030\005 \003(\0132 .google" + + ".cloud.aiplatform.v1.PortB\003\340A\005\022\032\n\rpredic" + + "t_route\030\006 \001(\tB\003\340A\005\022\031\n\014health_route\030\007 \001(\t" + + "B\003\340A\005\"\036\n\004Port\022\026\n\016container_port\030\003 \001(\005B\316\001" + + "\n\036com.google.cloud.aiplatform.v1B\nModelP" + + "rotoP\001ZDgoogle.golang.org/genproto/googl" + + "eapis/cloud/aiplatform/v1;aiplatform\252\002\032G" + + "oogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud" + + "\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfo" + + "rm::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQuery.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQuery.java index f8453feea..30d25df46 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQuery.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQuery.java @@ -590,7 +590,7 @@ public int getAnnotationSpecCount() { * * *
-   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* @@ -614,7 +614,7 @@ public java.lang.String getEtag() { * * *
-   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* @@ -2276,7 +2276,7 @@ public Builder clearAnnotationSpecCount() { * * *
-     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* @@ -2299,7 +2299,7 @@ public java.lang.String getEtag() { * * *
-     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* @@ -2322,7 +2322,7 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* @@ -2344,7 +2344,7 @@ public Builder setEtag(java.lang.String value) { * * *
-     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* @@ -2362,7 +2362,7 @@ public Builder clearEtag() { * * *
-     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryOrBuilder.java index a1e62ee1e..b4c37e34c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryOrBuilder.java @@ -277,7 +277,7 @@ public interface SavedQueryOrBuilder * * *
-   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* @@ -290,7 +290,7 @@ public interface SavedQueryOrBuilder * * *
-   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java index e25722a43..3d3b0fc85 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpec.java @@ -2524,7 +2524,7 @@ public interface DoubleValueSpecOrBuilder * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -2540,7 +2540,7 @@ public interface DoubleValueSpecOrBuilder * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -2701,7 +2701,7 @@ public double getMaxValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -2720,7 +2720,7 @@ public boolean hasDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -3243,7 +3243,7 @@ public Builder clearMaxValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -3262,7 +3262,7 @@ public boolean hasDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -3281,7 +3281,7 @@ public double getDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -3303,7 +3303,7 @@ public Builder setDefaultValue(double value) { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -3412,7 +3412,7 @@ public interface IntegerValueSpecOrBuilder * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -3428,7 +3428,7 @@ public interface IntegerValueSpecOrBuilder * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -3589,7 +3589,7 @@ public long getMaxValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -3608,7 +3608,7 @@ public boolean hasDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -4119,7 +4119,7 @@ public Builder clearMaxValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -4138,7 +4138,7 @@ public boolean hasDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -4157,7 +4157,7 @@ public long getDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -4179,7 +4179,7 @@ public Builder setDefaultValue(long value) { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -4312,8 +4312,8 @@ public interface CategoricalValueSpecOrBuilder * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -4328,8 +4328,8 @@ public interface CategoricalValueSpecOrBuilder * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -4344,8 +4344,8 @@ public interface CategoricalValueSpecOrBuilder * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -4537,8 +4537,8 @@ public com.google.protobuf.ByteString getValuesBytes(int index) { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -4556,8 +4556,8 @@ public boolean hasDefaultValue() { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -4583,8 +4583,8 @@ public java.lang.String getDefaultValue() { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5175,8 +5175,8 @@ public Builder addValuesBytes(com.google.protobuf.ByteString value) { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5193,8 +5193,8 @@ public boolean hasDefaultValue() { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5219,8 +5219,8 @@ public java.lang.String getDefaultValue() { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5245,8 +5245,8 @@ public com.google.protobuf.ByteString getDefaultValueBytes() { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5270,8 +5270,8 @@ public Builder setDefaultValue(java.lang.String value) { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5291,8 +5291,8 @@ public Builder clearDefaultValue() { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5428,8 +5428,8 @@ public interface DiscreteValueSpecOrBuilder * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -5445,8 +5445,8 @@ public interface DiscreteValueSpecOrBuilder * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -5647,8 +5647,8 @@ public double getValues(int index) { * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -5667,8 +5667,8 @@ public boolean hasDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -6236,8 +6236,8 @@ public Builder clearValues() { * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -6256,8 +6256,8 @@ public boolean hasDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -6276,8 +6276,8 @@ public double getDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -6299,8 +6299,8 @@ public Builder setDefaultValue(double value) { * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -16864,7 +16864,7 @@ public com.google.cloud.aiplatform.v1.StudySpec.Algorithm getAlgorithm() { *
    * The observation noise level of the study.
    * Currently only supported by the Vertex AI Vizier service. Not supported by
-   * HyperparamterTuningJob or TrainingPipeline.
+   * HyperparameterTuningJob or TrainingPipeline.
    * 
* * .google.cloud.aiplatform.v1.StudySpec.ObservationNoise observation_noise = 6; @@ -16881,7 +16881,7 @@ public int getObservationNoiseValue() { *
    * The observation noise level of the study.
    * Currently only supported by the Vertex AI Vizier service. Not supported by
-   * HyperparamterTuningJob or TrainingPipeline.
+   * HyperparameterTuningJob or TrainingPipeline.
    * 
* * .google.cloud.aiplatform.v1.StudySpec.ObservationNoise observation_noise = 6; @@ -19164,7 +19164,7 @@ public Builder clearAlgorithm() { *
      * The observation noise level of the study.
      * Currently only supported by the Vertex AI Vizier service. Not supported by
-     * HyperparamterTuningJob or TrainingPipeline.
+     * HyperparameterTuningJob or TrainingPipeline.
      * 
* * .google.cloud.aiplatform.v1.StudySpec.ObservationNoise observation_noise = 6; @@ -19181,7 +19181,7 @@ public int getObservationNoiseValue() { *
      * The observation noise level of the study.
      * Currently only supported by the Vertex AI Vizier service. Not supported by
-     * HyperparamterTuningJob or TrainingPipeline.
+     * HyperparameterTuningJob or TrainingPipeline.
      * 
* * .google.cloud.aiplatform.v1.StudySpec.ObservationNoise observation_noise = 6; @@ -19201,7 +19201,7 @@ public Builder setObservationNoiseValue(int value) { *
      * The observation noise level of the study.
      * Currently only supported by the Vertex AI Vizier service. Not supported by
-     * HyperparamterTuningJob or TrainingPipeline.
+     * HyperparameterTuningJob or TrainingPipeline.
      * 
* * .google.cloud.aiplatform.v1.StudySpec.ObservationNoise observation_noise = 6; @@ -19223,7 +19223,7 @@ public com.google.cloud.aiplatform.v1.StudySpec.ObservationNoise getObservationN *
      * The observation noise level of the study.
      * Currently only supported by the Vertex AI Vizier service. Not supported by
-     * HyperparamterTuningJob or TrainingPipeline.
+     * HyperparameterTuningJob or TrainingPipeline.
      * 
* * .google.cloud.aiplatform.v1.StudySpec.ObservationNoise observation_noise = 6; @@ -19247,7 +19247,7 @@ public Builder setObservationNoise( *
      * The observation noise level of the study.
      * Currently only supported by the Vertex AI Vizier service. Not supported by
-     * HyperparamterTuningJob or TrainingPipeline.
+     * HyperparameterTuningJob or TrainingPipeline.
      * 
* * .google.cloud.aiplatform.v1.StudySpec.ObservationNoise observation_noise = 6; diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpecOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpecOrBuilder.java index 5094869ee..3043198dd 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StudySpecOrBuilder.java @@ -307,7 +307,7 @@ public interface StudySpecOrBuilder *
    * The observation noise level of the study.
    * Currently only supported by the Vertex AI Vizier service. Not supported by
-   * HyperparamterTuningJob or TrainingPipeline.
+   * HyperparameterTuningJob or TrainingPipeline.
    * 
* * .google.cloud.aiplatform.v1.StudySpec.ObservationNoise observation_noise = 6; @@ -321,7 +321,7 @@ public interface StudySpecOrBuilder *
    * The observation noise level of the study.
    * Currently only supported by the Vertex AI Vizier service. Not supported by
-   * HyperparamterTuningJob or TrainingPipeline.
+   * HyperparameterTuningJob or TrainingPipeline.
    * 
* * .google.cloud.aiplatform.v1.StudySpec.ObservationNoise observation_noise = 6; diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto index 0c7f5afa2..38d68c013 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto @@ -106,7 +106,7 @@ message CustomJob { } // Represents the spec of a CustomJob. -// Next Id: 14 +// Next Id: 15 message CustomJobSpec { // Required. The spec of the worker pools including machine type and Docker image. // All worker pools except the first one are optional and can be skipped by @@ -123,7 +123,7 @@ message CustomJobSpec { // for the CustomJob's project is used. string service_account = 4; - // The full name of the Compute Engine + // Optional. The full name of the Compute Engine // [network](/compute/docs/networks-and-firewalls#networks) to which the Job // should be peered. For example, `projects/12345/global/networks/myVPC`. // [Format](/compute/docs/reference/rest/v1/networks/insert) @@ -136,9 +136,12 @@ message CustomJobSpec { // AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). // // If this field is left unspecified, the job is not peered with any network. - string network = 5 [(google.api.resource_reference) = { - type: "compute.googleapis.com/Network" - }]; + string network = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + } + ]; // Optional. A list of names for the reserved ip ranges under the VPC network // that can be used for this job. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto index 5425db5b0..71b332a8c 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto @@ -224,6 +224,7 @@ message ListDatasetsRequest { // * A key including a space must be quoted. `labels."a key"`. // // Some examples: + // // * `displayName="myDisplayName"` // * `labels.myKey="myValue"` string filter = 2; @@ -240,6 +241,7 @@ message ListDatasetsRequest { // 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` @@ -397,7 +399,8 @@ message ListSavedQueriesRequest { // Response message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries]. message ListSavedQueriesResponse { - // A list of SavedQueries that match the specified filter in the request. + // A list of SavedQueries that matches the specified filter in the + // request. repeated SavedQuery saved_queries = 1; // The standard List next-page token. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto index 493ee7ad3..82198a26b 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto @@ -384,19 +384,17 @@ message ListCustomJobsRequest { // // Supported fields: // - // * `display_name` supports = and !=. - // - // * `state` supports = and !=. + // * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + // * `state` supports `=`, `!=` comparisons. + // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + // `create_time` must be in RFC 3339 format. // // Some examples of using the filter are: // - // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` - // - // * `state="JOB_STATE_RUNNING" OR display_name="my_job"` - // - // * `NOT display_name="my_job"` - // - // * `state="JOB_STATE_FAILED"` + // * `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"` string filter = 2; // The standard list page size. @@ -491,19 +489,17 @@ message ListDataLabelingJobsRequest { // // Supported fields: // - // * `display_name` supports = and !=. - // - // * `state` supports = and !=. + // * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + // * `state` supports `=`, `!=` comparisons. + // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + // `create_time` must be in RFC 3339 format. // // Some examples of using the filter are: // - // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` - // - // * `state="JOB_STATE_RUNNING" OR display_name="my_job"` - // - // * `NOT display_name="my_job"` - // - // * `state="JOB_STATE_FAILED"` + // * `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"` string filter = 2; // The standard list page size. @@ -603,19 +599,17 @@ message ListHyperparameterTuningJobsRequest { // // Supported fields: // - // * `display_name` supports = and !=. - // - // * `state` supports = and !=. + // * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + // * `state` supports `=`, `!=` comparisons. + // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + // `create_time` must be in RFC 3339 format. // // Some examples of using the filter are: // - // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` - // - // * `state="JOB_STATE_RUNNING" OR display_name="my_job"` - // - // * `NOT display_name="my_job"` - // - // * `state="JOB_STATE_FAILED"` + // * `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"` string filter = 2; // The standard list page size. @@ -712,21 +706,18 @@ message ListBatchPredictionJobsRequest { // // Supported fields: // - // * `display_name` supports = and !=. - // - // * `state` supports = and !=. - // - // * `model_display_name` supports = and != + // * `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. // // Some examples of using the filter are: // - // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` - // - // * `state="JOB_STATE_RUNNING" OR display_name="my_job"` - // - // * `NOT display_name="my_job"` - // - // * `state="JOB_STATE_FAILED"` + // * `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"` string filter = 2; // The standard list page size. @@ -893,6 +884,20 @@ message ListModelDeploymentMonitoringJobsRequest { ]; // 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. + // + // 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"` string filter = 2; // The standard list page size. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto index ed0a00251..26c1d3b7f 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto @@ -98,6 +98,10 @@ message Model { // Resources that to large degree are decided by Vertex AI, and require // only a modest additional configuration. AUTOMATIC_RESOURCES = 2; + + // Resources that can be shared by multiple [DeployedModels][google.cloud.aiplatform.v1.DeployedModel]. + // A pre-configured [DeploymentResourcePool][] is required. + SHARED_RESOURCES = 3; } // The resource name of the Model. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto index baa693ba1..ca892b3ae 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto @@ -283,6 +283,7 @@ message ListModelsRequest { // * A key including a space must be quoted. `labels."a key"`. // // Some examples: + // // * `model=1234` // * `displayName="myDisplayName"` // * `labels.myKey="myValue"` @@ -303,6 +304,7 @@ message ListModelsRequest { // 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` @@ -349,6 +351,7 @@ message ListModelVersionsRequest { // * A key including a space must be quoted. `labels."a key"`. // // Some examples: + // // * `labels.myKey="myValue"` string filter = 4; diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto index fa6c5bf12..84ab232de 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto @@ -193,21 +193,22 @@ message ListTrainingPipelinesRequest { ]; // The standard list filter. - // Supported fields: // - // * `display_name` supports = and !=. + // Supported fields: // - // * `state` supports = and !=. + // * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + // * `state` supports `=`, `!=` comparisons. + // * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. + // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + // `create_time` must be in RFC 3339 format. // // Some examples of using the filter are: // - // * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` - // - // * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` - // - // * `NOT display_name="my_pipeline"` - // - // * `state="PIPELINE_STATE_FAILED"` + // * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"` + // * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"` + // * `NOT display_name="my_pipeline"` + // * `create_time>"2021-05-18T00:00:00Z"` + // * `training_task_definition:"*automl_text_classification*"` string filter = 2; // The standard list page size. @@ -312,8 +313,8 @@ message ListPipelineJobsRequest { // * `pipeline_name`: Supports `=` and `!=` comparisons. // * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. // * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - // for example, can check if pipeline's display_name contains *step* by doing - // display_name:\"*step*\" + // for example, can check if pipeline's display_name contains *step* by + // doing display_name:\"*step*\" // * `state`: Supports `=` and `!=` comparisons. // * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. // Values must be in RFC 3339 format. @@ -324,7 +325,7 @@ message ListPipelineJobsRequest { // * `labels`: Supports key-value equality and key presence. // * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. // * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - // wildcard. + // wildcard. // // Filter expressions can be combined together using logical operators // (`AND` & `OR`). @@ -359,6 +360,7 @@ message ListPipelineJobsRequest { // there are multiple jobs having the same create time, order them by the end // time in ascending order. if order_by is not specified, it will order by // default order is create time in descending order. Supported fields: + // // * `create_time` // * `update_time` // * `end_time` diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/saved_query.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/saved_query.proto index 3018d51d6..0c660fcc6 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/saved_query.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/saved_query.proto @@ -74,7 +74,7 @@ message SavedQuery { // Output only. Number of AnnotationSpecs in the context of the SavedQuery. int32 annotation_spec_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Used to perform a consistent read-modify-write update. If not set, a blind + // Used to perform consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. string etag = 8; diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto index 96b3c8ff2..c61a4a3fe 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/study.proto @@ -225,7 +225,7 @@ message StudySpec { // offered starting point. // // Currently only supported by the Vertex AI Vizier service. Not supported - // by HyperparamterTuningJob or TrainingPipeline. + // by HyperparameterTuningJob or TrainingPipeline. optional double default_value = 4; } @@ -242,7 +242,7 @@ message StudySpec { // offered starting point. // // Currently only supported by the Vertex AI Vizier service. Not supported - // by HyperparamterTuningJob or TrainingPipeline. + // by HyperparameterTuningJob or TrainingPipeline. optional int64 default_value = 4; } @@ -255,8 +255,8 @@ message StudySpec { // relatively good starting point. Unset value signals that there is no // offered starting point. // - // Currently only supported by the Vizier service. Not supported by - // HyperparamterTuningJob or TrainingPipeline. + // Currently only supported by the Vertex AI Vizier service. Not supported + // by HyperparameterTuningJob or TrainingPipeline. optional string default_value = 3; } @@ -273,8 +273,8 @@ message StudySpec { // offered starting point. It automatically rounds to the // nearest feasible discrete point. // - // Currently only supported by the Vizier service. Not supported by - // HyperparamterTuningJob or TrainingPipeline. + // Currently only supported by the Vertex AI Vizier service. Not supported + // by HyperparameterTuningJob or TrainingPipeline. optional double default_value = 3; } @@ -525,7 +525,7 @@ message StudySpec { // The observation noise level of the study. // Currently only supported by the Vertex AI Vizier service. Not supported by - // HyperparamterTuningJob or TrainingPipeline. + // HyperparameterTuningJob or TrainingPipeline. ObservationNoise observation_noise = 6; // Describe which measurement selection type will be used diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/types.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/types.proto index 3fbc31d72..095b73c11 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/types.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/types.proto @@ -32,7 +32,7 @@ message BoolArray { // A list of double values. message DoubleArray { - // A list of bool values. + // A list of double values. repeated double values = 1; } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java index cf01db573..9733c0daf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java @@ -102,45 +102,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:i\352Af\n#aipl" + "atform.googleapis.com/CustomJob\022?project" + "s/{project}/locations/{location}/customJ" - + "obs/{custom_job}\"\305\003\n\rCustomJobSpec\022O\n\021wo" + + "obs/{custom_job}\"\310\003\n\rCustomJobSpec\022O\n\021wo" + "rker_pool_specs\030\001 \003(\0132/.google.cloud.aip" + "latform.v1beta1.WorkerPoolSpecB\003\340A\002\022?\n\ns" + "cheduling\030\003 \001(\0132+.google.cloud.aiplatfor" + "m.v1beta1.Scheduling\022\027\n\017service_account\030" - + "\004 \001(\t\0224\n\007network\030\005 \001(\tB#\372A \n\036compute.goo" - + "gleapis.com/Network\022\037\n\022reserved_ip_range" - + "s\030\r \003(\tB\003\340A\001\022N\n\025base_output_directory\030\006 " - + "\001(\0132/.google.cloud.aiplatform.v1beta1.Gc" - + "sDestination\022B\n\013tensorboard\030\007 \001(\tB-\340A\001\372A" - + "\'\n%aiplatform.googleapis.com/Tensorboard" - + "\022\036\n\021enable_web_access\030\n \001(\010B\003\340A\001\"\237\003\n\016Wor" - + "kerPoolSpec\022H\n\016container_spec\030\006 \001(\0132..go" - + "ogle.cloud.aiplatform.v1beta1.ContainerS" - + "pecH\000\022Q\n\023python_package_spec\030\007 \001(\01322.goo" - + "gle.cloud.aiplatform.v1beta1.PythonPacka" - + "geSpecH\000\022J\n\014machine_spec\030\001 \001(\0132,.google." - + "cloud.aiplatform.v1beta1.MachineSpecB\006\340A" - + "\001\340A\005\022\032\n\rreplica_count\030\002 \001(\003B\003\340A\001\022B\n\nnfs_" - + "mounts\030\004 \003(\0132).google.cloud.aiplatform.v" - + "1beta1.NfsMountB\003\340A\001\022<\n\tdisk_spec\030\005 \001(\0132" - + ").google.cloud.aiplatform.v1beta1.DiskSp" - + "ecB\006\n\004task\"|\n\rContainerSpec\022\026\n\timage_uri" - + "\030\001 \001(\tB\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030\003 \003" - + "(\t\0224\n\003env\030\004 \003(\0132\'.google.cloud.aiplatfor" - + "m.v1beta1.EnvVar\"\257\001\n\021PythonPackageSpec\022\037" - + "\n\022executor_image_uri\030\001 \001(\tB\003\340A\002\022\031\n\014packa" - + "ge_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpython_module\030\003 \001(" - + "\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\0224\n\003env\030\005 \003(\0132\'.goog" - + "le.cloud.aiplatform.v1beta1.EnvVar\"_\n\nSc" - + "heduling\022*\n\007timeout\030\001 \001(\0132\031.google.proto" - + "buf.Duration\022%\n\035restart_job_on_worker_re" - + "start\030\003 \001(\010B\353\001\n#com.google.cloud.aiplatf" - + "orm.v1beta1B\016CustomJobProtoP\001ZIgoogle.go" - + "lang.org/genproto/googleapis/cloud/aipla" - + "tform/v1beta1;aiplatform\252\002\037Google.Cloud." - + "AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlat" - + "form\\V1beta1\352\002\"Google::Cloud::AIPlatform" - + "::V1beta1b\006proto3" + + "\004 \001(\t\0227\n\007network\030\005 \001(\tB&\340A\001\372A \n\036compute." + + "googleapis.com/Network\022\037\n\022reserved_ip_ra" + + "nges\030\r \003(\tB\003\340A\001\022N\n\025base_output_directory" + + "\030\006 \001(\0132/.google.cloud.aiplatform.v1beta1" + + ".GcsDestination\022B\n\013tensorboard\030\007 \001(\tB-\340A" + + "\001\372A\'\n%aiplatform.googleapis.com/Tensorbo" + + "ard\022\036\n\021enable_web_access\030\n \001(\010B\003\340A\001\"\237\003\n\016" + + "WorkerPoolSpec\022H\n\016container_spec\030\006 \001(\0132." + + ".google.cloud.aiplatform.v1beta1.Contain" + + "erSpecH\000\022Q\n\023python_package_spec\030\007 \001(\01322." + + "google.cloud.aiplatform.v1beta1.PythonPa" + + "ckageSpecH\000\022J\n\014machine_spec\030\001 \001(\0132,.goog" + + "le.cloud.aiplatform.v1beta1.MachineSpecB" + + "\006\340A\001\340A\005\022\032\n\rreplica_count\030\002 \001(\003B\003\340A\001\022B\n\nn" + + "fs_mounts\030\004 \003(\0132).google.cloud.aiplatfor" + + "m.v1beta1.NfsMountB\003\340A\001\022<\n\tdisk_spec\030\005 \001" + + "(\0132).google.cloud.aiplatform.v1beta1.Dis" + + "kSpecB\006\n\004task\"|\n\rContainerSpec\022\026\n\timage_" + + "uri\030\001 \001(\tB\003\340A\002\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030" + + "\003 \003(\t\0224\n\003env\030\004 \003(\0132\'.google.cloud.aiplat" + + "form.v1beta1.EnvVar\"\257\001\n\021PythonPackageSpe" + + "c\022\037\n\022executor_image_uri\030\001 \001(\tB\003\340A\002\022\031\n\014pa" + + "ckage_uris\030\002 \003(\tB\003\340A\002\022\032\n\rpython_module\030\003" + + " \001(\tB\003\340A\002\022\014\n\004args\030\004 \003(\t\0224\n\003env\030\005 \003(\0132\'.g" + + "oogle.cloud.aiplatform.v1beta1.EnvVar\"_\n" + + "\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.google.pr" + + "otobuf.Duration\022%\n\035restart_job_on_worker" + + "_restart\030\003 \001(\010B\353\001\n#com.google.cloud.aipl" + + "atform.v1beta1B\016CustomJobProtoP\001ZIgoogle" + + ".golang.org/genproto/googleapis/cloud/ai" + + "platform/v1beta1;aiplatform\252\002\037Google.Clo" + + "ud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIP" + + "latform\\V1beta1\352\002\"Google::Cloud::AIPlatf" + + "orm::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java index 691cfb2ad..4ba309783 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpec.java @@ -23,7 +23,7 @@ * *
  * Represents the spec of a CustomJob.
- * Next Id: 14
+ * Next Id: 15
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.CustomJobSpec} @@ -402,7 +402,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
-   * The full name of the Compute Engine
+   * Optional. The full name of the Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
    * should be peered. For example, `projects/12345/global/networks/myVPC`.
    * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -415,7 +415,9 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
    * If this field is left unspecified, the job is not peered with any network.
    * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The network. */ @@ -435,7 +437,7 @@ public java.lang.String getNetwork() { * * *
-   * The full name of the Compute Engine
+   * Optional. The full name of the Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
    * should be peered. For example, `projects/12345/global/networks/myVPC`.
    * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -448,7 +450,9 @@ public java.lang.String getNetwork() {
    * If this field is left unspecified, the job is not peered with any network.
    * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for network. */ @@ -968,7 +972,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Represents the spec of a CustomJob.
-   * Next Id: 14
+   * Next Id: 15
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.CustomJobSpec} @@ -1986,7 +1990,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { * * *
-     * The full name of the Compute Engine
+     * Optional. The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
      * should be peered. For example, `projects/12345/global/networks/myVPC`.
      * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -1999,7 +2003,9 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
      * If this field is left unspecified, the job is not peered with any network.
      * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The network. */ @@ -2018,7 +2024,7 @@ public java.lang.String getNetwork() { * * *
-     * The full name of the Compute Engine
+     * Optional. The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
      * should be peered. For example, `projects/12345/global/networks/myVPC`.
      * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -2031,7 +2037,9 @@ public java.lang.String getNetwork() {
      * If this field is left unspecified, the job is not peered with any network.
      * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for network. */ @@ -2050,7 +2058,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
-     * The full name of the Compute Engine
+     * Optional. The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
      * should be peered. For example, `projects/12345/global/networks/myVPC`.
      * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -2063,7 +2071,9 @@ public com.google.protobuf.ByteString getNetworkBytes() {
      * If this field is left unspecified, the job is not peered with any network.
      * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The network to set. * @return This builder for chaining. @@ -2081,7 +2091,7 @@ public Builder setNetwork(java.lang.String value) { * * *
-     * The full name of the Compute Engine
+     * Optional. The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
      * should be peered. For example, `projects/12345/global/networks/myVPC`.
      * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -2094,7 +2104,9 @@ public Builder setNetwork(java.lang.String value) {
      * If this field is left unspecified, the job is not peered with any network.
      * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -2108,7 +2120,7 @@ public Builder clearNetwork() { * * *
-     * The full name of the Compute Engine
+     * Optional. The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
      * should be peered. For example, `projects/12345/global/networks/myVPC`.
      * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -2121,7 +2133,9 @@ public Builder clearNetwork() {
      * If this field is left unspecified, the job is not peered with any network.
      * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for network to set. * @return This builder for chaining. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java index 6017548b6..88d7d9f40 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobSpecOrBuilder.java @@ -168,7 +168,7 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr * * *
-   * The full name of the Compute Engine
+   * Optional. The full name of the Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
    * should be peered. For example, `projects/12345/global/networks/myVPC`.
    * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -181,7 +181,9 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr
    * If this field is left unspecified, the job is not peered with any network.
    * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The network. */ @@ -190,7 +192,7 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr * * *
-   * The full name of the Compute Engine
+   * Optional. The full name of the Compute Engine
    * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
    * should be peered. For example, `projects/12345/global/networks/myVPC`.
    * [Format](/compute/docs/reference/rest/v1/networks/insert)
@@ -203,7 +205,9 @@ com.google.cloud.aiplatform.v1beta1.WorkerPoolSpecOrBuilder getWorkerPoolSpecsOr
    * If this field is left unspecified, the job is not peered with any network.
    * 
* - * string network = 5 [(.google.api.resource_reference) = { ... } + * + * string network = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for network. */ diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java index eef28d542..aee1201aa 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArray.java @@ -139,7 +139,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * A list of bool values.
+   * A list of double values.
    * 
* * repeated double values = 1; @@ -154,7 +154,7 @@ public java.util.List getValuesList() { * * *
-   * A list of bool values.
+   * A list of double values.
    * 
* * repeated double values = 1; @@ -168,7 +168,7 @@ public int getValuesCount() { * * *
-   * A list of bool values.
+   * A list of double values.
    * 
* * repeated double values = 1; @@ -538,7 +538,7 @@ private void ensureValuesIsMutable() { * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; @@ -554,7 +554,7 @@ public java.util.List getValuesList() { * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; @@ -568,7 +568,7 @@ public int getValuesCount() { * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; @@ -583,7 +583,7 @@ public double getValues(int index) { * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; @@ -602,7 +602,7 @@ public Builder setValues(int index, double value) { * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; @@ -620,7 +620,7 @@ public Builder addValues(double value) { * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; @@ -638,7 +638,7 @@ public Builder addAllValues(java.lang.Iterable value * * *
-     * A list of bool values.
+     * A list of double values.
      * 
* * repeated double values = 1; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArrayOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArrayOrBuilder.java index 432d8afa5..610e88690 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArrayOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DoubleArrayOrBuilder.java @@ -27,7 +27,7 @@ public interface DoubleArrayOrBuilder * * *
-   * A list of bool values.
+   * A list of double values.
    * 
* * repeated double values = 1; @@ -39,7 +39,7 @@ public interface DoubleArrayOrBuilder * * *
-   * A list of bool values.
+   * A list of double values.
    * 
* * repeated double values = 1; @@ -51,7 +51,7 @@ public interface DoubleArrayOrBuilder * * *
-   * A list of bool values.
+   * A list of double values.
    * 
* * repeated double values = 1; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequest.java index cfdaf5120..34805439e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequest.java @@ -213,14 +213,16 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   *   * `model_display_name` supports = and !=
+   *   * `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.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -245,14 +247,16 @@ public java.lang.String getFilter() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   *   * `model_display_name` supports = and !=
+   *   * `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.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -921,14 +925,16 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     *   * `model_display_name` supports = and !=
+     *   * `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.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -952,14 +958,16 @@ public java.lang.String getFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     *   * `model_display_name` supports = and !=
+     *   * `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.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -983,14 +991,16 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     *   * `model_display_name` supports = and !=
+     *   * `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.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1013,14 +1023,16 @@ public Builder setFilter(java.lang.String value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     *   * `model_display_name` supports = and !=
+     *   * `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.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1039,14 +1051,16 @@ public Builder clearFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
-     *   * `model_display_name` supports = and !=
+     *   * `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.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequestOrBuilder.java index 1676f46d9..b3d77d0bc 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListBatchPredictionJobsRequestOrBuilder.java @@ -60,14 +60,16 @@ public interface ListBatchPredictionJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   *   * `model_display_name` supports = and !=
+   *   * `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.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -81,14 +83,16 @@ public interface ListBatchPredictionJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
-   *   * `model_display_name` supports = and !=
+   *   * `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.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequest.java index ed3d704cb..f9d906fa0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequest.java @@ -212,13 +212,15 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -243,13 +245,15 @@ public java.lang.String getFilter() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -910,13 +914,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -940,13 +946,15 @@ public java.lang.String getFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -970,13 +978,15 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -999,13 +1009,15 @@ public Builder setFilter(java.lang.String value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1024,13 +1036,15 @@ public Builder clearFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequestOrBuilder.java index b6297d7ed..7873f5918 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListCustomJobsRequestOrBuilder.java @@ -60,13 +60,15 @@ public interface ListCustomJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -80,13 +82,15 @@ public interface ListCustomJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java index dc3a87458..f697551e3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequest.java @@ -220,13 +220,15 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -251,13 +253,15 @@ public java.lang.String getFilter() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -994,13 +998,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1024,13 +1030,15 @@ public java.lang.String getFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1054,13 +1062,15 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1083,13 +1093,15 @@ public Builder setFilter(java.lang.String value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1108,13 +1120,15 @@ public Builder clearFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequestOrBuilder.java index 916a3f99b..490236918 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDataLabelingJobsRequestOrBuilder.java @@ -60,13 +60,15 @@ public interface ListDataLabelingJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -80,13 +82,15 @@ public interface ListDataLabelingJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequest.java index f3277033a..a4012c911 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequest.java @@ -214,13 +214,15 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -245,13 +247,15 @@ public java.lang.String getFilter() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -923,13 +927,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -953,13 +959,15 @@ public java.lang.String getFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -983,13 +991,15 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1012,13 +1022,15 @@ public Builder setFilter(java.lang.String value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; @@ -1037,13 +1049,15 @@ public Builder clearFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-     *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-     *  * `NOT display_name="my_job"`
-     *  * `state="JOB_STATE_FAILED"`
+     *   * `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"`
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequestOrBuilder.java index d5627c46d..5c670f4f0 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListHyperparameterTuningJobsRequestOrBuilder.java @@ -60,13 +60,15 @@ public interface ListHyperparameterTuningJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; @@ -80,13 +82,15 @@ public interface ListHyperparameterTuningJobsRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
-   *  * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
-   *  * `NOT display_name="my_job"`
-   *  * `state="JOB_STATE_FAILED"`
+   *   * `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"`
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java index f4b6f16e7..1e4bafdeb 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequest.java @@ -215,6 +215,16 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * 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.
+   * 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"`
    * 
* * string filter = 2; @@ -238,6 +248,16 @@ public java.lang.String getFilter() { * *
    * The standard list filter.
+   * Supported fields:
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
+   * 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"`
    * 
* * string filter = 2; @@ -911,6 +931,16 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * 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.
+     * 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"`
      * 
* * string filter = 2; @@ -933,6 +963,16 @@ public java.lang.String getFilter() { * *
      * The standard list filter.
+     * Supported fields:
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
+     * 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"`
      * 
* * string filter = 2; @@ -955,6 +995,16 @@ public com.google.protobuf.ByteString getFilterBytes() { * *
      * 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.
+     * 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"`
      * 
* * string filter = 2; @@ -976,6 +1026,16 @@ public Builder setFilter(java.lang.String value) { * *
      * 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.
+     * 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"`
      * 
* * string filter = 2; @@ -993,6 +1053,16 @@ public Builder clearFilter() { * *
      * 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.
+     * 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"`
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequestOrBuilder.java index ba929bc01..90e5eeb6e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelDeploymentMonitoringJobsRequestOrBuilder.java @@ -59,6 +59,16 @@ public interface ListModelDeploymentMonitoringJobsRequestOrBuilder * *
    * 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.
+   * 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"`
    * 
* * string filter = 2; @@ -71,6 +81,16 @@ public interface ListModelDeploymentMonitoringJobsRequestOrBuilder * *
    * 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.
+   * 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"`
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java index 00b091881..7e312d685 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequest.java @@ -208,8 +208,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -220,7 +220,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -259,8 +259,8 @@ public java.lang.String getFilter() { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -271,7 +271,7 @@ public java.lang.String getFilter() { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -959,8 +959,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -971,7 +971,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1009,8 +1009,8 @@ public java.lang.String getFilter() { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -1021,7 +1021,7 @@ public java.lang.String getFilter() { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1059,8 +1059,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -1071,7 +1071,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1108,8 +1108,8 @@ public Builder setFilter(java.lang.String value) { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -1120,7 +1120,7 @@ public Builder setFilter(java.lang.String value) { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -1153,8 +1153,8 @@ public Builder clearFilter() { * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -1165,7 +1165,7 @@ public Builder clearFilter() { * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java index 49e72a6bd..efb520637 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPipelineJobsRequestOrBuilder.java @@ -63,8 +63,8 @@ public interface ListPipelineJobsRequestOrBuilder * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -75,7 +75,7 @@ public interface ListPipelineJobsRequestOrBuilder * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. @@ -103,8 +103,8 @@ public interface ListPipelineJobsRequestOrBuilder * * `pipeline_name`: Supports `=` and `!=` comparisons. * * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - * for example, can check if pipeline's display_name contains *step* by doing - * display_name:\"*step*\" + * for example, can check if pipeline's display_name contains *step* by + * doing display_name:\"*step*\" * * `state`: Supports `=` and `!=` comparisons. * * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * Values must be in RFC 3339 format. @@ -115,7 +115,7 @@ public interface ListPipelineJobsRequestOrBuilder * * `labels`: Supports key-value equality and key presence. * * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - * wildcard. + * wildcard. * Filter expressions can be combined together using logical operators * (`AND` & `OR`). * For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponse.java index 26e3f5f30..4092df21e 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponse.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponse.java @@ -136,7 +136,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -149,7 +150,8 @@ public java.util.List getSavedQu * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -163,7 +165,8 @@ public java.util.List getSavedQu * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -176,7 +179,8 @@ public int getSavedQueriesCount() { * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -189,7 +193,8 @@ public com.google.cloud.aiplatform.v1beta1.SavedQuery getSavedQueries(int index) * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -649,7 +654,8 @@ private void ensureSavedQueriesIsMutable() { * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -665,7 +671,8 @@ public java.util.List getSavedQu * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -681,7 +688,8 @@ public int getSavedQueriesCount() { * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -697,7 +705,8 @@ public com.google.cloud.aiplatform.v1beta1.SavedQuery getSavedQueries(int index) * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -720,7 +729,8 @@ public Builder setSavedQueries( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -740,7 +750,8 @@ public Builder setSavedQueries( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -762,7 +773,8 @@ public Builder addSavedQueries(com.google.cloud.aiplatform.v1beta1.SavedQuery va * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -785,7 +797,8 @@ public Builder addSavedQueries( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -805,7 +818,8 @@ public Builder addSavedQueries( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -825,7 +839,8 @@ public Builder addSavedQueries( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -845,7 +860,8 @@ public Builder addAllSavedQueries( * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -864,7 +880,8 @@ public Builder clearSavedQueries() { * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -883,7 +900,8 @@ public Builder removeSavedQueries(int index) { * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -896,7 +914,8 @@ public com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder getSavedQueriesBui * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -913,7 +932,8 @@ public com.google.cloud.aiplatform.v1beta1.SavedQueryOrBuilder getSavedQueriesOr * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -930,7 +950,8 @@ public com.google.cloud.aiplatform.v1beta1.SavedQueryOrBuilder getSavedQueriesOr * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -943,7 +964,8 @@ public com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder addSavedQueriesBui * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -957,7 +979,8 @@ public com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder addSavedQueriesBui * * *
-     * A list of SavedQueries that match the specified filter in the request.
+     * A list of SavedQueries that matches the specified filter in the
+     * request.
      * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponseOrBuilder.java index fa4ce94e3..c64800e44 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponseOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponseOrBuilder.java @@ -27,7 +27,8 @@ public interface ListSavedQueriesResponseOrBuilder * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -37,7 +38,8 @@ public interface ListSavedQueriesResponseOrBuilder * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -47,7 +49,8 @@ public interface ListSavedQueriesResponseOrBuilder * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -57,7 +60,8 @@ public interface ListSavedQueriesResponseOrBuilder * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; @@ -68,7 +72,8 @@ public interface ListSavedQueriesResponseOrBuilder * * *
-   * A list of SavedQueries that match the specified filter in the request.
+   * A list of SavedQueries that matches the specified filter in the
+   * request.
    * 
* * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java index 69a370bb9..965917850 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequest.java @@ -212,13 +212,17 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+   *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+   *   * `NOT display_name="my_pipeline"`
+   *   * `create_time>"2021-05-18T00:00:00Z"`
+   *   * `training_task_definition:"*automl_text_classification*"`
    * 
* * string filter = 2; @@ -243,13 +247,17 @@ public java.lang.String getFilter() { *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+   *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+   *   * `NOT display_name="my_pipeline"`
+   *   * `create_time>"2021-05-18T00:00:00Z"`
+   *   * `training_task_definition:"*automl_text_classification*"`
    * 
* * string filter = 2; @@ -914,13 +922,17 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+     *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+     *   * `NOT display_name="my_pipeline"`
+     *   * `create_time>"2021-05-18T00:00:00Z"`
+     *   * `training_task_definition:"*automl_text_classification*"`
      * 
* * string filter = 2; @@ -944,13 +956,17 @@ public java.lang.String getFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+     *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+     *   * `NOT display_name="my_pipeline"`
+     *   * `create_time>"2021-05-18T00:00:00Z"`
+     *   * `training_task_definition:"*automl_text_classification*"`
      * 
* * string filter = 2; @@ -974,13 +990,17 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+     *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+     *   * `NOT display_name="my_pipeline"`
+     *   * `create_time>"2021-05-18T00:00:00Z"`
+     *   * `training_task_definition:"*automl_text_classification*"`
      * 
* * string filter = 2; @@ -1003,13 +1023,17 @@ public Builder setFilter(java.lang.String value) { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+     *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+     *   * `NOT display_name="my_pipeline"`
+     *   * `create_time>"2021-05-18T00:00:00Z"`
+     *   * `training_task_definition:"*automl_text_classification*"`
      * 
* * string filter = 2; @@ -1028,13 +1052,17 @@ public Builder clearFilter() { *
      * The standard list filter.
      * Supported fields:
-     *   * `display_name` supports = and !=.
-     *   * `state` supports = and !=.
+     *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+     *   * `state` supports `=`, `!=` comparisons.
+     *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+     *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+     *     `create_time` must be in RFC 3339 format.
      * Some examples of using the filter are:
-     *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-     *  * `NOT display_name="my_pipeline"`
-     *  * `state="PIPELINE_STATE_FAILED"`
+     *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+     *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+     *   * `NOT display_name="my_pipeline"`
+     *   * `create_time>"2021-05-18T00:00:00Z"`
+     *   * `training_task_definition:"*automl_text_classification*"`
      * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequestOrBuilder.java index 1d8c99ffe..573a8b0cf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequestOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListTrainingPipelinesRequestOrBuilder.java @@ -60,13 +60,17 @@ public interface ListTrainingPipelinesRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+   *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+   *   * `NOT display_name="my_pipeline"`
+   *   * `create_time>"2021-05-18T00:00:00Z"`
+   *   * `training_task_definition:"*automl_text_classification*"`
    * 
* * string filter = 2; @@ -80,13 +84,17 @@ public interface ListTrainingPipelinesRequestOrBuilder *
    * The standard list filter.
    * Supported fields:
-   *   * `display_name` supports = and !=.
-   *   * `state` supports = and !=.
+   *   * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
+   *   * `state` supports `=`, `!=` comparisons.
+   *   * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
+   *   * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
+   *     `create_time` must be in RFC 3339 format.
    * Some examples of using the filter are:
-   *  * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
-   *  * `NOT display_name="my_pipeline"`
-   *  * `state="PIPELINE_STATE_FAILED"`
+   *   * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
+   *   * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
+   *   * `NOT display_name="my_pipeline"`
+   *   * `create_time>"2021-05-18T00:00:00Z"`
+   *   * `training_task_definition:"*automl_text_classification*"`
    * 
* * string filter = 2; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQuery.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQuery.java index 3c75cbc5c..473cb8b43 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQuery.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQuery.java @@ -590,7 +590,7 @@ public int getAnnotationSpecCount() { * * *
-   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* @@ -614,7 +614,7 @@ public java.lang.String getEtag() { * * *
-   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* @@ -2276,7 +2276,7 @@ public Builder clearAnnotationSpecCount() { * * *
-     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* @@ -2299,7 +2299,7 @@ public java.lang.String getEtag() { * * *
-     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* @@ -2322,7 +2322,7 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* @@ -2344,7 +2344,7 @@ public Builder setEtag(java.lang.String value) { * * *
-     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* @@ -2362,7 +2362,7 @@ public Builder clearEtag() { * * *
-     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * Used to perform consistent read-modify-write updates. If not set, a blind
      * "overwrite" update happens.
      * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryOrBuilder.java index 4ccbace24..a0b8d9eaa 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryOrBuilder.java @@ -277,7 +277,7 @@ public interface SavedQueryOrBuilder * * *
-   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* @@ -290,7 +290,7 @@ public interface SavedQueryOrBuilder * * *
-   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * Used to perform consistent read-modify-write updates. If not set, a blind
    * "overwrite" update happens.
    * 
* diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java index 7749d7acb..f88624d6c 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpec.java @@ -2564,7 +2564,7 @@ public interface DoubleValueSpecOrBuilder * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -2580,7 +2580,7 @@ public interface DoubleValueSpecOrBuilder * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -2741,7 +2741,7 @@ public double getMaxValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -2760,7 +2760,7 @@ public boolean hasDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -3287,7 +3287,7 @@ public Builder clearMaxValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -3306,7 +3306,7 @@ public boolean hasDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -3325,7 +3325,7 @@ public double getDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -3347,7 +3347,7 @@ public Builder setDefaultValue(double value) { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 4; @@ -3457,7 +3457,7 @@ public interface IntegerValueSpecOrBuilder * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -3473,7 +3473,7 @@ public interface IntegerValueSpecOrBuilder * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -3635,7 +3635,7 @@ public long getMaxValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -3654,7 +3654,7 @@ public boolean hasDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -4172,7 +4172,7 @@ public Builder clearMaxValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -4191,7 +4191,7 @@ public boolean hasDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -4210,7 +4210,7 @@ public long getDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -4232,7 +4232,7 @@ public Builder setDefaultValue(long value) { * relatively good starting point. Unset value signals that there is no * offered starting point. * Currently only supported by the Vertex AI Vizier service. Not supported - * by HyperparamterTuningJob or TrainingPipeline. + * by HyperparameterTuningJob or TrainingPipeline. * * * optional int64 default_value = 4; @@ -4366,8 +4366,8 @@ public interface CategoricalValueSpecOrBuilder * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -4382,8 +4382,8 @@ public interface CategoricalValueSpecOrBuilder * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -4398,8 +4398,8 @@ public interface CategoricalValueSpecOrBuilder * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -4593,8 +4593,8 @@ public com.google.protobuf.ByteString getValuesBytes(int index) { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -4612,8 +4612,8 @@ public boolean hasDefaultValue() { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -4639,8 +4639,8 @@ public java.lang.String getDefaultValue() { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5237,8 +5237,8 @@ public Builder addValuesBytes(com.google.protobuf.ByteString value) { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5255,8 +5255,8 @@ public boolean hasDefaultValue() { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5281,8 +5281,8 @@ public java.lang.String getDefaultValue() { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5307,8 +5307,8 @@ public com.google.protobuf.ByteString getDefaultValueBytes() { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5332,8 +5332,8 @@ public Builder setDefaultValue(java.lang.String value) { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5353,8 +5353,8 @@ public Builder clearDefaultValue() { * A default value for a `CATEGORICAL` parameter that is assumed to be a * relatively good starting point. Unset value signals that there is no * offered starting point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional string default_value = 3; @@ -5490,8 +5490,8 @@ public interface DiscreteValueSpecOrBuilder * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -5507,8 +5507,8 @@ public interface DiscreteValueSpecOrBuilder * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -5710,8 +5710,8 @@ public double getValues(int index) { * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -5730,8 +5730,8 @@ public boolean hasDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -6306,8 +6306,8 @@ public Builder clearValues() { * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -6326,8 +6326,8 @@ public boolean hasDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -6346,8 +6346,8 @@ public double getDefaultValue() { * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -6369,8 +6369,8 @@ public Builder setDefaultValue(double value) { * relatively good starting point. Unset value signals that there is no * offered starting point. It automatically rounds to the * nearest feasible discrete point. - * Currently only supported by the Vizier service. Not supported by - * HyperparamterTuningJob or TrainingPipeline. + * Currently only supported by the Vertex AI Vizier service. Not supported + * by HyperparameterTuningJob or TrainingPipeline. * * * optional double default_value = 3; @@ -18296,7 +18296,7 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm getAlgorithm() { *
    * The observation noise level of the study.
    * Currently only supported by the Vertex AI Vizier service. Not supported by
-   * HyperparamterTuningJob or TrainingPipeline.
+   * HyperparameterTuningJob or TrainingPipeline.
    * 
* * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; @@ -18313,7 +18313,7 @@ public int getObservationNoiseValue() { *
    * The observation noise level of the study.
    * Currently only supported by the Vertex AI Vizier service. Not supported by
-   * HyperparamterTuningJob or TrainingPipeline.
+   * HyperparameterTuningJob or TrainingPipeline.
    * 
* * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; @@ -20910,7 +20910,7 @@ public Builder clearAlgorithm() { *
      * The observation noise level of the study.
      * Currently only supported by the Vertex AI Vizier service. Not supported by
-     * HyperparamterTuningJob or TrainingPipeline.
+     * HyperparameterTuningJob or TrainingPipeline.
      * 
* * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; @@ -20928,7 +20928,7 @@ public int getObservationNoiseValue() { *
      * The observation noise level of the study.
      * Currently only supported by the Vertex AI Vizier service. Not supported by
-     * HyperparamterTuningJob or TrainingPipeline.
+     * HyperparameterTuningJob or TrainingPipeline.
      * 
* * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; @@ -20949,7 +20949,7 @@ public Builder setObservationNoiseValue(int value) { *
      * The observation noise level of the study.
      * Currently only supported by the Vertex AI Vizier service. Not supported by
-     * HyperparamterTuningJob or TrainingPipeline.
+     * HyperparameterTuningJob or TrainingPipeline.
      * 
* * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; @@ -20972,7 +20972,7 @@ public com.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise getObserva *
      * The observation noise level of the study.
      * Currently only supported by the Vertex AI Vizier service. Not supported by
-     * HyperparamterTuningJob or TrainingPipeline.
+     * HyperparameterTuningJob or TrainingPipeline.
      * 
* * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; @@ -20997,7 +20997,7 @@ public Builder setObservationNoise( *
      * The observation noise level of the study.
      * Currently only supported by the Vertex AI Vizier service. Not supported by
-     * HyperparamterTuningJob or TrainingPipeline.
+     * HyperparameterTuningJob or TrainingPipeline.
      * 
* * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpecOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpecOrBuilder.java index 12604428d..14c5e3a8f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpecOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StudySpecOrBuilder.java @@ -360,7 +360,7 @@ com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpecOrBuilder getParamete *
    * The observation noise level of the study.
    * Currently only supported by the Vertex AI Vizier service. Not supported by
-   * HyperparamterTuningJob or TrainingPipeline.
+   * HyperparameterTuningJob or TrainingPipeline.
    * 
* * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; @@ -374,7 +374,7 @@ com.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpecOrBuilder getParamete *
    * The observation noise level of the study.
    * Currently only supported by the Vertex AI Vizier service. Not supported by
-   * HyperparamterTuningJob or TrainingPipeline.
+   * HyperparameterTuningJob or TrainingPipeline.
    * 
* * .google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise observation_noise = 6; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto index 544f495db..ad66542d3 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -106,7 +106,7 @@ message CustomJob { } // Represents the spec of a CustomJob. -// Next Id: 14 +// Next Id: 15 message CustomJobSpec { // Required. The spec of the worker pools including machine type and Docker image. // All worker pools except the first one are optional and can be skipped by @@ -123,7 +123,7 @@ message CustomJobSpec { // for the CustomJob's project is used. string service_account = 4; - // The full name of the Compute Engine + // Optional. The full name of the Compute Engine // [network](/compute/docs/networks-and-firewalls#networks) to which the Job // should be peered. For example, `projects/12345/global/networks/myVPC`. // [Format](/compute/docs/reference/rest/v1/networks/insert) @@ -136,9 +136,12 @@ message CustomJobSpec { // AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). // // If this field is left unspecified, the job is not peered with any network. - string network = 5 [(google.api.resource_reference) = { - type: "compute.googleapis.com/Network" - }]; + string network = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + } + ]; // Optional. A list of names for the reserved ip ranges under the VPC network // that can be used for this job. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto index 096e3a86b..a0b0a9ccf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -224,6 +224,7 @@ message ListDatasetsRequest { // * A key including a space must be quoted. `labels."a key"`. // // Some examples: + // // * `displayName="myDisplayName"` // * `labels.myKey="myValue"` string filter = 2; @@ -240,6 +241,7 @@ message ListDatasetsRequest { // 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` @@ -397,7 +399,8 @@ message ListSavedQueriesRequest { // Response message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries]. message ListSavedQueriesResponse { - // A list of SavedQueries that match the specified filter in the request. + // A list of SavedQueries that matches the specified filter in the + // request. repeated SavedQuery saved_queries = 1; // The standard List next-page token. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_service.proto index 6929a1e9c..48cf08aa7 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_service.proto @@ -384,19 +384,17 @@ message ListCustomJobsRequest { // // Supported fields: // - // * `display_name` supports = and !=. - // - // * `state` supports = and !=. + // * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + // * `state` supports `=`, `!=` comparisons. + // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + // `create_time` must be in RFC 3339 format. // // Some examples of using the filter are: // - // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` - // - // * `state="JOB_STATE_RUNNING" OR display_name="my_job"` - // - // * `NOT display_name="my_job"` - // - // * `state="JOB_STATE_FAILED"` + // * `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"` string filter = 2; // The standard list page size. @@ -491,19 +489,17 @@ message ListDataLabelingJobsRequest { // // Supported fields: // - // * `display_name` supports = and !=. - // - // * `state` supports = and !=. + // * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + // * `state` supports `=`, `!=` comparisons. + // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + // `create_time` must be in RFC 3339 format. // // Some examples of using the filter are: // - // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` - // - // * `state="JOB_STATE_RUNNING" OR display_name="my_job"` - // - // * `NOT display_name="my_job"` - // - // * `state="JOB_STATE_FAILED"` + // * `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"` string filter = 2; // The standard list page size. @@ -603,19 +599,17 @@ message ListHyperparameterTuningJobsRequest { // // Supported fields: // - // * `display_name` supports = and !=. - // - // * `state` supports = and !=. + // * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + // * `state` supports `=`, `!=` comparisons. + // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + // `create_time` must be in RFC 3339 format. // // Some examples of using the filter are: // - // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` - // - // * `state="JOB_STATE_RUNNING" OR display_name="my_job"` - // - // * `NOT display_name="my_job"` - // - // * `state="JOB_STATE_FAILED"` + // * `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"` string filter = 2; // The standard list page size. @@ -712,21 +706,18 @@ message ListBatchPredictionJobsRequest { // // Supported fields: // - // * `display_name` supports = and !=. - // - // * `state` supports = and !=. - // - // * `model_display_name` supports = and != + // * `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. // // Some examples of using the filter are: // - // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` - // - // * `state="JOB_STATE_RUNNING" OR display_name="my_job"` - // - // * `NOT display_name="my_job"` - // - // * `state="JOB_STATE_FAILED"` + // * `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"` string filter = 2; // The standard list page size. @@ -893,6 +884,20 @@ message ListModelDeploymentMonitoringJobsRequest { ]; // 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. + // + // 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"` string filter = 2; // The standard list page size. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto index 37523dca7..1a9e07673 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto @@ -297,6 +297,7 @@ message ListModelsRequest { // * A key including a space must be quoted. `labels."a key"`. // // Some examples: + // // * `model=1234` // * `displayName="myDisplayName"` // * `labels.myKey="myValue"` @@ -353,6 +354,7 @@ message ListModelVersionsRequest { // * A key including a space must be quoted. `labels."a key"`. // // Some examples: + // // * `labels.myKey="myValue"` string filter = 4; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto index 43ad40387..d66c78435 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto @@ -193,21 +193,22 @@ message ListTrainingPipelinesRequest { ]; // The standard list filter. - // Supported fields: // - // * `display_name` supports = and !=. + // Supported fields: // - // * `state` supports = and !=. + // * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + // * `state` supports `=`, `!=` comparisons. + // * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. + // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + // `create_time` must be in RFC 3339 format. // // Some examples of using the filter are: // - // * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` - // - // * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` - // - // * `NOT display_name="my_pipeline"` - // - // * `state="PIPELINE_STATE_FAILED"` + // * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"` + // * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"` + // * `NOT display_name="my_pipeline"` + // * `create_time>"2021-05-18T00:00:00Z"` + // * `training_task_definition:"*automl_text_classification*"` string filter = 2; // The standard list page size. @@ -312,8 +313,8 @@ message ListPipelineJobsRequest { // * `pipeline_name`: Supports `=` and `!=` comparisons. // * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. // * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. - // for example, can check if pipeline's display_name contains *step* by doing - // display_name:\"*step*\" + // for example, can check if pipeline's display_name contains *step* by + // doing display_name:\"*step*\" // * `state`: Supports `=` and `!=` comparisons. // * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. // Values must be in RFC 3339 format. @@ -324,7 +325,7 @@ message ListPipelineJobsRequest { // * `labels`: Supports key-value equality and key presence. // * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. // * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` - // wildcard. + // wildcard. // // Filter expressions can be combined together using logical operators // (`AND` & `OR`). @@ -359,6 +360,7 @@ message ListPipelineJobsRequest { // there are multiple jobs having the same create time, order them by the end // time in ascending order. if order_by is not specified, it will order by // default order is create time in descending order. Supported fields: + // // * `create_time` // * `update_time` // * `end_time` diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/saved_query.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/saved_query.proto index a258efcdf..ca99c0394 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/saved_query.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/saved_query.proto @@ -74,7 +74,7 @@ message SavedQuery { // Output only. Number of AnnotationSpecs in the context of the SavedQuery. int32 annotation_spec_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Used to perform a consistent read-modify-write update. If not set, a blind + // Used to perform consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. string etag = 8; diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/study.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/study.proto index d0642d180..b2595c684 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/study.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/study.proto @@ -225,7 +225,7 @@ message StudySpec { // offered starting point. // // Currently only supported by the Vertex AI Vizier service. Not supported - // by HyperparamterTuningJob or TrainingPipeline. + // by HyperparameterTuningJob or TrainingPipeline. optional double default_value = 4; } @@ -242,7 +242,7 @@ message StudySpec { // offered starting point. // // Currently only supported by the Vertex AI Vizier service. Not supported - // by HyperparamterTuningJob or TrainingPipeline. + // by HyperparameterTuningJob or TrainingPipeline. optional int64 default_value = 4; } @@ -255,8 +255,8 @@ message StudySpec { // relatively good starting point. Unset value signals that there is no // offered starting point. // - // Currently only supported by the Vizier service. Not supported by - // HyperparamterTuningJob or TrainingPipeline. + // Currently only supported by the Vertex AI Vizier service. Not supported + // by HyperparameterTuningJob or TrainingPipeline. optional string default_value = 3; } @@ -273,8 +273,8 @@ message StudySpec { // offered starting point. It automatically rounds to the // nearest feasible discrete point. // - // Currently only supported by the Vizier service. Not supported by - // HyperparamterTuningJob or TrainingPipeline. + // Currently only supported by the Vertex AI Vizier service. Not supported + // by HyperparameterTuningJob or TrainingPipeline. optional double default_value = 3; } @@ -568,7 +568,7 @@ message StudySpec { // The observation noise level of the study. // Currently only supported by the Vertex AI Vizier service. Not supported by - // HyperparamterTuningJob or TrainingPipeline. + // HyperparameterTuningJob or TrainingPipeline. ObservationNoise observation_noise = 6; // Describe which measurement selection type will be used diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/types.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/types.proto index f4ed214f4..d62b772cf 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/types.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/types.proto @@ -32,7 +32,7 @@ message BoolArray { // A list of double values. message DoubleArray { - // A list of bool values. + // A list of double values. repeated double values = 1; } From c2b98d9d1c4bb896590eacb38ed5193d1e507b26 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 00:56:22 +0200 Subject: [PATCH 08/22] deps: update dependency com.google.api.grpc:proto-google-cloud-aiplatform-v1beta1 to v0.17.0 (#1003) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.api.grpc:proto-google-cloud-aiplatform-v1beta1](https://togithub.com/googleapis/java-) | `0.15.7` -> `0.17.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:proto-google-cloud-aiplatform-v1beta1/0.17.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:proto-google-cloud-aiplatform-v1beta1/0.17.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:proto-google-cloud-aiplatform-v1beta1/0.17.0/compatibility-slim/0.15.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:proto-google-cloud-aiplatform-v1beta1/0.17.0/confidence-slim/0.15.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 62816d020..6ec7a4e93 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -60,7 +60,7 @@ com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.15.7 + 0.17.0 From f12c313505552a93db12c6f6d4c7986b34650069 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 00:56:35 +0200 Subject: [PATCH 09/22] deps: update dependency com.google.code.gson:gson to v2.9.1 (#1001) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.code.gson:gson](https://togithub.com/google/gson) | `2.9.0` -> `2.9.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.code.gson:gson/2.9.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.code.gson:gson/2.9.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.code.gson:gson/2.9.1/compatibility-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.code.gson:gson/2.9.1/confidence-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
google/gson ### [`v2.9.1`](https://togithub.com/google/gson/blob/HEAD/CHANGELOG.md#Version-291) - Make `Object` and `JsonElement` deserialization iterative rather than recursive ([#​1912](https://togithub.com/google/gson/issues/1912)) - Added parsing support for enum that has overridden toString() method ([#​1950](https://togithub.com/google/gson/issues/1950)) - Removed support for building Gson with Gradle ([#​2081](https://togithub.com/google/gson/issues/2081)) - Removed obsolete `codegen` hierarchy ([#​2099](https://togithub.com/google/gson/issues/2099)) - Add support for reflection access filter ([#​1905](https://togithub.com/google/gson/issues/1905)) - Improve `TypeToken` creation validation ([#​2072](https://togithub.com/google/gson/issues/2072)) - Add explicit support for `float` in `JsonWriter` ([#​2130](https://togithub.com/google/gson/issues/2130), [#​2132](https://togithub.com/google/gson/issues/2132)) - Fail when parsing invalid local date ([#​2134](https://togithub.com/google/gson/issues/2134)) Also many small improvements to javadoc.
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 6ec7a4e93..9fe20729c 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -43,7 +43,7 @@ com.google.code.gson gson - 2.9.0 + 2.9.1 junit From af8d31b4d71e5188d56fab011aaa9eb1d7bfa047 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 00:58:11 +0200 Subject: [PATCH 10/22] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.3 (#1002) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.5.1` -> `1.5.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/compatibility-slim/1.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/confidence-slim/1.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.5.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​153-httpsgithubcomgoogleapisjava-shared-configcomparev152v153-2022-07-27) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.2...v1.5.3) ##### Dependencies - update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#​497](https://togithub.com/googleapis/java-shared-config/issues/497)) ([1fc6ab4](https://togithub.com/googleapis/java-shared-config/commit/1fc6ab445624cd4f9c8b161d109f346a9e5ed09a)) - Update doclet to latest version 1.6.0 ([38fb7c3](https://togithub.com/googleapis/java-shared-config/commit/38fb7c3957fb6c9b2da10f9e463cc93a8b80a3a4)) ### [`v1.5.2`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​152-httpsgithubcomgoogleapisjava-shared-configcomparev151v152-2022-07-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.1...v1.5.2) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v10 ([#​435](https://togithub.com/googleapis/java-shared-config/issues/435)) ([bfc8ce1](https://togithub.com/googleapis/java-shared-config/commit/bfc8ce1deca6292147d002d3afe22a09840aa5d6)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 ([#​488](https://togithub.com/googleapis/java-shared-config/issues/488)) ([39b91ee](https://togithub.com/googleapis/java-shared-config/commit/39b91ee1283f0a5fbbe63e8bfd1ec97ab4ab377e)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#​489](https://togithub.com/googleapis/java-shared-config/issues/489)) ([cc3bcfa](https://togithub.com/googleapis/java-shared-config/commit/cc3bcfa2d6717441a8d5b5048fa78c2cf7aabf2b))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- google-cloud-aiplatform-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-aiplatform-bom/pom.xml b/google-cloud-aiplatform-bom/pom.xml index 9a0e2d885..5cad7b8af 100644 --- a/google-cloud-aiplatform-bom/pom.xml +++ b/google-cloud-aiplatform-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.3 Google Cloud Vertex AI BOM diff --git a/pom.xml b/pom.xml index 971bfee3c..d4fa29d4a 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.3 From b6e2ab4fb4c169b4e31ecfec01765db94916f739 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 00:58:27 +0200 Subject: [PATCH 11/22] deps: update dependency com.google.cloud:google-cloud-storage to v2.10.0 (#1004) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.7.0` -> `2.10.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.10.0/compatibility-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.10.0/confidence-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.10.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​2100-httpsgithubcomgoogleapisjava-storagecomparev293v2100-2022-07-13) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.9.3...v2.10.0) ##### Features - Custom Placement Config Dual Region Support ([#​1470](https://togithub.com/googleapis/java-storage/issues/1470)) ([36440fc](https://togithub.com/googleapis/java-storage/commit/36440fc587976acc78f4dae480214b80ad3fc477)) ##### Bug Fixes - enable longpaths support for windows test ([#​1485](https://togithub.com/googleapis/java-storage/issues/1485)) ([#​1506](https://togithub.com/googleapis/java-storage/issues/1506)) ([e36e809](https://togithub.com/googleapis/java-storage/commit/e36e80934644ccd5e873754c625367f24e5fc7f3)) ##### Documentation - **sample:** upgrade maven-surefire and remove junit-platform-native ([#​1476](https://togithub.com/googleapis/java-storage/issues/1476)) ([9b222e4](https://togithub.com/googleapis/java-storage/commit/9b222e483937bd0639123899442c1e863683718a)) ##### Dependencies - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#​1501](https://togithub.com/googleapis/java-storage/issues/1501)) ([36e3898](https://togithub.com/googleapis/java-storage/commit/36e389857ea3f86350af5763c829e5f1caaaa3ec)) ### [`v2.9.3`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​293-httpsgithubcomgoogleapisjava-storagecomparev292v293-2022-07-08) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.9.2...v2.9.3) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20220705-1.32.1 ([#​1494](https://togithub.com/googleapis/java-storage/issues/1494)) ([5612f0f](https://togithub.com/googleapis/java-storage/commit/5612f0f929582c9e720d67683f9441d96080fb14)) ### [`v2.9.2`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​292-httpsgithubcomgoogleapisjava-storagecomparev291v292-2022-07-06) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.9.1...v2.9.2) ##### Dependencies - update kms.version to v0.97.0 ([#​1488](https://togithub.com/googleapis/java-storage/issues/1488)) ([852cafe](https://togithub.com/googleapis/java-storage/commit/852cafe7db018a6fd666c3490c96eeca34c4a1ed)) ### [`v2.9.1`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​291-httpsgithubcomgoogleapisjava-storagecomparev290v291-2022-07-06) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.9.0...v2.9.1) ##### Dependencies - update dependency com.google.cloud:google-cloud-pubsub to v1.120.0 ([#​1487](https://togithub.com/googleapis/java-storage/issues/1487)) ([5a8f6e5](https://togithub.com/googleapis/java-storage/commit/5a8f6e5f29e4dfb2dc03cad8c77e4b504bc83019)) ### [`v2.9.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​290-httpsgithubcomgoogleapisjava-storagecomparev281v290-2022-06-27) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.8.1...v2.9.0) ##### Features - Enable REST transport for most of Java and Go clients ([#​1469](https://togithub.com/googleapis/java-storage/issues/1469)) ([cfb6fd8](https://togithub.com/googleapis/java-storage/commit/cfb6fd8c1f13cb2115e5ff7ea7af41a9e27986b1)) ##### Documentation - Clarified how clients should work with resumable uploads ([#​1457](https://togithub.com/googleapis/java-storage/issues/1457)) ([15baa27](https://togithub.com/googleapis/java-storage/commit/15baa27c97aacca115981f5c14d942a8ddd6cb1f)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#​1468](https://togithub.com/googleapis/java-storage/issues/1468)) ([1a817fe](https://togithub.com/googleapis/java-storage/commit/1a817fef87e626e74dab47eaff33c1d9d3c56bb5)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#​1463](https://togithub.com/googleapis/java-storage/issues/1463)) ([d42c570](https://togithub.com/googleapis/java-storage/commit/d42c5704e4fe7341dfdd0562fa0bdbcd4bc99c7e)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#​1464](https://togithub.com/googleapis/java-storage/issues/1464)) ([2f35a4f](https://togithub.com/googleapis/java-storage/commit/2f35a4f597870a4506119946510ba82fbb7f9449)) - update kms.version to v0.96.3 ([#​1471](https://togithub.com/googleapis/java-storage/issues/1471)) ([ceb7fa6](https://togithub.com/googleapis/java-storage/commit/ceb7fa665c35f6b00aebaa665246597b9ee4632a)) ### [`v2.8.1`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​281-httpsgithubcomgoogleapisjava-storagecomparev280v281-2022-06-13) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.8.0...v2.8.1) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20220608-1.32.1 ([#​1448](https://togithub.com/googleapis/java-storage/issues/1448)) ([96676cd](https://togithub.com/googleapis/java-storage/commit/96676cd830aca27c23c08e02e8cc7c58dece686c)) ### [`v2.8.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​280-httpsgithubcomgoogleapisjava-storagecomparev272v280-2022-06-08) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.7.2...v2.8.0) ##### Features - Prefix/Suffix Matches Lifecycle Condition ([#​1389](https://togithub.com/googleapis/java-storage/issues/1389)) ([20c8848](https://togithub.com/googleapis/java-storage/commit/20c88489d80d716da28f78fed628b54345f32ca4)) - Support AbortIncompleteMultipartUpload LifecycleAction ([#​1347](https://togithub.com/googleapis/java-storage/issues/1347)) ([7c3aba2](https://togithub.com/googleapis/java-storage/commit/7c3aba2f0a26ac550e4f37f9287ed6b041d75919)) ##### Bug Fixes - update request method of HttpStorageRpc to properly configure offset on requests ([#​1434](https://togithub.com/googleapis/java-storage/issues/1434)) ([72dc0df](https://togithub.com/googleapis/java-storage/commit/72dc0dff20d76875401dac721c0268c32e475e39)) ##### Dependencies - update dependency com.google.apis:google-api-services-storage to v1-rev20220604-1.32.1 ([#​1438](https://togithub.com/googleapis/java-storage/issues/1438)) ([df8fcd9](https://togithub.com/googleapis/java-storage/commit/df8fcd9925ef06c91ebebe0a3a7b5aedeb15ec4d)) - update dependency com.google.cloud:google-cloud-pubsub to v1.119.0 ([#​1426](https://togithub.com/googleapis/java-storage/issues/1426)) ([93ba28c](https://togithub.com/googleapis/java-storage/commit/93ba28cff16d428e0222078dc60dbf49fda7632a)) ##### [2.7.2](https://togithub.com/googleapis/java-storage/compare/v2.7.1...v2.7.2) (2022-05-27) ##### Dependencies - update kms.version to v0.96.1 ([#​1418](https://togithub.com/googleapis/java-storage/issues/1418)) ([d2f325b](https://togithub.com/googleapis/java-storage/commit/d2f325b3d31ac5da367873be1fb530fb6356036a)) ##### [2.7.1](https://togithub.com/googleapis/java-storage/compare/v2.7.0...v2.7.1) (2022-05-24) ##### Dependencies - update kms.version to v0.96.0 ([#​1408](https://togithub.com/googleapis/java-storage/issues/1408)) ([7501ffc](https://togithub.com/googleapis/java-storage/commit/7501ffc97d5a7943d3852ea26133b6c62cbbff1f)) ### [`v2.7.2`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​272-httpsgithubcomgoogleapisjava-storagecomparev271v272-2022-05-27) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.7.1...v2.7.2) ### [`v2.7.1`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​271-httpsgithubcomgoogleapisjava-storagecomparev270v271-2022-05-24) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.7.0...v2.7.1)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 86b627985..a4536f669 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.7.0 + 2.10.0 com.google.protobuf diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c48504b9f..7ed19fc90 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.7.0 + 2.10.0 com.google.protobuf diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 9fe20729c..7ad6f60cd 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -33,7 +33,7 @@ com.google.cloud google-cloud-storage - 2.7.0 + 2.10.0 com.google.protobuf From 6fb1534896ef3e7ec66575a92e7a8d2b2f97912b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 01:00:26 +0200 Subject: [PATCH 12/22] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3 (#1000) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.13.0` -> `3.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/compatibility-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/confidence-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​301-httpsgithubcomgoogleapisjava-shared-dependenciescomparev300v301-2022-08-02) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.0...v3.0.1) ##### Dependencies - update dependency com.google.code.gson:gson to v2.9.1 ([#​766](https://togithub.com/googleapis/java-shared-dependencies/issues/766)) ([f7b2b06](https://togithub.com/googleapis/java-shared-dependencies/commit/f7b2b06b80e3e95ff8ab9b1d6a2638ef3069298a)) - update gax.version to v2.18.7 ([#​767](https://togithub.com/googleapis/java-shared-dependencies/issues/767)) ([9650368](https://togithub.com/googleapis/java-shared-dependencies/commit/96503682e98cdf348ea2c1365a03a60f4322c712)) - update google.core.version to v2.8.6 ([#​770](https://togithub.com/googleapis/java-shared-dependencies/issues/770)) ([cfd4377](https://togithub.com/googleapis/java-shared-dependencies/commit/cfd4377dc178cebb4724065d55d185ce03988d55)) ### [`v3.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​300-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2130v300-2022-07-29) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.13.0...v3.0.0) ##### Bug Fixes - enable longpaths support for windows test ([#​1485](https://togithub.com/googleapis/java-shared-dependencies/issues/1485)) ([#​738](https://togithub.com/googleapis/java-shared-dependencies/issues/738)) ([11bc8f8](https://togithub.com/googleapis/java-shared-dependencies/commit/11bc8f81f28be88a97fdeafca21724e33638770c)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.2 ([#​729](https://togithub.com/googleapis/java-shared-dependencies/issues/729)) ([1fa59af](https://togithub.com/googleapis/java-shared-dependencies/commit/1fa59af80abb9f278f57658c10158567e825fec6)) - update dependency com.google.api-client:google-api-client-bom to v2 ([#​746](https://togithub.com/googleapis/java-shared-dependencies/issues/746)) ([2dcb2e0](https://togithub.com/googleapis/java-shared-dependencies/commit/2dcb2e071e0ba0eea21bb575bd13cd559d4a1ca6)) - update dependency com.google.api.grpc:grpc-google-common-protos to v2.9.2 ([#​741](https://togithub.com/googleapis/java-shared-dependencies/issues/741)) ([3352d6c](https://togithub.com/googleapis/java-shared-dependencies/commit/3352d6c36111c04e3f6f3e6360470fa3efb10d8f)) - update dependency com.google.auth:google-auth-library-bom to v1.8.0 ([#​726](https://togithub.com/googleapis/java-shared-dependencies/issues/726)) ([2c5d64c](https://togithub.com/googleapis/java-shared-dependencies/commit/2c5d64c127db8384e49113acfeac6928716a2d7f)) - update dependency com.google.auth:google-auth-library-bom to v1.8.1 ([#​742](https://togithub.com/googleapis/java-shared-dependencies/issues/742)) ([4f53527](https://togithub.com/googleapis/java-shared-dependencies/commit/4f53527bda7f40896711b7c1d1c02453321ffbc8)) - update dependency com.google.cloud:first-party-dependencies to v2 ([#​747](https://togithub.com/googleapis/java-shared-dependencies/issues/747)) ([e970ac0](https://togithub.com/googleapis/java-shared-dependencies/commit/e970ac0599941c825dc2516146a7c6673e68a9b9)) - update dependency com.google.cloud:grpc-gcp to v1.2.1 ([#​751](https://togithub.com/googleapis/java-shared-dependencies/issues/751)) ([b3284b6](https://togithub.com/googleapis/java-shared-dependencies/commit/b3284b6ee52a96a6ea8696a05a94443df9ee5b9f)) - update dependency com.google.cloud:third-party-dependencies to v2 ([#​748](https://togithub.com/googleapis/java-shared-dependencies/issues/748)) ([573b41a](https://togithub.com/googleapis/java-shared-dependencies/commit/573b41a69504372741cbeb01dd200e7c71967186)) - update dependency com.google.http-client:google-http-client-bom to v1.42.1 ([#​730](https://togithub.com/googleapis/java-shared-dependencies/issues/730)) ([6b47126](https://togithub.com/googleapis/java-shared-dependencies/commit/6b47126686b603a5d112e097ce6aa3a1880daf6f)) - update dependency com.google.http-client:google-http-client-bom to v1.42.2 ([#​749](https://togithub.com/googleapis/java-shared-dependencies/issues/749)) ([299d7b0](https://togithub.com/googleapis/java-shared-dependencies/commit/299d7b0d4920644e2c3070d12dd1d97da17a5e88)) - update dependency com.google.protobuf:protobuf-bom to v3.21.2 ([#​722](https://togithub.com/googleapis/java-shared-dependencies/issues/722)) ([7a96b12](https://togithub.com/googleapis/java-shared-dependencies/commit/7a96b1259a526b63e9376fd6cc18b27cddeb5f0f)) - update dependency com.google.protobuf:protobuf-bom to v3.21.3 ([#​756](https://togithub.com/googleapis/java-shared-dependencies/issues/756)) ([3d0bac2](https://togithub.com/googleapis/java-shared-dependencies/commit/3d0bac23487aebb94267c0708f41ff6c02a028a4)) - update dependency com.google.protobuf:protobuf-bom to v3.21.4 ([#​759](https://togithub.com/googleapis/java-shared-dependencies/issues/759)) ([5a54ef1](https://togithub.com/googleapis/java-shared-dependencies/commit/5a54ef1a2d56244166d4fcc46041d62c0dc4b411)) - update dependency io.grpc:grpc-bom to v1.48.0 ([#​752](https://togithub.com/googleapis/java-shared-dependencies/issues/752)) ([20ac908](https://togithub.com/googleapis/java-shared-dependencies/commit/20ac908932a5e7c8e581bdfcd68579d7e1cedd5f)) - update dependency org.checkerframework:checker-qual to v3.23.0 ([#​736](https://togithub.com/googleapis/java-shared-dependencies/issues/736)) ([fc01d8f](https://togithub.com/googleapis/java-shared-dependencies/commit/fc01d8f93f391f12fdb800d5006f0b4505832eeb)) - update gax.version to v2.18.3 ([#​731](https://togithub.com/googleapis/java-shared-dependencies/issues/731)) ([e8ee554](https://togithub.com/googleapis/java-shared-dependencies/commit/e8ee554707acb2f71c739d08e2ff02fbe43ffa52)) - update gax.version to v2.18.4 ([#​735](https://togithub.com/googleapis/java-shared-dependencies/issues/735)) ([11c7415](https://togithub.com/googleapis/java-shared-dependencies/commit/11c74152a84697924de3a0e838b05f606c3098f7)) - update gax.version to v2.18.5 ([#​758](https://togithub.com/googleapis/java-shared-dependencies/issues/758)) ([7469fc1](https://togithub.com/googleapis/java-shared-dependencies/commit/7469fc1cc5095b39a5738e60156711a268f6e052)) - update gax.version to v2.18.6 ([#​763](https://togithub.com/googleapis/java-shared-dependencies/issues/763)) ([b5ca2f7](https://togithub.com/googleapis/java-shared-dependencies/commit/b5ca2f7b4d81c705823253f4f03363a32d2be48b)) - update google.common-protos.version to v2.9.1 ([#​724](https://togithub.com/googleapis/java-shared-dependencies/issues/724)) ([5213dbb](https://togithub.com/googleapis/java-shared-dependencies/commit/5213dbbfa9c9b73d2420ec2be7782f16c9c4955f)) - update google.core.version to v2.8.1 ([#​725](https://togithub.com/googleapis/java-shared-dependencies/issues/725)) ([575858a](https://togithub.com/googleapis/java-shared-dependencies/commit/575858a60f76e46bbc2a2435c2b6c01c8f4ab681)) - update google.core.version to v2.8.3 ([#​760](https://togithub.com/googleapis/java-shared-dependencies/issues/760)) ([cb10ae4](https://togithub.com/googleapis/java-shared-dependencies/commit/cb10ae4b76939215ea465af74163b3d4ad65a548)) - update google.core.version to v2.8.4 ([#​762](https://togithub.com/googleapis/java-shared-dependencies/issues/762)) ([821daaf](https://togithub.com/googleapis/java-shared-dependencies/commit/821daafefdbcfdfe6e363e580747538096a562ef)) - update google.core.version to v2.8.5 ([#​764](https://togithub.com/googleapis/java-shared-dependencies/issues/764)) ([a1f8f50](https://togithub.com/googleapis/java-shared-dependencies/commit/a1f8f501b54143a2cec8e72efd4ceb3ce47f13ae)) - update iam.version to v1.5.0 ([#​732](https://togithub.com/googleapis/java-shared-dependencies/issues/732)) ([9dce0e5](https://togithub.com/googleapis/java-shared-dependencies/commit/9dce0e5199c1e425119adc804304958f58003a27)) - update iam.version to v1.5.1 ([#​737](https://togithub.com/googleapis/java-shared-dependencies/issues/737)) ([df39168](https://togithub.com/googleapis/java-shared-dependencies/commit/df391685d42fcb1b04f03ab1380a594893bdce37)) - update iam.version to v1.5.2 ([#​743](https://togithub.com/googleapis/java-shared-dependencies/issues/743)) ([cdde697](https://togithub.com/googleapis/java-shared-dependencies/commit/cdde697f25a89fc8c2ec7eae6b7c54f69977bb1c))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d4fa29d4a..d295d3c2b 100644 --- a/pom.xml +++ b/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.13.0 + 3.0.1 pom import From a932cf813708d23a1cc4adb4d383f66cdb7c9801 Mon Sep 17 00:00:00 2001 From: sai-chaithu <99007515+sai-chaithu@users.noreply.github.com> Date: Thu, 4 Aug 2022 00:59:41 +0530 Subject: [PATCH 13/22] feat(samples): add all feature samples (#980) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(samples): add all feature samples * feat(samples): update all feature samples * feat(samples): updated the feature samples with close method call and separate timeouts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat(samples): update test with fixed featurestoreId Co-authored-by: Owl Bot --- README.md | 8 + .../java/aiplatform/CreateFeatureSample.java | 108 ++++++++++++ .../java/aiplatform/DeleteFeatureSample.java | 90 ++++++++++ .../java/aiplatform/GetFeatureSample.java | 79 +++++++++ .../aiplatform/ListFeaturesAsyncSample.java | 83 ++++++++++ .../java/aiplatform/ListFeaturesSample.java | 72 ++++++++ .../aiplatform/SearchFeaturesAsyncSample.java | 81 +++++++++ .../java/aiplatform/SearchFeaturesSample.java | 69 ++++++++ .../java/aiplatform/UpdateFeatureSample.java | 79 +++++++++ .../java/aiplatform/FeatureSamplesTest.java | 156 ++++++++++++++++++ 10 files changed, 825 insertions(+) create mode 100644 samples/snippets/src/main/java/aiplatform/CreateFeatureSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/DeleteFeatureSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/GetFeatureSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/ListFeaturesAsyncSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/ListFeaturesSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/SearchFeaturesAsyncSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/SearchFeaturesSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/UpdateFeatureSample.java create mode 100644 samples/snippets/src/test/java/aiplatform/FeatureSamplesTest.java diff --git a/README.md b/README.md index d86b7dda5..17acb0e26 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-aiplatform/tr | Create Endpoint Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/CreateEndpointSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateEndpointSample.java) | | Create Entity Type Monitoring Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/CreateEntityTypeMonitoringSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateEntityTypeMonitoringSample.java) | | Create Entity Type Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/CreateEntityTypeSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateEntityTypeSample.java) | +| Create Feature Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/CreateFeatureSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateFeatureSample.java) | | Create Featurestore Fixed Nodes Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/CreateFeaturestoreFixedNodesSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateFeaturestoreFixedNodesSample.java) | | Create Featurestore Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/CreateFeaturestoreSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateFeaturestoreSample.java) | | Create Hyperparameter Tuning Job Python Package Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/CreateHyperparameterTuningJobPythonPackageSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CreateHyperparameterTuningJobPythonPackageSample.java) | @@ -143,6 +144,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-aiplatform/tr | Delete Endpoint Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/DeleteEndpointSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/DeleteEndpointSample.java) | | Delete Entity Type Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/DeleteEntityTypeSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/DeleteEntityTypeSample.java) | | Delete Export Model Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/DeleteExportModelSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/DeleteExportModelSample.java) | +| Delete Feature Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/DeleteFeatureSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/DeleteFeatureSample.java) | | Delete Featurestore Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/DeleteFeaturestoreSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/DeleteFeaturestoreSample.java) | | Delete Model Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/DeleteModelSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/DeleteModelSample.java) | | Delete Training Pipeline Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/DeleteTrainingPipelineSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/DeleteTrainingPipelineSample.java) | @@ -153,6 +155,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-aiplatform/tr | Export Model Video Action Recognition Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ExportModelVideoActionRecognitionSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ExportModelVideoActionRecognitionSample.java) | | Get Batch Prediction Job Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/GetBatchPredictionJobSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/GetBatchPredictionJobSample.java) | | Get Entity Type Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/GetEntityTypeSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/GetEntityTypeSample.java) | +| Get Feature Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/GetFeatureSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/GetFeatureSample.java) | | Get Featurestore Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/GetFeaturestoreSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/GetFeaturestoreSample.java) | | Get Hyperparameter Tuning Job Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/GetHyperparameterTuningJobSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/GetHyperparameterTuningJobSample.java) | | Get Model Evaluation Image Classification Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/GetModelEvaluationImageClassificationSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/GetModelEvaluationImageClassificationSample.java) | @@ -179,6 +182,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-aiplatform/tr | Import Data Video Object Tracking Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ImportDataVideoObjectTrackingSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ImportDataVideoObjectTrackingSample.java) | | List Entity Types Async Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ListEntityTypesAsyncSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ListEntityTypesAsyncSample.java) | | List Entity Types Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ListEntityTypesSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ListEntityTypesSample.java) | +| List Features Async Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ListFeaturesAsyncSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ListFeaturesAsyncSample.java) | +| List Features Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ListFeaturesSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ListFeaturesSample.java) | | List Featurestores Async Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ListFeaturestoresAsyncSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ListFeaturestoresAsyncSample.java) | | List Featurestores Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ListFeaturestoresSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ListFeaturestoresSample.java) | | List Model Evaluation Slice Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ListModelEvaluationSliceSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ListModelEvaluationSliceSample.java) | @@ -190,9 +195,12 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-aiplatform/tr | Predict Text Classification Single Label Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/PredictTextClassificationSingleLabelSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/PredictTextClassificationSingleLabelSample.java) | | Predict Text Entity Extraction Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/PredictTextEntityExtractionSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/PredictTextEntityExtractionSample.java) | | Predict Text Sentiment Analysis Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/PredictTextSentimentAnalysisSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/PredictTextSentimentAnalysisSample.java) | +| Search Features Async Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/SearchFeaturesAsyncSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/SearchFeaturesAsyncSample.java) | +| Search Features Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/SearchFeaturesSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/SearchFeaturesSample.java) | | Undeploy Model Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/UndeployModelSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/UndeployModelSample.java) | | Update Entity Type Monitoring Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/UpdateEntityTypeMonitoringSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/UpdateEntityTypeMonitoringSample.java) | | Update Entity Type Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/UpdateEntityTypeSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/UpdateEntityTypeSample.java) | +| Update Feature Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/UpdateFeatureSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/UpdateFeatureSample.java) | | Update Featurestore Fixed Nodes Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/UpdateFeaturestoreFixedNodesSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/UpdateFeaturestoreFixedNodesSample.java) | | Update Featurestore Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/UpdateFeaturestoreSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/UpdateFeaturestoreSample.java) | | Upload Model Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/UploadModelSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/UploadModelSample.java) | diff --git a/samples/snippets/src/main/java/aiplatform/CreateFeatureSample.java b/samples/snippets/src/main/java/aiplatform/CreateFeatureSample.java new file mode 100644 index 000000000..10c18736f --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/CreateFeatureSample.java @@ -0,0 +1,108 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * Create a single feature for an existing entity type. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup before running + * the code snippet + */ + +package aiplatform; + +// [START aiplatform_create_feature_sample] + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.CreateFeatureOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateFeatureRequest; +import com.google.cloud.aiplatform.v1.EntityTypeName; +import com.google.cloud.aiplatform.v1.Feature; +import com.google.cloud.aiplatform.v1.Feature.ValueType; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class CreateFeatureSample { + + public static void main(String[] args) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String featurestoreId = "YOUR_FEATURESTORE_ID"; + String entityTypeId = "YOUR_ENTITY_TYPE_ID"; + String featureId = "YOUR_FEATURE_ID"; + String description = "YOUR_FEATURE_DESCRIPTION"; + ValueType valueType = ValueType.STRING; + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + int timeout = 900; + createFeatureSample( + project, + featurestoreId, + entityTypeId, + featureId, + description, + valueType, + location, + endpoint, + timeout); + } + + static void createFeatureSample( + String project, + String featurestoreId, + String entityTypeId, + String featureId, + String description, + ValueType valueType, + String location, + String endpoint, + int timeout) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + + Feature feature = + Feature.newBuilder().setDescription(description).setValueType(valueType).build(); + + CreateFeatureRequest createFeatureRequest = + CreateFeatureRequest.newBuilder() + .setParent( + EntityTypeName.of(project, location, featurestoreId, entityTypeId).toString()) + .setFeature(feature) + .setFeatureId(featureId) + .build(); + + OperationFuture featureFuture = + featurestoreServiceClient.createFeatureAsync(createFeatureRequest); + System.out.format("Operation name: %s%n", featureFuture.getInitialFuture().get().getName()); + System.out.println("Waiting for operation to finish..."); + Feature featureResponse = featureFuture.get(timeout, TimeUnit.SECONDS); + System.out.println("Create Feature Response"); + System.out.format("Name: %s%n", featureResponse.getName()); + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_create_feature_sample] diff --git a/samples/snippets/src/main/java/aiplatform/DeleteFeatureSample.java b/samples/snippets/src/main/java/aiplatform/DeleteFeatureSample.java new file mode 100644 index 000000000..bc77d5c80 --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/DeleteFeatureSample.java @@ -0,0 +1,90 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * Delete a single feature from an existing entity type. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup before running + * the code snippet + */ + +package aiplatform; + +// [START aiplatform_delete_feature_sample] + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.DeleteFeatureRequest; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.FeatureName; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class DeleteFeatureSample { + + public static void main(String[] args) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String featurestoreId = "YOUR_FEATURESTORE_ID"; + String entityTypeId = "YOUR_ENTITY_TYPE_ID"; + String featureId = "YOUR_FEATURE_ID"; + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + int timeout = 300; + + deleteFeatureSample( + project, featurestoreId, entityTypeId, featureId, location, endpoint, timeout); + } + + static void deleteFeatureSample( + String project, + String featurestoreId, + String entityTypeId, + String featureId, + String location, + String endpoint, + int timeout) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + + DeleteFeatureRequest deleteFeatureRequest = + DeleteFeatureRequest.newBuilder() + .setName( + FeatureName.of(project, location, featurestoreId, entityTypeId, featureId) + .toString()) + .build(); + + OperationFuture operationFuture = + featurestoreServiceClient.deleteFeatureAsync(deleteFeatureRequest); + System.out.format("Operation name: %s%n", operationFuture.getInitialFuture().get().getName()); + System.out.println("Waiting for operation to finish..."); + operationFuture.get(timeout, TimeUnit.SECONDS); + System.out.format("Deleted Feature."); + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_delete_feature_sample] diff --git a/samples/snippets/src/main/java/aiplatform/GetFeatureSample.java b/samples/snippets/src/main/java/aiplatform/GetFeatureSample.java new file mode 100644 index 000000000..f7e38adf1 --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/GetFeatureSample.java @@ -0,0 +1,79 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * Get feature details. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup before running + * the code snippet + */ + +package aiplatform; + +// [START aiplatform_get_feature_sample] + +import com.google.cloud.aiplatform.v1.Feature; +import com.google.cloud.aiplatform.v1.FeatureName; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import com.google.cloud.aiplatform.v1.GetFeatureRequest; +import java.io.IOException; + +public class GetFeatureSample { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String featurestoreId = "YOUR_FEATURESTORE_ID"; + String entityTypeId = "YOUR_ENTITY_TYPE_ID"; + String featureId = "YOUR_FEATURE_ID"; + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + + getFeatureSample(project, featurestoreId, entityTypeId, featureId, location, endpoint); + } + + static void getFeatureSample( + String project, + String featurestoreId, + String entityTypeId, + String featureId, + String location, + String endpoint) + throws IOException { + + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + + GetFeatureRequest getFeatureRequest = + GetFeatureRequest.newBuilder() + .setName( + FeatureName.of(project, location, featurestoreId, entityTypeId, featureId) + .toString()) + .build(); + + Feature feature = featurestoreServiceClient.getFeature(getFeatureRequest); + System.out.println("Get Feature Response"); + System.out.println(feature); + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_get_feature_sample] diff --git a/samples/snippets/src/main/java/aiplatform/ListFeaturesAsyncSample.java b/samples/snippets/src/main/java/aiplatform/ListFeaturesAsyncSample.java new file mode 100644 index 000000000..5cc41ec8c --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/ListFeaturesAsyncSample.java @@ -0,0 +1,83 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * List available feature details. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup before running + * the code snippet + */ + +package aiplatform; + +// [START aiplatform_list_features_async_sample] + +import com.google.cloud.aiplatform.v1.EntityTypeName; +import com.google.cloud.aiplatform.v1.Feature; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import com.google.cloud.aiplatform.v1.ListFeaturesRequest; +import com.google.cloud.aiplatform.v1.ListFeaturesResponse; +import com.google.common.base.Strings; +import java.io.IOException; + +public class ListFeaturesAsyncSample { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String featurestoreId = "YOUR_FEATURESTORE_ID"; + String entityTypeId = "YOUR_ENTITY_TYPE_ID"; + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + + listFeaturesAsyncSample(project, featurestoreId, entityTypeId, location, endpoint); + } + + static void listFeaturesAsyncSample( + String project, String featurestoreId, String entityTypeId, String location, String endpoint) + throws IOException { + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + + ListFeaturesRequest listFeaturesRequest = + ListFeaturesRequest.newBuilder() + .setParent( + EntityTypeName.of(project, location, featurestoreId, entityTypeId).toString()) + .build(); + System.out.println("List Features Async Response"); + while (true) { + ListFeaturesResponse listFeaturesResponse = + featurestoreServiceClient.listFeaturesCallable().call(listFeaturesRequest); + for (Feature element : listFeaturesResponse.getFeaturesList()) { + System.out.println(element); + } + String nextPageToken = listFeaturesResponse.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + listFeaturesRequest = listFeaturesRequest.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_list_features_async_sample] diff --git a/samples/snippets/src/main/java/aiplatform/ListFeaturesSample.java b/samples/snippets/src/main/java/aiplatform/ListFeaturesSample.java new file mode 100644 index 000000000..b17eeb35e --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/ListFeaturesSample.java @@ -0,0 +1,72 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * List available feature details. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup before running + * the code snippet + */ + +package aiplatform; + +// [START aiplatform_list_features_sample] + +import com.google.cloud.aiplatform.v1.EntityTypeName; +import com.google.cloud.aiplatform.v1.Feature; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import com.google.cloud.aiplatform.v1.ListFeaturesRequest; +import java.io.IOException; + +public class ListFeaturesSample { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String featurestoreId = "YOUR_FEATURESTORE_ID"; + String entityTypeId = "YOUR_ENTITY_TYPE_ID"; + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + + listFeaturesSample(project, featurestoreId, entityTypeId, location, endpoint); + } + + static void listFeaturesSample( + String project, String featurestoreId, String entityTypeId, String location, String endpoint) + throws IOException { + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + + ListFeaturesRequest listFeaturesRequest = + ListFeaturesRequest.newBuilder() + .setParent( + EntityTypeName.of(project, location, featurestoreId, entityTypeId).toString()) + .build(); + System.out.println("List Features Response"); + for (Feature element : + featurestoreServiceClient.listFeatures(listFeaturesRequest).iterateAll()) { + System.out.println(element); + } + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_list_features_sample] diff --git a/samples/snippets/src/main/java/aiplatform/SearchFeaturesAsyncSample.java b/samples/snippets/src/main/java/aiplatform/SearchFeaturesAsyncSample.java new file mode 100644 index 000000000..595fe18c5 --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/SearchFeaturesAsyncSample.java @@ -0,0 +1,81 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * Search for featurestore resources. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup before running + * the code snippet + */ + +package aiplatform; + +// [START aiplatform_search_features_async_sample] + +import com.google.cloud.aiplatform.v1.Feature; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.SearchFeaturesRequest; +import com.google.cloud.aiplatform.v1.SearchFeaturesResponse; +import com.google.common.base.Strings; +import java.io.IOException; + +public class SearchFeaturesAsyncSample { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String query = "YOUR_QUERY"; + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + searchFeaturesAsyncSample(project, query, location, endpoint); + } + + static void searchFeaturesAsyncSample( + String project, String query, String location, String endpoint) throws IOException { + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + + SearchFeaturesRequest searchFeaturesRequest = + SearchFeaturesRequest.newBuilder() + .setLocation(LocationName.of(project, location).toString()) + .setQuery(query) + .build(); + System.out.println("Search Features Async Response"); + while (true) { + SearchFeaturesResponse response = + featurestoreServiceClient.searchFeaturesCallable().call(searchFeaturesRequest); + for (Feature element : response.getFeaturesList()) { + System.out.println(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + searchFeaturesRequest = + searchFeaturesRequest.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_search_features_async_sample] diff --git a/samples/snippets/src/main/java/aiplatform/SearchFeaturesSample.java b/samples/snippets/src/main/java/aiplatform/SearchFeaturesSample.java new file mode 100644 index 000000000..62309a5a9 --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/SearchFeaturesSample.java @@ -0,0 +1,69 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * Search for featurestore resources. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup before running + * the code snippet + */ + +package aiplatform; + +// [START aiplatform_search_features_sample] + +import com.google.cloud.aiplatform.v1.Feature; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.SearchFeaturesRequest; +import java.io.IOException; + +public class SearchFeaturesSample { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String query = "YOUR_QUERY"; + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + searchFeaturesSample(project, query, location, endpoint); + } + + static void searchFeaturesSample(String project, String query, String location, String endpoint) + throws IOException { + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + + SearchFeaturesRequest searchFeaturesRequest = + SearchFeaturesRequest.newBuilder() + .setLocation(LocationName.of(project, location).toString()) + .setQuery(query) + .build(); + System.out.println("Search Features Response"); + for (Feature element : + featurestoreServiceClient.searchFeatures(searchFeaturesRequest).iterateAll()) { + System.out.println(element); + } + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_search_features_sample] diff --git a/samples/snippets/src/main/java/aiplatform/UpdateFeatureSample.java b/samples/snippets/src/main/java/aiplatform/UpdateFeatureSample.java new file mode 100644 index 000000000..a68ada038 --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/UpdateFeatureSample.java @@ -0,0 +1,79 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * Update feature. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup before running + * the code snippet + */ + +package aiplatform; + +// [START aiplatform_update_feature_sample] + +import com.google.cloud.aiplatform.v1.Feature; +import com.google.cloud.aiplatform.v1.FeatureName; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import com.google.cloud.aiplatform.v1.UpdateFeatureRequest; +import java.io.IOException; + +public class UpdateFeatureSample { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String featurestoreId = "YOUR_FEATURESTORE_ID"; + String entityTypeId = "YOUR_ENTITY_TYPE_ID"; + String featureId = "YOUR_FEATURE_ID"; + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + updateFeatureSample(project, featurestoreId, entityTypeId, featureId, location, endpoint); + } + + static void updateFeatureSample( + String project, + String featurestoreId, + String entityTypeId, + String featureId, + String location, + String endpoint) + throws IOException { + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + + Feature feature = + Feature.newBuilder() + .setName( + FeatureName.of(project, location, featurestoreId, entityTypeId, featureId) + .toString()) + .setDescription("sample feature title updated") + .build(); + + UpdateFeatureRequest request = UpdateFeatureRequest.newBuilder().setFeature(feature).build(); + Feature featureResponse = featurestoreServiceClient.updateFeature(request); + System.out.println("Update Feature Response"); + System.out.format("Name: %s%n", featureResponse.getName()); + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_update_feature_sample] diff --git a/samples/snippets/src/test/java/aiplatform/FeatureSamplesTest.java b/samples/snippets/src/test/java/aiplatform/FeatureSamplesTest.java new file mode 100644 index 000000000..a0f939675 --- /dev/null +++ b/samples/snippets/src/test/java/aiplatform/FeatureSamplesTest.java @@ -0,0 +1,156 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package aiplatform; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.aiplatform.v1.Feature.ValueType; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeoutException; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public class FeatureSamplesTest { + + private static final String PROJECT_ID = System.getenv("UCAIP_PROJECT_ID"); + private static final ValueType VALUE_TYPE = ValueType.STRING; + private static final String DESCRIPTION = "Test Description"; + private static final String QUERY = "value_type=STRING"; + private static final String LOCATION = "us-central1"; + private static final String ENDPOINT = "us-central1-aiplatform.googleapis.com:443"; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + private String featurestoreId = "featurestore_sample"; + + private static void requireEnvVar(String varName) { + String errorMessage = + String.format("Environment variable '%s' is required to perform these tests.", varName); + assertNotNull(errorMessage, System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("UCAIP_PROJECT_ID"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + } + + @After + public void tearDown() + throws InterruptedException, ExecutionException, IOException, TimeoutException { + + System.out.flush(); + System.setOut(originalPrintStream); + } + + @Test + public void testFeatureSamples() + throws IOException, InterruptedException, ExecutionException, TimeoutException { + + // Create the entity type + String entityTypeTempUuid = UUID.randomUUID().toString().replaceAll("-", "_").substring(0, 16); + String entityTypeId = String.format("temp_create_entity_type_test_%s", entityTypeTempUuid); + CreateEntityTypeSample.createEntityTypeSample( + PROJECT_ID, featurestoreId, entityTypeId, DESCRIPTION, LOCATION, ENDPOINT, 900); + + // Assert + String createEntityTypeResponse = bout.toString(); + assertThat(createEntityTypeResponse).contains("Create Entity Type Response"); + + // Create the feature + String featureTempUuid = UUID.randomUUID().toString().replaceAll("-", "_").substring(0, 26); + String featureId = String.format("temp_create_feature_test_%s", featureTempUuid); + CreateFeatureSample.createFeatureSample( + PROJECT_ID, + featurestoreId, + entityTypeId, + featureId, + DESCRIPTION, + VALUE_TYPE, + LOCATION, + ENDPOINT, + 900); + + // Assert + String createFeatureResponse = bout.toString(); + assertThat(createFeatureResponse).contains("Create Feature Response"); + + // Get the feature + GetFeatureSample.getFeatureSample( + PROJECT_ID, featurestoreId, entityTypeId, featureId, LOCATION, ENDPOINT); + + // Assert + String getFeatureResponse = bout.toString(); + assertThat(getFeatureResponse).contains("Get Feature Response"); + + // List features + ListFeaturesSample.listFeaturesSample( + PROJECT_ID, featurestoreId, entityTypeId, LOCATION, ENDPOINT); + + // Assert + String listfeatureResponse = bout.toString(); + assertThat(listfeatureResponse).contains("List Features Response"); + + // List features + ListFeaturesAsyncSample.listFeaturesAsyncSample( + PROJECT_ID, featurestoreId, entityTypeId, LOCATION, ENDPOINT); + + // Assert + String listfeatureAsyncResponse = bout.toString(); + assertThat(listfeatureAsyncResponse).contains("List Features Async Response"); + + // Search features + SearchFeaturesSample.searchFeaturesSample(PROJECT_ID, QUERY, LOCATION, ENDPOINT); + + // Assert + String searchFeaturesResponse = bout.toString(); + assertThat(searchFeaturesResponse).contains("Search Features Response"); + + // Search features + SearchFeaturesAsyncSample.searchFeaturesAsyncSample(PROJECT_ID, QUERY, LOCATION, ENDPOINT); + + // Assert + String searchFeaturesAsyncResponse = bout.toString(); + assertThat(searchFeaturesAsyncResponse).contains("Search Features Async Response"); + + // Delete the feature + DeleteFeatureSample.deleteFeatureSample( + PROJECT_ID, featurestoreId, entityTypeId, featureId, LOCATION, ENDPOINT, 300); + + // Assert + String deleteFeatureResponse = bout.toString(); + assertThat(deleteFeatureResponse).contains("Deleted Feature"); + } +} From 26391a3ebfb87163a3054207fc7cf337c2eb5fa0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 21:40:16 +0200 Subject: [PATCH 14/22] deps: update dependency com.google.cloud:google-cloud-storage to v2.11.0 (#1005) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.10.0` -> `2.11.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.0/compatibility-slim/2.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.0/confidence-slim/2.10.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.11.0`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​2110-httpsgithubcomgoogleapisjava-storagecomparev2100v2110-2022-08-03) ##### Features - introduce RPC CancelResumableWriteRequest ([#​1518](https://togithub.com/googleapis/java-storage/issues/1518)) ([f8811c6](https://togithub.com/googleapis/java-storage/commit/f8811c654109516116bbbe142f4b27ec7f63b5fb)) ##### Documentation - Refactor Custom Dual Region sample to work with API changes ([#​1516](https://togithub.com/googleapis/java-storage/issues/1516)) ([a60cace](https://togithub.com/googleapis/java-storage/commit/a60caced9584855f12cdb7cac8ad7606ba32a60a)) ##### Dependencies - update dependency com.google.cloud:google-cloud-pubsub to v1.120.5 ([#​1527](https://togithub.com/googleapis/java-storage/issues/1527)) ([77072e3](https://togithub.com/googleapis/java-storage/commit/77072e3835bbeb802299fec1359c5f3ca13e3c8a)) - update dependency com.google.cloud:google-cloud-pubsub to v1.120.7 ([#​1530](https://togithub.com/googleapis/java-storage/issues/1530)) ([8c2ebad](https://togithub.com/googleapis/java-storage/commit/8c2ebad79affb766d842615aa30cc2a3dbe7d0de)) - update dependency com.google.cloud:google-cloud-pubsub to v1.120.8 ([#​1534](https://togithub.com/googleapis/java-storage/issues/1534)) ([723b100](https://togithub.com/googleapis/java-storage/commit/723b10014cafae257fa75d9c0bfd3fb0c34b9943)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#​1526](https://togithub.com/googleapis/java-storage/issues/1526)) ([f7fc0d2](https://togithub.com/googleapis/java-storage/commit/f7fc0d2f301bd22e96a0b43f8657cc738f49f278)) - update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#​1524](https://togithub.com/googleapis/java-storage/issues/1524)) ([0e74093](https://togithub.com/googleapis/java-storage/commit/0e74093f3dffd829f8fb9f2525c1502e1910fbe6))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a4536f669..15f675e89 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.10.0 + 2.11.0 com.google.protobuf diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7ed19fc90..f9825370e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.10.0 + 2.11.0 com.google.protobuf diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 7ad6f60cd..3fc4e24af 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -33,7 +33,7 @@ com.google.cloud google-cloud-storage - 2.10.0 + 2.11.0 com.google.protobuf From 818acab3e0186ceaea2032b9f04ca9b47e8f753e Mon Sep 17 00:00:00 2001 From: sai-chaithu <99007515+sai-chaithu@users.noreply.github.com> Date: Thu, 4 Aug 2022 02:11:39 +0530 Subject: [PATCH 15/22] feat(samples): add all feature values samples (#981) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(samples): add all feature values samples * feat(samples): update all feature values samples * feat(samples): update big query dependency in pom.xml * feat(samples): code review changes * feat(samples): updated feature values samples with close method call and list variable * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- README.md | 5 + samples/install-without-bom/pom.xml | 5 + samples/snapshot/pom.xml | 5 + samples/snippets/pom.xml | 6 +- .../aiplatform/BatchCreateFeaturesSample.java | 128 ++++++++ .../BatchReadFeatureValuesSample.java | 135 +++++++++ .../aiplatform/ExportFeatureValuesSample.java | 119 ++++++++ .../ExportFeatureValuesSnapshotSample.java | 119 ++++++++ .../aiplatform/ImportFeatureValuesSample.java | 122 ++++++++ .../aiplatform/FeatureValuesSamplesTest.java | 278 ++++++++++++++++++ 10 files changed, 921 insertions(+), 1 deletion(-) create mode 100644 samples/snippets/src/main/java/aiplatform/BatchCreateFeaturesSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/BatchReadFeatureValuesSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/ExportFeatureValuesSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/ExportFeatureValuesSnapshotSample.java create mode 100644 samples/snippets/src/main/java/aiplatform/ImportFeatureValuesSample.java create mode 100644 samples/snippets/src/test/java/aiplatform/FeatureValuesSamplesTest.java diff --git a/README.md b/README.md index 17acb0e26..62e7a01ee 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-aiplatform/tr | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | +| Batch Create Features Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/BatchCreateFeaturesSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/BatchCreateFeaturesSample.java) | +| Batch Read Feature Values Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/BatchReadFeatureValuesSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/BatchReadFeatureValuesSample.java) | | Cancel Batch Prediction Job Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/CancelBatchPredictionJobSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CancelBatchPredictionJobSample.java) | | Cancel Data Labeling Job Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/CancelDataLabelingJobSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CancelDataLabelingJobSample.java) | | Cancel Training Pipeline Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/CancelTrainingPipelineSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/CancelTrainingPipelineSample.java) | @@ -150,6 +152,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-aiplatform/tr | Delete Training Pipeline Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/DeleteTrainingPipelineSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/DeleteTrainingPipelineSample.java) | | Deploy Model Custom Trained Model Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/DeployModelCustomTrainedModelSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/DeployModelCustomTrainedModelSample.java) | | Deploy Model Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/DeployModelSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/DeployModelSample.java) | +| Export Feature Values Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ExportFeatureValuesSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ExportFeatureValuesSample.java) | +| Export Feature Values Snapshot Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ExportFeatureValuesSnapshotSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ExportFeatureValuesSnapshotSample.java) | | Export Model Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ExportModelSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ExportModelSample.java) | | Export Model Tabular Classification Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ExportModelTabularClassificationSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ExportModelTabularClassificationSample.java) | | Export Model Video Action Recognition Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ExportModelVideoActionRecognitionSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ExportModelVideoActionRecognitionSample.java) | @@ -180,6 +184,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-aiplatform/tr | Import Data Video Action Recognition Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ImportDataVideoActionRecognitionSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ImportDataVideoActionRecognitionSample.java) | | Import Data Video Classification Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ImportDataVideoClassificationSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ImportDataVideoClassificationSample.java) | | Import Data Video Object Tracking Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ImportDataVideoObjectTrackingSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ImportDataVideoObjectTrackingSample.java) | +| Import Feature Values Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ImportFeatureValuesSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ImportFeatureValuesSample.java) | | List Entity Types Async Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ListEntityTypesAsyncSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ListEntityTypesAsyncSample.java) | | List Entity Types Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ListEntityTypesSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ListEntityTypesSample.java) | | List Features Async Sample | [source code](https://github.com/googleapis/java-aiplatform/blob/main/samples/snippets/src/main/java/aiplatform/ListFeaturesAsyncSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-aiplatform&page=editor&open_in_editor=samples/snippets/src/main/java/aiplatform/ListFeaturesAsyncSample.java) | diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 15f675e89..1edf6c140 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -54,6 +54,11 @@ 1.1.3 test + + com.google.cloud + google-cloud-bigquery + 2.13.6 + diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f9825370e..adbcb72ad 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -54,6 +54,11 @@ 1.1.3 test + + com.google.cloud + google-cloud-bigquery + 2.13.6 + diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 3fc4e24af..83953def3 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -62,6 +62,10 @@ proto-google-cloud-aiplatform-v1beta1 0.17.0 - + + com.google.cloud + google-cloud-bigquery + 2.13.6 + diff --git a/samples/snippets/src/main/java/aiplatform/BatchCreateFeaturesSample.java b/samples/snippets/src/main/java/aiplatform/BatchCreateFeaturesSample.java new file mode 100644 index 000000000..8b9480927 --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/BatchCreateFeaturesSample.java @@ -0,0 +1,128 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * Create features in bulk for an existing entity type. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup + * before running the code snippet + */ + +package aiplatform; + +// [START aiplatform_batch_create_features_sample] + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.BatchCreateFeaturesOperationMetadata; +import com.google.cloud.aiplatform.v1.BatchCreateFeaturesRequest; +import com.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse; +import com.google.cloud.aiplatform.v1.CreateFeatureRequest; +import com.google.cloud.aiplatform.v1.EntityTypeName; +import com.google.cloud.aiplatform.v1.Feature; +import com.google.cloud.aiplatform.v1.Feature.ValueType; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class BatchCreateFeaturesSample { + + public static void main(String[] args) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String featurestoreId = "YOUR_FEATURESTORE_ID"; + String entityTypeId = "YOUR_ENTITY_TYPE_ID"; + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + int timeout = 300; + batchCreateFeaturesSample(project, featurestoreId, entityTypeId, location, endpoint, timeout); + } + + static void batchCreateFeaturesSample( + String project, + String featurestoreId, + String entityTypeId, + String location, + String endpoint, + int timeout) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + + List createFeatureRequests = new ArrayList<>(); + + Feature titleFeature = + Feature.newBuilder() + .setDescription("The title of the movie") + .setValueType(ValueType.STRING) + .build(); + Feature genresFeature = + Feature.newBuilder() + .setDescription("The genres of the movie") + .setValueType(ValueType.STRING) + .build(); + Feature averageRatingFeature = + Feature.newBuilder() + .setDescription("The average rating for the movie, range is [1.0-5.0]") + .setValueType(ValueType.DOUBLE) + .build(); + + createFeatureRequests.add( + CreateFeatureRequest.newBuilder().setFeature(titleFeature).setFeatureId("title").build()); + + createFeatureRequests.add( + CreateFeatureRequest.newBuilder() + .setFeature(genresFeature) + .setFeatureId("genres") + .build()); + + createFeatureRequests.add( + CreateFeatureRequest.newBuilder() + .setFeature(averageRatingFeature) + .setFeatureId("average_rating") + .build()); + + BatchCreateFeaturesRequest batchCreateFeaturesRequest = + BatchCreateFeaturesRequest.newBuilder() + .setParent( + EntityTypeName.of(project, location, featurestoreId, entityTypeId).toString()) + .addAllRequests(createFeatureRequests) + .build(); + + OperationFuture + batchCreateFeaturesFuture = + featurestoreServiceClient.batchCreateFeaturesAsync(batchCreateFeaturesRequest); + System.out.format( + "Operation name: %s%n", batchCreateFeaturesFuture.getInitialFuture().get().getName()); + System.out.println("Waiting for operation to finish..."); + BatchCreateFeaturesResponse batchCreateFeaturesResponse = + batchCreateFeaturesFuture.get(timeout, TimeUnit.SECONDS); + System.out.println("Batch Create Features Response"); + System.out.println(batchCreateFeaturesResponse); + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_batch_create_features_sample] diff --git a/samples/snippets/src/main/java/aiplatform/BatchReadFeatureValuesSample.java b/samples/snippets/src/main/java/aiplatform/BatchReadFeatureValuesSample.java new file mode 100644 index 000000000..a76c3388d --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/BatchReadFeatureValuesSample.java @@ -0,0 +1,135 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * Batch read feature values from a featurestore, as determined by your + * read instances list file, to export data. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup before running + * the code snippet + */ + +package aiplatform; + +// [START aiplatform_batch_read_feature_values_sample] + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.BatchReadFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest; +import com.google.cloud.aiplatform.v1.BatchReadFeatureValuesRequest.EntityTypeSpec; +import com.google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse; +import com.google.cloud.aiplatform.v1.BigQueryDestination; +import com.google.cloud.aiplatform.v1.CsvSource; +import com.google.cloud.aiplatform.v1.FeatureSelector; +import com.google.cloud.aiplatform.v1.FeatureValueDestination; +import com.google.cloud.aiplatform.v1.FeaturestoreName; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import com.google.cloud.aiplatform.v1.GcsSource; +import com.google.cloud.aiplatform.v1.IdMatcher; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class BatchReadFeatureValuesSample { + + public static void main(String[] args) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String featurestoreId = "YOUR_FEATURESTORE_ID"; + String entityTypeId = "YOUR_ENTITY_TYPE_ID"; + String inputCsvFile = "YOU_INPUT_CSV_FILE"; + String destinationTableUri = "YOUR_DESTINATION_TABLE_URI"; + List featureSelectorIds = Arrays.asList("title", "genres", "average_rating"); + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + int timeout = 300; + batchReadFeatureValuesSample( + project, + featurestoreId, + entityTypeId, + inputCsvFile, + destinationTableUri, + featureSelectorIds, + location, + endpoint, + timeout); + } + + static void batchReadFeatureValuesSample( + String project, + String featurestoreId, + String entityTypeId, + String inputCsvFile, + String destinationTableUri, + List featureSelectorIds, + String location, + String endpoint, + int timeout) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + + List entityTypeSpecs = new ArrayList<>(); + + FeatureSelector featureSelector = + FeatureSelector.newBuilder() + .setIdMatcher(IdMatcher.newBuilder().addAllIds(featureSelectorIds).build()) + .build(); + EntityTypeSpec entityTypeSpec = + EntityTypeSpec.newBuilder() + .setEntityTypeId(entityTypeId) + .setFeatureSelector(featureSelector) + .build(); + + entityTypeSpecs.add(entityTypeSpec); + + BigQueryDestination bigQueryDestination = + BigQueryDestination.newBuilder().setOutputUri(destinationTableUri).build(); + GcsSource gcsSource = GcsSource.newBuilder().addUris(inputCsvFile).build(); + BatchReadFeatureValuesRequest batchReadFeatureValuesRequest = + BatchReadFeatureValuesRequest.newBuilder() + .setFeaturestore(FeaturestoreName.of(project, location, featurestoreId).toString()) + .setCsvReadInstances(CsvSource.newBuilder().setGcsSource(gcsSource)) + .setDestination( + FeatureValueDestination.newBuilder().setBigqueryDestination(bigQueryDestination)) + .addAllEntityTypeSpecs(entityTypeSpecs) + .build(); + + OperationFuture + batchReadFeatureValuesFuture = + featurestoreServiceClient.batchReadFeatureValuesAsync(batchReadFeatureValuesRequest); + System.out.format( + "Operation name: %s%n", batchReadFeatureValuesFuture.getInitialFuture().get().getName()); + System.out.println("Waiting for operation to finish..."); + BatchReadFeatureValuesResponse batchReadFeatureValuesResponse = + batchReadFeatureValuesFuture.get(timeout, TimeUnit.SECONDS); + System.out.println("Batch Read Feature Values Response"); + System.out.println(batchReadFeatureValuesResponse); + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_batch_read_feature_values_sample] diff --git a/samples/snippets/src/main/java/aiplatform/ExportFeatureValuesSample.java b/samples/snippets/src/main/java/aiplatform/ExportFeatureValuesSample.java new file mode 100644 index 000000000..6bb7b00d6 --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/ExportFeatureValuesSample.java @@ -0,0 +1,119 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * Bulk export feature values from a featurestore. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup before running + * the code snippet + */ + +package aiplatform; + +// [START aiplatform_export_feature_values_sample] + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.BigQueryDestination; +import com.google.cloud.aiplatform.v1.EntityTypeName; +import com.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest; +import com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport; +import com.google.cloud.aiplatform.v1.ExportFeatureValuesResponse; +import com.google.cloud.aiplatform.v1.FeatureSelector; +import com.google.cloud.aiplatform.v1.FeatureValueDestination; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import com.google.cloud.aiplatform.v1.IdMatcher; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class ExportFeatureValuesSample { + + public static void main(String[] args) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String featurestoreId = "YOUR_FEATURESTORE_ID"; + String entityTypeId = "YOUR_ENTITY_TYPE_ID"; + String destinationTableUri = "YOUR_DESTINATION_TABLE_URI"; + List featureSelectorIds = Arrays.asList("title", "genres", "average_rating"); + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + int timeout = 300; + exportFeatureValuesSample( + project, + featurestoreId, + entityTypeId, + destinationTableUri, + featureSelectorIds, + location, + endpoint, + timeout); + } + + static void exportFeatureValuesSample( + String project, + String featurestoreId, + String entityTypeId, + String destinationTableUri, + List featureSelectorIds, + String location, + String endpoint, + int timeout) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + + FeatureSelector featureSelector = + FeatureSelector.newBuilder() + .setIdMatcher(IdMatcher.newBuilder().addAllIds(featureSelectorIds).build()) + .build(); + + ExportFeatureValuesRequest exportFeatureValuesRequest = + ExportFeatureValuesRequest.newBuilder() + .setEntityType( + EntityTypeName.of(project, location, featurestoreId, entityTypeId).toString()) + .setDestination( + FeatureValueDestination.newBuilder() + .setBigqueryDestination( + BigQueryDestination.newBuilder().setOutputUri(destinationTableUri))) + .setFeatureSelector(featureSelector) + .setFullExport(FullExport.newBuilder()) + .build(); + + OperationFuture + exportFeatureValuesFuture = + featurestoreServiceClient.exportFeatureValuesAsync(exportFeatureValuesRequest); + System.out.format( + "Operation name: %s%n", exportFeatureValuesFuture.getInitialFuture().get().getName()); + System.out.println("Waiting for operation to finish..."); + ExportFeatureValuesResponse exportFeatureValuesResponse = + exportFeatureValuesFuture.get(timeout, TimeUnit.SECONDS); + System.out.println("Export Feature Values Response"); + System.out.println(exportFeatureValuesResponse); + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_export_feature_values_sample] diff --git a/samples/snippets/src/main/java/aiplatform/ExportFeatureValuesSnapshotSample.java b/samples/snippets/src/main/java/aiplatform/ExportFeatureValuesSnapshotSample.java new file mode 100644 index 000000000..6d48d34d0 --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/ExportFeatureValuesSnapshotSample.java @@ -0,0 +1,119 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * Bulk export feature values from a featurestore. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup before running + * the code snippet + */ + +package aiplatform; + +// [START aiplatform_export_feature_values_snapshot_sample] + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.BigQueryDestination; +import com.google.cloud.aiplatform.v1.EntityTypeName; +import com.google.cloud.aiplatform.v1.ExportFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest; +import com.google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport; +import com.google.cloud.aiplatform.v1.ExportFeatureValuesResponse; +import com.google.cloud.aiplatform.v1.FeatureSelector; +import com.google.cloud.aiplatform.v1.FeatureValueDestination; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import com.google.cloud.aiplatform.v1.IdMatcher; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class ExportFeatureValuesSnapshotSample { + + public static void main(String[] args) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String featurestoreId = "YOUR_FEATURESTORE_ID"; + String entityTypeId = "YOUR_ENTITY_TYPE_ID"; + String destinationTableUri = "YOUR_DESTINATION_TABLE_URI"; + List featureSelectorIds = Arrays.asList("title", "genres", "average_rating"); + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + int timeout = 300; + exportFeatureValuesSnapshotSample( + project, + featurestoreId, + entityTypeId, + destinationTableUri, + featureSelectorIds, + location, + endpoint, + timeout); + } + + static void exportFeatureValuesSnapshotSample( + String project, + String featurestoreId, + String entityTypeId, + String destinationTableUri, + List featureSelectorIds, + String location, + String endpoint, + int timeout) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + + FeatureSelector featureSelector = + FeatureSelector.newBuilder() + .setIdMatcher(IdMatcher.newBuilder().addAllIds(featureSelectorIds).build()) + .build(); + + ExportFeatureValuesRequest exportFeatureValuesRequest = + ExportFeatureValuesRequest.newBuilder() + .setEntityType( + EntityTypeName.of(project, location, featurestoreId, entityTypeId).toString()) + .setDestination( + FeatureValueDestination.newBuilder() + .setBigqueryDestination( + BigQueryDestination.newBuilder().setOutputUri(destinationTableUri))) + .setFeatureSelector(featureSelector) + .setSnapshotExport(SnapshotExport.newBuilder()) + .build(); + + OperationFuture + exportFeatureValuesFuture = + featurestoreServiceClient.exportFeatureValuesAsync(exportFeatureValuesRequest); + System.out.format( + "Operation name: %s%n", exportFeatureValuesFuture.getInitialFuture().get().getName()); + System.out.println("Waiting for operation to finish..."); + ExportFeatureValuesResponse exportFeatureValuesResponse = + exportFeatureValuesFuture.get(timeout, TimeUnit.SECONDS); + System.out.println("Snapshot Export Feature Values Response"); + System.out.println(exportFeatureValuesResponse); + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_export_feature_values_snapshot_sample] diff --git a/samples/snippets/src/main/java/aiplatform/ImportFeatureValuesSample.java b/samples/snippets/src/main/java/aiplatform/ImportFeatureValuesSample.java new file mode 100644 index 000000000..405b05f54 --- /dev/null +++ b/samples/snippets/src/main/java/aiplatform/ImportFeatureValuesSample.java @@ -0,0 +1,122 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * Bulk import values into a featurestore for existing features. See + * https://cloud.google.com/vertex-ai/docs/featurestore/setup before running + * the code snippet + */ + +package aiplatform; + +// [START aiplatform_import_feature_values_sample] + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.AvroSource; +import com.google.cloud.aiplatform.v1.EntityTypeName; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceClient; +import com.google.cloud.aiplatform.v1.FeaturestoreServiceSettings; +import com.google.cloud.aiplatform.v1.GcsSource; +import com.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest; +import com.google.cloud.aiplatform.v1.ImportFeatureValuesRequest.FeatureSpec; +import com.google.cloud.aiplatform.v1.ImportFeatureValuesResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class ImportFeatureValuesSample { + + public static void main(String[] args) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + // TODO(developer): Replace these variables before running the sample. + String project = "YOUR_PROJECT_ID"; + String featurestoreId = "YOUR_FEATURESTORE_ID"; + String entityTypeId = "YOUR_ENTITY_TYPE_ID"; + String entityIdField = "YOUR_ENTITY_FIELD_ID"; + String featureTimeField = "YOUR_FEATURE_TIME_FIELD"; + String gcsSourceUri = "YOUR_GCS_SOURCE_URI"; + int workerCount = 2; + String location = "us-central1"; + String endpoint = "us-central1-aiplatform.googleapis.com:443"; + int timeout = 300; + importFeatureValuesSample( + project, + featurestoreId, + entityTypeId, + gcsSourceUri, + entityIdField, + featureTimeField, + workerCount, + location, + endpoint, + timeout); + } + + static void importFeatureValuesSample( + String project, + String featurestoreId, + String entityTypeId, + String gcsSourceUri, + String entityIdField, + String featureTimeField, + int workerCount, + String location, + String endpoint, + int timeout) + throws IOException, InterruptedException, ExecutionException, TimeoutException { + FeaturestoreServiceSettings featurestoreServiceSettings = + FeaturestoreServiceSettings.newBuilder().setEndpoint(endpoint).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (FeaturestoreServiceClient featurestoreServiceClient = + FeaturestoreServiceClient.create(featurestoreServiceSettings)) { + List featureSpecs = new ArrayList<>(); + + featureSpecs.add(FeatureSpec.newBuilder().setId("title").build()); + featureSpecs.add(FeatureSpec.newBuilder().setId("genres").build()); + featureSpecs.add(FeatureSpec.newBuilder().setId("average_rating").build()); + ImportFeatureValuesRequest importFeatureValuesRequest = + ImportFeatureValuesRequest.newBuilder() + .setEntityType( + EntityTypeName.of(project, location, featurestoreId, entityTypeId).toString()) + .setEntityIdField(entityIdField) + .setFeatureTimeField(featureTimeField) + .addAllFeatureSpecs(featureSpecs) + .setWorkerCount(workerCount) + .setAvroSource( + AvroSource.newBuilder() + .setGcsSource(GcsSource.newBuilder().addUris(gcsSourceUri))) + .build(); + OperationFuture + importFeatureValuesFuture = + featurestoreServiceClient.importFeatureValuesAsync(importFeatureValuesRequest); + System.out.format( + "Operation name: %s%n", importFeatureValuesFuture.getInitialFuture().get().getName()); + System.out.println("Waiting for operation to finish..."); + ImportFeatureValuesResponse importFeatureValuesResponse = + importFeatureValuesFuture.get(timeout, TimeUnit.SECONDS); + System.out.println("Import Feature Values Response"); + System.out.println(importFeatureValuesResponse); + featurestoreServiceClient.close(); + } + } +} +// [END aiplatform_import_feature_values_sample] diff --git a/samples/snippets/src/test/java/aiplatform/FeatureValuesSamplesTest.java b/samples/snippets/src/test/java/aiplatform/FeatureValuesSamplesTest.java new file mode 100644 index 000000000..56852503b --- /dev/null +++ b/samples/snippets/src/test/java/aiplatform/FeatureValuesSamplesTest.java @@ -0,0 +1,278 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package aiplatform; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.bigquery.BigQuery; +import com.google.cloud.bigquery.BigQuery.DatasetDeleteOption; +import com.google.cloud.bigquery.BigQueryException; +import com.google.cloud.bigquery.BigQueryOptions; +import com.google.cloud.bigquery.Dataset; +import com.google.cloud.bigquery.DatasetId; +import com.google.cloud.bigquery.DatasetInfo; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.text.SimpleDateFormat; +import java.util.Arrays; +import java.util.Date; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeoutException; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public class FeatureValuesSamplesTest { + + private static final String PROJECT_ID = System.getenv("UCAIP_PROJECT_ID"); + private static final int MIN_NODE_COUNT = 1; + private static final int MAX_NODE_COUNT = 5; + private static final String DESCRIPTION = "Test Description"; + private static final boolean USE_FORCE = true; + private static final String ENTITY_ID_FIELD = "movie_id"; + private static final String FEATURE_TIME_FIELD = "update_time"; + private static final String GCS_SOURCE_URI = + "gs://cloud-samples-data-us-central1/vertex-ai/feature-store/datasets/movies.avro"; + private static final int WORKER_COUNT = 2; + private static final String INPUT_CSV_FILE = + "gs://cloud-samples-data-us-central1/vertex-ai/feature-store/datasets/movie_prediction.csv"; + private static final List FEATURE_SELECTOR_IDS = + Arrays.asList("title", "genres", "average_rating"); + private static final String LOCATION = "us-central1"; + private static final String ENDPOINT = "us-central1-aiplatform.googleapis.com:443"; + private static final int TIMEOUT = 900; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + private String featurestoreId; + private String destinationTableUri; + private Date date; + private SimpleDateFormat dateFormat; + private String datasetName; + private String destinationTableName; + + private static void requireEnvVar(String varName) { + String errorMessage = + String.format("Environment variable '%s' is required to perform these tests.", varName); + assertNotNull(errorMessage, System.getenv(varName)); + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS"); + requireEnvVar("UCAIP_PROJECT_ID"); + } + + @Before + public void setUp() { + date = new Date(); + dateFormat = new SimpleDateFormat("yyyyMMddHHmmSSS"); + datasetName = "movie_predictions" + dateFormat.format(date); + destinationTableName = "training_data"; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + } + + static void createBigQueryDataset(String projectId, String datasetName, String location) { + try { + // Initialize client that will be used to send requests. This client only needs + // to be created + // once, and can be reused for multiple requests. + BigQuery bigquery = + BigQueryOptions.newBuilder() + .setLocation(location) + .setProjectId(projectId) + .build() + .getService(); + DatasetInfo datasetInfo = DatasetInfo.newBuilder(datasetName).build(); + + Dataset newDataset = bigquery.create(datasetInfo); + String newDatasetName = newDataset.getDatasetId().getDataset(); + System.out.println(newDatasetName + " created successfully"); + } catch (BigQueryException e) { + System.out.format("Dataset was not created. %n%s", e.toString()); + } + } + + static void deleteBigQueryDataset(String projectId, String datasetName, String location) { + try { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. + BigQuery bigquery = + BigQueryOptions.newBuilder() + .setLocation(location) + .setProjectId(projectId) + .build() + .getService(); + + DatasetId datasetId = DatasetId.of(projectId, datasetName); + boolean success = bigquery.delete(datasetId, DatasetDeleteOption.deleteContents()); + if (success) { + System.out.println("Dataset deleted successfully"); + } else { + System.out.println("Dataset was not found"); + } + } catch (BigQueryException e) { + System.out.format("Dataset was not deleted. %n%s", e.toString()); + } + } + + @After + public void tearDown() + throws InterruptedException, ExecutionException, IOException, TimeoutException { + + // Delete the featurestore + DeleteFeaturestoreSample.deleteFeaturestoreSample( + PROJECT_ID, featurestoreId, USE_FORCE, LOCATION, ENDPOINT, 300); + + // Assert + String deleteFeaturestoreResponse = bout.toString(); + assertThat(deleteFeaturestoreResponse).contains("Deleted Featurestore"); + + // Delete the big query dataset + deleteBigQueryDataset(PROJECT_ID, datasetName, LOCATION); + + // Assert + String deleteBigQueryResponse = bout.toString(); + assertThat(deleteBigQueryResponse).contains("Dataset deleted successfully"); + + System.out.flush(); + System.setOut(originalPrintStream); + } + + @Test + public void testFeatureValuesSamples() + throws IOException, InterruptedException, ExecutionException, TimeoutException { + // Create the featurestore + String tempUuid = UUID.randomUUID().toString().replaceAll("-", "_").substring(0, 26); + String id = String.format("temp_create_featurestore_test_%s", tempUuid); + CreateFeaturestoreSample.createFeaturestoreSample( + PROJECT_ID, id, MIN_NODE_COUNT, MAX_NODE_COUNT, LOCATION, ENDPOINT, 900); + + // Assert + String createFeaturestoreResponse = bout.toString(); + assertThat(createFeaturestoreResponse).contains("Create Featurestore Response"); + featurestoreId = + createFeaturestoreResponse.split("Name: ")[1].split("featurestores/")[1].split("\n")[0] + .trim(); + + // Create the entity type + String entityTypeId = "movies"; + CreateEntityTypeSample.createEntityTypeSample( + PROJECT_ID, featurestoreId, entityTypeId, DESCRIPTION, LOCATION, ENDPOINT, 900); + + // Assert + String createEntityTypeResponse = bout.toString(); + assertThat(createEntityTypeResponse).contains("Create Entity Type Response"); + + // Batch create features + BatchCreateFeaturesSample.batchCreateFeaturesSample( + PROJECT_ID, featurestoreId, entityTypeId, LOCATION, ENDPOINT, TIMEOUT); + + // Assert + String batchCreateFeaturesResponse = bout.toString(); + assertThat(batchCreateFeaturesResponse).contains("Batch Create Features Response"); + + // Import feature values + ImportFeatureValuesSample.importFeatureValuesSample( + PROJECT_ID, + featurestoreId, + entityTypeId, + GCS_SOURCE_URI, + ENTITY_ID_FIELD, + FEATURE_TIME_FIELD, + WORKER_COUNT, + LOCATION, + ENDPOINT, + TIMEOUT); + + // Assert + String importFeatureValuesResponse = bout.toString(); + assertThat(importFeatureValuesResponse).contains("Import Feature Values Response"); + + // Create the big query dataset + createBigQueryDataset(PROJECT_ID, datasetName, LOCATION); + destinationTableUri = + String.format("bq://%s.%s.%s_full", PROJECT_ID, datasetName, destinationTableName); + + // Assert + String createBigQueryDatasetResponse = bout.toString(); + assertThat(createBigQueryDatasetResponse).contains(datasetName + " created successfully"); + + // Export feature values + ExportFeatureValuesSample.exportFeatureValuesSample( + PROJECT_ID, + featurestoreId, + entityTypeId, + destinationTableUri, + FEATURE_SELECTOR_IDS, + LOCATION, + ENDPOINT, + TIMEOUT); + + // Assert + String exportFeatureValuesResponse = bout.toString(); + assertThat(exportFeatureValuesResponse).contains("Export Feature Values Response"); + + destinationTableUri = + String.format("bq://%s.%s.%s_snapshot", PROJECT_ID, datasetName, destinationTableName); + + // Snapshot export feature values + ExportFeatureValuesSnapshotSample.exportFeatureValuesSnapshotSample( + PROJECT_ID, + featurestoreId, + entityTypeId, + destinationTableUri, + FEATURE_SELECTOR_IDS, + LOCATION, + ENDPOINT, + TIMEOUT); + + // Assert + String snapshotResponse = bout.toString(); + assertThat(snapshotResponse).contains("Snapshot Export Feature Values Response"); + + destinationTableUri = + String.format("bq://%s.%s.%s_batchRead", PROJECT_ID, datasetName, destinationTableName); + + // Batch read feature values + BatchReadFeatureValuesSample.batchReadFeatureValuesSample( + PROJECT_ID, + featurestoreId, + entityTypeId, + INPUT_CSV_FILE, + destinationTableUri, + FEATURE_SELECTOR_IDS, + LOCATION, + ENDPOINT, + TIMEOUT); + + // Assert + String batchReadFeatureValuesResponse = bout.toString(); + assertThat(batchReadFeatureValuesResponse).contains("Batch Read Feature Values Response"); + } +} From 2c959b9d72bcfe69d6429a6f9a6d0f145a2fe022 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Aug 2022 07:04:30 +0200 Subject: [PATCH 16/22] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.14.1 (#1006) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.13.6` -> `2.14.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.1/compatibility-slim/2.13.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.1/confidence-slim/2.13.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-bigquery ### [`v2.14.1`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2141-httpsgithubcomgoogleapisjava-bigquerycomparev2140v2141-2022-07-27) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.14.0...v2.14.1) ##### Dependencies - update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#​2183](https://togithub.com/googleapis/java-bigquery/issues/2183)) ([f8325cf](https://togithub.com/googleapis/java-bigquery/commit/f8325cff22af3f087b23d6376ab96e78648efd00)) ### [`v2.14.0`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2140-httpsgithubcomgoogleapisjava-bigquerycomparev2138v2140-2022-07-22) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.13.8...v2.14.0) ##### Features - Add decimal target type ([#​2166](https://togithub.com/googleapis/java-bigquery/issues/2166)) ([ebbd8f5](https://togithub.com/googleapis/java-bigquery/commit/ebbd8f52853d3c0ca918a47d826474cc5825a58a)) - **bigquery:** enable use of GEOGRAPHY query params ([#​2158](https://togithub.com/googleapis/java-bigquery/issues/2158)) ([b19ad76](https://togithub.com/googleapis/java-bigquery/commit/b19ad767a53a9bd5d14b4cb36716cbb1c7b44ed6)) ##### Bug Fixes - Add query dryRun logic to get the schema when null schema is returned from the backend ([#​2106](https://togithub.com/googleapis/java-bigquery/issues/2106)) ([c98d22b](https://togithub.com/googleapis/java-bigquery/commit/c98d22b2b4f45e20d7d0666c5342cdbfadd30bde)) - enable longpaths support for windows test ([#​1485](https://togithub.com/googleapis/java-bigquery/issues/1485)) ([#​2164](https://togithub.com/googleapis/java-bigquery/issues/2164)) ([e18b9f8](https://togithub.com/googleapis/java-bigquery/commit/e18b9f8b4d2f194577b1710ad64710fe0f3d88d9)) - **java:** make field accessible to address Java 17 issue with arrow ([#​2165](https://togithub.com/googleapis/java-bigquery/issues/2165)) ([d605b81](https://togithub.com/googleapis/java-bigquery/commit/d605b8149954e79c05461630915b674e11793889)) ##### Dependencies - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 ([#​2160](https://togithub.com/googleapis/java-bigquery/issues/2160)) ([970135b](https://togithub.com/googleapis/java-bigquery/commit/970135bec33b831925476855da9a84c34311068d)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#​2161](https://togithub.com/googleapis/java-bigquery/issues/2161)) ([3507bf7](https://togithub.com/googleapis/java-bigquery/commit/3507bf7c9fc2aef299d06d9771cfcc06e3080b87)) ### [`v2.13.8`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2138-httpsgithubcomgoogleapisjava-bigquerycomparev2137v2138-2022-07-01) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.13.7...v2.13.8) ##### Dependencies - update dependency com.google.cloud:google-cloud-storage to v2.9.0 ([#​2149](https://togithub.com/googleapis/java-bigquery/issues/2149)) ([a07c714](https://togithub.com/googleapis/java-bigquery/commit/a07c714cb90c7ff62a43f7500abe8d54a5cd0936)) ### [`v2.13.7`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2137-httpsgithubcomgoogleapisjava-bigquerycomparev2136v2137-2022-06-29) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.13.6...v2.13.7) ##### Dependencies - update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.8.4 ([#​2140](https://togithub.com/googleapis/java-bigquery/issues/2140)) ([c7ef597](https://togithub.com/googleapis/java-bigquery/commit/c7ef597832505e6c05adb38ac1db5dd15e32d024))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1edf6c140..b833b58eb 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ com.google.cloud google-cloud-bigquery - 2.13.6 + 2.14.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index adbcb72ad..3a1bb7d2d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -57,7 +57,7 @@ com.google.cloud google-cloud-bigquery - 2.13.6 + 2.14.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 83953def3..20034b6a9 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -65,7 +65,7 @@ com.google.cloud google-cloud-bigquery - 2.13.6 + 2.14.1 From cba42d176e36ee2dd704efd91b4cb57029154863 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Aug 2022 19:10:12 +0200 Subject: [PATCH 17/22] deps: update dependency com.google.cloud:google-cloud-storage to v2.11.1 (#1008) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.11.0` -> `2.11.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.1/compatibility-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.1/confidence-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.11.1`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​2111-httpsgithubcomgoogleapisjava-storagecomparev2110v2111-2022-08-04) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.11.0...v2.11.1) ##### Dependencies - update dependency com.google.cloud:google-cloud-pubsub to v1.120.9 ([#​1537](https://togithub.com/googleapis/java-storage/issues/1537)) ([ae17737](https://togithub.com/googleapis/java-storage/commit/ae17737342e262f7afd404e4c758a7fbf5530da5))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b833b58eb..a7af5b7ff 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.11.0 + 2.11.1 com.google.protobuf diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3a1bb7d2d..9e1f09eed 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.11.0 + 2.11.1 com.google.protobuf diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 20034b6a9..cca2b686d 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -33,7 +33,7 @@ com.google.cloud google-cloud-storage - 2.11.0 + 2.11.1 com.google.protobuf From 4f35eedfd485674f6e25bf92e0ad8d7c70777e1a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 5 Aug 2022 17:52:16 +0200 Subject: [PATCH 18/22] deps: update dependency com.google.cloud:google-cloud-storage to v2.11.2 (#1010) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-storage](https://togithub.com/googleapis/java-storage) | `2.11.1` -> `2.11.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.2/compatibility-slim/2.11.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-storage/2.11.2/confidence-slim/2.11.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-storage ### [`v2.11.2`](https://togithub.com/googleapis/java-storage/blob/HEAD/CHANGELOG.md#​2112-httpsgithubcomgoogleapisjava-storagecomparev2111v2112-2022-08-04) [Compare Source](https://togithub.com/googleapis/java-storage/compare/v2.11.1...v2.11.2) ##### Dependencies - update dependency com.google.cloud:google-cloud-pubsub to v1.120.10 ([#​1543](https://togithub.com/googleapis/java-storage/issues/1543)) ([8ff1dff](https://togithub.com/googleapis/java-storage/commit/8ff1dffb07141411daaf49ac9af570a1654eb2da))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a7af5b7ff..59a986ed2 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.cloud google-cloud-storage - 2.11.1 + 2.11.2 com.google.protobuf diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9e1f09eed..5e990e4cc 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-storage - 2.11.1 + 2.11.2 com.google.protobuf diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index cca2b686d..f691019ef 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -33,7 +33,7 @@ com.google.cloud google-cloud-storage - 2.11.1 + 2.11.2 com.google.protobuf From b1705042c34be9c41125de8671339ebec7ceac86 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 5 Aug 2022 18:10:11 +0200 Subject: [PATCH 19/22] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.14.3 (#1009) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.14.1` -> `2.14.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.3/compatibility-slim/2.14.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.3/confidence-slim/2.14.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-bigquery ### [`v2.14.3`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2143-httpsgithubcomgoogleapisjava-bigquerycomparev2142v2143-2022-08-05) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.14.2...v2.14.3) ##### Dependencies - update dependency com.google.apis:google-api-services-bigquery to v2-rev20220730-2.0.0 ([#​2208](https://togithub.com/googleapis/java-bigquery/issues/2208)) ([5165e2b](https://togithub.com/googleapis/java-bigquery/commit/5165e2b3d4001d58daa2a60b553926d938848ee6)) - update dependency com.google.cloud:google-cloud-storage to v2.11.2 ([#​2207](https://togithub.com/googleapis/java-bigquery/issues/2207)) ([da5389d](https://togithub.com/googleapis/java-bigquery/commit/da5389d78c5136f01c16d23f4f7ec54c6b4f3010)) ### [`v2.14.2`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2142-httpsgithubcomgoogleapisjava-bigquerycomparev2141v2142-2022-08-04) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.14.1...v2.14.2) ##### Dependencies - update arrow.version to v9 (major) ([#​2201](https://togithub.com/googleapis/java-bigquery/issues/2201)) ([3ec5ef9](https://togithub.com/googleapis/java-bigquery/commit/3ec5ef987425315a0dc4d2ab9a4dc162cf000156)) - update dependency com.google.apis:google-api-services-bigquery to v2-rev20220716-2.0.0 ([#​2202](https://togithub.com/googleapis/java-bigquery/issues/2202)) ([c1ca09e](https://togithub.com/googleapis/java-bigquery/commit/c1ca09e41bb9d4b070e241437b46d717e66f4944)) - update dependency com.google.cloud:google-cloud-bigquerystorage-bom to 2.18.0 ([c1ca09e](https://togithub.com/googleapis/java-bigquery/commit/c1ca09e41bb9d4b070e241437b46d717e66f4944)) - update dependency com.google.cloud:google-cloud-datacatalog-bom to 1.9.1 ([c1ca09e](https://togithub.com/googleapis/java-bigquery/commit/c1ca09e41bb9d4b070e241437b46d717e66f4944)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([c1ca09e](https://togithub.com/googleapis/java-bigquery/commit/c1ca09e41bb9d4b070e241437b46d717e66f4944)) - update dependency com.google.cloud:google-cloud-storage to 2.11.0 ([c1ca09e](https://togithub.com/googleapis/java-bigquery/commit/c1ca09e41bb9d4b070e241437b46d717e66f4944)) - update dependency com.google.cloud:google-cloud-storage to v2.11.1 ([#​2194](https://togithub.com/googleapis/java-bigquery/issues/2194)) ([45be001](https://togithub.com/googleapis/java-bigquery/commit/45be00165846010afd43e184d94b81d4254f5cd5)) - update dependency com.google.code.gson:gson to v2.9.1 ([#​2190](https://togithub.com/googleapis/java-bigquery/issues/2190)) ([4bd4539](https://togithub.com/googleapis/java-bigquery/commit/4bd4539be4aa2ced4eeefde4b48fdbaa5faf5801)) - update dependency org.threeten:threeten-extra to v1.7.1 ([c1ca09e](https://togithub.com/googleapis/java-bigquery/commit/c1ca09e41bb9d4b070e241437b46d717e66f4944)) ##### Documentation - **owlbot-java:** explaining why not using formatter in pom.xml ([#​1511](https://togithub.com/googleapis/java-bigquery/issues/1511)) ([#​2195](https://togithub.com/googleapis/java-bigquery/issues/2195)) ([7c45aa5](https://togithub.com/googleapis/java-bigquery/commit/7c45aa5bf78e2c15534cdd6d3d9af572ea871e57)), closes [#​1502](https://togithub.com/googleapis/java-bigquery/issues/1502)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 59a986ed2..3b0bf1529 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ com.google.cloud google-cloud-bigquery - 2.14.1 + 2.14.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5e990e4cc..74c19e85d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -57,7 +57,7 @@ com.google.cloud google-cloud-bigquery - 2.14.1 + 2.14.3 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index f691019ef..812108ef4 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -65,7 +65,7 @@ com.google.cloud google-cloud-bigquery - 2.14.1 + 2.14.3 From f90cc12441d31fa9b17806824003f9adc2604d60 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Mon, 8 Aug 2022 15:42:11 -0400 Subject: [PATCH 20/22] fix: declaring test-scope artifact as runtime (#1014) Within this repository this dependency is only used in tests. However, making this test scope causes undeclared dependencies after the flatten-maven-plugin. Similar to googleapis/java-pubsub#1239 --- google-cloud-aiplatform/pom.xml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/google-cloud-aiplatform/pom.xml b/google-cloud-aiplatform/pom.xml index 5d7eb8cce..8bc735cee 100644 --- a/google-cloud-aiplatform/pom.xml +++ b/google-cloud-aiplatform/pom.xml @@ -78,6 +78,17 @@ com.google.api.grpc grpc-google-iam-v1
+ + com.google.code.gson + gson + + runtime + @@ -108,11 +119,6 @@ com.google.protobuf protobuf-java-util - - com.google.code.gson - gson - test - From 01714be8178de2c37762dfce9fd5af3883fa3a56 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 05:00:38 +0000 Subject: [PATCH 21/22] chore(main): release 3.1.1-SNAPSHOT (#992) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-aiplatform-bom/pom.xml | 12 ++++++------ google-cloud-aiplatform/pom.xml | 4 ++-- grpc-google-cloud-aiplatform-v1/pom.xml | 4 ++-- grpc-google-cloud-aiplatform-v1beta1/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-aiplatform-v1/pom.xml | 4 ++-- proto-google-cloud-aiplatform-v1beta1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-aiplatform-bom/pom.xml b/google-cloud-aiplatform-bom/pom.xml index 5cad7b8af..59e16cc79 100644 --- a/google-cloud-aiplatform-bom/pom.xml +++ b/google-cloud-aiplatform-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-aiplatform-bom - 3.1.0 + 3.1.1-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.cloud google-cloud-aiplatform - 3.1.0 + 3.1.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.1.0 + 3.1.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.17.0 + 0.17.1-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.1.0 + 3.1.1-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.17.0 + 0.17.1-SNAPSHOT diff --git a/google-cloud-aiplatform/pom.xml b/google-cloud-aiplatform/pom.xml index 8bc735cee..b137684be 100644 --- a/google-cloud-aiplatform/pom.xml +++ b/google-cloud-aiplatform/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-aiplatform - 3.1.0 + 3.1.1-SNAPSHOT jar Google Cloud Vertex AI https://github.com/googleapis/java-aiplatform @@ -11,7 +11,7 @@ com.google.cloud google-cloud-aiplatform-parent - 3.1.0 + 3.1.1-SNAPSHOT google-cloud-aiplatform diff --git a/grpc-google-cloud-aiplatform-v1/pom.xml b/grpc-google-cloud-aiplatform-v1/pom.xml index dddc47376..528ba33ff 100644 --- a/grpc-google-cloud-aiplatform-v1/pom.xml +++ b/grpc-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.1.0 + 3.1.1-SNAPSHOT grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.1.0 + 3.1.1-SNAPSHOT diff --git a/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/grpc-google-cloud-aiplatform-v1beta1/pom.xml index 07d3e5a20..7f5adc24a 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/pom.xml +++ b/grpc-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.17.0 + 0.17.1-SNAPSHOT grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.1.0 + 3.1.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index d295d3c2b..eb11a410c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-aiplatform-parent pom - 3.1.0 + 3.1.1-SNAPSHOT Google Cloud Vertex AI Parent https://github.com/googleapis/java- @@ -61,27 +61,27 @@ com.google.cloud google-cloud-aiplatform - 3.1.0 + 3.1.1-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.1.0 + 3.1.1-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.17.0 + 0.17.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.1.0 + 3.1.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.17.0 + 0.17.1-SNAPSHOT com.google.cloud diff --git a/proto-google-cloud-aiplatform-v1/pom.xml b/proto-google-cloud-aiplatform-v1/pom.xml index 9ae6414c9..e02bb60db 100644 --- a/proto-google-cloud-aiplatform-v1/pom.xml +++ b/proto-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.1.0 + 3.1.1-SNAPSHOT proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.1.0 + 3.1.1-SNAPSHOT diff --git a/proto-google-cloud-aiplatform-v1beta1/pom.xml b/proto-google-cloud-aiplatform-v1beta1/pom.xml index 8517dff08..4e19d77d5 100644 --- a/proto-google-cloud-aiplatform-v1beta1/pom.xml +++ b/proto-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.17.0 + 0.17.1-SNAPSHOT proto-google-cloud-aiplatform-v1beta1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.1.0 + 3.1.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 74c19e85d..1848f1031 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-aiplatform - 3.1.0 + 3.1.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index e34f02ce5..c2ee8f8a4 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-aiplatform:3.1.0:3.1.0 -grpc-google-cloud-aiplatform-v1:3.1.0:3.1.0 -grpc-google-cloud-aiplatform-v1beta1:0.17.0:0.17.0 -proto-google-cloud-aiplatform-v1:3.1.0:3.1.0 -proto-google-cloud-aiplatform-v1beta1:0.17.0:0.17.0 +google-cloud-aiplatform:3.1.0:3.1.1-SNAPSHOT +grpc-google-cloud-aiplatform-v1:3.1.0:3.1.1-SNAPSHOT +grpc-google-cloud-aiplatform-v1beta1:0.17.0:0.17.1-SNAPSHOT +proto-google-cloud-aiplatform-v1:3.1.0:3.1.1-SNAPSHOT +proto-google-cloud-aiplatform-v1beta1:0.17.0:0.17.1-SNAPSHOT From 400f9d15888f5be7481a88be80104f7db03c01d2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 14:58:36 +0000 Subject: [PATCH 22/22] chore(main): release 3.2.0 (#1017) :robot: I have created a release *beep* *boop* --- ## [3.2.0](https://github.com/googleapis/java-aiplatform/compare/v3.1.0...v3.2.0) (2022-08-09) ### Features * add a DeploymentResourcePool API resource_definition ([#997](https://github.com/googleapis/java-aiplatform/issues/997)) ([f3e6d4f](https://github.com/googleapis/java-aiplatform/commit/f3e6d4fe833160ab34ef0d87bd58dadf62aef502)) * add DeploymentResourcePool in aiplatform v1beta1 deployment_resource_pool.proto ([#998](https://github.com/googleapis/java-aiplatform/issues/998)) ([49fb069](https://github.com/googleapis/java-aiplatform/commit/49fb069d61270657145130470d3546ea3a33490d)) * add DeploymentResourcePoolService in aiplatform v1beta1 deployment_resource_pool_service.proto ([49fb069](https://github.com/googleapis/java-aiplatform/commit/49fb069d61270657145130470d3546ea3a33490d)) * add shared_resources for supported prediction_resources ([f3e6d4f](https://github.com/googleapis/java-aiplatform/commit/f3e6d4fe833160ab34ef0d87bd58dadf62aef502)) * add SHARED_RESOURCES to DeploymentResourcesType in aiplatform v1beta1 model.proto ([49fb069](https://github.com/googleapis/java-aiplatform/commit/49fb069d61270657145130470d3546ea3a33490d)) * added SHARED_RESOURCES enum to aiplatform v1 model.proto ([3935d8f](https://github.com/googleapis/java-aiplatform/commit/3935d8f04c4585b02f1614149803ef8eed87d4e2)) * DeploymentResourcePool and DeployementResourcePoolService added to aiplatform v1beta1 model.proto (cl/463147866) ([3935d8f](https://github.com/googleapis/java-aiplatform/commit/3935d8f04c4585b02f1614149803ef8eed87d4e2)) * making network arg optional in aiplatform v1 custom_job.proto ([#999](https://github.com/googleapis/java-aiplatform/issues/999)) ([3935d8f](https://github.com/googleapis/java-aiplatform/commit/3935d8f04c4585b02f1614149803ef8eed87d4e2)) * making network arg optional in aiplatform v1beta1 custom_job.proto ([3935d8f](https://github.com/googleapis/java-aiplatform/commit/3935d8f04c4585b02f1614149803ef8eed87d4e2)) * **samples:** add all feature samples ([#980](https://github.com/googleapis/java-aiplatform/issues/980)) ([a932cf8](https://github.com/googleapis/java-aiplatform/commit/a932cf813708d23a1cc4adb4d383f66cdb7c9801)) * **samples:** add all feature values samples ([#981](https://github.com/googleapis/java-aiplatform/issues/981)) ([818acab](https://github.com/googleapis/java-aiplatform/commit/818acab3e0186ceaea2032b9f04ca9b47e8f753e)) ### Bug Fixes * declaring test-scope artifact as runtime ([#1014](https://github.com/googleapis/java-aiplatform/issues/1014)) ([f90cc12](https://github.com/googleapis/java-aiplatform/commit/f90cc12441d31fa9b17806824003f9adc2604d60)) ### Documentation * doc edits to aiplatform v1 dataset_service.proto, job_service.proto, model_service.proto, pipeline_service.proto, saved_query.proto, study.proto, types.proto ([3935d8f](https://github.com/googleapis/java-aiplatform/commit/3935d8f04c4585b02f1614149803ef8eed87d4e2)) * doc edits to aiplatform v1beta1 job_service.proto, model_service.proto, pipeline_service.proto, saved_query.proto, study.proto, types.proto ([3935d8f](https://github.com/googleapis/java-aiplatform/commit/3935d8f04c4585b02f1614149803ef8eed87d4e2)) ### Dependencies * update dependency com.google.api.grpc:proto-google-cloud-aiplatform-v1beta1 to v0.17.0 ([#1003](https://github.com/googleapis/java-aiplatform/issues/1003)) ([c2b98d9](https://github.com/googleapis/java-aiplatform/commit/c2b98d9d1c4bb896590eacb38ed5193d1e507b26)) * update dependency com.google.cloud:google-cloud-bigquery to v2.14.1 ([#1006](https://github.com/googleapis/java-aiplatform/issues/1006)) ([2c959b9](https://github.com/googleapis/java-aiplatform/commit/2c959b9d72bcfe69d6429a6f9a6d0f145a2fe022)) * update dependency com.google.cloud:google-cloud-bigquery to v2.14.3 ([#1009](https://github.com/googleapis/java-aiplatform/issues/1009)) ([b170504](https://github.com/googleapis/java-aiplatform/commit/b1705042c34be9c41125de8671339ebec7ceac86)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#1000](https://github.com/googleapis/java-aiplatform/issues/1000)) ([6fb1534](https://github.com/googleapis/java-aiplatform/commit/6fb1534896ef3e7ec66575a92e7a8d2b2f97912b)) * update dependency com.google.cloud:google-cloud-storage to v2.10.0 ([#1004](https://github.com/googleapis/java-aiplatform/issues/1004)) ([b6e2ab4](https://github.com/googleapis/java-aiplatform/commit/b6e2ab4fb4c169b4e31ecfec01765db94916f739)) * update dependency com.google.cloud:google-cloud-storage to v2.11.0 ([#1005](https://github.com/googleapis/java-aiplatform/issues/1005)) ([26391a3](https://github.com/googleapis/java-aiplatform/commit/26391a3ebfb87163a3054207fc7cf337c2eb5fa0)) * update dependency com.google.cloud:google-cloud-storage to v2.11.1 ([#1008](https://github.com/googleapis/java-aiplatform/issues/1008)) ([cba42d1](https://github.com/googleapis/java-aiplatform/commit/cba42d176e36ee2dd704efd91b4cb57029154863)) * update dependency com.google.cloud:google-cloud-storage to v2.11.2 ([#1010](https://github.com/googleapis/java-aiplatform/issues/1010)) ([4f35eed](https://github.com/googleapis/java-aiplatform/commit/4f35eedfd485674f6e25bf92e0ad8d7c70777e1a)) * update dependency com.google.code.gson:gson to v2.9.1 ([#1001](https://github.com/googleapis/java-aiplatform/issues/1001)) ([f12c313](https://github.com/googleapis/java-aiplatform/commit/f12c313505552a93db12c6f6d4c7986b34650069)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 41 +++++++++++++++++++ google-cloud-aiplatform-bom/pom.xml | 12 +++--- google-cloud-aiplatform/pom.xml | 4 +- grpc-google-cloud-aiplatform-v1/pom.xml | 4 +- grpc-google-cloud-aiplatform-v1beta1/pom.xml | 4 +- pom.xml | 12 +++--- proto-google-cloud-aiplatform-v1/pom.xml | 4 +- proto-google-cloud-aiplatform-v1beta1/pom.xml | 4 +- samples/snapshot/pom.xml | 2 +- versions.txt | 10 ++--- 10 files changed, 69 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index deb62443f..7cec680a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,46 @@ # Changelog +## [3.2.0](https://github.com/googleapis/java-aiplatform/compare/v3.1.0...v3.2.0) (2022-08-09) + + +### Features + +* add a DeploymentResourcePool API resource_definition ([#997](https://github.com/googleapis/java-aiplatform/issues/997)) ([f3e6d4f](https://github.com/googleapis/java-aiplatform/commit/f3e6d4fe833160ab34ef0d87bd58dadf62aef502)) +* add DeploymentResourcePool in aiplatform v1beta1 deployment_resource_pool.proto ([#998](https://github.com/googleapis/java-aiplatform/issues/998)) ([49fb069](https://github.com/googleapis/java-aiplatform/commit/49fb069d61270657145130470d3546ea3a33490d)) +* add DeploymentResourcePoolService in aiplatform v1beta1 deployment_resource_pool_service.proto ([49fb069](https://github.com/googleapis/java-aiplatform/commit/49fb069d61270657145130470d3546ea3a33490d)) +* add shared_resources for supported prediction_resources ([f3e6d4f](https://github.com/googleapis/java-aiplatform/commit/f3e6d4fe833160ab34ef0d87bd58dadf62aef502)) +* add SHARED_RESOURCES to DeploymentResourcesType in aiplatform v1beta1 model.proto ([49fb069](https://github.com/googleapis/java-aiplatform/commit/49fb069d61270657145130470d3546ea3a33490d)) +* added SHARED_RESOURCES enum to aiplatform v1 model.proto ([3935d8f](https://github.com/googleapis/java-aiplatform/commit/3935d8f04c4585b02f1614149803ef8eed87d4e2)) +* DeploymentResourcePool and DeployementResourcePoolService added to aiplatform v1beta1 model.proto (cl/463147866) ([3935d8f](https://github.com/googleapis/java-aiplatform/commit/3935d8f04c4585b02f1614149803ef8eed87d4e2)) +* making network arg optional in aiplatform v1 custom_job.proto ([#999](https://github.com/googleapis/java-aiplatform/issues/999)) ([3935d8f](https://github.com/googleapis/java-aiplatform/commit/3935d8f04c4585b02f1614149803ef8eed87d4e2)) +* making network arg optional in aiplatform v1beta1 custom_job.proto ([3935d8f](https://github.com/googleapis/java-aiplatform/commit/3935d8f04c4585b02f1614149803ef8eed87d4e2)) +* **samples:** add all feature samples ([#980](https://github.com/googleapis/java-aiplatform/issues/980)) ([a932cf8](https://github.com/googleapis/java-aiplatform/commit/a932cf813708d23a1cc4adb4d383f66cdb7c9801)) +* **samples:** add all feature values samples ([#981](https://github.com/googleapis/java-aiplatform/issues/981)) ([818acab](https://github.com/googleapis/java-aiplatform/commit/818acab3e0186ceaea2032b9f04ca9b47e8f753e)) + + +### Bug Fixes + +* declaring test-scope artifact as runtime ([#1014](https://github.com/googleapis/java-aiplatform/issues/1014)) ([f90cc12](https://github.com/googleapis/java-aiplatform/commit/f90cc12441d31fa9b17806824003f9adc2604d60)) + + +### Documentation + +* doc edits to aiplatform v1 dataset_service.proto, job_service.proto, model_service.proto, pipeline_service.proto, saved_query.proto, study.proto, types.proto ([3935d8f](https://github.com/googleapis/java-aiplatform/commit/3935d8f04c4585b02f1614149803ef8eed87d4e2)) +* doc edits to aiplatform v1beta1 job_service.proto, model_service.proto, pipeline_service.proto, saved_query.proto, study.proto, types.proto ([3935d8f](https://github.com/googleapis/java-aiplatform/commit/3935d8f04c4585b02f1614149803ef8eed87d4e2)) + + +### Dependencies + +* update dependency com.google.api.grpc:proto-google-cloud-aiplatform-v1beta1 to v0.17.0 ([#1003](https://github.com/googleapis/java-aiplatform/issues/1003)) ([c2b98d9](https://github.com/googleapis/java-aiplatform/commit/c2b98d9d1c4bb896590eacb38ed5193d1e507b26)) +* update dependency com.google.cloud:google-cloud-bigquery to v2.14.1 ([#1006](https://github.com/googleapis/java-aiplatform/issues/1006)) ([2c959b9](https://github.com/googleapis/java-aiplatform/commit/2c959b9d72bcfe69d6429a6f9a6d0f145a2fe022)) +* update dependency com.google.cloud:google-cloud-bigquery to v2.14.3 ([#1009](https://github.com/googleapis/java-aiplatform/issues/1009)) ([b170504](https://github.com/googleapis/java-aiplatform/commit/b1705042c34be9c41125de8671339ebec7ceac86)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#1000](https://github.com/googleapis/java-aiplatform/issues/1000)) ([6fb1534](https://github.com/googleapis/java-aiplatform/commit/6fb1534896ef3e7ec66575a92e7a8d2b2f97912b)) +* update dependency com.google.cloud:google-cloud-storage to v2.10.0 ([#1004](https://github.com/googleapis/java-aiplatform/issues/1004)) ([b6e2ab4](https://github.com/googleapis/java-aiplatform/commit/b6e2ab4fb4c169b4e31ecfec01765db94916f739)) +* update dependency com.google.cloud:google-cloud-storage to v2.11.0 ([#1005](https://github.com/googleapis/java-aiplatform/issues/1005)) ([26391a3](https://github.com/googleapis/java-aiplatform/commit/26391a3ebfb87163a3054207fc7cf337c2eb5fa0)) +* update dependency com.google.cloud:google-cloud-storage to v2.11.1 ([#1008](https://github.com/googleapis/java-aiplatform/issues/1008)) ([cba42d1](https://github.com/googleapis/java-aiplatform/commit/cba42d176e36ee2dd704efd91b4cb57029154863)) +* update dependency com.google.cloud:google-cloud-storage to v2.11.2 ([#1010](https://github.com/googleapis/java-aiplatform/issues/1010)) ([4f35eed](https://github.com/googleapis/java-aiplatform/commit/4f35eedfd485674f6e25bf92e0ad8d7c70777e1a)) +* update dependency com.google.code.gson:gson to v2.9.1 ([#1001](https://github.com/googleapis/java-aiplatform/issues/1001)) ([f12c313](https://github.com/googleapis/java-aiplatform/commit/f12c313505552a93db12c6f6d4c7986b34650069)) + ## [3.1.0](https://github.com/googleapis/java-aiplatform/compare/v3.0.0...v3.1.0) (2022-07-13) diff --git a/google-cloud-aiplatform-bom/pom.xml b/google-cloud-aiplatform-bom/pom.xml index 59e16cc79..9de136298 100644 --- a/google-cloud-aiplatform-bom/pom.xml +++ b/google-cloud-aiplatform-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-aiplatform-bom - 3.1.1-SNAPSHOT + 3.2.0 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.cloud google-cloud-aiplatform - 3.1.1-SNAPSHOT + 3.2.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.1.1-SNAPSHOT + 3.2.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.17.1-SNAPSHOT + 0.18.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.1.1-SNAPSHOT + 3.2.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.17.1-SNAPSHOT + 0.18.0 diff --git a/google-cloud-aiplatform/pom.xml b/google-cloud-aiplatform/pom.xml index b137684be..6f4d367f6 100644 --- a/google-cloud-aiplatform/pom.xml +++ b/google-cloud-aiplatform/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-aiplatform - 3.1.1-SNAPSHOT + 3.2.0 jar Google Cloud Vertex AI https://github.com/googleapis/java-aiplatform @@ -11,7 +11,7 @@ com.google.cloud google-cloud-aiplatform-parent - 3.1.1-SNAPSHOT + 3.2.0 google-cloud-aiplatform diff --git a/grpc-google-cloud-aiplatform-v1/pom.xml b/grpc-google-cloud-aiplatform-v1/pom.xml index 528ba33ff..6da0b45cd 100644 --- a/grpc-google-cloud-aiplatform-v1/pom.xml +++ b/grpc-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.1.1-SNAPSHOT + 3.2.0 grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.1.1-SNAPSHOT + 3.2.0 diff --git a/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/grpc-google-cloud-aiplatform-v1beta1/pom.xml index 7f5adc24a..6eb70e6e7 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/pom.xml +++ b/grpc-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.17.1-SNAPSHOT + 0.18.0 grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.1.1-SNAPSHOT + 3.2.0 diff --git a/pom.xml b/pom.xml index eb11a410c..f4ae39d65 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-aiplatform-parent pom - 3.1.1-SNAPSHOT + 3.2.0 Google Cloud Vertex AI Parent https://github.com/googleapis/java- @@ -61,27 +61,27 @@ com.google.cloud google-cloud-aiplatform - 3.1.1-SNAPSHOT + 3.2.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.1.1-SNAPSHOT + 3.2.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.17.1-SNAPSHOT + 0.18.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.1.1-SNAPSHOT + 3.2.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.17.1-SNAPSHOT + 0.18.0 com.google.cloud diff --git a/proto-google-cloud-aiplatform-v1/pom.xml b/proto-google-cloud-aiplatform-v1/pom.xml index e02bb60db..d0e780b63 100644 --- a/proto-google-cloud-aiplatform-v1/pom.xml +++ b/proto-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.1.1-SNAPSHOT + 3.2.0 proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.1.1-SNAPSHOT + 3.2.0 diff --git a/proto-google-cloud-aiplatform-v1beta1/pom.xml b/proto-google-cloud-aiplatform-v1beta1/pom.xml index 4e19d77d5..86b21e12f 100644 --- a/proto-google-cloud-aiplatform-v1beta1/pom.xml +++ b/proto-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.17.1-SNAPSHOT + 0.18.0 proto-google-cloud-aiplatform-v1beta1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.1.1-SNAPSHOT + 3.2.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1848f1031..9342ad131 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-aiplatform - 3.1.1-SNAPSHOT + 3.2.0 diff --git a/versions.txt b/versions.txt index c2ee8f8a4..b551c91c2 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-aiplatform:3.1.0:3.1.1-SNAPSHOT -grpc-google-cloud-aiplatform-v1:3.1.0:3.1.1-SNAPSHOT -grpc-google-cloud-aiplatform-v1beta1:0.17.0:0.17.1-SNAPSHOT -proto-google-cloud-aiplatform-v1:3.1.0:3.1.1-SNAPSHOT -proto-google-cloud-aiplatform-v1beta1:0.17.0:0.17.1-SNAPSHOT +google-cloud-aiplatform:3.2.0:3.2.0 +grpc-google-cloud-aiplatform-v1:3.2.0:3.2.0 +grpc-google-cloud-aiplatform-v1beta1:0.18.0:0.18.0 +proto-google-cloud-aiplatform-v1:3.2.0:3.2.0 +proto-google-cloud-aiplatform-v1beta1:0.18.0:0.18.0