diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 42eb30bf1f09..b0acc7482985 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.20.0 + 26.22.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java index d25f1bfe6f0d..62b137965e13 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ScheduleServiceClient.java @@ -1092,8 +1092,9 @@ public final UnaryCallable resumeScheduleCallable( * } * * @param schedule Required. The Schedule which replaces the resource on the server. The following - * restrictions will be applied: * The scheduled request type cannot be changed. * The - * output_only fields will be ignored if specified. + * restrictions will be applied: + *

* The scheduled request type cannot be changed. * The non-empty fields cannot be + * unset. * The output_only fields will be ignored if specified. * @param updateMask Required. The update mask applies to the resource. See * [google.protobuf.FieldMask][google.protobuf.FieldMask]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java index 48773fa76e8e..9f25b53d725c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java @@ -1025,6 +1025,126 @@ public final ReadTensorboardUsageResponse readTensorboardUsage( return stub.readTensorboardUsageCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the storage size for a given TensorBoard instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   TensorboardName tensorboard = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
+   *   ReadTensorboardSizeResponse response =
+   *       tensorboardServiceClient.readTensorboardSize(tensorboard);
+   * }
+   * }
+ * + * @param tensorboard Required. The name of the Tensorboard resource. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReadTensorboardSizeResponse readTensorboardSize(TensorboardName tensorboard) { + ReadTensorboardSizeRequest request = + ReadTensorboardSizeRequest.newBuilder() + .setTensorboard(tensorboard == null ? null : tensorboard.toString()) + .build(); + return readTensorboardSize(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the storage size for a given TensorBoard instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   String tensorboard =
+   *       TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString();
+   *   ReadTensorboardSizeResponse response =
+   *       tensorboardServiceClient.readTensorboardSize(tensorboard);
+   * }
+   * }
+ * + * @param tensorboard Required. The name of the Tensorboard resource. Format: + * `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReadTensorboardSizeResponse readTensorboardSize(String tensorboard) { + ReadTensorboardSizeRequest request = + ReadTensorboardSizeRequest.newBuilder().setTensorboard(tensorboard).build(); + return readTensorboardSize(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the storage size for a given TensorBoard instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ReadTensorboardSizeRequest request =
+   *       ReadTensorboardSizeRequest.newBuilder()
+   *           .setTensorboard(
+   *               TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .build();
+   *   ReadTensorboardSizeResponse response = tensorboardServiceClient.readTensorboardSize(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 ReadTensorboardSizeResponse readTensorboardSize(ReadTensorboardSizeRequest request) { + return readTensorboardSizeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the storage size for a given TensorBoard instance. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) {
+   *   ReadTensorboardSizeRequest request =
+   *       ReadTensorboardSizeRequest.newBuilder()
+   *           .setTensorboard(
+   *               TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       tensorboardServiceClient.readTensorboardSizeCallable().futureCall(request);
+   *   // Do something.
+   *   ReadTensorboardSizeResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + readTensorboardSizeCallable() { + return stub.readTensorboardSizeCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a TensorboardExperiment. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java index 02a5f793848e..070310c699ee 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceSettings.java @@ -149,6 +149,12 @@ public UnaryCallSettings deleteTensorboardS return ((TensorboardServiceStubSettings) getStubSettings()).readTensorboardUsageSettings(); } + /** Returns the object with the settings used for calls to readTensorboardSize. */ + public UnaryCallSettings + readTensorboardSizeSettings() { + return ((TensorboardServiceStubSettings) getStubSettings()).readTensorboardSizeSettings(); + } + /** Returns the object with the settings used for calls to createTensorboardExperiment. */ public UnaryCallSettings createTensorboardExperimentSettings() { @@ -514,6 +520,12 @@ public UnaryCallSettings.Builder getTensorbo return getStubSettingsBuilder().readTensorboardUsageSettings(); } + /** Returns the builder for the settings used for calls to readTensorboardSize. */ + public UnaryCallSettings.Builder + readTensorboardSizeSettings() { + return getStubSettingsBuilder().readTensorboardSizeSettings(); + } + /** Returns the builder for the settings used for calls to createTensorboardExperiment. */ public UnaryCallSettings.Builder createTensorboardExperimentSettings() { diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json index 5da5ca02aa3c..a74127fe79f0 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json @@ -994,6 +994,9 @@ "ReadTensorboardBlobData": { "methods": ["readTensorboardBlobDataCallable"] }, + "ReadTensorboardSize": { + "methods": ["readTensorboardSize", "readTensorboardSize", "readTensorboardSize", "readTensorboardSizeCallable"] + }, "ReadTensorboardTimeSeriesData": { "methods": ["readTensorboardTimeSeriesData", "readTensorboardTimeSeriesData", "readTensorboardTimeSeriesData", "readTensorboardTimeSeriesDataCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceStub.java index 3263cac681b9..56c06119243e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcTensorboardServiceStub.java @@ -64,6 +64,8 @@ import com.google.cloud.aiplatform.v1.ListTensorboardsResponse; import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; +import com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest; +import com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse; import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; import com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest; @@ -170,6 +172,18 @@ public class GrpcTensorboardServiceStub extends TensorboardServiceStub { ProtoUtils.marshaller(ReadTensorboardUsageResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + readTensorboardSizeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.TensorboardService/ReadTensorboardSize") + .setRequestMarshaller( + ProtoUtils.marshaller(ReadTensorboardSizeRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ReadTensorboardSizeResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor createTensorboardExperimentMethodDescriptor = MethodDescriptor.newBuilder() @@ -536,6 +550,8 @@ public class GrpcTensorboardServiceStub extends TensorboardServiceStub { deleteTensorboardOperationCallable; private final UnaryCallable readTensorboardUsageCallable; + private final UnaryCallable + readTensorboardSizeCallable; private final UnaryCallable createTensorboardExperimentCallable; private final UnaryCallable @@ -721,6 +737,17 @@ protected GrpcTensorboardServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + readTensorboardSizeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(readTensorboardSizeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("tensorboard", String.valueOf(request.getTensorboard())); + return builder.build(); + }) + .build(); GrpcCallSettings createTensorboardExperimentTransportSettings = GrpcCallSettings.newBuilder() @@ -1102,6 +1129,11 @@ protected GrpcTensorboardServiceStub( readTensorboardUsageTransportSettings, settings.readTensorboardUsageSettings(), clientContext); + this.readTensorboardSizeCallable = + callableFactory.createUnaryCallable( + readTensorboardSizeTransportSettings, + settings.readTensorboardSizeSettings(), + clientContext); this.createTensorboardExperimentCallable = callableFactory.createUnaryCallable( createTensorboardExperimentTransportSettings, @@ -1342,6 +1374,12 @@ public UnaryCallable deleteTensorboardCalla return readTensorboardUsageCallable; } + @Override + public UnaryCallable + readTensorboardSizeCallable() { + return readTensorboardSizeCallable; + } + @Override public UnaryCallable createTensorboardExperimentCallable() { diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java index bd7ca44656ed..56c2df3e9ab1 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStub.java @@ -59,6 +59,8 @@ import com.google.cloud.aiplatform.v1.ListTensorboardsResponse; import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; +import com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest; +import com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse; import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; import com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest; @@ -154,6 +156,11 @@ public UnaryCallable deleteTensorboardCalla throw new UnsupportedOperationException("Not implemented: readTensorboardUsageCallable()"); } + public UnaryCallable + readTensorboardSizeCallable() { + throw new UnsupportedOperationException("Not implemented: readTensorboardSizeCallable()"); + } + public UnaryCallable createTensorboardExperimentCallable() { throw new UnsupportedOperationException( diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java index b9ae6dd8ad4b..2c74718fc81b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/TensorboardServiceStubSettings.java @@ -82,6 +82,8 @@ import com.google.cloud.aiplatform.v1.ListTensorboardsResponse; import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; import com.google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; +import com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest; +import com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse; import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; import com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; import com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest; @@ -184,6 +186,8 @@ public class TensorboardServiceStubSettings extends StubSettings readTensorboardUsageSettings; + private final UnaryCallSettings + readTensorboardSizeSettings; private final UnaryCallSettings createTensorboardExperimentSettings; private final UnaryCallSettings @@ -725,6 +729,12 @@ public UnaryCallSettings deleteTensorboardS return readTensorboardUsageSettings; } + /** Returns the object with the settings used for calls to readTensorboardSize. */ + public UnaryCallSettings + readTensorboardSizeSettings() { + return readTensorboardSizeSettings; + } + /** Returns the object with the settings used for calls to createTensorboardExperiment. */ public UnaryCallSettings createTensorboardExperimentSettings() { @@ -1008,6 +1018,7 @@ protected TensorboardServiceStubSettings(Builder settingsBuilder) throws IOExcep deleteTensorboardOperationSettings = settingsBuilder.deleteTensorboardOperationSettings().build(); readTensorboardUsageSettings = settingsBuilder.readTensorboardUsageSettings().build(); + readTensorboardSizeSettings = settingsBuilder.readTensorboardSizeSettings().build(); createTensorboardExperimentSettings = settingsBuilder.createTensorboardExperimentSettings().build(); getTensorboardExperimentSettings = settingsBuilder.getTensorboardExperimentSettings().build(); @@ -1084,6 +1095,8 @@ public static class Builder private final UnaryCallSettings.Builder< ReadTensorboardUsageRequest, ReadTensorboardUsageResponse> readTensorboardUsageSettings; + private final UnaryCallSettings.Builder + readTensorboardSizeSettings; private final UnaryCallSettings.Builder< CreateTensorboardExperimentRequest, TensorboardExperiment> createTensorboardExperimentSettings; @@ -1206,6 +1219,7 @@ protected Builder(ClientContext clientContext) { deleteTensorboardSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteTensorboardOperationSettings = OperationCallSettings.newBuilder(); readTensorboardUsageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + readTensorboardSizeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createTensorboardExperimentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getTensorboardExperimentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateTensorboardExperimentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1250,6 +1264,7 @@ protected Builder(ClientContext clientContext) { listTensorboardsSettings, deleteTensorboardSettings, readTensorboardUsageSettings, + readTensorboardSizeSettings, createTensorboardExperimentSettings, getTensorboardExperimentSettings, updateTensorboardExperimentSettings, @@ -1292,6 +1307,7 @@ protected Builder(TensorboardServiceStubSettings settings) { deleteTensorboardSettings = settings.deleteTensorboardSettings.toBuilder(); deleteTensorboardOperationSettings = settings.deleteTensorboardOperationSettings.toBuilder(); readTensorboardUsageSettings = settings.readTensorboardUsageSettings.toBuilder(); + readTensorboardSizeSettings = settings.readTensorboardSizeSettings.toBuilder(); createTensorboardExperimentSettings = settings.createTensorboardExperimentSettings.toBuilder(); getTensorboardExperimentSettings = settings.getTensorboardExperimentSettings.toBuilder(); @@ -1346,6 +1362,7 @@ protected Builder(TensorboardServiceStubSettings settings) { listTensorboardsSettings, deleteTensorboardSettings, readTensorboardUsageSettings, + readTensorboardSizeSettings, createTensorboardExperimentSettings, getTensorboardExperimentSettings, updateTensorboardExperimentSettings, @@ -1419,6 +1436,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .readTensorboardSizeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createTensorboardExperimentSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1787,6 +1809,12 @@ public UnaryCallSettings.Builder getTensorbo return readTensorboardUsageSettings; } + /** Returns the builder for the settings used for calls to readTensorboardSize. */ + public UnaryCallSettings.Builder + readTensorboardSizeSettings() { + return readTensorboardSizeSettings; + } + /** Returns the builder for the settings used for calls to createTensorboardExperiment. */ public UnaryCallSettings.Builder createTensorboardExperimentSettings() { diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClient.java index c5bcc0afd9e5..abebc95b4bc7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClient.java @@ -42,6 +42,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -193,7 +194,7 @@ public final OperationsClient getOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into Vertex AI. + * Creates a PersistentResource. * *

Sample code: * @@ -238,7 +239,7 @@ public final OperationsClient getOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into Vertex AI. + * Creates a PersistentResource. * *

Sample code: * @@ -283,7 +284,7 @@ public final OperationsClient getOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into Vertex AI. + * Creates a PersistentResource. * *

Sample code: * @@ -316,7 +317,7 @@ public final OperationsClient getOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into Vertex AI. + * Creates a PersistentResource. * *

Sample code: * @@ -353,7 +354,7 @@ public final OperationsClient getOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Uploads a Model artifact into Vertex AI. + * Creates a PersistentResource. * *

Sample code: * @@ -848,6 +849,146 @@ public final OperationFuture deletePersistentRes return stub.deletePersistentResourceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a PersistentResource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PersistentResourceServiceClient persistentResourceServiceClient =
+   *     PersistentResourceServiceClient.create()) {
+   *   PersistentResource persistentResource = PersistentResource.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   PersistentResource response =
+   *       persistentResourceServiceClient
+   *           .updatePersistentResourceAsync(persistentResource, updateMask)
+   *           .get();
+   * }
+   * }
+ * + * @param persistentResource Required. The PersistentResource to update. + *

The PersistentResource's `name` field is used to identify the PersistentResource to + * update. Format: + * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` + * @param updateMask Required. Specify the fields to be overwritten in the PersistentResource by + * the update method. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updatePersistentResourceAsync(PersistentResource persistentResource, FieldMask updateMask) { + UpdatePersistentResourceRequest request = + UpdatePersistentResourceRequest.newBuilder() + .setPersistentResource(persistentResource) + .setUpdateMask(updateMask) + .build(); + return updatePersistentResourceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a PersistentResource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PersistentResourceServiceClient persistentResourceServiceClient =
+   *     PersistentResourceServiceClient.create()) {
+   *   UpdatePersistentResourceRequest request =
+   *       UpdatePersistentResourceRequest.newBuilder()
+   *           .setPersistentResource(PersistentResource.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   PersistentResource response =
+   *       persistentResourceServiceClient.updatePersistentResourceAsync(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 + updatePersistentResourceAsync(UpdatePersistentResourceRequest request) { + return updatePersistentResourceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a PersistentResource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PersistentResourceServiceClient persistentResourceServiceClient =
+   *     PersistentResourceServiceClient.create()) {
+   *   UpdatePersistentResourceRequest request =
+   *       UpdatePersistentResourceRequest.newBuilder()
+   *           .setPersistentResource(PersistentResource.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       persistentResourceServiceClient
+   *           .updatePersistentResourceOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   PersistentResource response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdatePersistentResourceRequest, + PersistentResource, + UpdatePersistentResourceOperationMetadata> + updatePersistentResourceOperationCallable() { + return stub.updatePersistentResourceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a PersistentResource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PersistentResourceServiceClient persistentResourceServiceClient =
+   *     PersistentResourceServiceClient.create()) {
+   *   UpdatePersistentResourceRequest request =
+   *       UpdatePersistentResourceRequest.newBuilder()
+   *           .setPersistentResource(PersistentResource.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       persistentResourceServiceClient.updatePersistentResourceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updatePersistentResourceCallable() { + return stub.updatePersistentResourceCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceSettings.java index c5cb7c9c8067..709708be13a7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceSettings.java @@ -138,6 +138,23 @@ public class PersistentResourceServiceSettings .deletePersistentResourceOperationSettings(); } + /** Returns the object with the settings used for calls to updatePersistentResource. */ + public UnaryCallSettings + updatePersistentResourceSettings() { + return ((PersistentResourceServiceStubSettings) getStubSettings()) + .updatePersistentResourceSettings(); + } + + /** Returns the object with the settings used for calls to updatePersistentResource. */ + public OperationCallSettings< + UpdatePersistentResourceRequest, + PersistentResource, + UpdatePersistentResourceOperationMetadata> + updatePersistentResourceOperationSettings() { + return ((PersistentResourceServiceStubSettings) getStubSettings()) + .updatePersistentResourceOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -306,6 +323,21 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().deletePersistentResourceOperationSettings(); } + /** Returns the builder for the settings used for calls to updatePersistentResource. */ + public UnaryCallSettings.Builder + updatePersistentResourceSettings() { + return getStubSettingsBuilder().updatePersistentResourceSettings(); + } + + /** Returns the builder for the settings used for calls to updatePersistentResource. */ + public OperationCallSettings.Builder< + UpdatePersistentResourceRequest, + PersistentResource, + UpdatePersistentResourceOperationMetadata> + updatePersistentResourceOperationSettings() { + return getStubSettingsBuilder().updatePersistentResourceOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java index 7aaa6a7d84a6..3a5dca525547 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java @@ -788,6 +788,138 @@ public final UnaryCallable explainCallable() { return stub.explainCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Perform a token counting. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   EndpointName endpoint =
+   *       EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
+   *   List instances = new ArrayList<>();
+   *   CountTokensResponse response = predictionServiceClient.countTokens(endpoint, instances);
+   * }
+   * }
+ * + * @param endpoint Required. The name of the Endpoint requested to perform token counting. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param instances Required. The instances that are the input to token counting call. Schema is + * identical to the prediction schema of the underlying model. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CountTokensResponse countTokens(EndpointName endpoint, List instances) { + CountTokensRequest request = + CountTokensRequest.newBuilder() + .setEndpoint(endpoint == null ? null : endpoint.toString()) + .addAllInstances(instances) + .build(); + return countTokens(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Perform a token counting. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   String endpoint =
+   *       EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *           .toString();
+   *   List instances = new ArrayList<>();
+   *   CountTokensResponse response = predictionServiceClient.countTokens(endpoint, instances);
+   * }
+   * }
+ * + * @param endpoint Required. The name of the Endpoint requested to perform token counting. Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param instances Required. The instances that are the input to token counting call. Schema is + * identical to the prediction schema of the underlying model. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CountTokensResponse countTokens(String endpoint, List instances) { + CountTokensRequest request = + CountTokensRequest.newBuilder().setEndpoint(endpoint).addAllInstances(instances).build(); + return countTokens(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Perform a token counting. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   CountTokensRequest request =
+   *       CountTokensRequest.newBuilder()
+   *           .setEndpoint(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllInstances(new ArrayList())
+   *           .build();
+   *   CountTokensResponse response = predictionServiceClient.countTokens(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 CountTokensResponse countTokens(CountTokensRequest request) { + return countTokensCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Perform a token counting. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   CountTokensRequest request =
+   *       CountTokensRequest.newBuilder()
+   *           .setEndpoint(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllInstances(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       predictionServiceClient.countTokensCallable().futureCall(request);
+   *   // Do something.
+   *   CountTokensResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable countTokensCallable() { + return stub.countTokensCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java index 0e66b3f7b2f2..f4b1f200ae23 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java @@ -107,6 +107,11 @@ public UnaryCallSettings explainSettings() { return ((PredictionServiceStubSettings) getStubSettings()).explainSettings(); } + /** Returns the object with the settings used for calls to countTokens. */ + public UnaryCallSettings countTokensSettings() { + return ((PredictionServiceStubSettings) getStubSettings()).countTokensSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -252,6 +257,12 @@ public UnaryCallSettings.Builder explainSetting return getStubSettingsBuilder().explainSettings(); } + /** Returns the builder for the settings used for calls to countTokens. */ + public UnaryCallSettings.Builder + countTokensSettings() { + return getStubSettingsBuilder().countTokensSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceClient.java index f43c02c51e7f..91accf003c6f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleServiceClient.java @@ -1096,8 +1096,9 @@ public final UnaryCallable resumeScheduleCallable( * } * * @param schedule Required. The Schedule which replaces the resource on the server. The following - * restrictions will be applied: * The scheduled request type cannot be changed. * The - * output_only fields will be ignored if specified. + * restrictions will be applied: + *

* The scheduled request type cannot be changed. * The non-empty fields cannot be + * unset. * The output_only fields will be ignored if specified. * @param updateMask Required. The update mask applies to the resource. See * [google.protobuf.FieldMask][google.protobuf.FieldMask]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index 3b929884e456..9d95651d7f78 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -813,6 +813,9 @@ }, "TestIamPermissions": { "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdatePersistentResource": { + "methods": ["updatePersistentResourceAsync", "updatePersistentResourceAsync", "updatePersistentResourceOperationCallable", "updatePersistentResourceCallable"] } } } @@ -877,6 +880,9 @@ "grpc": { "libraryClient": "PredictionServiceClient", "rpcs": { + "CountTokens": { + "methods": ["countTokens", "countTokens", "countTokens", "countTokensCallable"] + }, "Explain": { "methods": ["explain", "explain", "explain", "explainCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPersistentResourceServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPersistentResourceServiceStub.java index 68e4df698b09..ea5f8bcab5b7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPersistentResourceServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPersistentResourceServiceStub.java @@ -36,6 +36,8 @@ import com.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest; import com.google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse; import com.google.cloud.aiplatform.v1beta1.PersistentResource; +import com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -110,6 +112,17 @@ public class GrpcPersistentResourceServiceStub extends PersistentResourceService .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + updatePersistentResourceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.PersistentResourceService/UpdatePersistentResource") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdatePersistentResourceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -173,6 +186,13 @@ public class GrpcPersistentResourceServiceStub extends PersistentResourceService deletePersistentResourceCallable; private final OperationCallable deletePersistentResourceOperationCallable; + private final UnaryCallable + updatePersistentResourceCallable; + private final OperationCallable< + UpdatePersistentResourceRequest, + PersistentResource, + UpdatePersistentResourceOperationMetadata> + updatePersistentResourceOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -272,6 +292,19 @@ protected GrpcPersistentResourceServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + updatePersistentResourceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updatePersistentResourceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "persistent_resource.name", + String.valueOf(request.getPersistentResource().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -361,6 +394,17 @@ protected GrpcPersistentResourceServiceStub( settings.deletePersistentResourceOperationSettings(), clientContext, operationsStub); + this.updatePersistentResourceCallable = + callableFactory.createUnaryCallable( + updatePersistentResourceTransportSettings, + settings.updatePersistentResourceSettings(), + clientContext); + this.updatePersistentResourceOperationCallable = + callableFactory.createOperationCallable( + updatePersistentResourceTransportSettings, + settings.updatePersistentResourceOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -435,6 +479,21 @@ public GrpcOperationsStub getOperationsStub() { return deletePersistentResourceOperationCallable; } + @Override + public UnaryCallable + updatePersistentResourceCallable() { + return updatePersistentResourceCallable; + } + + @Override + public OperationCallable< + UpdatePersistentResourceRequest, + PersistentResource, + UpdatePersistentResourceOperationMetadata> + updatePersistentResourceOperationCallable() { + return updatePersistentResourceOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java index c77591394a8f..3643d05aeb31 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java @@ -28,6 +28,8 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.CountTokensRequest; +import com.google.cloud.aiplatform.v1beta1.CountTokensResponse; import com.google.cloud.aiplatform.v1beta1.ExplainRequest; import com.google.cloud.aiplatform.v1beta1.ExplainResponse; import com.google.cloud.aiplatform.v1beta1.PredictRequest; @@ -96,6 +98,16 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(ExplainResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + countTokensMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.PredictionService/CountTokens") + .setRequestMarshaller(ProtoUtils.marshaller(CountTokensRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CountTokensResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -147,6 +159,7 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub { private final ServerStreamingCallable serverStreamingPredictCallable; private final UnaryCallable explainCallable; + private final UnaryCallable countTokensCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -241,6 +254,16 @@ protected GrpcPredictionServiceStub( return builder.build(); }) .build(); + GrpcCallSettings countTokensTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(countTokensMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("endpoint", String.valueOf(request.getEndpoint())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -307,6 +330,9 @@ protected GrpcPredictionServiceStub( this.explainCallable = callableFactory.createUnaryCallable( explainTransportSettings, settings.explainSettings(), clientContext); + this.countTokensCallable = + callableFactory.createUnaryCallable( + countTokensTransportSettings, settings.countTokensSettings(), clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -357,6 +383,11 @@ public UnaryCallable explainCallable() { return explainCallable; } + @Override + public UnaryCallable countTokensCallable() { + return countTokensCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStub.java index 9f89edd19967..1e6ba247b98c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStub.java @@ -31,6 +31,8 @@ import com.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest; import com.google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse; import com.google.cloud.aiplatform.v1beta1.PersistentResource; +import com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -100,6 +102,20 @@ public OperationsStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: deletePersistentResourceCallable()"); } + public OperationCallable< + UpdatePersistentResourceRequest, + PersistentResource, + UpdatePersistentResourceOperationMetadata> + updatePersistentResourceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updatePersistentResourceOperationCallable()"); + } + + public UnaryCallable + updatePersistentResourceCallable() { + throw new UnsupportedOperationException("Not implemented: updatePersistentResourceCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStubSettings.java index d7bdc1e52c18..cd093bed7bf2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PersistentResourceServiceStubSettings.java @@ -53,6 +53,8 @@ import com.google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest; import com.google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse; import com.google.cloud.aiplatform.v1beta1.PersistentResource; +import com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -138,6 +140,13 @@ public class PersistentResourceServiceStubSettings private final OperationCallSettings< DeletePersistentResourceRequest, Empty, DeleteOperationMetadata> deletePersistentResourceOperationSettings; + private final UnaryCallSettings + updatePersistentResourceSettings; + private final OperationCallSettings< + UpdatePersistentResourceRequest, + PersistentResource, + UpdatePersistentResourceOperationMetadata> + updatePersistentResourceOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -314,6 +323,21 @@ public ApiFuture getFuturePagedResponse( return deletePersistentResourceOperationSettings; } + /** Returns the object with the settings used for calls to updatePersistentResource. */ + public UnaryCallSettings + updatePersistentResourceSettings() { + return updatePersistentResourceSettings; + } + + /** Returns the object with the settings used for calls to updatePersistentResource. */ + public OperationCallSettings< + UpdatePersistentResourceRequest, + PersistentResource, + UpdatePersistentResourceOperationMetadata> + updatePersistentResourceOperationSettings() { + return updatePersistentResourceOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -424,6 +448,9 @@ protected PersistentResourceServiceStubSettings(Builder settingsBuilder) throws deletePersistentResourceSettings = settingsBuilder.deletePersistentResourceSettings().build(); deletePersistentResourceOperationSettings = settingsBuilder.deletePersistentResourceOperationSettings().build(); + updatePersistentResourceSettings = settingsBuilder.updatePersistentResourceSettings().build(); + updatePersistentResourceOperationSettings = + settingsBuilder.updatePersistentResourceOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -454,6 +481,13 @@ public static class Builder private final OperationCallSettings.Builder< DeletePersistentResourceRequest, Empty, DeleteOperationMetadata> deletePersistentResourceOperationSettings; + private final UnaryCallSettings.Builder + updatePersistentResourceSettings; + private final OperationCallSettings.Builder< + UpdatePersistentResourceRequest, + PersistentResource, + UpdatePersistentResourceOperationMetadata> + updatePersistentResourceOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -496,6 +530,8 @@ protected Builder(ClientContext clientContext) { PagedCallSettings.newBuilder(LIST_PERSISTENT_RESOURCES_PAGE_STR_FACT); deletePersistentResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deletePersistentResourceOperationSettings = OperationCallSettings.newBuilder(); + updatePersistentResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updatePersistentResourceOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -508,6 +544,7 @@ protected Builder(ClientContext clientContext) { getPersistentResourceSettings, listPersistentResourcesSettings, deletePersistentResourceSettings, + updatePersistentResourceSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -527,6 +564,9 @@ protected Builder(PersistentResourceServiceStubSettings settings) { deletePersistentResourceSettings = settings.deletePersistentResourceSettings.toBuilder(); deletePersistentResourceOperationSettings = settings.deletePersistentResourceOperationSettings.toBuilder(); + updatePersistentResourceSettings = settings.updatePersistentResourceSettings.toBuilder(); + updatePersistentResourceOperationSettings = + settings.updatePersistentResourceOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -539,6 +579,7 @@ protected Builder(PersistentResourceServiceStubSettings settings) { getPersistentResourceSettings, listPersistentResourcesSettings, deletePersistentResourceSettings, + updatePersistentResourceSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -580,6 +621,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .updatePersistentResourceSettings() + .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")) @@ -654,6 +700,31 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .updatePersistentResourceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(PersistentResource.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdatePersistentResourceOperationMetadata.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; } @@ -719,6 +790,23 @@ public Builder applyToAllUnaryMethods( return deletePersistentResourceOperationSettings; } + /** Returns the builder for the settings used for calls to updatePersistentResource. */ + public UnaryCallSettings.Builder + updatePersistentResourceSettings() { + return updatePersistentResourceSettings; + } + + /** Returns the builder for the settings used for calls to updatePersistentResource. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdatePersistentResourceRequest, + PersistentResource, + UpdatePersistentResourceOperationMetadata> + updatePersistentResourceOperationSettings() { + return updatePersistentResourceOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java index c2388ddad848..750e8b01f852 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java @@ -23,6 +23,8 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.CountTokensRequest; +import com.google.cloud.aiplatform.v1beta1.CountTokensResponse; import com.google.cloud.aiplatform.v1beta1.ExplainRequest; import com.google.cloud.aiplatform.v1beta1.ExplainResponse; import com.google.cloud.aiplatform.v1beta1.PredictRequest; @@ -68,6 +70,10 @@ public UnaryCallable explainCallable() { throw new UnsupportedOperationException("Not implemented: explainCallable()"); } + public UnaryCallable countTokensCallable() { + throw new UnsupportedOperationException("Not implemented: countTokensCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java index a1fcb28b355e..4ffe5807d542 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java @@ -42,6 +42,8 @@ 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.CountTokensRequest; +import com.google.cloud.aiplatform.v1beta1.CountTokensResponse; import com.google.cloud.aiplatform.v1beta1.ExplainRequest; import com.google.cloud.aiplatform.v1beta1.ExplainResponse; import com.google.cloud.aiplatform.v1beta1.PredictRequest; @@ -117,6 +119,7 @@ public class PredictionServiceStubSettings extends StubSettings serverStreamingPredictSettings; private final UnaryCallSettings explainSettings; + private final UnaryCallSettings countTokensSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -200,6 +203,11 @@ public UnaryCallSettings explainSettings() { return explainSettings; } + /** Returns the object with the settings used for calls to countTokens. */ + public UnaryCallSettings countTokensSettings() { + return countTokensSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -306,6 +314,7 @@ protected PredictionServiceStubSettings(Builder settingsBuilder) throws IOExcept rawPredictSettings = settingsBuilder.rawPredictSettings().build(); serverStreamingPredictSettings = settingsBuilder.serverStreamingPredictSettings().build(); explainSettings = settingsBuilder.explainSettings().build(); + countTokensSettings = settingsBuilder.countTokensSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -322,6 +331,8 @@ public static class Builder extends StubSettings.Builder serverStreamingPredictSettings; private final UnaryCallSettings.Builder explainSettings; + private final UnaryCallSettings.Builder + countTokensSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -371,6 +382,7 @@ protected Builder(ClientContext clientContext) { rawPredictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); serverStreamingPredictSettings = ServerStreamingCallSettings.newBuilder(); explainSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + countTokensSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -382,6 +394,7 @@ protected Builder(ClientContext clientContext) { predictSettings, rawPredictSettings, explainSettings, + countTokensSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -397,6 +410,7 @@ protected Builder(PredictionServiceStubSettings settings) { rawPredictSettings = settings.rawPredictSettings.toBuilder(); serverStreamingPredictSettings = settings.serverStreamingPredictSettings.toBuilder(); explainSettings = settings.explainSettings.toBuilder(); + countTokensSettings = settings.countTokensSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -408,6 +422,7 @@ protected Builder(PredictionServiceStubSettings settings) { predictSettings, rawPredictSettings, explainSettings, + countTokensSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -449,6 +464,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_9_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_9_params")); + builder + .countTokensSettings() + .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")) @@ -513,6 +533,12 @@ public UnaryCallSettings.Builder explainSetting return explainSettings; } + /** Returns the builder for the settings used for calls to countTokens. */ + public UnaryCallSettings.Builder + countTokensSettings() { + return countTokensSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index 9d64b75a4e9e..ea2e6fd1099b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -1709,6 +1709,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.CreateEndpointOperationMetadata", "queryAllDeclaredConstructors": true, @@ -9656,6 +9674,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest", "queryAllDeclaredConstructors": true, @@ -9854,6 +9908,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index a5b9dd47aa01..15818ca72226 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -1583,6 +1583,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CountTokensRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CountTokensRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CountTokensResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CountTokensResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.CreateArtifactRequest", "queryAllDeclaredConstructors": true, @@ -1709,6 +1745,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata", "queryAllDeclaredConstructors": true, @@ -8936,6 +8990,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.PersistentResource", "queryAllDeclaredConstructors": true, @@ -9494,6 +9566,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PublisherModel$Parent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PublisherModel$Parent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.PublisherModel$ResourceReference", "queryAllDeclaredConstructors": true, @@ -10313,6 +10403,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest", "queryAllDeclaredConstructors": true, @@ -12122,6 +12230,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.UpdateScheduleRequest", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockTensorboardServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockTensorboardServiceImpl.java index fbfd7e3d9596..622c7b8a0449 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockTensorboardServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockTensorboardServiceImpl.java @@ -186,6 +186,28 @@ public void readTensorboardUsage( } } + @Override + public void readTensorboardSize( + ReadTensorboardSizeRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReadTensorboardSizeResponse) { + requests.add(request); + responseObserver.onNext(((ReadTensorboardSizeResponse) 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 ReadTensorboardSize, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReadTensorboardSizeResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createTensorboardExperiment( CreateTensorboardExperimentRequest request, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java index 30a01b9d6735..3c293f7a3840 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java @@ -616,6 +616,7 @@ public void createPipelineJobTest() throws Exception { .addAllReservedIpRanges(new ArrayList()) .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) + .setScheduleName("scheduleName1161977282") .build(); mockPipelineService.addResponse(expectedResponse); @@ -677,6 +678,7 @@ public void createPipelineJobTest2() throws Exception { .addAllReservedIpRanges(new ArrayList()) .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) + .setScheduleName("scheduleName1161977282") .build(); mockPipelineService.addResponse(expectedResponse); @@ -738,6 +740,7 @@ public void getPipelineJobTest() throws Exception { .addAllReservedIpRanges(new ArrayList()) .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) + .setScheduleName("scheduleName1161977282") .build(); mockPipelineService.addResponse(expectedResponse); @@ -793,6 +796,7 @@ public void getPipelineJobTest2() throws Exception { .addAllReservedIpRanges(new ArrayList()) .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) + .setScheduleName("scheduleName1161977282") .build(); mockPipelineService.addResponse(expectedResponse); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/TensorboardServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/TensorboardServiceClientTest.java index 4554ab0f49bf..51fc957383d4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/TensorboardServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/TensorboardServiceClientTest.java @@ -637,6 +637,78 @@ public void readTensorboardUsageExceptionTest2() throws Exception { } } + @Test + public void readTensorboardSizeTest() throws Exception { + ReadTensorboardSizeResponse expectedResponse = + ReadTensorboardSizeResponse.newBuilder().setStorageSizeByte(-126045758).build(); + mockTensorboardService.addResponse(expectedResponse); + + TensorboardName tensorboard = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"); + + ReadTensorboardSizeResponse actualResponse = client.readTensorboardSize(tensorboard); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ReadTensorboardSizeRequest actualRequest = ((ReadTensorboardSizeRequest) actualRequests.get(0)); + + Assert.assertEquals(tensorboard.toString(), actualRequest.getTensorboard()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void readTensorboardSizeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + TensorboardName tensorboard = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"); + client.readTensorboardSize(tensorboard); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void readTensorboardSizeTest2() throws Exception { + ReadTensorboardSizeResponse expectedResponse = + ReadTensorboardSizeResponse.newBuilder().setStorageSizeByte(-126045758).build(); + mockTensorboardService.addResponse(expectedResponse); + + String tensorboard = "tensorboard-266431955"; + + ReadTensorboardSizeResponse actualResponse = client.readTensorboardSize(tensorboard); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTensorboardService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ReadTensorboardSizeRequest actualRequest = ((ReadTensorboardSizeRequest) actualRequests.get(0)); + + Assert.assertEquals(tensorboard, actualRequest.getTensorboard()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void readTensorboardSizeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTensorboardService.addException(exception); + + try { + String tensorboard = "tensorboard-266431955"; + client.readTensorboardSize(tensorboard); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createTensorboardExperimentTest() throws Exception { TensorboardExperiment expectedResponse = diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPersistentResourceServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPersistentResourceServiceImpl.java index 39d537230ffd..64258a8aa39e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPersistentResourceServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPersistentResourceServiceImpl.java @@ -143,4 +143,25 @@ public void deletePersistentResource( Exception.class.getName()))); } } + + @Override + public void updatePersistentResource( + UpdatePersistentResourceRequest 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 UpdatePersistentResource, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java index 92d54d08bf5a..ca790501632f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java @@ -139,4 +139,25 @@ public void explain(ExplainRequest request, StreamObserver resp Exception.class.getName()))); } } + + @Override + public void countTokens( + CountTokensRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CountTokensResponse) { + requests.add(request); + responseObserver.onNext(((CountTokensResponse) 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 CountTokens, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CountTokensResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClientTest.java index 668e716eec95..4584f415afb7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClientTest.java @@ -106,6 +106,7 @@ public void getPublisherModelTest() throws Exception { PublisherModel.newBuilder() .setName(PublisherModelName.of("[PUBLISHER]", "[MODEL]").toString()) .setVersionId("versionId-1407102957") + .setParent(PublisherModel.Parent.newBuilder().build()) .setSupportedActions(PublisherModel.CallToAction.newBuilder().build()) .addAllFrameworks(new ArrayList()) .setPublisherModelTemplate("publisherModelTemplate1940757031") @@ -149,6 +150,7 @@ public void getPublisherModelTest2() throws Exception { PublisherModel.newBuilder() .setName(PublisherModelName.of("[PUBLISHER]", "[MODEL]").toString()) .setVersionId("versionId-1407102957") + .setParent(PublisherModel.Parent.newBuilder().build()) .setSupportedActions(PublisherModel.CallToAction.newBuilder().build()) .addAllFrameworks(new ArrayList()) .setPublisherModelTemplate("publisherModelTemplate1940757031") diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClientTest.java index 57edf5b19fc3..59af2ecd6271 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClientTest.java @@ -534,6 +534,71 @@ public void deletePersistentResourceExceptionTest2() throws Exception { } } + @Test + public void updatePersistentResourceTest() throws Exception { + PersistentResource expectedResponse = + PersistentResource.newBuilder() + .setName( + PersistentResourceName.of("[PROJECT]", "[LOCATION]", "[PERSISTENT_RESOURCE]") + .toString()) + .setDisplayName("displayName1714148973") + .addAllResourcePools(new ArrayList()) + .setError(Status.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setNetwork("network1843485230") + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setResourceRuntimeSpec(ResourceRuntimeSpec.newBuilder().build()) + .setResourceRuntime(ResourceRuntime.newBuilder().build()) + .addAllReservedIpRanges(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updatePersistentResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockPersistentResourceService.addResponse(resultOperation); + + PersistentResource persistentResource = PersistentResource.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + PersistentResource actualResponse = + client.updatePersistentResourceAsync(persistentResource, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPersistentResourceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdatePersistentResourceRequest actualRequest = + ((UpdatePersistentResourceRequest) actualRequests.get(0)); + + Assert.assertEquals(persistentResource, actualRequest.getPersistentResource()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updatePersistentResourceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPersistentResourceService.addException(exception); + + try { + PersistentResource persistentResource = PersistentResource.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePersistentResourceAsync(persistentResource, updateMask).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 listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java index c8f00022cbf1..68adddfc5666 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java @@ -616,6 +616,7 @@ public void createPipelineJobTest() throws Exception { .addAllReservedIpRanges(new ArrayList()) .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) + .setScheduleName("scheduleName1161977282") .build(); mockPipelineService.addResponse(expectedResponse); @@ -677,6 +678,7 @@ public void createPipelineJobTest2() throws Exception { .addAllReservedIpRanges(new ArrayList()) .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) + .setScheduleName("scheduleName1161977282") .build(); mockPipelineService.addResponse(expectedResponse); @@ -738,6 +740,7 @@ public void getPipelineJobTest() throws Exception { .addAllReservedIpRanges(new ArrayList()) .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) + .setScheduleName("scheduleName1161977282") .build(); mockPipelineService.addResponse(expectedResponse); @@ -793,6 +796,7 @@ public void getPipelineJobTest2() throws Exception { .addAllReservedIpRanges(new ArrayList()) .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) + .setScheduleName("scheduleName1161977282") .build(); mockPipelineService.addResponse(expectedResponse); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java index 851d67161023..9963aae7dd50 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java @@ -453,6 +453,92 @@ public void explainExceptionTest2() throws Exception { } } + @Test + public void countTokensTest() throws Exception { + CountTokensResponse expectedResponse = + CountTokensResponse.newBuilder() + .setTotalTokens(730673909) + .setTotalBillableCharacters(1242495501) + .build(); + mockPredictionService.addResponse(expectedResponse); + + EndpointName endpoint = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + List instances = new ArrayList<>(); + + CountTokensResponse actualResponse = client.countTokens(endpoint, instances); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPredictionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CountTokensRequest actualRequest = ((CountTokensRequest) actualRequests.get(0)); + + Assert.assertEquals(endpoint.toString(), actualRequest.getEndpoint()); + Assert.assertEquals(instances, actualRequest.getInstancesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void countTokensExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPredictionService.addException(exception); + + try { + EndpointName endpoint = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + List instances = new ArrayList<>(); + client.countTokens(endpoint, instances); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void countTokensTest2() throws Exception { + CountTokensResponse expectedResponse = + CountTokensResponse.newBuilder() + .setTotalTokens(730673909) + .setTotalBillableCharacters(1242495501) + .build(); + mockPredictionService.addResponse(expectedResponse); + + String endpoint = "endpoint1741102485"; + List instances = new ArrayList<>(); + + CountTokensResponse actualResponse = client.countTokens(endpoint, instances); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPredictionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CountTokensRequest actualRequest = ((CountTokensRequest) actualRequests.get(0)); + + Assert.assertEquals(endpoint, actualRequest.getEndpoint()); + Assert.assertEquals(instances, actualRequest.getInstancesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void countTokensExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPredictionService.addException(exception); + + try { + String endpoint = "endpoint1741102485"; + List instances = new ArrayList<>(); + client.countTokens(endpoint, instances); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceGrpc.java index b0043b63ab4f..bdd14aa32fb9 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceGrpc.java @@ -314,6 +314,56 @@ private TensorboardServiceGrpc() {} return getReadTensorboardUsageMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest, + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse> + getReadTensorboardSizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReadTensorboardSize", + requestType = com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest.class, + responseType = com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest, + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse> + getReadTensorboardSizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest, + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse> + getReadTensorboardSizeMethod; + if ((getReadTensorboardSizeMethod = TensorboardServiceGrpc.getReadTensorboardSizeMethod) + == null) { + synchronized (TensorboardServiceGrpc.class) { + if ((getReadTensorboardSizeMethod = TensorboardServiceGrpc.getReadTensorboardSizeMethod) + == null) { + TensorboardServiceGrpc.getReadTensorboardSizeMethod = + getReadTensorboardSizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ReadTensorboardSize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TensorboardServiceMethodDescriptorSupplier("ReadTensorboardSize")) + .build(); + } + } + } + return getReadTensorboardSizeMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest, com.google.cloud.aiplatform.v1.TensorboardExperiment> @@ -1644,6 +1694,21 @@ default void readTensorboardUsage( getReadTensorboardUsageMethod(), responseObserver); } + /** + * + * + *

+     * Returns the storage size for a given TensorBoard instance.
+     * 
+ */ + default void readTensorboardSize( + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReadTensorboardSizeMethod(), responseObserver); + } + /** * * @@ -2142,6 +2207,23 @@ public void readTensorboardUsage( responseObserver); } + /** + * + * + *
+     * Returns the storage size for a given TensorBoard instance.
+     * 
+ */ + public void readTensorboardSize( + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReadTensorboardSizeMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2651,6 +2733,19 @@ public com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse readTensorboa getChannel(), getReadTensorboardUsageMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Returns the storage size for a given TensorBoard instance.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse readTensorboardSize( + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReadTensorboardSizeMethod(), getCallOptions(), request); + } + /** * * @@ -3074,6 +3169,20 @@ protected TensorboardServiceFutureStub build( getChannel().newCall(getReadTensorboardUsageMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Returns the storage size for a given TensorBoard instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse> + readTensorboardSize(com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReadTensorboardSizeMethod(), getCallOptions()), request); + } + /** * * @@ -3419,29 +3528,30 @@ protected TensorboardServiceFutureStub build( private static final int METHODID_LIST_TENSORBOARDS = 3; private static final int METHODID_DELETE_TENSORBOARD = 4; private static final int METHODID_READ_TENSORBOARD_USAGE = 5; - private static final int METHODID_CREATE_TENSORBOARD_EXPERIMENT = 6; - private static final int METHODID_GET_TENSORBOARD_EXPERIMENT = 7; - private static final int METHODID_UPDATE_TENSORBOARD_EXPERIMENT = 8; - private static final int METHODID_LIST_TENSORBOARD_EXPERIMENTS = 9; - private static final int METHODID_DELETE_TENSORBOARD_EXPERIMENT = 10; - private static final int METHODID_CREATE_TENSORBOARD_RUN = 11; - private static final int METHODID_BATCH_CREATE_TENSORBOARD_RUNS = 12; - private static final int METHODID_GET_TENSORBOARD_RUN = 13; - private static final int METHODID_UPDATE_TENSORBOARD_RUN = 14; - private static final int METHODID_LIST_TENSORBOARD_RUNS = 15; - private static final int METHODID_DELETE_TENSORBOARD_RUN = 16; - private static final int METHODID_BATCH_CREATE_TENSORBOARD_TIME_SERIES = 17; - private static final int METHODID_CREATE_TENSORBOARD_TIME_SERIES = 18; - private static final int METHODID_GET_TENSORBOARD_TIME_SERIES = 19; - private static final int METHODID_UPDATE_TENSORBOARD_TIME_SERIES = 20; - private static final int METHODID_LIST_TENSORBOARD_TIME_SERIES = 21; - private static final int METHODID_DELETE_TENSORBOARD_TIME_SERIES = 22; - private static final int METHODID_BATCH_READ_TENSORBOARD_TIME_SERIES_DATA = 23; - private static final int METHODID_READ_TENSORBOARD_TIME_SERIES_DATA = 24; - private static final int METHODID_READ_TENSORBOARD_BLOB_DATA = 25; - private static final int METHODID_WRITE_TENSORBOARD_EXPERIMENT_DATA = 26; - private static final int METHODID_WRITE_TENSORBOARD_RUN_DATA = 27; - private static final int METHODID_EXPORT_TENSORBOARD_TIME_SERIES_DATA = 28; + private static final int METHODID_READ_TENSORBOARD_SIZE = 6; + private static final int METHODID_CREATE_TENSORBOARD_EXPERIMENT = 7; + private static final int METHODID_GET_TENSORBOARD_EXPERIMENT = 8; + private static final int METHODID_UPDATE_TENSORBOARD_EXPERIMENT = 9; + private static final int METHODID_LIST_TENSORBOARD_EXPERIMENTS = 10; + private static final int METHODID_DELETE_TENSORBOARD_EXPERIMENT = 11; + private static final int METHODID_CREATE_TENSORBOARD_RUN = 12; + private static final int METHODID_BATCH_CREATE_TENSORBOARD_RUNS = 13; + private static final int METHODID_GET_TENSORBOARD_RUN = 14; + private static final int METHODID_UPDATE_TENSORBOARD_RUN = 15; + private static final int METHODID_LIST_TENSORBOARD_RUNS = 16; + private static final int METHODID_DELETE_TENSORBOARD_RUN = 17; + private static final int METHODID_BATCH_CREATE_TENSORBOARD_TIME_SERIES = 18; + private static final int METHODID_CREATE_TENSORBOARD_TIME_SERIES = 19; + private static final int METHODID_GET_TENSORBOARD_TIME_SERIES = 20; + private static final int METHODID_UPDATE_TENSORBOARD_TIME_SERIES = 21; + private static final int METHODID_LIST_TENSORBOARD_TIME_SERIES = 22; + private static final int METHODID_DELETE_TENSORBOARD_TIME_SERIES = 23; + private static final int METHODID_BATCH_READ_TENSORBOARD_TIME_SERIES_DATA = 24; + private static final int METHODID_READ_TENSORBOARD_TIME_SERIES_DATA = 25; + private static final int METHODID_READ_TENSORBOARD_BLOB_DATA = 26; + private static final int METHODID_WRITE_TENSORBOARD_EXPERIMENT_DATA = 27; + private static final int METHODID_WRITE_TENSORBOARD_RUN_DATA = 28; + private static final int METHODID_EXPORT_TENSORBOARD_TIME_SERIES_DATA = 29; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3494,6 +3604,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse>) responseObserver); break; + case METHODID_READ_TENSORBOARD_SIZE: + serviceImpl.readTensorboardSize( + (com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse>) + responseObserver); + break; case METHODID_CREATE_TENSORBOARD_EXPERIMENT: serviceImpl.createTensorboardExperiment( (com.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest) request, @@ -3696,6 +3813,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.aiplatform.v1.ReadTensorboardUsageRequest, com.google.cloud.aiplatform.v1.ReadTensorboardUsageResponse>( service, METHODID_READ_TENSORBOARD_USAGE))) + .addMethod( + getReadTensorboardSizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest, + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse>( + service, METHODID_READ_TENSORBOARD_SIZE))) .addMethod( getCreateTensorboardExperimentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3913,6 +4037,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListTensorboardsMethod()) .addMethod(getDeleteTensorboardMethod()) .addMethod(getReadTensorboardUsageMethod()) + .addMethod(getReadTensorboardSizeMethod()) .addMethod(getCreateTensorboardExperimentMethod()) .addMethod(getGetTensorboardExperimentMethod()) .addMethod(getUpdateTensorboardExperimentMethod()) diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceGrpc.java index daff735fd385..85a0d9abb856 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceGrpc.java @@ -246,6 +246,58 @@ private PersistentResourceServiceGrpc() {} return getDeletePersistentResourceMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest, + com.google.longrunning.Operation> + getUpdatePersistentResourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePersistentResource", + requestType = com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest, + com.google.longrunning.Operation> + getUpdatePersistentResourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest, + com.google.longrunning.Operation> + getUpdatePersistentResourceMethod; + if ((getUpdatePersistentResourceMethod = + PersistentResourceServiceGrpc.getUpdatePersistentResourceMethod) + == null) { + synchronized (PersistentResourceServiceGrpc.class) { + if ((getUpdatePersistentResourceMethod = + PersistentResourceServiceGrpc.getUpdatePersistentResourceMethod) + == null) { + PersistentResourceServiceGrpc.getUpdatePersistentResourceMethod = + getUpdatePersistentResourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdatePersistentResource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new PersistentResourceServiceMethodDescriptorSupplier( + "UpdatePersistentResource")) + .build(); + } + } + } + return getUpdatePersistentResourceMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static PersistentResourceServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -300,7 +352,7 @@ public interface AsyncService { * * *
-     * Uploads a Model artifact into Vertex AI.
+     * Creates a PersistentResource.
      * 
*/ default void createPersistentResource( @@ -354,6 +406,20 @@ default void deletePersistentResource( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeletePersistentResourceMethod(), responseObserver); } + + /** + * + * + *
+     * Updates a PersistentResource.
+     * 
+ */ + default void updatePersistentResource( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePersistentResourceMethod(), responseObserver); + } } /** @@ -396,7 +462,7 @@ protected PersistentResourceServiceStub build( * * *
-     * Uploads a Model artifact into Vertex AI.
+     * Creates a PersistentResource.
      * 
*/ public void createPersistentResource( @@ -458,6 +524,22 @@ public void deletePersistentResource( request, responseObserver); } + + /** + * + * + *
+     * Updates a PersistentResource.
+     * 
+ */ + public void updatePersistentResource( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePersistentResourceMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -484,7 +566,7 @@ protected PersistentResourceServiceBlockingStub build( * * *
-     * Uploads a Model artifact into Vertex AI.
+     * Creates a PersistentResource.
      * 
*/ public com.google.longrunning.Operation createPersistentResource( @@ -532,6 +614,19 @@ public com.google.longrunning.Operation deletePersistentResource( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeletePersistentResourceMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Updates a PersistentResource.
+     * 
+ */ + public com.google.longrunning.Operation updatePersistentResource( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePersistentResourceMethod(), getCallOptions(), request); + } } /** @@ -559,7 +654,7 @@ protected PersistentResourceServiceFutureStub build( * * *
-     * Uploads a Model artifact into Vertex AI.
+     * Creates a PersistentResource.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -612,12 +707,27 @@ protected PersistentResourceServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeletePersistentResourceMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Updates a PersistentResource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updatePersistentResource( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePersistentResourceMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_PERSISTENT_RESOURCE = 0; private static final int METHODID_GET_PERSISTENT_RESOURCE = 1; private static final int METHODID_LIST_PERSISTENT_RESOURCES = 2; private static final int METHODID_DELETE_PERSISTENT_RESOURCE = 3; + private static final int METHODID_UPDATE_PERSISTENT_RESOURCE = 4; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -659,6 +769,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_PERSISTENT_RESOURCE: + serviceImpl.updatePersistentResource( + (com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -705,6 +820,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.aiplatform.v1beta1.DeletePersistentResourceRequest, com.google.longrunning.Operation>( service, METHODID_DELETE_PERSISTENT_RESOURCE))) + .addMethod( + getUpdatePersistentResourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_PERSISTENT_RESOURCE))) .build(); } @@ -760,6 +882,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetPersistentResourceMethod()) .addMethod(getListPersistentResourcesMethod()) .addMethod(getDeletePersistentResourceMethod()) + .addMethod(getUpdatePersistentResourceMethod()) .build(); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java index 33bfb2caf518..fe5dda0e7e1d 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java @@ -221,6 +221,53 @@ private PredictionServiceGrpc() {} return getExplainMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CountTokensRequest, + com.google.cloud.aiplatform.v1beta1.CountTokensResponse> + getCountTokensMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CountTokens", + requestType = com.google.cloud.aiplatform.v1beta1.CountTokensRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.CountTokensResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CountTokensRequest, + com.google.cloud.aiplatform.v1beta1.CountTokensResponse> + getCountTokensMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CountTokensRequest, + com.google.cloud.aiplatform.v1beta1.CountTokensResponse> + getCountTokensMethod; + if ((getCountTokensMethod = PredictionServiceGrpc.getCountTokensMethod) == null) { + synchronized (PredictionServiceGrpc.class) { + if ((getCountTokensMethod = PredictionServiceGrpc.getCountTokensMethod) == null) { + PredictionServiceGrpc.getCountTokensMethod = + getCountTokensMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CountTokens")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CountTokensRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CountTokensResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new PredictionServiceMethodDescriptorSupplier("CountTokens")) + .build(); + } + } + } + return getCountTokensMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static PredictionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -343,6 +390,21 @@ default void explain( responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExplainMethod(), responseObserver); } + + /** + * + * + *
+     * Perform a token counting.
+     * 
+ */ + default void countTokens( + com.google.cloud.aiplatform.v1beta1.CountTokensRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCountTokensMethod(), responseObserver); + } } /** @@ -457,6 +519,23 @@ public void explain( io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExplainMethod(), getCallOptions()), request, responseObserver); } + + /** + * + * + *
+     * Perform a token counting.
+     * 
+ */ + public void countTokens( + com.google.cloud.aiplatform.v1beta1.CountTokensRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCountTokensMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -548,6 +627,19 @@ public com.google.cloud.aiplatform.v1beta1.ExplainResponse explain( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExplainMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Perform a token counting.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.CountTokensResponse countTokens( + com.google.cloud.aiplatform.v1beta1.CountTokensRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCountTokensMethod(), getCallOptions(), request); + } } /** @@ -625,12 +717,27 @@ public com.google.common.util.concurrent.ListenableFuture + * Perform a token counting. + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.CountTokensResponse> + countTokens(com.google.cloud.aiplatform.v1beta1.CountTokensRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCountTokensMethod(), getCallOptions()), request); + } } private static final int METHODID_PREDICT = 0; private static final int METHODID_RAW_PREDICT = 1; private static final int METHODID_SERVER_STREAMING_PREDICT = 2; private static final int METHODID_EXPLAIN = 3; + private static final int METHODID_COUNT_TOKENS = 4; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -673,6 +780,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_COUNT_TOKENS: + serviceImpl.countTokens( + (com.google.cloud.aiplatform.v1beta1.CountTokensRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -718,6 +831,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.aiplatform.v1beta1.ExplainRequest, com.google.cloud.aiplatform.v1beta1.ExplainResponse>( service, METHODID_EXPLAIN))) + .addMethod( + getCountTokensMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CountTokensRequest, + com.google.cloud.aiplatform.v1beta1.CountTokensResponse>( + service, METHODID_COUNT_TOKENS))) .build(); } @@ -773,6 +893,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getRawPredictMethod()) .addMethod(getServerStreamingPredictMethod()) .addMethod(getExplainMethod()) + .addMethod(getCountTokensMethod()) .build(); } } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java index 3c25dc922a0d..225aa3207dee 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Context.java @@ -87,10 +87,10 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
-   * Output only. The resource name of the Context.
+   * Immutable. The resource name of the Context.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -110,10 +110,10 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name of the Context.
+   * Immutable. The resource name of the Context.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ @@ -1409,10 +1409,10 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name of the Context.
+     * Immutable. The resource name of the Context.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -1431,10 +1431,10 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name of the Context.
+     * Immutable. The resource name of the Context.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ @@ -1453,10 +1453,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name of the Context.
+     * Immutable. The resource name of the Context.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The name to set. * @return This builder for chaining. @@ -1474,10 +1474,10 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name of the Context.
+     * Immutable. The resource name of the Context.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ @@ -1491,10 +1491,10 @@ public Builder clearName() { * * *
-     * Output only. The resource name of the Context.
+     * Immutable. The resource name of the Context.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java index 649ef321d87a..b017bd5369aa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextOrBuilder.java @@ -27,10 +27,10 @@ public interface ContextOrBuilder * * *
-   * Output only. The resource name of the Context.
+   * Immutable. The resource name of the Context.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -39,10 +39,10 @@ public interface ContextOrBuilder * * *
-   * Output only. The resource name of the Context.
+   * Immutable. The resource name of the Context.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextProto.java index 8ccee27376df..4920a2f3aa58 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContextProto.java @@ -49,7 +49,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/field_behavior.proto\032\031google/api/reso" + "urce.proto\032\034google/protobuf/struct.proto" + "\032\037google/protobuf/timestamp.proto\"\327\004\n\007Co" - + "ntext\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_nam" + + "ntext\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\024\n\014display_nam" + "e\030\002 \001(\t\022\014\n\004etag\030\010 \001(\t\022?\n\006labels\030\t \003(\0132/." + "google.cloud.aiplatform.v1.Context.Label" + "sEntry\0225\n\013create_time\030\n \001(\0132\032.google.pro" diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetVersionOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetVersionOperationMetadata.java new file mode 100644 index 000000000000..9064544111d0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetVersionOperationMetadata.java @@ -0,0 +1,729 @@ +/* + * Copyright 2023 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/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Runtime operation information for
+ * [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1.DatasetService.CreateDatasetVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata} + */ +public final class CreateDatasetVersionOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata) + CreateDatasetVersionOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDatasetVersionOperationMetadata.newBuilder() to construct. + private CreateDatasetVersionOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDatasetVersionOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDatasetVersionOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata.class, + com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + 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()); + } + getUnknownFields().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 += getUnknownFields().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.v1.CreateDatasetVersionOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata other = + (com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata 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.v1.CreateDatasetVersionOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata 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.v1.CreateDatasetVersionOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata 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.v1.CreateDatasetVersionOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata + 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.v1.CreateDatasetVersionOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata 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.v1.CreateDatasetVersionOperationMetadata 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
+   * [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1.DatasetService.CreateDatasetVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata) + com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata.class, + com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata build() { + com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata result = + new com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + + @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.v1.CreateDatasetVersionOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + getGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.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.v1.CreateDatasetVersionOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata) + private static final com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetVersionOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.v1.CreateDatasetVersionOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetVersionOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetVersionOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..2781ea70478b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetVersionOperationMetadataOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2023 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/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface CreateDatasetVersionOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java index 6b6c4623f6df..1aedb650c43a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobProto.java @@ -133,15 +133,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Spec\022 \n\022executor_image_uri\030\001 \001(\tB\004\342A\001\002\022\032" + "\n\014package_uris\030\002 \003(\tB\004\342A\001\002\022\033\n\rpython_mod" + "ule\030\003 \001(\tB\004\342A\001\002\022\014\n\004args\030\004 \003(\t\022/\n\003env\030\005 \003" - + "(\0132\".google.cloud.aiplatform.v1.EnvVar\"_" + + "(\0132\".google.cloud.aiplatform.v1.EnvVar\"~" + "\n\nScheduling\022*\n\007timeout\030\001 \001(\0132\031.google.p" + "rotobuf.Duration\022%\n\035restart_job_on_worke" - + "r_restart\030\003 \001(\010B\314\001\n\036com.google.cloud.aip" - + "latform.v1B\016CustomJobProtoP\001Z>cloud.goog" - + "le.com/go/aiplatform/apiv1/aiplatformpb;" - + "aiplatformpb\252\002\032Google.Cloud.AIPlatform.V" - + "1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google:" - + ":Cloud::AIPlatform::V1b\006proto3" + + "r_restart\030\003 \001(\010\022\035\n\017disable_retries\030\005 \001(\010" + + "B\004\342A\001\001B\314\001\n\036com.google.cloud.aiplatform.v" + + "1B\016CustomJobProtoP\001Z>cloud.google.com/go" + + "/aiplatform/apiv1/aiplatformpb;aiplatfor" + + "mpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Googl" + + "e\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::A" + + "IPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -247,7 +248,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Scheduling_descriptor, new java.lang.String[] { - "Timeout", "RestartJobOnWorkerRestart", + "Timeout", "RestartJobOnWorkerRestart", "DisableRetries", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java index 9e2b75ad9f8f..67b9da36afec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java @@ -79,6 +79,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ExportDataOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ExportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_ListDataItemsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -188,134 +196,140 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "les\030\001 \003(\t\"\213\001\n\033ExportDataOperationMetadat" + "a\022N\n\020generic_metadata\030\001 \001(\01324.google.clo" + "ud.aiplatform.v1.GenericOperationMetadat" - + "a\022\034\n\024gcs_output_directory\030\002 \001(\t\"\312\001\n\024List" - + "DataItemsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A" - + "#\n!aiplatform.googleapis.com/Dataset\022\016\n\006" - + "filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_" - + "token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google." - + "protobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"j\n\025" - + "ListDataItemsResponse\0228\n\ndata_items\030\001 \003(" - + "\0132$.google.cloud.aiplatform.v1.DataItem\022" - + "\027\n\017next_page_token\030\002 \001(\t\"\336\004\n\026SearchDataI" - + "temsRequest\022\034\n\022order_by_data_item\030\014 \001(\tH" - + "\000\022c\n\023order_by_annotation\030\r \001(\0132D.google." - + "cloud.aiplatform.v1.SearchDataItemsReque" - + "st.OrderByAnnotationH\000\022;\n\007dataset\030\001 \001(\tB" - + "*\342A\001\002\372A#\n!aiplatform.googleapis.com/Data" - + "set\022@\n\013saved_query\030\002 \001(\tB+\030\001\372A&\n$aiplatf" - + "orm.googleapis.com/SavedQuery\022\031\n\021data_la" - + "beling_job\030\003 \001(\t\022\030\n\020data_item_filter\030\004 \001" - + "(\t\022\036\n\022annotations_filter\030\005 \001(\tB\002\030\001\022\032\n\022an" - + "notation_filters\030\013 \003(\t\022.\n\nfield_mask\030\006 \001" - + "(\0132\032.google.protobuf.FieldMask\022\031\n\021annota" - + "tions_limit\030\007 \001(\005\022\021\n\tpage_size\030\010 \001(\005\022\024\n\010" - + "order_by\030\t \001(\tB\002\030\001\022\022\n\npage_token\030\n \001(\t\032@" - + "\n\021OrderByAnnotation\022\031\n\013saved_query\030\001 \001(\t" - + "B\004\342A\001\002\022\020\n\010order_by\030\002 \001(\tB\007\n\005order\"u\n\027Sea" - + "rchDataItemsResponse\022A\n\017data_item_views\030" - + "\001 \003(\0132(.google.cloud.aiplatform.v1.DataI" - + "temView\022\027\n\017next_page_token\030\002 \001(\t\"\247\001\n\014Dat" - + "aItemView\0227\n\tdata_item\030\001 \001(\0132$.google.cl" - + "oud.aiplatform.v1.DataItem\022;\n\013annotation" - + "s\030\002 \003(\0132&.google.cloud.aiplatform.v1.Ann" - + "otation\022!\n\031has_truncated_annotations\030\003 \001" - + "(\010\"\315\001\n\027ListSavedQueriesRequest\022:\n\006parent" - + "\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapis.c" - + "om/Dataset\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030" - + "\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005" - + " \001(\0132\032.google.protobuf.FieldMask\022\020\n\010orde" - + "r_by\030\006 \001(\t\"r\n\030ListSavedQueriesResponse\022=" - + "\n\rsaved_queries\030\001 \003(\0132&.google.cloud.aip" - + "latform.v1.SavedQuery\022\027\n\017next_page_token" - + "\030\002 \001(\t\"V\n\027DeleteSavedQueryRequest\022;\n\004nam" - + "e\030\001 \001(\tB-\342A\001\002\372A&\n$aiplatform.googleapis." - + "com/SavedQuery\"\212\001\n\030GetAnnotationSpecRequ" - + "est\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatform.g" - + "oogleapis.com/AnnotationSpec\022-\n\tread_mas" - + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"\315\001\n\026" - + "ListAnnotationsRequest\022;\n\006parent\030\001 \001(\tB+" - + "\342A\001\002\372A$\n\"aiplatform.googleapis.com/DataI" - + "tem\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022" - + "\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032." - + "google.protobuf.FieldMask\022\020\n\010order_by\030\006 " - + "\001(\t\"o\n\027ListAnnotationsResponse\022;\n\013annota" - + "tions\030\001 \003(\0132&.google.cloud.aiplatform.v1" - + ".Annotation\022\027\n\017next_page_token\030\002 \001(\t2\324\025\n" - + "\016DatasetService\022\334\001\n\rCreateDataset\0220.goog" - + "le.cloud.aiplatform.v1.CreateDatasetRequ" - + "est\032\035.google.longrunning.Operation\"z\312A)\n" - + "\007Dataset\022\036CreateDatasetOperationMetadata" - + "\332A\016parent,dataset\202\323\344\223\0027\",/v1/{parent=pro" - + "jects/*/locations/*}/datasets:\007dataset\022\235" - + "\001\n\nGetDataset\022-.google.cloud.aiplatform." - + "v1.GetDatasetRequest\032#.google.cloud.aipl" - + "atform.v1.Dataset\";\332A\004name\202\323\344\223\002.\022,/v1/{n" - + "ame=projects/*/locations/*/datasets/*}\022\303" - + "\001\n\rUpdateDataset\0220.google.cloud.aiplatfo" - + "rm.v1.UpdateDatasetRequest\032#.google.clou" - + "d.aiplatform.v1.Dataset\"[\332A\023dataset,upda" - + "te_mask\202\323\344\223\002?24/v1/{dataset.name=project" - + "s/*/locations/*/datasets/*}:\007dataset\022\260\001\n" - + "\014ListDatasets\022/.google.cloud.aiplatform." - + "v1.ListDatasetsRequest\0320.google.cloud.ai" - + "platform.v1.ListDatasetsResponse\"=\332A\006par" - + "ent\202\323\344\223\002.\022,/v1/{parent=projects/*/locati" - + "ons/*}/datasets\022\320\001\n\rDeleteDataset\0220.goog" - + "le.cloud.aiplatform.v1.DeleteDatasetRequ" - + "est\032\035.google.longrunning.Operation\"n\312A0\n" - + "\025google.protobuf.Empty\022\027DeleteOperationM" - + "etadata\332A\004name\202\323\344\223\002.*,/v1/{name=projects" - + "/*/locations/*/datasets/*}\022\345\001\n\nImportDat" - + "a\022-.google.cloud.aiplatform.v1.ImportDat" - + "aRequest\032\035.google.longrunning.Operation\"" - + "\210\001\312A1\n\022ImportDataResponse\022\033ImportDataOpe" - + "rationMetadata\332A\023name,import_configs\202\323\344\223" - + "\0028\"3/v1/{name=projects/*/locations/*/dat" - + "asets/*}:import:\001*\022\344\001\n\nExportData\022-.goog" - + "le.cloud.aiplatform.v1.ExportDataRequest" - + "\032\035.google.longrunning.Operation\"\207\001\312A1\n\022E" - + "xportDataResponse\022\033ExportDataOperationMe" - + "tadata\332A\022name,export_config\202\323\344\223\0028\"3/v1/{" - + "name=projects/*/locations/*/datasets/*}:" - + "export:\001*\022\277\001\n\rListDataItems\0220.google.clo" - + "ud.aiplatform.v1.ListDataItemsRequest\0321." - + "google.cloud.aiplatform.v1.ListDataItems" - + "Response\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=p" - + "rojects/*/locations/*/datasets/*}/dataIt" - + "ems\022\303\001\n\017SearchDataItems\0222.google.cloud.a" - + "iplatform.v1.SearchDataItemsRequest\0323.go" - + "ogle.cloud.aiplatform.v1.SearchDataItems" - + "Response\"G\202\323\344\223\002A\022?/v1/{dataset=projects/" - + "*/locations/*/datasets/*}:searchDataItem" - + "s\022\313\001\n\020ListSavedQueries\0223.google.cloud.ai" - + "platform.v1.ListSavedQueriesRequest\0324.go" - + "ogle.cloud.aiplatform.v1.ListSavedQuerie" - + "sResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{parent=" - + "projects/*/locations/*/datasets/*}/saved" - + "Queries\022\345\001\n\020DeleteSavedQuery\0223.google.cl" - + "oud.aiplatform.v1.DeleteSavedQueryReques" - + "t\032\035.google.longrunning.Operation\"}\312A0\n\025g" - + "oogle.protobuf.Empty\022\027DeleteOperationMet" - + "adata\332A\004name\202\323\344\223\002=*;/v1/{name=projects/*" - + "/locations/*/datasets/*/savedQueries/*}\022" - + "\304\001\n\021GetAnnotationSpec\0224.google.cloud.aip" - + "latform.v1.GetAnnotationSpecRequest\032*.go" - + "ogle.cloud.aiplatform.v1.AnnotationSpec\"" - + "M\332A\004name\202\323\344\223\002@\022>/v1/{name=projects/*/loc" - + "ations/*/datasets/*/annotationSpecs/*}\022\323" - + "\001\n\017ListAnnotations\0222.google.cloud.aiplat" - + "form.v1.ListAnnotationsRequest\0323.google." - + "cloud.aiplatform.v1.ListAnnotationsRespo" - + "nse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent=projec" - + "ts/*/locations/*/datasets/*/dataItems/*}" - + "/annotations\032M\312A\031aiplatform.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\321\001\n\036com.google.cloud.aiplatf" - + "orm.v1B\023DatasetServiceProtoP\001Z>cloud.goo" - + "gle.com/go/aiplatform/apiv1/aiplatformpb" - + ";aiplatformpb\252\002\032Google.Cloud.AIPlatform." - + "V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google" - + "::Cloud::AIPlatform::V1b\006proto3" + + "a\022\034\n\024gcs_output_directory\030\002 \001(\t\"w\n%Creat" + + "eDatasetVersionOperationMetadata\022N\n\020gene" + + "ric_metadata\030\001 \001(\01324.google.cloud.aiplat" + + "form.v1.GenericOperationMetadata\"x\n&Rest" + + "oreDatasetVersionOperationMetadata\022N\n\020ge" + + "neric_metadata\030\001 \001(\01324.google.cloud.aipl" + + "atform.v1.GenericOperationMetadata\"\312\001\n\024L" + + "istDataItemsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001" + + "\002\372A#\n!aiplatform.googleapis.com/Dataset\022" + + "\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npa" + + "ge_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.goog" + + "le.protobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"" + + "j\n\025ListDataItemsResponse\0228\n\ndata_items\030\001" + + " \003(\0132$.google.cloud.aiplatform.v1.DataIt" + + "em\022\027\n\017next_page_token\030\002 \001(\t\"\336\004\n\026SearchDa" + + "taItemsRequest\022\034\n\022order_by_data_item\030\014 \001" + + "(\tH\000\022c\n\023order_by_annotation\030\r \001(\0132D.goog" + + "le.cloud.aiplatform.v1.SearchDataItemsRe" + + "quest.OrderByAnnotationH\000\022;\n\007dataset\030\001 \001" + + "(\tB*\342A\001\002\372A#\n!aiplatform.googleapis.com/D" + + "ataset\022@\n\013saved_query\030\002 \001(\tB+\030\001\372A&\n$aipl" + + "atform.googleapis.com/SavedQuery\022\031\n\021data" + + "_labeling_job\030\003 \001(\t\022\030\n\020data_item_filter\030" + + "\004 \001(\t\022\036\n\022annotations_filter\030\005 \001(\tB\002\030\001\022\032\n" + + "\022annotation_filters\030\013 \003(\t\022.\n\nfield_mask\030" + + "\006 \001(\0132\032.google.protobuf.FieldMask\022\031\n\021ann" + + "otations_limit\030\007 \001(\005\022\021\n\tpage_size\030\010 \001(\005\022" + + "\024\n\010order_by\030\t \001(\tB\002\030\001\022\022\n\npage_token\030\n \001(" + + "\t\032@\n\021OrderByAnnotation\022\031\n\013saved_query\030\001 " + + "\001(\tB\004\342A\001\002\022\020\n\010order_by\030\002 \001(\tB\007\n\005order\"u\n\027" + + "SearchDataItemsResponse\022A\n\017data_item_vie" + + "ws\030\001 \003(\0132(.google.cloud.aiplatform.v1.Da" + + "taItemView\022\027\n\017next_page_token\030\002 \001(\t\"\247\001\n\014" + + "DataItemView\0227\n\tdata_item\030\001 \001(\0132$.google" + + ".cloud.aiplatform.v1.DataItem\022;\n\013annotat" + + "ions\030\002 \003(\0132&.google.cloud.aiplatform.v1." + + "Annotation\022!\n\031has_truncated_annotations\030" + + "\003 \001(\010\"\315\001\n\027ListSavedQueriesRequest\022:\n\006par" + + "ent\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapi" + + "s.com/Dataset\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_si" + + "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mas" + + "k\030\005 \001(\0132\032.google.protobuf.FieldMask\022\020\n\010o" + + "rder_by\030\006 \001(\t\"r\n\030ListSavedQueriesRespons" + + "e\022=\n\rsaved_queries\030\001 \003(\0132&.google.cloud." + + "aiplatform.v1.SavedQuery\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"V\n\027DeleteSavedQueryRequest\022;\n\004" + + "name\030\001 \001(\tB-\342A\001\002\372A&\n$aiplatform.googleap" + + "is.com/SavedQuery\"\212\001\n\030GetAnnotationSpecR" + + "equest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatfor" + + "m.googleapis.com/AnnotationSpec\022-\n\tread_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\315" + + "\001\n\026ListAnnotationsRequest\022;\n\006parent\030\001 \001(" + + "\tB+\342A\001\002\372A$\n\"aiplatform.googleapis.com/Da" + + "taItem\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(" + + "\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\013" + + "2\032.google.protobuf.FieldMask\022\020\n\010order_by" + + "\030\006 \001(\t\"o\n\027ListAnnotationsResponse\022;\n\013ann" + + "otations\030\001 \003(\0132&.google.cloud.aiplatform" + + ".v1.Annotation\022\027\n\017next_page_token\030\002 \001(\t2" + + "\324\025\n\016DatasetService\022\334\001\n\rCreateDataset\0220.g" + + "oogle.cloud.aiplatform.v1.CreateDatasetR" + + "equest\032\035.google.longrunning.Operation\"z\312" + + "A)\n\007Dataset\022\036CreateDatasetOperationMetad" + + "ata\332A\016parent,dataset\202\323\344\223\0027\",/v1/{parent=" + + "projects/*/locations/*}/datasets:\007datase" + + "t\022\235\001\n\nGetDataset\022-.google.cloud.aiplatfo" + + "rm.v1.GetDatasetRequest\032#.google.cloud.a" + + "iplatform.v1.Dataset\";\332A\004name\202\323\344\223\002.\022,/v1" + + "/{name=projects/*/locations/*/datasets/*" + + "}\022\303\001\n\rUpdateDataset\0220.google.cloud.aipla" + + "tform.v1.UpdateDatasetRequest\032#.google.c" + + "loud.aiplatform.v1.Dataset\"[\332A\023dataset,u" + + "pdate_mask\202\323\344\223\002?24/v1/{dataset.name=proj" + + "ects/*/locations/*/datasets/*}:\007dataset\022" + + "\260\001\n\014ListDatasets\022/.google.cloud.aiplatfo" + + "rm.v1.ListDatasetsRequest\0320.google.cloud" + + ".aiplatform.v1.ListDatasetsResponse\"=\332A\006" + + "parent\202\323\344\223\002.\022,/v1/{parent=projects/*/loc" + + "ations/*}/datasets\022\320\001\n\rDeleteDataset\0220.g" + + "oogle.cloud.aiplatform.v1.DeleteDatasetR" + + "equest\032\035.google.longrunning.Operation\"n\312" + + "A0\n\025google.protobuf.Empty\022\027DeleteOperati" + + "onMetadata\332A\004name\202\323\344\223\002.*,/v1/{name=proje" + + "cts/*/locations/*/datasets/*}\022\345\001\n\nImport" + + "Data\022-.google.cloud.aiplatform.v1.Import" + + "DataRequest\032\035.google.longrunning.Operati" + + "on\"\210\001\312A1\n\022ImportDataResponse\022\033ImportData" + + "OperationMetadata\332A\023name,import_configs\202" + + "\323\344\223\0028\"3/v1/{name=projects/*/locations/*/" + + "datasets/*}:import:\001*\022\344\001\n\nExportData\022-.g" + + "oogle.cloud.aiplatform.v1.ExportDataRequ" + + "est\032\035.google.longrunning.Operation\"\207\001\312A1" + + "\n\022ExportDataResponse\022\033ExportDataOperatio" + + "nMetadata\332A\022name,export_config\202\323\344\223\0028\"3/v" + + "1/{name=projects/*/locations/*/datasets/" + + "*}:export:\001*\022\277\001\n\rListDataItems\0220.google." + + "cloud.aiplatform.v1.ListDataItemsRequest" + + "\0321.google.cloud.aiplatform.v1.ListDataIt" + + "emsResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{paren" + + "t=projects/*/locations/*/datasets/*}/dat" + + "aItems\022\303\001\n\017SearchDataItems\0222.google.clou" + + "d.aiplatform.v1.SearchDataItemsRequest\0323" + + ".google.cloud.aiplatform.v1.SearchDataIt" + + "emsResponse\"G\202\323\344\223\002A\022?/v1/{dataset=projec" + + "ts/*/locations/*/datasets/*}:searchDataI" + + "tems\022\313\001\n\020ListSavedQueries\0223.google.cloud" + + ".aiplatform.v1.ListSavedQueriesRequest\0324" + + ".google.cloud.aiplatform.v1.ListSavedQue" + + "riesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{pare" + + "nt=projects/*/locations/*/datasets/*}/sa" + + "vedQueries\022\345\001\n\020DeleteSavedQuery\0223.google" + + ".cloud.aiplatform.v1.DeleteSavedQueryReq" + + "uest\032\035.google.longrunning.Operation\"}\312A0" + + "\n\025google.protobuf.Empty\022\027DeleteOperation" + + "Metadata\332A\004name\202\323\344\223\002=*;/v1/{name=project" + + "s/*/locations/*/datasets/*/savedQueries/" + + "*}\022\304\001\n\021GetAnnotationSpec\0224.google.cloud." + + "aiplatform.v1.GetAnnotationSpecRequest\032*" + + ".google.cloud.aiplatform.v1.AnnotationSp" + + "ec\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=projects/*/" + + "locations/*/datasets/*/annotationSpecs/*" + + "}\022\323\001\n\017ListAnnotations\0222.google.cloud.aip" + + "latform.v1.ListAnnotationsRequest\0323.goog" + + "le.cloud.aiplatform.v1.ListAnnotationsRe" + + "sponse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent=pro" + + "jects/*/locations/*/datasets/*/dataItems" + + "/*}/annotations\032M\312A\031aiplatform.googleapi" + + "s.com\322A.https://www.googleapis.com/auth/" + + "cloud-platformB\321\001\n\036com.google.cloud.aipl" + + "atform.v1B\023DatasetServiceProtoP\001Z>cloud." + + "google.com/go/aiplatform/apiv1/aiplatfor" + + "mpb;aiplatformpb\252\002\032Google.Cloud.AIPlatfo" + + "rm.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goo" + + "gle::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -437,8 +451,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GenericMetadata", "GcsOutputDirectory", }); - internal_static_google_cloud_aiplatform_v1_ListDataItemsRequest_descriptor = + internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1_ListDataItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1_ListDataItemsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListDataItemsRequest_descriptor, @@ -446,7 +476,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1_ListDataItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1_ListDataItemsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListDataItemsResponse_descriptor, @@ -454,7 +484,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataItems", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_descriptor, @@ -485,7 +515,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SavedQuery", "OrderBy", }); internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_descriptor, @@ -493,7 +523,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataItemViews", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_DataItemView_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1_DataItemView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DataItemView_descriptor, @@ -501,7 +531,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataItem", "Annotations", "HasTruncatedAnnotations", }); internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_descriptor, @@ -509,7 +539,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_descriptor, @@ -517,7 +547,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SavedQueries", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_DeleteSavedQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_aiplatform_v1_DeleteSavedQueryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeleteSavedQueryRequest_descriptor, @@ -525,7 +555,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_descriptor, @@ -533,7 +563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ReadMask", }); internal_static_google_cloud_aiplatform_v1_ListAnnotationsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_aiplatform_v1_ListAnnotationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListAnnotationsRequest_descriptor, @@ -541,7 +571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1_ListAnnotationsResponse_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_aiplatform_v1_ListAnnotationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListAnnotationsResponse_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSchedulesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSchedulesRequest.java index 0bb078508797..d7b021b94bf8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSchedulesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSchedulesRequest.java @@ -332,6 +332,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -370,6 +371,7 @@ public java.lang.String getOrderBy() { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -1406,6 +1408,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -1443,6 +1446,7 @@ public java.lang.String getOrderBy() { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -1480,6 +1484,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -1516,6 +1521,7 @@ public Builder setOrderBy(java.lang.String value) { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -1548,6 +1554,7 @@ public Builder clearOrderBy() { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSchedulesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSchedulesRequestOrBuilder.java index e63aa99aad38..c7a821e6d65d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSchedulesRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSchedulesRequestOrBuilder.java @@ -202,6 +202,7 @@ public interface ListSchedulesRequestOrBuilder * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -229,6 +230,7 @@ public interface ListSchedulesRequestOrBuilder * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java index fbea85a6421b..9dd7557c2290 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java @@ -117,7 +117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/pipeline_state.proto\032&google/cloud/aipl" + "atform/v1/value.proto\032\034google/protobuf/s" + "truct.proto\032\037google/protobuf/timestamp.p" - + "roto\032\027google/rpc/status.proto\"\276\016\n\013Pipeli" + + "roto\032\027google/rpc/status.proto\"\333\016\n\013Pipeli" + "neJob\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014display_nam" + "e\030\002 \001(\t\0225\n\013create_time\030\003 \001(\0132\032.google.pr" + "otobuf.TimestampB\004\342A\001\003\0224\n\nstart_time\030\004 \001" @@ -141,95 +141,96 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_ranges\030\031 \003(\t\022\024\n\014template_uri\030\023 \001(\t\022U\n\021t" + "emplate_metadata\030\024 \001(\01324.google.cloud.ai" + "platform.v1.PipelineTemplateMetadataB\004\342A" - + "\001\003\032\371\005\n\rRuntimeConfig\022]\n\nparameters\030\001 \003(\013" - + "2E.google.cloud.aiplatform.v1.PipelineJo" - + "b.RuntimeConfig.ParametersEntryB\002\030\001\022\"\n\024g" - + "cs_output_directory\030\002 \001(\tB\004\342A\001\002\022d\n\020param" - + "eter_values\030\003 \003(\0132J.google.cloud.aiplatf" - + "orm.v1.PipelineJob.RuntimeConfig.Paramet" - + "erValuesEntry\022I\n\016failure_policy\030\004 \001(\01621." - + "google.cloud.aiplatform.v1.PipelineFailu" - + "rePolicy\022b\n\017input_artifacts\030\005 \003(\0132I.goog" - + "le.cloud.aiplatform.v1.PipelineJob.Runti" - + "meConfig.InputArtifactsEntry\032.\n\rInputArt" - + "ifact\022\025\n\013artifact_id\030\001 \001(\tH\000B\006\n\004kind\032T\n\017" - + "ParametersEntry\022\013\n\003key\030\001 \001(\t\0220\n\005value\030\002 " - + "\001(\0132!.google.cloud.aiplatform.v1.Value:\002" - + "8\001\032N\n\024ParameterValuesEntry\022\013\n\003key\030\001 \001(\t\022" - + "%\n\005value\030\002 \001(\0132\026.google.protobuf.Value:\002" - + "8\001\032z\n\023InputArtifactsEntry\022\013\n\003key\030\001 \001(\t\022R" - + "\n\005value\030\002 \001(\0132C.google.cloud.aiplatform." - + "v1.PipelineJob.RuntimeConfig.InputArtifa" - + "ct:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:o\352Al\n%aiplatform.googleapi" - + "s.com/PipelineJob\022Cprojects/{project}/lo" - + "cations/{location}/pipelineJobs/{pipelin" - + "e_job}\"+\n\030PipelineTemplateMetadata\022\017\n\007ve" - + "rsion\030\003 \001(\t\"\355\001\n\021PipelineJobDetail\022C\n\020pip" - + "eline_context\030\001 \001(\0132#.google.cloud.aipla" - + "tform.v1.ContextB\004\342A\001\003\022G\n\024pipeline_run_c" - + "ontext\030\002 \001(\0132#.google.cloud.aiplatform.v" - + "1.ContextB\004\342A\001\003\022J\n\014task_details\030\003 \003(\0132.." - + "google.cloud.aiplatform.v1.PipelineTaskD" - + "etailB\004\342A\001\003\"\256\013\n\022PipelineTaskDetail\022\025\n\007ta" - + "sk_id\030\001 \001(\003B\004\342A\001\003\022\034\n\016parent_task_id\030\014 \001(" - + "\003B\004\342A\001\003\022\027\n\ttask_name\030\002 \001(\tB\004\342A\001\003\0225\n\013crea" - + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" - + "pB\004\342A\001\003\0224\n\nstart_time\030\004 \001(\0132\032.google.pro" - + "tobuf.TimestampB\004\342A\001\003\0222\n\010end_time\030\005 \001(\0132" - + "\032.google.protobuf.TimestampB\004\342A\001\003\022U\n\017exe" - + "cutor_detail\030\006 \001(\01326.google.cloud.aiplat" - + "form.v1.PipelineTaskExecutorDetailB\004\342A\001\003" - + "\022I\n\005state\030\007 \001(\01624.google.cloud.aiplatfor" - + "m.v1.PipelineTaskDetail.StateB\004\342A\001\003\022>\n\te" - + "xecution\030\010 \001(\0132%.google.cloud.aiplatform" - + ".v1.ExecutionB\004\342A\001\003\022\'\n\005error\030\t \001(\0132\022.goo" - + "gle.rpc.StatusB\004\342A\001\003\022e\n\024pipeline_task_st" - + "atus\030\r \003(\0132A.google.cloud.aiplatform.v1." - + "PipelineTaskDetail.PipelineTaskStatusB\004\342" - + "A\001\003\022P\n\006inputs\030\n \003(\0132:.google.cloud.aipla" - + "tform.v1.PipelineTaskDetail.InputsEntryB" - + "\004\342A\001\003\022R\n\007outputs\030\013 \003(\0132;.google.cloud.ai" - + "platform.v1.PipelineTaskDetail.OutputsEn" - + "tryB\004\342A\001\003\032\277\001\n\022PipelineTaskStatus\0225\n\013upda" - + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" - + "pB\004\342A\001\003\022I\n\005state\030\002 \001(\01624.google.cloud.ai" - + "platform.v1.PipelineTaskDetail.StateB\004\342A" - + "\001\003\022\'\n\005error\030\003 \001(\0132\022.google.rpc.StatusB\004\342" - + "A\001\003\032M\n\014ArtifactList\022=\n\tartifacts\030\001 \003(\0132$" - + ".google.cloud.aiplatform.v1.ArtifactB\004\342A" - + "\001\003\032j\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030" - + "\002 \001(\0132;.google.cloud.aiplatform.v1.Pipel" - + "ineTaskDetail.ArtifactList:\0028\001\032k\n\014Output" + + "\001\003\022\033\n\rschedule_name\030\026 \001(\tB\004\342A\001\003\032\371\005\n\rRunt" + + "imeConfig\022]\n\nparameters\030\001 \003(\0132E.google.c" + + "loud.aiplatform.v1.PipelineJob.RuntimeCo" + + "nfig.ParametersEntryB\002\030\001\022\"\n\024gcs_output_d" + + "irectory\030\002 \001(\tB\004\342A\001\002\022d\n\020parameter_values" + + "\030\003 \003(\0132J.google.cloud.aiplatform.v1.Pipe" + + "lineJob.RuntimeConfig.ParameterValuesEnt" + + "ry\022I\n\016failure_policy\030\004 \001(\01621.google.clou" + + "d.aiplatform.v1.PipelineFailurePolicy\022b\n" + + "\017input_artifacts\030\005 \003(\0132I.google.cloud.ai" + + "platform.v1.PipelineJob.RuntimeConfig.In" + + "putArtifactsEntry\032.\n\rInputArtifact\022\025\n\013ar" + + "tifact_id\030\001 \001(\tH\000B\006\n\004kind\032T\n\017ParametersE" + + "ntry\022\013\n\003key\030\001 \001(\t\0220\n\005value\030\002 \001(\0132!.googl" + + "e.cloud.aiplatform.v1.Value:\0028\001\032N\n\024Param" + + "eterValuesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 " + + "\001(\0132\026.google.protobuf.Value:\0028\001\032z\n\023Input" + + "ArtifactsEntry\022\013\n\003key\030\001 \001(\t\022R\n\005value\030\002 \001" + + "(\0132C.google.cloud.aiplatform.v1.Pipeline" + + "Job.RuntimeConfig.InputArtifact:\0028\001\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001:o\352Al\n%aiplatform.googleapis.com/Pipel" + + "ineJob\022Cprojects/{project}/locations/{lo" + + "cation}/pipelineJobs/{pipeline_job}\"+\n\030P" + + "ipelineTemplateMetadata\022\017\n\007version\030\003 \001(\t" + + "\"\355\001\n\021PipelineJobDetail\022C\n\020pipeline_conte" + + "xt\030\001 \001(\0132#.google.cloud.aiplatform.v1.Co" + + "ntextB\004\342A\001\003\022G\n\024pipeline_run_context\030\002 \001(" + + "\0132#.google.cloud.aiplatform.v1.ContextB\004" + + "\342A\001\003\022J\n\014task_details\030\003 \003(\0132..google.clou" + + "d.aiplatform.v1.PipelineTaskDetailB\004\342A\001\003" + + "\"\256\013\n\022PipelineTaskDetail\022\025\n\007task_id\030\001 \001(\003" + + "B\004\342A\001\003\022\034\n\016parent_task_id\030\014 \001(\003B\004\342A\001\003\022\027\n\t" + + "task_name\030\002 \001(\tB\004\342A\001\003\0225\n\013create_time\030\003 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0224\n\n" + + "start_time\030\004 \001(\0132\032.google.protobuf.Times" + + "tampB\004\342A\001\003\0222\n\010end_time\030\005 \001(\0132\032.google.pr" + + "otobuf.TimestampB\004\342A\001\003\022U\n\017executor_detai" + + "l\030\006 \001(\01326.google.cloud.aiplatform.v1.Pip" + + "elineTaskExecutorDetailB\004\342A\001\003\022I\n\005state\030\007" + + " \001(\01624.google.cloud.aiplatform.v1.Pipeli" + + "neTaskDetail.StateB\004\342A\001\003\022>\n\texecution\030\010 " + + "\001(\0132%.google.cloud.aiplatform.v1.Executi" + + "onB\004\342A\001\003\022\'\n\005error\030\t \001(\0132\022.google.rpc.Sta" + + "tusB\004\342A\001\003\022e\n\024pipeline_task_status\030\r \003(\0132" + + "A.google.cloud.aiplatform.v1.PipelineTas" + + "kDetail.PipelineTaskStatusB\004\342A\001\003\022P\n\006inpu" + + "ts\030\n \003(\0132:.google.cloud.aiplatform.v1.Pi" + + "pelineTaskDetail.InputsEntryB\004\342A\001\003\022R\n\007ou" + + "tputs\030\013 \003(\0132;.google.cloud.aiplatform.v1" + + ".PipelineTaskDetail.OutputsEntryB\004\342A\001\003\032\277" + + "\001\n\022PipelineTaskStatus\0225\n\013update_time\030\001 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022I\n\005" + + "state\030\002 \001(\01624.google.cloud.aiplatform.v1" + + ".PipelineTaskDetail.StateB\004\342A\001\003\022\'\n\005error" + + "\030\003 \001(\0132\022.google.rpc.StatusB\004\342A\001\003\032M\n\014Arti" + + "factList\022=\n\tartifacts\030\001 \003(\0132$.google.clo" + + "ud.aiplatform.v1.ArtifactB\004\342A\001\003\032j\n\013Input" + "sEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;.goo" + "gle.cloud.aiplatform.v1.PipelineTaskDeta" - + "il.ArtifactList:\0028\001\"\246\001\n\005State\022\025\n\021STATE_U" - + "NSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\r" - + "\n\tSUCCEEDED\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n\nCAN" - + "CELLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007\022\013\n\007" - + "SKIPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\323\004\n\032Pipelin" - + "eTaskExecutorDetail\022h\n\020container_detail\030" - + "\001 \001(\0132F.google.cloud.aiplatform.v1.Pipel" - + "ineTaskExecutorDetail.ContainerDetailB\004\342" - + "A\001\003H\000\022i\n\021custom_job_detail\030\002 \001(\0132F.googl" - + "e.cloud.aiplatform.v1.PipelineTaskExecut" - + "orDetail.CustomJobDetailB\004\342A\001\003H\000\032\353\001\n\017Con" - + "tainerDetail\022>\n\010main_job\030\001 \001(\tB,\342A\001\003\372A%\n" - + "#aiplatform.googleapis.com/CustomJob\022K\n\025" - + "pre_caching_check_job\030\002 \001(\tB,\342A\001\003\372A%\n#ai" - + "platform.googleapis.com/CustomJob\022\036\n\020fai" - + "led_main_jobs\030\003 \003(\tB\004\342A\001\003\022+\n\035failed_pre_" - + "caching_check_jobs\030\004 \003(\tB\004\342A\001\003\032g\n\017Custom" - + "JobDetail\0229\n\003job\030\001 \001(\tB,\342A\001\003\372A%\n#aiplatf" - + "orm.googleapis.com/CustomJob\022\031\n\013failed_j" - + "obs\030\003 \003(\tB\004\342A\001\003B\t\n\007detailsB\227\002\n\036com.googl" - + "e.cloud.aiplatform.v1B\010PipelineP\001Z>cloud" - + ".google.com/go/aiplatform/apiv1/aiplatfo" - + "rmpb;aiplatformpb\252\002\032Google.Cloud.AIPlatf" - + "orm.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Go" - + "ogle::Cloud::AIPlatform::V1\352AN\n\036compute." - + "googleapis.com/Network\022,projects/{projec" - + "t}/global/networks/{network}b\006proto3" + + "il.ArtifactList:\0028\001\032k\n\014OutputsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;.google.cloud.a" + + "iplatform.v1.PipelineTaskDetail.Artifact" + + "List:\0028\001\"\246\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020" + + "\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED" + + "\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n\nCANCELLING\020\005\022\r" + + "\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007\022\013\n\007SKIPPED\020\010\022\021" + + "\n\rNOT_TRIGGERED\020\t\"\323\004\n\032PipelineTaskExecut" + + "orDetail\022h\n\020container_detail\030\001 \001(\0132F.goo" + + "gle.cloud.aiplatform.v1.PipelineTaskExec" + + "utorDetail.ContainerDetailB\004\342A\001\003H\000\022i\n\021cu" + + "stom_job_detail\030\002 \001(\0132F.google.cloud.aip" + + "latform.v1.PipelineTaskExecutorDetail.Cu" + + "stomJobDetailB\004\342A\001\003H\000\032\353\001\n\017ContainerDetai" + + "l\022>\n\010main_job\030\001 \001(\tB,\342A\001\003\372A%\n#aiplatform" + + ".googleapis.com/CustomJob\022K\n\025pre_caching" + + "_check_job\030\002 \001(\tB,\342A\001\003\372A%\n#aiplatform.go" + + "ogleapis.com/CustomJob\022\036\n\020failed_main_jo" + + "bs\030\003 \003(\tB\004\342A\001\003\022+\n\035failed_pre_caching_che" + + "ck_jobs\030\004 \003(\tB\004\342A\001\003\032g\n\017CustomJobDetail\0229" + + "\n\003job\030\001 \001(\tB,\342A\001\003\372A%\n#aiplatform.googlea" + + "pis.com/CustomJob\022\031\n\013failed_jobs\030\003 \003(\tB\004" + + "\342A\001\003B\t\n\007detailsB\227\002\n\036com.google.cloud.aip" + + "latform.v1B\010PipelineP\001Z>cloud.google.com" + + "/go/aiplatform/apiv1/aiplatformpb;aiplat" + + "formpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Go" + + "ogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud" + + "::AIPlatform::V1\352AN\n\036compute.googleapis." + + "com/Network\022,projects/{project}/global/n" + + "etworks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -272,6 +273,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReservedIpRanges", "TemplateUri", "TemplateMetadata", + "ScheduleName", }); internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_descriptor = internal_static_google_cloud_aiplatform_v1_PipelineJob_descriptor.getNestedTypes().get(0); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java index 6e13ee31c688..eab92fc2fe14 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java @@ -45,6 +45,7 @@ private PipelineJob() { network_ = ""; reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); templateUri_ = ""; + scheduleName_ = ""; } @java.lang.Override @@ -4496,6 +4497,59 @@ public com.google.cloud.aiplatform.v1.PipelineTemplateMetadata getTemplateMetada : templateMetadata_; } + public static final int SCHEDULE_NAME_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private volatile java.lang.Object scheduleName_ = ""; + /** + * + * + *
+   * Output only. The schedule resource name.
+   * Only returned if the Pipeline is created by Schedule API.
+   * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scheduleName. + */ + @java.lang.Override + public java.lang.String getScheduleName() { + java.lang.Object ref = scheduleName_; + 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(); + scheduleName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The schedule resource name.
+   * Only returned if the Pipeline is created by Schedule API.
+   * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scheduleName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScheduleNameBytes() { + java.lang.Object ref = scheduleName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scheduleName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4561,6 +4615,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (templateMetadata_ != null) { output.writeMessage(20, getTemplateMetadata()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, scheduleName_); + } for (int i = 0; i < reservedIpRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, reservedIpRanges_.getRaw(i)); } @@ -4632,6 +4689,9 @@ public int getSerializedSize() { if (templateMetadata_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getTemplateMetadata()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, scheduleName_); + } { int dataSize = 0; for (int i = 0; i < reservedIpRanges_.size(); i++) { @@ -4704,6 +4764,7 @@ public boolean equals(final java.lang.Object obj) { if (hasTemplateMetadata()) { if (!getTemplateMetadata().equals(other.getTemplateMetadata())) return false; } + if (!getScheduleName().equals(other.getScheduleName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4775,6 +4836,8 @@ public int hashCode() { hash = (37 * hash) + TEMPLATE_METADATA_FIELD_NUMBER; hash = (53 * hash) + getTemplateMetadata().hashCode(); } + hash = (37 * hash) + SCHEDULE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getScheduleName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4992,6 +5055,7 @@ public Builder clear() { templateMetadataBuilder_.dispose(); templateMetadataBuilder_ = null; } + scheduleName_ = ""; return this; } @@ -5088,6 +5152,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.PipelineJob result) { result.templateMetadata_ = templateMetadataBuilder_ == null ? templateMetadata_ : templateMetadataBuilder_.build(); } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.scheduleName_ = scheduleName_; + } } @java.lang.Override @@ -5205,6 +5272,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJob other) { if (other.hasTemplateMetadata()) { mergeTemplateMetadata(other.getTemplateMetadata()); } + if (!other.getScheduleName().isEmpty()) { + scheduleName_ = other.scheduleName_; + bitField0_ |= 0x00040000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5340,6 +5412,12 @@ public Builder mergeFrom( bitField0_ |= 0x00020000; break; } // case 162 + case 178: + { + scheduleName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 178 case 202: { java.lang.String s = input.readStringRequireUtf8(); @@ -8534,6 +8612,117 @@ public Builder clearTemplateMetadata() { return templateMetadataBuilder_; } + private java.lang.Object scheduleName_ = ""; + /** + * + * + *
+     * Output only. The schedule resource name.
+     * Only returned if the Pipeline is created by Schedule API.
+     * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scheduleName. + */ + public java.lang.String getScheduleName() { + java.lang.Object ref = scheduleName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scheduleName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The schedule resource name.
+     * Only returned if the Pipeline is created by Schedule API.
+     * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scheduleName. + */ + public com.google.protobuf.ByteString getScheduleNameBytes() { + java.lang.Object ref = scheduleName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scheduleName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The schedule resource name.
+     * Only returned if the Pipeline is created by Schedule API.
+     * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The scheduleName to set. + * @return This builder for chaining. + */ + public Builder setScheduleName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scheduleName_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The schedule resource name.
+     * Only returned if the Pipeline is created by Schedule API.
+     * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScheduleName() { + scheduleName_ = getDefaultInstance().getScheduleName(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The schedule resource name.
+     * Only returned if the Pipeline is created by Schedule API.
+     * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for scheduleName to set. + * @return This builder for chaining. + */ + public Builder setScheduleNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scheduleName_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java index 7e442cd410f5..c3ffd385427e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java @@ -792,4 +792,31 @@ java.lang.String getLabelsOrDefault( * */ com.google.cloud.aiplatform.v1.PipelineTemplateMetadataOrBuilder getTemplateMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. The schedule resource name.
+   * Only returned if the Pipeline is created by Schedule API.
+   * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scheduleName. + */ + java.lang.String getScheduleName(); + /** + * + * + *
+   * Output only. The schedule resource name.
+   * Only returned if the Pipeline is created by Schedule API.
+   * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scheduleName. + */ + com.google.protobuf.ByteString getScheduleNameBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModel.java index 1ceb01f8bd5e..173849b917a1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModel.java @@ -2819,6 +2819,49 @@ public interface CallToActionOrBuilder */ com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferencesOrBuilder getRequestAccessOrBuilder(); + + /** + * + * + *
+     * Optional. Open evaluation pipeline of the PublisherModel.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the openEvaluationPipeline field is set. + */ + boolean hasOpenEvaluationPipeline(); + /** + * + * + *
+     * Optional. Open evaluation pipeline of the PublisherModel.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The openEvaluationPipeline. + */ + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + getOpenEvaluationPipeline(); + /** + * + * + *
+     * Optional. Open evaluation pipeline of the PublisherModel.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferencesOrBuilder + getOpenEvaluationPipelineOrBuilder(); } /** * @@ -8769,6 +8812,68 @@ public boolean hasRequestAccess() { : requestAccess_; } + public static final int OPEN_EVALUATION_PIPELINE_FIELD_NUMBER = 11; + private com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + openEvaluationPipeline_; + /** + * + * + *
+     * Optional. Open evaluation pipeline of the PublisherModel.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the openEvaluationPipeline field is set. + */ + @java.lang.Override + public boolean hasOpenEvaluationPipeline() { + return openEvaluationPipeline_ != null; + } + /** + * + * + *
+     * Optional. Open evaluation pipeline of the PublisherModel.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The openEvaluationPipeline. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + getOpenEvaluationPipeline() { + return openEvaluationPipeline_ == null + ? com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + .getDefaultInstance() + : openEvaluationPipeline_; + } + /** + * + * + *
+     * Optional. Open evaluation pipeline of the PublisherModel.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PublisherModel.CallToAction + .RegionalResourceReferencesOrBuilder + getOpenEvaluationPipelineOrBuilder() { + return openEvaluationPipeline_ == null + ? com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + .getDefaultInstance() + : openEvaluationPipeline_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8810,6 +8915,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (requestAccess_ != null) { output.writeMessage(9, getRequestAccess()); } + if (openEvaluationPipeline_ != null) { + output.writeMessage(11, getOpenEvaluationPipeline()); + } getUnknownFields().writeTo(output); } @@ -8852,6 +8960,11 @@ public int getSerializedSize() { if (requestAccess_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getRequestAccess()); } + if (openEvaluationPipeline_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, getOpenEvaluationPipeline()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8905,6 +9018,10 @@ public boolean equals(final java.lang.Object obj) { if (hasRequestAccess()) { if (!getRequestAccess().equals(other.getRequestAccess())) return false; } + if (hasOpenEvaluationPipeline() != other.hasOpenEvaluationPipeline()) return false; + if (hasOpenEvaluationPipeline()) { + if (!getOpenEvaluationPipeline().equals(other.getOpenEvaluationPipeline())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8952,6 +9069,10 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ACCESS_FIELD_NUMBER; hash = (53 * hash) + getRequestAccess().hashCode(); } + if (hasOpenEvaluationPipeline()) { + hash = (37 * hash) + OPEN_EVALUATION_PIPELINE_FIELD_NUMBER; + hash = (53 * hash) + getOpenEvaluationPipeline().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -9139,6 +9260,11 @@ public Builder clear() { requestAccessBuilder_.dispose(); requestAccessBuilder_ = null; } + openEvaluationPipeline_ = null; + if (openEvaluationPipelineBuilder_ != null) { + openEvaluationPipelineBuilder_.dispose(); + openEvaluationPipelineBuilder_ = null; + } return this; } @@ -9219,6 +9345,12 @@ private void buildPartial0( result.requestAccess_ = requestAccessBuilder_ == null ? requestAccess_ : requestAccessBuilder_.build(); } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.openEvaluationPipeline_ = + openEvaluationPipelineBuilder_ == null + ? openEvaluationPipeline_ + : openEvaluationPipelineBuilder_.build(); + } } @java.lang.Override @@ -9297,6 +9429,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PublisherModel.CallToAct if (other.hasRequestAccess()) { mergeRequestAccess(other.getRequestAccess()); } + if (other.hasOpenEvaluationPipeline()) { + mergeOpenEvaluationPipeline(other.getOpenEvaluationPipeline()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -9381,6 +9516,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 74 + case 90: + { + input.readMessage( + getOpenEvaluationPipelineFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11398,6 +11540,231 @@ public Builder clearRequestAccess() { return requestAccessBuilder_; } + private com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + openEvaluationPipeline_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences, + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + .Builder, + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction + .RegionalResourceReferencesOrBuilder> + openEvaluationPipelineBuilder_; + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the openEvaluationPipeline field is set. + */ + public boolean hasOpenEvaluationPipeline() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The openEvaluationPipeline. + */ + public com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + getOpenEvaluationPipeline() { + if (openEvaluationPipelineBuilder_ == null) { + return openEvaluationPipeline_ == null + ? com.google.cloud.aiplatform.v1.PublisherModel.CallToAction + .RegionalResourceReferences.getDefaultInstance() + : openEvaluationPipeline_; + } else { + return openEvaluationPipelineBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOpenEvaluationPipeline( + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + value) { + if (openEvaluationPipelineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + openEvaluationPipeline_ = value; + } else { + openEvaluationPipelineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOpenEvaluationPipeline( + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + .Builder + builderForValue) { + if (openEvaluationPipelineBuilder_ == null) { + openEvaluationPipeline_ = builderForValue.build(); + } else { + openEvaluationPipelineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOpenEvaluationPipeline( + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + value) { + if (openEvaluationPipelineBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && openEvaluationPipeline_ != null + && openEvaluationPipeline_ + != com.google.cloud.aiplatform.v1.PublisherModel.CallToAction + .RegionalResourceReferences.getDefaultInstance()) { + getOpenEvaluationPipelineBuilder().mergeFrom(value); + } else { + openEvaluationPipeline_ = value; + } + } else { + openEvaluationPipelineBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOpenEvaluationPipeline() { + bitField0_ = (bitField0_ & ~0x00000200); + openEvaluationPipeline_ = null; + if (openEvaluationPipelineBuilder_ != null) { + openEvaluationPipelineBuilder_.dispose(); + openEvaluationPipelineBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + .Builder + getOpenEvaluationPipelineBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getOpenEvaluationPipelineFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.PublisherModel.CallToAction + .RegionalResourceReferencesOrBuilder + getOpenEvaluationPipelineOrBuilder() { + if (openEvaluationPipelineBuilder_ != null) { + return openEvaluationPipelineBuilder_.getMessageOrBuilder(); + } else { + return openEvaluationPipeline_ == null + ? com.google.cloud.aiplatform.v1.PublisherModel.CallToAction + .RegionalResourceReferences.getDefaultInstance() + : openEvaluationPipeline_; + } + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences, + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences + .Builder, + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction + .RegionalResourceReferencesOrBuilder> + getOpenEvaluationPipelineFieldBuilder() { + if (openEvaluationPipelineBuilder_ == null) { + openEvaluationPipelineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction + .RegionalResourceReferences, + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction + .RegionalResourceReferences.Builder, + com.google.cloud.aiplatform.v1.PublisherModel.CallToAction + .RegionalResourceReferencesOrBuilder>( + getOpenEvaluationPipeline(), getParentForChildren(), isClean()); + openEvaluationPipeline_ = null; + } + return openEvaluationPipelineBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModelProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModelProto.java index af9a8f5034a7..7ffdd1e3d957 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModelProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModelProto.java @@ -73,7 +73,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\0322google/cloud/aiplatf" + "orm/v1/machine_resources.proto\032&google/c" - + "loud/aiplatform/v1/model.proto\"\207\027\n\016Publi" + + "loud/aiplatform/v1/model.proto\"\203\030\n\016Publi" + "sherModel\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\031\n\nversion" + "_id\030\002 \001(\tB\005\342A\002\005\003\022a\n\024open_source_category" + "\030\007 \001(\0162=.google.cloud.aiplatform.v1.Publ" @@ -89,7 +89,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ourceReference\022\r\n\003uri\030\001 \001(\tH\000\022\027\n\rresourc" + "e_name\030\002 \001(\tH\000B\013\n\treference\032;\n\rDocumenta" + "tion\022\023\n\005title\030\001 \001(\tB\004\342A\001\002\022\025\n\007content\030\002 \001" - + "(\tB\004\342A\001\002\032\371\016\n\014CallToAction\022`\n\rview_rest_a" + + "(\tB\004\342A\001\002\032\365\017\n\014CallToAction\022`\n\rview_rest_a" + "pi\030\001 \001(\0132C.google.cloud.aiplatform.v1.Pu" + "blisherModel.CallToAction.ViewRestApiB\004\342" + "A\001\001\022o\n\ropen_notebook\030\002 \001(\0132R.google.clou" @@ -115,45 +115,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "sB\004\342A\001\001\022p\n\016request_access\030\t \001(\0132R.google" + ".cloud.aiplatform.v1.PublisherModel.Call" + "ToAction.RegionalResourceReferencesB\004\342A\001" - + "\001\032\240\002\n\032RegionalResourceReferences\022|\n\nrefe" - + "rences\030\001 \003(\0132b.google.cloud.aiplatform.v" - + "1.PublisherModel.CallToAction.RegionalRe" - + "sourceReferences.ReferencesEntryB\004\342A\001\002\022\023" - + "\n\005title\030\002 \001(\tB\004\342A\001\002\032o\n\017ReferencesEntry\022\013" - + "\n\003key\030\001 \001(\t\022K\n\005value\030\002 \001(\0132<.google.clou" - + "d.aiplatform.v1.PublisherModel.ResourceR" - + "eference:\0028\001\032z\n\013ViewRestApi\022V\n\016documenta" - + "tions\030\001 \003(\01328.google.cloud.aiplatform.v1" - + ".PublisherModel.DocumentationB\004\342A\001\002\022\023\n\005t" - + "itle\030\002 \001(\tB\004\342A\001\002\032\321\003\n\006Deploy\022M\n\023dedicated" - + "_resources\030\005 \001(\0132..google.cloud.aiplatfo" - + "rm.v1.DedicatedResourcesH\000\022M\n\023automatic_" - + "resources\030\006 \001(\0132..google.cloud.aiplatfor" - + "m.v1.AutomaticResourcesH\000\022\032\n\020shared_reso" - + "urces\030\007 \001(\tH\000\022 \n\022model_display_name\030\001 \001(" - + "\tB\004\342A\001\001\022T\n\025large_model_reference\030\002 \001(\0132/" - + ".google.cloud.aiplatform.v1.LargeModelRe" - + "ferenceB\004\342A\001\001\022L\n\016container_spec\030\003 \001(\0132.." - + "google.cloud.aiplatform.v1.ModelContaine" - + "rSpecB\004\342A\001\001\022\032\n\014artifact_uri\030\004 \001(\tB\004\342A\001\001\022" - + "\023\n\005title\030\010 \001(\tB\004\342A\001\002B\026\n\024prediction_resou" - + "rces\"\333\001\n\022OpenSourceCategory\022$\n OPEN_SOUR" - + "CE_CATEGORY_UNSPECIFIED\020\000\022\017\n\013PROPRIETARY" - + "\020\001\022+\n\'GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECK" - + "POINT\020\002\0220\n,THIRD_PARTY_OWNED_OSS_WITH_GO" - + "OGLE_CHECKPOINT\020\003\022\024\n\020GOOGLE_OWNED_OSS\020\004\022" - + "\031\n\025THIRD_PARTY_OWNED_OSS\020\005\"n\n\013LaunchStag" - + "e\022\034\n\030LAUNCH_STAGE_UNSPECIFIED\020\000\022\020\n\014EXPER" - + "IMENTAL\020\001\022\023\n\017PRIVATE_PREVIEW\020\002\022\022\n\016PUBLIC" - + "_PREVIEW\020\003\022\006\n\002GA\020\004:T\352AQ\n(aiplatform.goog" - + "leapis.com/PublisherModel\022%publishers/{p" - + "ublisher}/models/{model}B\321\001\n\036com.google." - + "cloud.aiplatform.v1B\023PublisherModelProto" - + "P\001Z>cloud.google.com/go/aiplatform/apiv1" - + "/aiplatformpb;aiplatformpb\252\002\032Google.Clou" - + "d.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfor" - + "m\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pr" - + "oto3" + + "\001\022z\n\030open_evaluation_pipeline\030\013 \001(\0132R.go" + + "ogle.cloud.aiplatform.v1.PublisherModel." + + "CallToAction.RegionalResourceReferencesB" + + "\004\342A\001\001\032\240\002\n\032RegionalResourceReferences\022|\n\n" + + "references\030\001 \003(\0132b.google.cloud.aiplatfo" + + "rm.v1.PublisherModel.CallToAction.Region" + + "alResourceReferences.ReferencesEntryB\004\342A" + + "\001\002\022\023\n\005title\030\002 \001(\tB\004\342A\001\002\032o\n\017ReferencesEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022K\n\005value\030\002 \001(\0132<.google." + + "cloud.aiplatform.v1.PublisherModel.Resou" + + "rceReference:\0028\001\032z\n\013ViewRestApi\022V\n\016docum" + + "entations\030\001 \003(\01328.google.cloud.aiplatfor" + + "m.v1.PublisherModel.DocumentationB\004\342A\001\002\022" + + "\023\n\005title\030\002 \001(\tB\004\342A\001\002\032\321\003\n\006Deploy\022M\n\023dedic" + + "ated_resources\030\005 \001(\0132..google.cloud.aipl" + + "atform.v1.DedicatedResourcesH\000\022M\n\023automa" + + "tic_resources\030\006 \001(\0132..google.cloud.aipla" + + "tform.v1.AutomaticResourcesH\000\022\032\n\020shared_" + + "resources\030\007 \001(\tH\000\022 \n\022model_display_name\030" + + "\001 \001(\tB\004\342A\001\001\022T\n\025large_model_reference\030\002 \001" + + "(\0132/.google.cloud.aiplatform.v1.LargeMod" + + "elReferenceB\004\342A\001\001\022L\n\016container_spec\030\003 \001(" + + "\0132..google.cloud.aiplatform.v1.ModelCont" + + "ainerSpecB\004\342A\001\001\022\032\n\014artifact_uri\030\004 \001(\tB\004\342" + + "A\001\001\022\023\n\005title\030\010 \001(\tB\004\342A\001\002B\026\n\024prediction_r" + + "esources\"\333\001\n\022OpenSourceCategory\022$\n OPEN_" + + "SOURCE_CATEGORY_UNSPECIFIED\020\000\022\017\n\013PROPRIE" + + "TARY\020\001\022+\n\'GOOGLE_OWNED_OSS_WITH_GOOGLE_C" + + "HECKPOINT\020\002\0220\n,THIRD_PARTY_OWNED_OSS_WIT" + + "H_GOOGLE_CHECKPOINT\020\003\022\024\n\020GOOGLE_OWNED_OS" + + "S\020\004\022\031\n\025THIRD_PARTY_OWNED_OSS\020\005\"n\n\013Launch" + + "Stage\022\034\n\030LAUNCH_STAGE_UNSPECIFIED\020\000\022\020\n\014E" + + "XPERIMENTAL\020\001\022\023\n\017PRIVATE_PREVIEW\020\002\022\022\n\016PU" + + "BLIC_PREVIEW\020\003\022\006\n\002GA\020\004:T\352AQ\n(aiplatform." + + "googleapis.com/PublisherModel\022%publisher" + + "s/{publisher}/models/{model}B\321\001\n\036com.goo" + + "gle.cloud.aiplatform.v1B\023PublisherModelP" + + "rotoP\001Z>cloud.google.com/go/aiplatform/a" + + "piv1/aiplatformpb;aiplatformpb\252\002\032Google." + + "Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPla" + + "tform\\V1\352\002\035Google::Cloud::AIPlatform::V1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -216,6 +219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Deploy", "OpenGenerationAiStudio", "RequestAccess", + "OpenEvaluationPipeline", }); internal_static_google_cloud_aiplatform_v1_PublisherModel_CallToAction_RegionalResourceReferences_descriptor = internal_static_google_cloud_aiplatform_v1_PublisherModel_CallToAction_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardSizeRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardSizeRequest.java new file mode 100644 index 000000000000..1abc2b7f63dc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardSizeRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2023 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/v1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [TensorboardService.ReadTensorboardSize][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardSize].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ReadTensorboardSizeRequest} + */ +public final class ReadTensorboardSizeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReadTensorboardSizeRequest) + ReadTensorboardSizeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadTensorboardSizeRequest.newBuilder() to construct. + private ReadTensorboardSizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadTensorboardSizeRequest() { + tensorboard_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadTensorboardSizeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest.class, + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest.Builder.class); + } + + public static final int TENSORBOARD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tensorboard_ = ""; + /** + * + * + *
+   * Required. The name of the Tensorboard resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboard. + */ + @java.lang.Override + public java.lang.String getTensorboard() { + java.lang.Object ref = tensorboard_; + 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(); + tensorboard_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Tensorboard resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboard. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTensorboardBytes() { + java.lang.Object ref = tensorboard_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboard_ = 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(tensorboard_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tensorboard_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tensorboard_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tensorboard_); + } + size += getUnknownFields().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.v1.ReadTensorboardSizeRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest other = + (com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest) obj; + + if (!getTensorboard().equals(other.getTensorboard())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TENSORBOARD_FIELD_NUMBER; + hash = (53 * hash) + getTensorboard().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest 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.v1.ReadTensorboardSizeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest 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.v1.ReadTensorboardSizeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest 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.v1.ReadTensorboardSizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest 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.v1.ReadTensorboardSizeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest 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.v1.ReadTensorboardSizeRequest 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
+   * [TensorboardService.ReadTensorboardSize][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardSize].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ReadTensorboardSizeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ReadTensorboardSizeRequest) + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest.class, + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tensorboard_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest build() { + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest buildPartial() { + com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest result = + new com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tensorboard_ = tensorboard_; + } + } + + @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.v1.ReadTensorboardSizeRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest other) { + if (other == com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest.getDefaultInstance()) + return this; + if (!other.getTensorboard().isEmpty()) { + tensorboard_ = other.tensorboard_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + tensorboard_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object tensorboard_ = ""; + /** + * + * + *
+     * Required. The name of the Tensorboard resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboard. + */ + public java.lang.String getTensorboard() { + java.lang.Object ref = tensorboard_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tensorboard_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Tensorboard resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboard. + */ + public com.google.protobuf.ByteString getTensorboardBytes() { + java.lang.Object ref = tensorboard_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tensorboard_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Tensorboard resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The tensorboard to set. + * @return This builder for chaining. + */ + public Builder setTensorboard(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tensorboard_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Tensorboard resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTensorboard() { + tensorboard_ = getDefaultInstance().getTensorboard(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Tensorboard resource.
+     * Format:
+     * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+     * 
+ * + * + * string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tensorboard to set. + * @return This builder for chaining. + */ + public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tensorboard_ = value; + bitField0_ |= 0x00000001; + 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.v1.ReadTensorboardSizeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReadTensorboardSizeRequest) + private static final com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest(); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadTensorboardSizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.v1.ReadTensorboardSizeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardSizeRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardSizeRequestOrBuilder.java new file mode 100644 index 000000000000..36f6fb3e1407 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardSizeRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 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/v1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface ReadTensorboardSizeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReadTensorboardSizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Tensorboard resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tensorboard. + */ + java.lang.String getTensorboard(); + /** + * + * + *
+   * Required. The name of the Tensorboard resource.
+   * Format:
+   * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
+   * 
+ * + * + * string tensorboard = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tensorboard. + */ + com.google.protobuf.ByteString getTensorboardBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardSizeResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardSizeResponse.java new file mode 100644 index 000000000000..e835d417158d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardSizeResponse.java @@ -0,0 +1,537 @@ +/* + * Copyright 2023 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/v1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for
+ * [TensorboardService.ReadTensorboardSize][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardSize].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ReadTensorboardSizeResponse} + */ +public final class ReadTensorboardSizeResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReadTensorboardSizeResponse) + ReadTensorboardSizeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadTensorboardSizeResponse.newBuilder() to construct. + private ReadTensorboardSizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadTensorboardSizeResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadTensorboardSizeResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse.class, + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse.Builder.class); + } + + public static final int STORAGE_SIZE_BYTE_FIELD_NUMBER = 1; + private long storageSizeByte_ = 0L; + /** + * + * + *
+   * Payload storage size for the TensorBoard
+   * 
+ * + * int64 storage_size_byte = 1; + * + * @return The storageSizeByte. + */ + @java.lang.Override + public long getStorageSizeByte() { + return storageSizeByte_; + } + + 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 (storageSizeByte_ != 0L) { + output.writeInt64(1, storageSizeByte_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (storageSizeByte_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, storageSizeByte_); + } + size += getUnknownFields().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.v1.ReadTensorboardSizeResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse other = + (com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse) obj; + + if (getStorageSizeByte() != other.getStorageSizeByte()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + STORAGE_SIZE_BYTE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStorageSizeByte()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse 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.v1.ReadTensorboardSizeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse 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.v1.ReadTensorboardSizeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse 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.v1.ReadTensorboardSizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse 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.v1.ReadTensorboardSizeResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse 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.v1.ReadTensorboardSizeResponse 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
+   * [TensorboardService.ReadTensorboardSize][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardSize].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ReadTensorboardSizeResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ReadTensorboardSizeResponse) + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse.class, + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + storageSizeByte_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.TensorboardServiceProto + .internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse build() { + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse buildPartial() { + com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse result = + new com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.storageSizeByte_ = storageSizeByte_; + } + } + + @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.v1.ReadTensorboardSizeResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse other) { + if (other == com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse.getDefaultInstance()) + return this; + if (other.getStorageSizeByte() != 0L) { + setStorageSizeByte(other.getStorageSizeByte()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + storageSizeByte_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long storageSizeByte_; + /** + * + * + *
+     * Payload storage size for the TensorBoard
+     * 
+ * + * int64 storage_size_byte = 1; + * + * @return The storageSizeByte. + */ + @java.lang.Override + public long getStorageSizeByte() { + return storageSizeByte_; + } + /** + * + * + *
+     * Payload storage size for the TensorBoard
+     * 
+ * + * int64 storage_size_byte = 1; + * + * @param value The storageSizeByte to set. + * @return This builder for chaining. + */ + public Builder setStorageSizeByte(long value) { + + storageSizeByte_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Payload storage size for the TensorBoard
+     * 
+ * + * int64 storage_size_byte = 1; + * + * @return This builder for chaining. + */ + public Builder clearStorageSizeByte() { + bitField0_ = (bitField0_ & ~0x00000001); + storageSizeByte_ = 0L; + 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.v1.ReadTensorboardSizeResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReadTensorboardSizeResponse) + private static final com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse(); + } + + public static com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadTensorboardSizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.v1.ReadTensorboardSizeResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardSizeResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardSizeResponseOrBuilder.java new file mode 100644 index 000000000000..0853193a232f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReadTensorboardSizeResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2023 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/v1/tensorboard_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface ReadTensorboardSizeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReadTensorboardSizeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Payload storage size for the TensorBoard
+   * 
+ * + * int64 storage_size_byte = 1; + * + * @return The storageSizeByte. + */ + long getStorageSizeByte(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RestoreDatasetVersionOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RestoreDatasetVersionOperationMetadata.java new file mode 100644 index 000000000000..1a0b0c846516 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RestoreDatasetVersionOperationMetadata.java @@ -0,0 +1,729 @@ +/* + * Copyright 2023 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/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Runtime operation information for
+ * [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1.DatasetService.RestoreDatasetVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata} + */ +public final class RestoreDatasetVersionOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata) + RestoreDatasetVersionOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RestoreDatasetVersionOperationMetadata.newBuilder() to construct. + private RestoreDatasetVersionOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RestoreDatasetVersionOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RestoreDatasetVersionOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata.class, + com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + 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()); + } + getUnknownFields().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 += getUnknownFields().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.v1.RestoreDatasetVersionOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata other = + (com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata 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.v1.RestoreDatasetVersionOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata 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.v1.RestoreDatasetVersionOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata 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.v1.RestoreDatasetVersionOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata + 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.v1.RestoreDatasetVersionOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata 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.v1.RestoreDatasetVersionOperationMetadata 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
+   * [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1.DatasetService.RestoreDatasetVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata) + com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata.class, + com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata build() { + com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata result = + new com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + + @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.v1.RestoreDatasetVersionOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + getGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.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.v1.RestoreDatasetVersionOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata) + private static final com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreDatasetVersionOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.v1.RestoreDatasetVersionOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RestoreDatasetVersionOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RestoreDatasetVersionOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..1b67ad101a2f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RestoreDatasetVersionOperationMetadataOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2023 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/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface RestoreDatasetVersionOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schedule.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schedule.java index 7a58ee40d5c5..efa8a7c824e8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schedule.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schedule.java @@ -1446,10 +1446,10 @@ public com.google.cloud.aiplatform.v1.CreatePipelineJobRequest getCreatePipeline * * *
-   * Output only. The resource name of the Schedule.
+   * Immutable. The resource name of the Schedule.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -1469,10 +1469,10 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name of the Schedule.
+   * Immutable. The resource name of the Schedule.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ @@ -3441,10 +3441,10 @@ public Builder clearCreatePipelineJobRequest() { * * *
-     * Output only. The resource name of the Schedule.
+     * Immutable. The resource name of the Schedule.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -3463,10 +3463,10 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name of the Schedule.
+     * Immutable. The resource name of the Schedule.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ @@ -3485,10 +3485,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name of the Schedule.
+     * Immutable. The resource name of the Schedule.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The name to set. * @return This builder for chaining. @@ -3506,10 +3506,10 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name of the Schedule.
+     * Immutable. The resource name of the Schedule.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ @@ -3523,10 +3523,10 @@ public Builder clearName() { * * *
-     * Output only. The resource name of the Schedule.
+     * Immutable. The resource name of the Schedule.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleOrBuilder.java index 3135f4a6dc31..b8e219f9aa11 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleOrBuilder.java @@ -127,10 +127,10 @@ public interface ScheduleOrBuilder * * *
-   * Output only. The resource name of the Schedule.
+   * Immutable. The resource name of the Schedule.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -139,10 +139,10 @@ public interface ScheduleOrBuilder * * *
-   * Output only. The resource name of the Schedule.
+   * Immutable. The resource name of the Schedule.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleProto.java index b600af708738..4ce9bbc3785b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ScheduleProto.java @@ -52,7 +52,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "timestamp.proto\"\225\t\n\010Schedule\022\016\n\004cron\030\n \001" + "(\tH\000\022[\n\033create_pipeline_job_request\030\016 \001(" + "\01324.google.cloud.aiplatform.v1.CreatePip" - + "elineJobRequestH\001\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\032\n" + + "elineJobRequestH\001\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\0224\n\nstart_time\030" + "\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\022" + "2\n\010end_time\030\004 \001(\0132\032.google.protobuf.Time" diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java index dc758a6e28fc..09a5a59f0c65 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Scheduling.java @@ -126,6 +126,26 @@ public boolean getRestartJobOnWorkerRestart() { return restartJobOnWorkerRestart_; } + public static final int DISABLE_RETRIES_FIELD_NUMBER = 5; + private boolean disableRetries_ = false; + /** + * + * + *
+   * Optional. Indicates if the job should retry for internal errors after the
+   * job starts running. If true, overrides
+   * `Scheduling.restart_job_on_worker_restart` to false.
+   * 
+ * + * bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableRetries. + */ + @java.lang.Override + public boolean getDisableRetries() { + return disableRetries_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -146,6 +166,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (restartJobOnWorkerRestart_ != false) { output.writeBool(3, restartJobOnWorkerRestart_); } + if (disableRetries_ != false) { + output.writeBool(5, disableRetries_); + } getUnknownFields().writeTo(output); } @@ -161,6 +184,9 @@ public int getSerializedSize() { if (restartJobOnWorkerRestart_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, restartJobOnWorkerRestart_); } + if (disableRetries_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disableRetries_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -182,6 +208,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTimeout().equals(other.getTimeout())) return false; } if (getRestartJobOnWorkerRestart() != other.getRestartJobOnWorkerRestart()) return false; + if (getDisableRetries() != other.getDisableRetries()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,6 +226,8 @@ public int hashCode() { } hash = (37 * hash) + RESTART_JOB_ON_WORKER_RESTART_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRestartJobOnWorkerRestart()); + hash = (37 * hash) + DISABLE_RETRIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableRetries()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -344,6 +373,7 @@ public Builder clear() { timeoutBuilder_ = null; } restartJobOnWorkerRestart_ = false; + disableRetries_ = false; return this; } @@ -386,6 +416,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Scheduling result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.restartJobOnWorkerRestart_ = restartJobOnWorkerRestart_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disableRetries_ = disableRetries_; + } } @java.lang.Override @@ -439,6 +472,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Scheduling other) { if (other.getRestartJobOnWorkerRestart() != false) { setRestartJobOnWorkerRestart(other.getRestartJobOnWorkerRestart()); } + if (other.getDisableRetries() != false) { + setDisableRetries(other.getDisableRetries()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -477,6 +513,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 40: + { + disableRetries_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -734,6 +776,65 @@ public Builder clearRestartJobOnWorkerRestart() { return this; } + private boolean disableRetries_; + /** + * + * + *
+     * Optional. Indicates if the job should retry for internal errors after the
+     * job starts running. If true, overrides
+     * `Scheduling.restart_job_on_worker_restart` to false.
+     * 
+ * + * bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableRetries. + */ + @java.lang.Override + public boolean getDisableRetries() { + return disableRetries_; + } + /** + * + * + *
+     * Optional. Indicates if the job should retry for internal errors after the
+     * job starts running. If true, overrides
+     * `Scheduling.restart_job_on_worker_restart` to false.
+     * 
+ * + * bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableRetries to set. + * @return This builder for chaining. + */ + public Builder setDisableRetries(boolean value) { + + disableRetries_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Indicates if the job should retry for internal errors after the
+     * job starts running. If true, overrides
+     * `Scheduling.restart_job_on_worker_restart` to false.
+     * 
+ * + * bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableRetries() { + bitField0_ = (bitField0_ & ~0x00000004); + disableRetries_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SchedulingOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SchedulingOrBuilder.java index ad64dd55a80c..12ec4a34a376 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SchedulingOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SchedulingOrBuilder.java @@ -72,4 +72,19 @@ public interface SchedulingOrBuilder * @return The restartJobOnWorkerRestart. */ boolean getRestartJobOnWorkerRestart(); + + /** + * + * + *
+   * Optional. Indicates if the job should retry for internal errors after the
+   * job starts running. If true, overrides
+   * `Scheduling.restart_job_on_worker_restart` to false.
+   * 
+ * + * bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableRetries. + */ + boolean getDisableRetries(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java index 3ac95d2a6379..842f0200441b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java @@ -1224,7 +1224,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=449 + * google/cloud/aiplatform/v1/dataset_service.proto;l=463 * @return The savedQuery. */ @java.lang.Override @@ -1254,7 +1254,7 @@ public java.lang.String getSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=449 + * google/cloud/aiplatform/v1/dataset_service.proto;l=463 * @return The bytes for savedQuery. */ @java.lang.Override @@ -1419,7 +1419,7 @@ public com.google.protobuf.ByteString getDataItemFilterBytes() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=480 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=494 * @return The annotationsFilter. */ @java.lang.Override @@ -1447,7 +1447,7 @@ public java.lang.String getAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=480 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=494 * @return The bytes for annotationsFilter. */ @java.lang.Override @@ -1647,7 +1647,7 @@ public int getPageSize() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1/dataset_service.proto;l=518 * @return The orderBy. */ @java.lang.Override @@ -1674,7 +1674,7 @@ public java.lang.String getOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1/dataset_service.proto;l=518 * @return The bytes for orderBy. */ @java.lang.Override @@ -2973,7 +2973,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=449 + * google/cloud/aiplatform/v1/dataset_service.proto;l=463 * @return The savedQuery. */ @java.lang.Deprecated @@ -3002,7 +3002,7 @@ public java.lang.String getSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=449 + * google/cloud/aiplatform/v1/dataset_service.proto;l=463 * @return The bytes for savedQuery. */ @java.lang.Deprecated @@ -3031,7 +3031,7 @@ public com.google.protobuf.ByteString getSavedQueryBytes() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=449 + * google/cloud/aiplatform/v1/dataset_service.proto;l=463 * @param value The savedQuery to set. * @return This builder for chaining. */ @@ -3059,7 +3059,7 @@ public Builder setSavedQuery(java.lang.String value) { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=449 + * google/cloud/aiplatform/v1/dataset_service.proto;l=463 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3083,7 +3083,7 @@ public Builder clearSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=449 + * google/cloud/aiplatform/v1/dataset_service.proto;l=463 * @param value The bytes for savedQuery to set. * @return This builder for chaining. */ @@ -3399,7 +3399,7 @@ public Builder setDataItemFilterBytes(com.google.protobuf.ByteString value) { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=494 * @return The annotationsFilter. */ @java.lang.Deprecated @@ -3426,7 +3426,7 @@ public java.lang.String getAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=494 * @return The bytes for annotationsFilter. */ @java.lang.Deprecated @@ -3453,7 +3453,7 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=494 * @param value The annotationsFilter to set. * @return This builder for chaining. */ @@ -3479,7 +3479,7 @@ public Builder setAnnotationsFilter(java.lang.String value) { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=494 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3501,7 +3501,7 @@ public Builder clearAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=494 * @param value The bytes for annotationsFilter to set. * @return This builder for chaining. */ @@ -4042,7 +4042,7 @@ public Builder clearPageSize() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1/dataset_service.proto;l=518 * @return The orderBy. */ @java.lang.Deprecated @@ -4068,7 +4068,7 @@ public java.lang.String getOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1/dataset_service.proto;l=518 * @return The bytes for orderBy. */ @java.lang.Deprecated @@ -4094,7 +4094,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1/dataset_service.proto;l=518 * @param value The orderBy to set. * @return This builder for chaining. */ @@ -4119,7 +4119,7 @@ public Builder setOrderBy(java.lang.String value) { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1/dataset_service.proto;l=518 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4140,7 +4140,7 @@ public Builder clearOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1/dataset_service.proto;l=518 * @param value The bytes for orderBy to set. * @return This builder for chaining. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java index fcea93341b71..6f6c9e680632 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java @@ -152,7 +152,7 @@ public interface SearchDataItemsRequestOrBuilder * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=449 + * google/cloud/aiplatform/v1/dataset_service.proto;l=463 * @return The savedQuery. */ @java.lang.Deprecated @@ -171,7 +171,7 @@ public interface SearchDataItemsRequestOrBuilder * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=449 + * google/cloud/aiplatform/v1/dataset_service.proto;l=463 * @return The bytes for savedQuery. */ @java.lang.Deprecated @@ -269,7 +269,7 @@ public interface SearchDataItemsRequestOrBuilder * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=480 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=494 * @return The annotationsFilter. */ @java.lang.Deprecated @@ -286,7 +286,7 @@ public interface SearchDataItemsRequestOrBuilder * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=480 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=494 * @return The bytes for annotationsFilter. */ @java.lang.Deprecated @@ -437,7 +437,7 @@ public interface SearchDataItemsRequestOrBuilder * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1/dataset_service.proto;l=518 * @return The orderBy. */ @java.lang.Deprecated @@ -453,7 +453,7 @@ public interface SearchDataItemsRequestOrBuilder * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1/dataset_service.proto;l=518 * @return The bytes for orderBy. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceProto.java index 56057a16c5d1..21b3cc408670 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceProto.java @@ -71,6 +71,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ReadTensorboardUsageResponse_MonthlyUsageDataEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ReadTensorboardUsageResponse_MonthlyUsageDataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_CreateTensorboardExperimentRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -273,346 +281,356 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "a\032\203\001\n\025MonthlyUsageDataEntry\022\013\n\003key\030\001 \001(\t" + "\022Y\n\005value\030\002 \001(\0132J.google.cloud.aiplatfor" + "m.v1.ReadTensorboardUsageResponse.PerMon" - + "thUsageData:\0028\001\"\352\001\n\"CreateTensorboardExp" - + "erimentRequest\022H\n\006parent\030\001 \001(\tB8\342A\001\002\372A1\n" - + "/aiplatform.googleapis.com/TensorboardEx" - + "periment\022Q\n\026tensorboard_experiment\030\002 \001(\013" - + "21.google.cloud.aiplatform.v1.Tensorboar" - + "dExperiment\022\'\n\031tensorboard_experiment_id" - + "\030\003 \001(\tB\004\342A\001\002\"i\n\037GetTensorboardExperiment" - + "Request\022F\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/aiplatfo" - + "rm.googleapis.com/TensorboardExperiment\"" - + "\345\001\n!ListTensorboardExperimentsRequest\022H\n" - + "\006parent\030\001 \001(\tB8\342A\001\002\372A1\022/aiplatform.googl" - + "eapis.com/TensorboardExperiment\022\016\n\006filte" - + "r\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token" - + "\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\022-\n\tread_mask\030\006 " - + "\001(\0132\032.google.protobuf.FieldMask\"\221\001\n\"List" - + "TensorboardExperimentsResponse\022R\n\027tensor" - + "board_experiments\030\001 \003(\01321.google.cloud.a" - + "iplatform.v1.TensorboardExperiment\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"\264\001\n\"UpdateTensorboar" - + "dExperimentRequest\0225\n\013update_mask\030\001 \001(\0132" - + "\032.google.protobuf.FieldMaskB\004\342A\001\002\022W\n\026ten" - + "sorboard_experiment\030\002 \001(\01321.google.cloud" - + ".aiplatform.v1.TensorboardExperimentB\004\342A" - + "\001\002\"l\n\"DeleteTensorboardExperimentRequest" - + "\022F\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/aiplatform.goog" - + "leapis.com/TensorboardExperiment\"\276\001\n!Bat" - + "chCreateTensorboardRunsRequest\022H\n\006parent" - + "\030\001 \001(\tB8\342A\001\002\372A1\n/aiplatform.googleapis.c" - + "om/TensorboardExperiment\022O\n\010requests\030\002 \003" - + "(\01327.google.cloud.aiplatform.v1.CreateTe" - + "nsorboardRunRequestB\004\342A\001\002\"j\n\"BatchCreate" - + "TensorboardRunsResponse\022D\n\020tensorboard_r" - + "uns\030\001 \003(\0132*.google.cloud.aiplatform.v1.T" - + "ensorboardRun\"\315\001\n\033CreateTensorboardRunRe" - + "quest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatfo" - + "rm.googleapis.com/TensorboardRun\022I\n\017tens" - + "orboard_run\030\002 \001(\0132*.google.cloud.aiplatf" - + "orm.v1.TensorboardRunB\004\342A\001\002\022 \n\022tensorboa" - + "rd_run_id\030\003 \001(\tB\004\342A\001\002\"[\n\030GetTensorboardR" - + "unRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(aiplat" - + "form.googleapis.com/TensorboardRun\"\201\001\n\036R" - + "eadTensorboardBlobDataRequest\022M\n\013time_se" - + "ries\030\001 \001(\tB8\342A\001\002\372A1\n/aiplatform.googleap" - + "is.com/TensorboardTimeSeries\022\020\n\010blob_ids" - + "\030\002 \003(\t\"]\n\037ReadTensorboardBlobDataRespons" - + "e\022:\n\005blobs\030\001 \003(\0132+.google.cloud.aiplatfo" - + "rm.v1.TensorboardBlob\"\327\001\n\032ListTensorboar" - + "dRunsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(a" - + "iplatform.googleapis.com/TensorboardRun\022" - + "\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npa" - + "ge_token\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\022-\n\tread" - + "_mask\030\006 \001(\0132\032.google.protobuf.FieldMask\"" - + "|\n\033ListTensorboardRunsResponse\022D\n\020tensor" - + "board_runs\030\001 \003(\0132*.google.cloud.aiplatfo" - + "rm.v1.TensorboardRun\022\027\n\017next_page_token\030" - + "\002 \001(\t\"\237\001\n\033UpdateTensorboardRunRequest\0225\n" - + "\013update_mask\030\001 \001(\0132\032.google.protobuf.Fie" - + "ldMaskB\004\342A\001\002\022I\n\017tensorboard_run\030\002 \001(\0132*." - + "google.cloud.aiplatform.v1.TensorboardRu" - + "nB\004\342A\001\002\"^\n\033DeleteTensorboardRunRequest\022?" - + "\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatform.google" - + "apis.com/TensorboardRun\"\313\001\n\'BatchCreateT" - + "ensorboardTimeSeriesRequest\022H\n\006parent\030\001 " - + "\001(\tB8\342A\001\002\372A1\n/aiplatform.googleapis.com/" - + "TensorboardExperiment\022V\n\010requests\030\002 \003(\0132" - + ">.google.cloud.aiplatform.v1.CreateTenso" - + "rboardTimeSeriesRequestB\004\342A\001\002\"~\n(BatchCr" - + "eateTensorboardTimeSeriesResponse\022R\n\027ten" - + "sorboard_time_series\030\001 \003(\01321.google.clou" - + "d.aiplatform.v1.TensorboardTimeSeries\"\362\001" - + "\n\"CreateTensorboardTimeSeriesRequest\022H\n\006" - + "parent\030\001 \001(\tB8\342A\001\002\372A1\n/aiplatform.google" - + "apis.com/TensorboardTimeSeries\022(\n\032tensor" - + "board_time_series_id\030\003 \001(\tB\004\342A\001\001\022X\n\027tens" - + "orboard_time_series\030\002 \001(\01321.google.cloud" - + ".aiplatform.v1.TensorboardTimeSeriesB\004\342A" - + "\001\002\"i\n\037GetTensorboardTimeSeriesRequest\022F\n" + + "thUsageData:\0028\001\"a\n\032ReadTensorboardSizeRe" + + "quest\022C\n\013tensorboard\030\001 \001(\tB.\342A\001\002\372A\'\n%aip" + + "latform.googleapis.com/Tensorboard\"8\n\033Re" + + "adTensorboardSizeResponse\022\031\n\021storage_siz" + + "e_byte\030\001 \001(\003\"\352\001\n\"CreateTensorboardExperi" + + "mentRequest\022H\n\006parent\030\001 \001(\tB8\342A\001\002\372A1\n/ai" + + "platform.googleapis.com/TensorboardExper" + + "iment\022Q\n\026tensorboard_experiment\030\002 \001(\01321." + + "google.cloud.aiplatform.v1.TensorboardEx" + + "periment\022\'\n\031tensorboard_experiment_id\030\003 " + + "\001(\tB\004\342A\001\002\"i\n\037GetTensorboardExperimentReq" + + "uest\022F\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/aiplatform." + + "googleapis.com/TensorboardExperiment\"\345\001\n" + + "!ListTensorboardExperimentsRequest\022H\n\006pa" + + "rent\030\001 \001(\tB8\342A\001\002\372A1\022/aiplatform.googleap" + + "is.com/TensorboardExperiment\022\016\n\006filter\030\002" + + " \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 " + + "\001(\t\022\020\n\010order_by\030\005 \001(\t\022-\n\tread_mask\030\006 \001(\013" + + "2\032.google.protobuf.FieldMask\"\221\001\n\"ListTen" + + "sorboardExperimentsResponse\022R\n\027tensorboa" + + "rd_experiments\030\001 \003(\01321.google.cloud.aipl" + + "atform.v1.TensorboardExperiment\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\264\001\n\"UpdateTensorboardEx" + + "perimentRequest\0225\n\013update_mask\030\001 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\004\342A\001\002\022W\n\026tensor" + + "board_experiment\030\002 \001(\01321.google.cloud.ai" + + "platform.v1.TensorboardExperimentB\004\342A\001\002\"" + + "l\n\"DeleteTensorboardExperimentRequest\022F\n" + "\004name\030\001 \001(\tB8\342A\001\002\372A1\n/aiplatform.googlea" - + "pis.com/TensorboardTimeSeries\"\344\001\n ListTe" - + "nsorboardTimeSeriesRequest\022H\n\006parent\030\001 \001" - + "(\tB8\342A\001\002\372A1\022/aiplatform.googleapis.com/T" - + "ensorboardTimeSeries\022\016\n\006filter\030\002 \001(\t\022\021\n\t" - + "page_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022\020\n\010o" - + "rder_by\030\005 \001(\t\022-\n\tread_mask\030\006 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"\220\001\n!ListTensorboard" - + "TimeSeriesResponse\022R\n\027tensorboard_time_s" - + "eries\030\001 \003(\01321.google.cloud.aiplatform.v1" - + ".TensorboardTimeSeries\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"\265\001\n\"UpdateTensorboardTimeSeriesR" - + "equest\0225\n\013update_mask\030\001 \001(\0132\032.google.pro" - + "tobuf.FieldMaskB\004\342A\001\002\022X\n\027tensorboard_tim" - + "e_series\030\002 \001(\01321.google.cloud.aiplatform" - + ".v1.TensorboardTimeSeriesB\004\342A\001\002\"l\n\"Delet" - + "eTensorboardTimeSeriesRequest\022F\n\004name\030\001 " + + "pis.com/TensorboardExperiment\"\276\001\n!BatchC" + + "reateTensorboardRunsRequest\022H\n\006parent\030\001 " + "\001(\tB8\342A\001\002\372A1\n/aiplatform.googleapis.com/" - + "TensorboardTimeSeries\"\277\001\n)BatchReadTenso" - + "rboardTimeSeriesDataRequest\022C\n\013tensorboa" - + "rd\030\001 \001(\tB.\342A\001\002\372A\'\n%aiplatform.googleapis" - + ".com/Tensorboard\022M\n\013time_series\030\002 \003(\tB8\342" - + "A\001\002\372A1\n/aiplatform.googleapis.com/Tensor" - + "boardTimeSeries\"r\n*BatchReadTensorboardT" - + "imeSeriesDataResponse\022D\n\020time_series_dat" - + "a\030\001 \003(\0132*.google.cloud.aiplatform.v1.Tim" - + "eSeriesData\"\252\001\n$ReadTensorboardTimeSerie" - + "sDataRequest\022Y\n\027tensorboard_time_series\030" - + "\001 \001(\tB8\342A\001\002\372A1\n/aiplatform.googleapis.co" - + "m/TensorboardTimeSeries\022\027\n\017max_data_poin" - + "ts\030\002 \001(\005\022\016\n\006filter\030\003 \001(\t\"m\n%ReadTensorbo" - + "ardTimeSeriesDataResponse\022D\n\020time_series" - + "_data\030\001 \001(\0132*.google.cloud.aiplatform.v1" - + ".TimeSeriesData\"\344\001\n%WriteTensorboardExpe" - + "rimentDataRequest\022X\n\026tensorboard_experim" + + "TensorboardExperiment\022O\n\010requests\030\002 \003(\0132" + + "7.google.cloud.aiplatform.v1.CreateTenso" + + "rboardRunRequestB\004\342A\001\002\"j\n\"BatchCreateTen" + + "sorboardRunsResponse\022D\n\020tensorboard_runs" + + "\030\001 \003(\0132*.google.cloud.aiplatform.v1.Tens" + + "orboardRun\"\315\001\n\033CreateTensorboardRunReque" + + "st\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatform." + + "googleapis.com/TensorboardRun\022I\n\017tensorb" + + "oard_run\030\002 \001(\0132*.google.cloud.aiplatform" + + ".v1.TensorboardRunB\004\342A\001\002\022 \n\022tensorboard_" + + "run_id\030\003 \001(\tB\004\342A\001\002\"[\n\030GetTensorboardRunR" + + "equest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatfor" + + "m.googleapis.com/TensorboardRun\"\201\001\n\036Read" + + "TensorboardBlobDataRequest\022M\n\013time_serie" + + "s\030\001 \001(\tB8\342A\001\002\372A1\n/aiplatform.googleapis." + + "com/TensorboardTimeSeries\022\020\n\010blob_ids\030\002 " + + "\003(\t\"]\n\037ReadTensorboardBlobDataResponse\022:" + + "\n\005blobs\030\001 \003(\0132+.google.cloud.aiplatform." + + "v1.TensorboardBlob\"\327\001\n\032ListTensorboardRu" + + "nsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(aipl" + + "atform.googleapis.com/TensorboardRun\022\016\n\006" + + "filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_" + + "token\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\022-\n\tread_ma" + + "sk\030\006 \001(\0132\032.google.protobuf.FieldMask\"|\n\033" + + "ListTensorboardRunsResponse\022D\n\020tensorboa" + + "rd_runs\030\001 \003(\0132*.google.cloud.aiplatform." + + "v1.TensorboardRun\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\237\001\n\033UpdateTensorboardRunRequest\0225\n\013up" + + "date_mask\030\001 \001(\0132\032.google.protobuf.FieldM" + + "askB\004\342A\001\002\022I\n\017tensorboard_run\030\002 \001(\0132*.goo" + + "gle.cloud.aiplatform.v1.TensorboardRunB\004" + + "\342A\001\002\"^\n\033DeleteTensorboardRunRequest\022?\n\004n" + + "ame\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatform.googleapi" + + "s.com/TensorboardRun\"\313\001\n\'BatchCreateTens" + + "orboardTimeSeriesRequest\022H\n\006parent\030\001 \001(\t" + + "B8\342A\001\002\372A1\n/aiplatform.googleapis.com/Ten" + + "sorboardExperiment\022V\n\010requests\030\002 \003(\0132>.g" + + "oogle.cloud.aiplatform.v1.CreateTensorbo" + + "ardTimeSeriesRequestB\004\342A\001\002\"~\n(BatchCreat" + + "eTensorboardTimeSeriesResponse\022R\n\027tensor" + + "board_time_series\030\001 \003(\01321.google.cloud.a" + + "iplatform.v1.TensorboardTimeSeries\"\362\001\n\"C" + + "reateTensorboardTimeSeriesRequest\022H\n\006par" + "ent\030\001 \001(\tB8\342A\001\002\372A1\n/aiplatform.googleapi" - + "s.com/TensorboardExperiment\022a\n\027write_run" - + "_data_requests\030\002 \003(\0132:.google.cloud.aipl" - + "atform.v1.WriteTensorboardRunDataRequest" - + "B\004\342A\001\002\"(\n&WriteTensorboardExperimentData" - + "Response\"\270\001\n\036WriteTensorboardRunDataRequ" - + "est\022J\n\017tensorboard_run\030\001 \001(\tB1\342A\001\002\372A*\n(a" - + "iplatform.googleapis.com/TensorboardRun\022" - + "J\n\020time_series_data\030\002 \003(\0132*.google.cloud" - + ".aiplatform.v1.TimeSeriesDataB\004\342A\001\002\"!\n\037W" - + "riteTensorboardRunDataResponse\"\314\001\n&Expor" - + "tTensorboardTimeSeriesDataRequest\022Y\n\027ten" - + "sorboard_time_series\030\001 \001(\tB8\342A\001\002\372A1\n/aip" - + "latform.googleapis.com/TensorboardTimeSe" - + "ries\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022" - + "\022\n\npage_token\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\224\001" - + "\n\'ExportTensorboardTimeSeriesDataRespons" - + "e\022P\n\027time_series_data_points\030\001 \003(\0132/.goo" - + "gle.cloud.aiplatform.v1.TimeSeriesDataPo" - + "int\022\027\n\017next_page_token\030\002 \001(\t\"t\n\"CreateTe" - + "nsorboardOperationMetadata\022N\n\020generic_me" - + "tadata\030\001 \001(\01324.google.cloud.aiplatform.v" - + "1.GenericOperationMetadata\"t\n\"UpdateTens" - + "orboardOperationMetadata\022N\n\020generic_meta" - + "data\030\001 \001(\01324.google.cloud.aiplatform.v1." - + "GenericOperationMetadata2\252=\n\022Tensorboard" - + "Service\022\371\001\n\021CreateTensorboard\0224.google.c" - + "loud.aiplatform.v1.CreateTensorboardRequ" - + "est\032\035.google.longrunning.Operation\"\216\001\312A1" - + "\n\013Tensorboard\022\"CreateTensorboardOperatio" - + "nMetadata\332A\022parent,tensorboard\202\323\344\223\002?\"0/v" - + "1/{parent=projects/*/locations/*}/tensor" - + "boards:\013tensorboard\022\255\001\n\016GetTensorboard\0221" - + ".google.cloud.aiplatform.v1.GetTensorboa" - + "rdRequest\032\'.google.cloud.aiplatform.v1.T" - + "ensorboard\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=pro" - + "jects/*/locations/*/tensorboards/*}\022\212\002\n\021" - + "UpdateTensorboard\0224.google.cloud.aiplatf" - + "orm.v1.UpdateTensorboardRequest\032\035.google" - + ".longrunning.Operation\"\237\001\312A1\n\013Tensorboar" - + "d\022\"UpdateTensorboardOperationMetadata\332A\027" - + "tensorboard,update_mask\202\323\344\223\002K2.google.cloud.aiplatform.v1.Creat" + + "eTensorboardExperimentRequest\0321.google.c" + + "loud.aiplatform.v1.TensorboardExperiment" + + "\"\230\001\332A7parent,tensorboard_experiment,tens" + + "orboard_experiment_id\202\323\344\223\002X\">/v1/{parent" + + "=projects/*/locations/*/tensorboards/*}/" + + "experiments:\026tensorboard_experiment\022\331\001\n\030" + + "GetTensorboardExperiment\022;.google.cloud." + + "aiplatform.v1.GetTensorboardExperimentRe" + + "quest\0321.google.cloud.aiplatform.v1.Tenso" + + "rboardExperiment\"M\332A\004name\202\323\344\223\002@\022>/v1/{na" + + "me=projects/*/locations/*/tensorboards/*" + + "/experiments/*}\022\255\002\n\033UpdateTensorboardExp" + + "eriment\022>.google.cloud.aiplatform.v1.Upd" + + "ateTensorboardExperimentRequest\0321.google" + + ".cloud.aiplatform.v1.TensorboardExperime" + + "nt\"\232\001\332A\"tensorboard_experiment,update_ma" + + "sk\202\323\344\223\002o2U/v1/{tensorboard_experiment.na" + + "me=projects/*/locations/*/tensorboards/*" + + "/experiments/*}:\026tensorboard_experiment\022" + + "\354\001\n\032ListTensorboardExperiments\022=.google." + + "cloud.aiplatform.v1.ListTensorboardExper" + + "imentsRequest\032>.google.cloud.aiplatform." + + "v1.ListTensorboardExperimentsResponse\"O\332" + + "A\006parent\202\323\344\223\002@\022>/v1/{parent=projects/*/l" + + "ocations/*/tensorboards/*}/experiments\022\377" + + "\001\n\033DeleteTensorboardExperiment\022>.google." + + "cloud.aiplatform.v1.DeleteTensorboardExp" + + "erimentRequest\032\035.google.longrunning.Oper" + + "ation\"\200\001\312A0\n\025google.protobuf.Empty\022\027Dele" + + "teOperationMetadata\332A\004name\202\323\344\223\002@*>/v1/{n" + "ame=projects/*/locations/*/tensorboards/" - + "*}\022\342\001\n\024ReadTensorboardUsage\0227.google.clo" - + "ud.aiplatform.v1.ReadTensorboardUsageReq" - + "uest\0328.google.cloud.aiplatform.v1.ReadTe" - + "nsorboardUsageResponse\"W\332A\013tensorboard\202\323" - + "\344\223\002C\022A/v1/{tensorboard=projects/*/locati" - + "ons/*/tensorboards/*}:readUsage\022\253\002\n\033Crea" - + "teTensorboardExperiment\022>.google.cloud.a" - + "iplatform.v1.CreateTensorboardExperiment" - + "Request\0321.google.cloud.aiplatform.v1.Ten" - + "sorboardExperiment\"\230\001\332A7parent,tensorboa" - + "rd_experiment,tensorboard_experiment_id\202" - + "\323\344\223\002X\">/v1/{parent=projects/*/locations/" - + "*/tensorboards/*}/experiments:\026tensorboa" - + "rd_experiment\022\331\001\n\030GetTensorboardExperime" - + "nt\022;.google.cloud.aiplatform.v1.GetTenso" - + "rboardExperimentRequest\0321.google.cloud.a" - + "iplatform.v1.TensorboardExperiment\"M\332A\004n" - + "ame\202\323\344\223\002@\022>/v1/{name=projects/*/location" - + "s/*/tensorboards/*/experiments/*}\022\255\002\n\033Up" - + "dateTensorboardExperiment\022>.google.cloud" - + ".aiplatform.v1.UpdateTensorboardExperime" - + "ntRequest\0321.google.cloud.aiplatform.v1.T" - + "ensorboardExperiment\"\232\001\332A\"tensorboard_ex" - + "periment,update_mask\202\323\344\223\002o2U/v1/{tensorb" - + "oard_experiment.name=projects/*/location" - + "s/*/tensorboards/*/experiments/*}:\026tenso" - + "rboard_experiment\022\354\001\n\032ListTensorboardExp" - + "eriments\022=.google.cloud.aiplatform.v1.Li" - + "stTensorboardExperimentsRequest\032>.google" - + ".cloud.aiplatform.v1.ListTensorboardExpe" - + "rimentsResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{p" - + "arent=projects/*/locations/*/tensorboard" - + "s/*}/experiments\022\377\001\n\033DeleteTensorboardEx" - + "periment\022>.google.cloud.aiplatform.v1.De" - + "leteTensorboardExperimentRequest\032\035.googl" - + "e.longrunning.Operation\"\200\001\312A0\n\025google.pr" - + "otobuf.Empty\022\027DeleteOperationMetadata\332A\004" - + "name\202\323\344\223\002@*>/v1/{name=projects/*/locatio" - + "ns/*/tensorboards/*/experiments/*}\022\210\002\n\024C" - + "reateTensorboardRun\0227.google.cloud.aipla" - + "tform.v1.CreateTensorboardRunRequest\032*.g" - + "oogle.cloud.aiplatform.v1.TensorboardRun" - + "\"\212\001\332A)parent,tensorboard_run,tensorboard" - + "_run_id\202\323\344\223\002X\"E/v1/{parent=projects/*/lo" - + "cations/*/tensorboards/*/experiments/*}/" - + "runs:\017tensorboard_run\022\213\002\n\032BatchCreateTen" - + "sorboardRuns\022=.google.cloud.aiplatform.v" - + "1.BatchCreateTensorboardRunsRequest\032>.go" - + "ogle.cloud.aiplatform.v1.BatchCreateTens" - + "orboardRunsResponse\"n\332A\017parent,requests\202" - + "\323\344\223\002V\"Q/v1/{parent=projects/*/locations/" - + "*/tensorboards/*/experiments/*}/runs:bat" - + "chCreate:\001*\022\313\001\n\021GetTensorboardRun\0224.goog" - + "le.cloud.aiplatform.v1.GetTensorboardRun" - + "Request\032*.google.cloud.aiplatform.v1.Ten" - + "sorboardRun\"T\332A\004name\202\323\344\223\002G\022E/v1/{name=pr" - + "ojects/*/locations/*/tensorboards/*/expe" - + "riments/*/runs/*}\022\212\002\n\024UpdateTensorboardR" - + "un\0227.google.cloud.aiplatform.v1.UpdateTe" - + "nsorboardRunRequest\032*.google.cloud.aipla" - + "tform.v1.TensorboardRun\"\214\001\332A\033tensorboard" - + "_run,update_mask\202\323\344\223\002h2U/v1/{tensorboard" - + "_run.name=projects/*/locations/*/tensorb" - + "oards/*/experiments/*/runs/*}:\017tensorboa" - + "rd_run\022\336\001\n\023ListTensorboardRuns\0226.google." - + "cloud.aiplatform.v1.ListTensorboardRunsR" - + "equest\0327.google.cloud.aiplatform.v1.List" - + "TensorboardRunsResponse\"V\332A\006parent\202\323\344\223\002G" - + "\022E/v1/{parent=projects/*/locations/*/ten" - + "sorboards/*/experiments/*}/runs\022\370\001\n\024Dele" - + "teTensorboardRun\0227.google.cloud.aiplatfo" - + "rm.v1.DeleteTensorboardRunRequest\032\035.goog" - + "le.longrunning.Operation\"\207\001\312A0\n\025google.p" - + "rotobuf.Empty\022\027DeleteOperationMetadata\332A" - + "\004name\202\323\344\223\002G*E/v1/{name=projects/*/locati" - + "ons/*/tensorboards/*/experiments/*/runs/" - + "*}\022\252\002\n BatchCreateTensorboardTimeSeries\022" - + "C.google.cloud.aiplatform.v1.BatchCreate" - + "TensorboardTimeSeriesRequest\032D.google.cl" - + "oud.aiplatform.v1.BatchCreateTensorboard" - + "TimeSeriesResponse\"{\332A\017parent,requests\202\323" - + "\344\223\002c\"^/v1/{parent=projects/*/locations/*" - + "/tensorboards/*/experiments/*}/runs/*/ti" - + "meSeries:batchCreate:\001*\022\247\002\n\033CreateTensor" - + "boardTimeSeries\022>.google.cloud.aiplatfor" - + "m.v1.CreateTensorboardTimeSeriesRequest\032" - + "1.google.cloud.aiplatform.v1.Tensorboard" - + "TimeSeries\"\224\001\332A\036parent,tensorboard_time_" - + "series\202\323\344\223\002m\"R/v1/{parent=projects/*/loc" - + "ations/*/tensorboards/*/experiments/*/ru" - + "ns/*}/timeSeries:\027tensorboard_time_serie" - + "s\022\355\001\n\030GetTensorboardTimeSeries\022;.google." - + "cloud.aiplatform.v1.GetTensorboardTimeSe" - + "riesRequest\0321.google.cloud.aiplatform.v1" - + ".TensorboardTimeSeries\"a\332A\004name\202\323\344\223\002T\022R/" - + "v1/{name=projects/*/locations/*/tensorbo" - + "ards/*/experiments/*/runs/*/timeSeries/*" - + "}\022\305\002\n\033UpdateTensorboardTimeSeries\022>.goog" - + "le.cloud.aiplatform.v1.UpdateTensorboard" - + "TimeSeriesRequest\0321.google.cloud.aiplatf" - + "orm.v1.TensorboardTimeSeries\"\262\001\332A#tensor" - + "board_time_series,update_mask\202\323\344\223\002\205\0012j/v" - + "1/{tensorboard_time_series.name=projects" + + "*/experiments/*}\022\210\002\n\024CreateTensorboardRu" + + "n\0227.google.cloud.aiplatform.v1.CreateTen" + + "sorboardRunRequest\032*.google.cloud.aiplat" + + "form.v1.TensorboardRun\"\212\001\332A)parent,tenso" + + "rboard_run,tensorboard_run_id\202\323\344\223\002X\"E/v1" + + "/{parent=projects/*/locations/*/tensorbo" + + "ards/*/experiments/*}/runs:\017tensorboard_" + + "run\022\213\002\n\032BatchCreateTensorboardRuns\022=.goo" + + "gle.cloud.aiplatform.v1.BatchCreateTenso" + + "rboardRunsRequest\032>.google.cloud.aiplatf" + + "orm.v1.BatchCreateTensorboardRunsRespons" + + "e\"n\332A\017parent,requests\202\323\344\223\002V\"Q/v1/{parent" + + "=projects/*/locations/*/tensorboards/*/e" + + "xperiments/*}/runs:batchCreate:\001*\022\313\001\n\021Ge" + + "tTensorboardRun\0224.google.cloud.aiplatfor" + + "m.v1.GetTensorboardRunRequest\032*.google.c" + + "loud.aiplatform.v1.TensorboardRun\"T\332A\004na" + + "me\202\323\344\223\002G\022E/v1/{name=projects/*/locations" + + "/*/tensorboards/*/experiments/*/runs/*}\022" + + "\212\002\n\024UpdateTensorboardRun\0227.google.cloud." + + "aiplatform.v1.UpdateTensorboardRunReques" + + "t\032*.google.cloud.aiplatform.v1.Tensorboa" + + "rdRun\"\214\001\332A\033tensorboard_run,update_mask\202\323" + + "\344\223\002h2U/v1/{tensorboard_run.name=projects" + "/*/locations/*/tensorboards/*/experiment" - + "s/*/runs/*/timeSeries/*}:\027tensorboard_ti" - + "me_series\022\375\001\n\031ListTensorboardTimeSeries\022" - + "<.google.cloud.aiplatform.v1.ListTensorb" - + "oardTimeSeriesRequest\032=.google.cloud.aip" - + "latform.v1.ListTensorboardTimeSeriesResp" - + "onse\"c\332A\006parent\202\323\344\223\002T\022R/v1/{parent=proje" - + "cts/*/locations/*/tensorboards/*/experim" - + "ents/*/runs/*}/timeSeries\022\223\002\n\033DeleteTens" - + "orboardTimeSeries\022>.google.cloud.aiplatf" - + "orm.v1.DeleteTensorboardTimeSeriesReques" - + "t\032\035.google.longrunning.Operation\"\224\001\312A0\n\025" - + "google.protobuf.Empty\022\027DeleteOperationMe" - + "tadata\332A\004name\202\323\344\223\002T*R/v1/{name=projects/" + + "s/*/runs/*}:\017tensorboard_run\022\336\001\n\023ListTen" + + "sorboardRuns\0226.google.cloud.aiplatform.v" + + "1.ListTensorboardRunsRequest\0327.google.cl" + + "oud.aiplatform.v1.ListTensorboardRunsRes" + + "ponse\"V\332A\006parent\202\323\344\223\002G\022E/v1/{parent=proj" + + "ects/*/locations/*/tensorboards/*/experi" + + "ments/*}/runs\022\370\001\n\024DeleteTensorboardRun\0227" + + ".google.cloud.aiplatform.v1.DeleteTensor" + + "boardRunRequest\032\035.google.longrunning.Ope" + + "ration\"\207\001\312A0\n\025google.protobuf.Empty\022\027Del" + + "eteOperationMetadata\332A\004name\202\323\344\223\002G*E/v1/{" + + "name=projects/*/locations/*/tensorboards" + + "/*/experiments/*/runs/*}\022\252\002\n BatchCreate" + + "TensorboardTimeSeries\022C.google.cloud.aip" + + "latform.v1.BatchCreateTensorboardTimeSer" + + "iesRequest\032D.google.cloud.aiplatform.v1." + + "BatchCreateTensorboardTimeSeriesResponse" + + "\"{\332A\017parent,requests\202\323\344\223\002c\"^/v1/{parent=" + + "projects/*/locations/*/tensorboards/*/ex" + + "periments/*}/runs/*/timeSeries:batchCrea" + + "te:\001*\022\247\002\n\033CreateTensorboardTimeSeries\022>." + + "google.cloud.aiplatform.v1.CreateTensorb" + + "oardTimeSeriesRequest\0321.google.cloud.aip" + + "latform.v1.TensorboardTimeSeries\"\224\001\332A\036pa" + + "rent,tensorboard_time_series\202\323\344\223\002m\"R/v1/" + + "{parent=projects/*/locations/*/tensorboa" + + "rds/*/experiments/*/runs/*}/timeSeries:\027" + + "tensorboard_time_series\022\355\001\n\030GetTensorboa" + + "rdTimeSeries\022;.google.cloud.aiplatform.v" + + "1.GetTensorboardTimeSeriesRequest\0321.goog" + + "le.cloud.aiplatform.v1.TensorboardTimeSe" + + "ries\"a\332A\004name\202\323\344\223\002T\022R/v1/{name=projects/" + "*/locations/*/tensorboards/*/experiments" - + "/*/runs/*/timeSeries/*}\022\254\002\n\"BatchReadTen" - + "sorboardTimeSeriesData\022E.google.cloud.ai" - + "platform.v1.BatchReadTensorboardTimeSeri" - + "esDataRequest\032F.google.cloud.aiplatform." - + "v1.BatchReadTensorboardTimeSeriesDataRes" - + "ponse\"w\332A\013tensorboard\202\323\344\223\002c\022a/v1/{tensor" - + "board=projects/*/locations/*/tensorboard" - + "s/*}/experiments/*/runs/*/timeSeries:bat" - + "chRead\022\263\002\n\035ReadTensorboardTimeSeriesData" - + "\022@.google.cloud.aiplatform.v1.ReadTensor" - + "boardTimeSeriesDataRequest\032A.google.clou" - + "d.aiplatform.v1.ReadTensorboardTimeSerie" - + "sDataResponse\"\214\001\332A\027tensorboard_time_seri" - + "es\202\323\344\223\002l\022j/v1/{tensorboard_time_series=p" - + "rojects/*/locations/*/tensorboards/*/exp" - + "eriments/*/runs/*/timeSeries/*}:read\022\222\002\n" - + "\027ReadTensorboardBlobData\022:.google.cloud." - + "aiplatform.v1.ReadTensorboardBlobDataReq" - + "uest\032;.google.cloud.aiplatform.v1.ReadTe" - + "nsorboardBlobDataResponse\"|\332A\013time_serie" - + "s\202\323\344\223\002h\022f/v1/{time_series=projects/*/loc" - + "ations/*/tensorboards/*/experiments/*/ru" - + "ns/*/timeSeries/*}:readBlobData0\001\022\274\002\n\036Wr" - + "iteTensorboardExperimentData\022A.google.cl" - + "oud.aiplatform.v1.WriteTensorboardExperi" - + "mentDataRequest\032B.google.cloud.aiplatfor" - + "m.v1.WriteTensorboardExperimentDataRespo" - + "nse\"\222\001\332A.tensorboard_experiment,write_ru" - + "n_data_requests\202\323\344\223\002[\"V/v1/{tensorboard_" - + "experiment=projects/*/locations/*/tensor" - + "boards/*/experiments/*}:write:\001*\022\231\002\n\027Wri" - + "teTensorboardRunData\022:.google.cloud.aipl" - + "atform.v1.WriteTensorboardRunDataRequest" - + "\032;.google.cloud.aiplatform.v1.WriteTenso" - + "rboardRunDataResponse\"\204\001\332A tensorboard_r" - + "un,time_series_data\202\323\344\223\002[\"V/v1/{tensorbo" - + "ard_run=projects/*/locations/*/tensorboa" - + "rds/*/experiments/*/runs/*}:write:\001*\022\325\002\n" - + "\037ExportTensorboardTimeSeriesData\022B.googl" - + "e.cloud.aiplatform.v1.ExportTensorboardT" - + "imeSeriesDataRequest\032C.google.cloud.aipl" - + "atform.v1.ExportTensorboardTimeSeriesDat" - + "aResponse\"\250\001\332A\027tensorboard_time_series\202\323" - + "\344\223\002\207\001\"\201\001/v1/{tensorboard_time_series=pro" - + "jects/*/locations/*/tensorboards/*/exper" - + "iments/*/runs/*/timeSeries/*}:exportTens" - + "orboardTimeSeries:\001*\032\206\001\312A\031aiplatform.goo" - + "gleapis.com\322Aghttps://www.googleapis.com" - + "/auth/cloud-platform,https://www.googlea" - + "pis.com/auth/cloud-platform.read-onlyB\325\001" - + "\n\036com.google.cloud.aiplatform.v1B\027Tensor" - + "boardServiceProtoP\001Z>cloud.google.com/go" - + "/aiplatform/apiv1/aiplatformpb;aiplatfor" - + "mpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Googl" - + "e\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::A" - + "IPlatform::V1b\006proto3" + + "/*/runs/*/timeSeries/*}\022\305\002\n\033UpdateTensor" + + "boardTimeSeries\022>.google.cloud.aiplatfor" + + "m.v1.UpdateTensorboardTimeSeriesRequest\032" + + "1.google.cloud.aiplatform.v1.Tensorboard" + + "TimeSeries\"\262\001\332A#tensorboard_time_series," + + "update_mask\202\323\344\223\002\205\0012j/v1/{tensorboard_tim" + + "e_series.name=projects/*/locations/*/ten" + + "sorboards/*/experiments/*/runs/*/timeSer" + + "ies/*}:\027tensorboard_time_series\022\375\001\n\031List" + + "TensorboardTimeSeries\022<.google.cloud.aip" + + "latform.v1.ListTensorboardTimeSeriesRequ" + + "est\032=.google.cloud.aiplatform.v1.ListTen" + + "sorboardTimeSeriesResponse\"c\332A\006parent\202\323\344" + + "\223\002T\022R/v1/{parent=projects/*/locations/*/" + + "tensorboards/*/experiments/*/runs/*}/tim" + + "eSeries\022\223\002\n\033DeleteTensorboardTimeSeries\022" + + ">.google.cloud.aiplatform.v1.DeleteTenso" + + "rboardTimeSeriesRequest\032\035.google.longrun" + + "ning.Operation\"\224\001\312A0\n\025google.protobuf.Em" + + "pty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223\002" + + "T*R/v1/{name=projects/*/locations/*/tens" + + "orboards/*/experiments/*/runs/*/timeSeri" + + "es/*}\022\254\002\n\"BatchReadTensorboardTimeSeries" + + "Data\022E.google.cloud.aiplatform.v1.BatchR" + + "eadTensorboardTimeSeriesDataRequest\032F.go" + + "ogle.cloud.aiplatform.v1.BatchReadTensor" + + "boardTimeSeriesDataResponse\"w\332A\013tensorbo" + + "ard\202\323\344\223\002c\022a/v1/{tensorboard=projects/*/l" + + "ocations/*/tensorboards/*}/experiments/*" + + "/runs/*/timeSeries:batchRead\022\263\002\n\035ReadTen" + + "sorboardTimeSeriesData\022@.google.cloud.ai" + + "platform.v1.ReadTensorboardTimeSeriesDat" + + "aRequest\032A.google.cloud.aiplatform.v1.Re" + + "adTensorboardTimeSeriesDataResponse\"\214\001\332A" + + "\027tensorboard_time_series\202\323\344\223\002l\022j/v1/{ten" + + "sorboard_time_series=projects/*/location" + + "s/*/tensorboards/*/experiments/*/runs/*/" + + "timeSeries/*}:read\022\222\002\n\027ReadTensorboardBl" + + "obData\022:.google.cloud.aiplatform.v1.Read" + + "TensorboardBlobDataRequest\032;.google.clou" + + "d.aiplatform.v1.ReadTensorboardBlobDataR" + + "esponse\"|\332A\013time_series\202\323\344\223\002h\022f/v1/{time" + + "_series=projects/*/locations/*/tensorboa" + + "rds/*/experiments/*/runs/*/timeSeries/*}" + + ":readBlobData0\001\022\274\002\n\036WriteTensorboardExpe" + + "rimentData\022A.google.cloud.aiplatform.v1." + + "WriteTensorboardExperimentDataRequest\032B." + + "google.cloud.aiplatform.v1.WriteTensorbo" + + "ardExperimentDataResponse\"\222\001\332A.tensorboa" + + "rd_experiment,write_run_data_requests\202\323\344" + + "\223\002[\"V/v1/{tensorboard_experiment=project" + + "s/*/locations/*/tensorboards/*/experimen" + + "ts/*}:write:\001*\022\231\002\n\027WriteTensorboardRunDa" + + "ta\022:.google.cloud.aiplatform.v1.WriteTen" + + "sorboardRunDataRequest\032;.google.cloud.ai" + + "platform.v1.WriteTensorboardRunDataRespo" + + "nse\"\204\001\332A tensorboard_run,time_series_dat" + + "a\202\323\344\223\002[\"V/v1/{tensorboard_run=projects/*" + + "/locations/*/tensorboards/*/experiments/" + + "*/runs/*}:write:\001*\022\325\002\n\037ExportTensorboard" + + "TimeSeriesData\022B.google.cloud.aiplatform" + + ".v1.ExportTensorboardTimeSeriesDataReque" + + "st\032C.google.cloud.aiplatform.v1.ExportTe" + + "nsorboardTimeSeriesDataResponse\"\250\001\332A\027ten" + + "sorboard_time_series\202\323\344\223\002\207\001\"\201\001/v1/{tenso" + + "rboard_time_series=projects/*/locations/" + + "*/tensorboards/*/experiments/*/runs/*/ti" + + "meSeries/*}:exportTensorboardTimeSeries:" + + "\001*\032\206\001\312A\031aiplatform.googleapis.com\322Aghttp" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rm,https://www.googleapis.com/auth/cloud" + + "-platform.read-onlyB\325\001\n\036com.google.cloud" + + ".aiplatform.v1B\027TensorboardServiceProtoP" + + "\001Z>cloud.google.com/go/aiplatform/apiv1/" + + "aiplatformpb;aiplatformpb\252\002\032Google.Cloud" + + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform" + + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -726,8 +744,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_aiplatform_v1_CreateTensorboardExperimentRequest_descriptor = + internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeRequest_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeRequest_descriptor, + new java.lang.String[] { + "Tensorboard", + }); + internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ReadTensorboardSizeResponse_descriptor, + new java.lang.String[] { + "StorageSizeByte", + }); + internal_static_google_cloud_aiplatform_v1_CreateTensorboardExperimentRequest_descriptor = + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1_CreateTensorboardExperimentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CreateTensorboardExperimentRequest_descriptor, @@ -735,7 +769,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "TensorboardExperiment", "TensorboardExperimentId", }); internal_static_google_cloud_aiplatform_v1_GetTensorboardExperimentRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1_GetTensorboardExperimentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GetTensorboardExperimentRequest_descriptor, @@ -743,7 +777,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_ListTensorboardExperimentsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1_ListTensorboardExperimentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListTensorboardExperimentsRequest_descriptor, @@ -751,7 +785,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "ReadMask", }); internal_static_google_cloud_aiplatform_v1_ListTensorboardExperimentsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1_ListTensorboardExperimentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListTensorboardExperimentsResponse_descriptor, @@ -759,7 +793,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TensorboardExperiments", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_UpdateTensorboardExperimentRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1_UpdateTensorboardExperimentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UpdateTensorboardExperimentRequest_descriptor, @@ -767,7 +801,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "TensorboardExperiment", }); internal_static_google_cloud_aiplatform_v1_DeleteTensorboardExperimentRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1_DeleteTensorboardExperimentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeleteTensorboardExperimentRequest_descriptor, @@ -775,7 +809,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_BatchCreateTensorboardRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1_BatchCreateTensorboardRunsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchCreateTensorboardRunsRequest_descriptor, @@ -783,7 +817,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Requests", }); internal_static_google_cloud_aiplatform_v1_BatchCreateTensorboardRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1_BatchCreateTensorboardRunsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchCreateTensorboardRunsResponse_descriptor, @@ -791,7 +825,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TensorboardRuns", }); internal_static_google_cloud_aiplatform_v1_CreateTensorboardRunRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1_CreateTensorboardRunRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CreateTensorboardRunRequest_descriptor, @@ -799,7 +833,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "TensorboardRun", "TensorboardRunId", }); internal_static_google_cloud_aiplatform_v1_GetTensorboardRunRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1_GetTensorboardRunRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GetTensorboardRunRequest_descriptor, @@ -807,7 +841,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_ReadTensorboardBlobDataRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1_ReadTensorboardBlobDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ReadTensorboardBlobDataRequest_descriptor, @@ -815,7 +849,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeSeries", "BlobIds", }); internal_static_google_cloud_aiplatform_v1_ReadTensorboardBlobDataResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1_ReadTensorboardBlobDataResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ReadTensorboardBlobDataResponse_descriptor, @@ -823,7 +857,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Blobs", }); internal_static_google_cloud_aiplatform_v1_ListTensorboardRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_aiplatform_v1_ListTensorboardRunsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListTensorboardRunsRequest_descriptor, @@ -831,7 +865,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "ReadMask", }); internal_static_google_cloud_aiplatform_v1_ListTensorboardRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_aiplatform_v1_ListTensorboardRunsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListTensorboardRunsResponse_descriptor, @@ -839,7 +873,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TensorboardRuns", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_UpdateTensorboardRunRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_aiplatform_v1_UpdateTensorboardRunRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UpdateTensorboardRunRequest_descriptor, @@ -847,7 +881,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "TensorboardRun", }); internal_static_google_cloud_aiplatform_v1_DeleteTensorboardRunRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_aiplatform_v1_DeleteTensorboardRunRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeleteTensorboardRunRequest_descriptor, @@ -855,7 +889,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_BatchCreateTensorboardTimeSeriesRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_aiplatform_v1_BatchCreateTensorboardTimeSeriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchCreateTensorboardTimeSeriesRequest_descriptor, @@ -863,7 +897,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Requests", }); internal_static_google_cloud_aiplatform_v1_BatchCreateTensorboardTimeSeriesResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_aiplatform_v1_BatchCreateTensorboardTimeSeriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchCreateTensorboardTimeSeriesResponse_descriptor, @@ -871,7 +905,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TensorboardTimeSeries", }); internal_static_google_cloud_aiplatform_v1_CreateTensorboardTimeSeriesRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_aiplatform_v1_CreateTensorboardTimeSeriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CreateTensorboardTimeSeriesRequest_descriptor, @@ -879,7 +913,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "TensorboardTimeSeriesId", "TensorboardTimeSeries", }); internal_static_google_cloud_aiplatform_v1_GetTensorboardTimeSeriesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_aiplatform_v1_GetTensorboardTimeSeriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GetTensorboardTimeSeriesRequest_descriptor, @@ -887,7 +921,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_ListTensorboardTimeSeriesRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_aiplatform_v1_ListTensorboardTimeSeriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListTensorboardTimeSeriesRequest_descriptor, @@ -895,7 +929,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "ReadMask", }); internal_static_google_cloud_aiplatform_v1_ListTensorboardTimeSeriesResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_aiplatform_v1_ListTensorboardTimeSeriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListTensorboardTimeSeriesResponse_descriptor, @@ -903,7 +937,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TensorboardTimeSeries", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_UpdateTensorboardTimeSeriesRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_aiplatform_v1_UpdateTensorboardTimeSeriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UpdateTensorboardTimeSeriesRequest_descriptor, @@ -911,7 +945,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "TensorboardTimeSeries", }); internal_static_google_cloud_aiplatform_v1_DeleteTensorboardTimeSeriesRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_aiplatform_v1_DeleteTensorboardTimeSeriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeleteTensorboardTimeSeriesRequest_descriptor, @@ -919,7 +953,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_BatchReadTensorboardTimeSeriesDataRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_aiplatform_v1_BatchReadTensorboardTimeSeriesDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchReadTensorboardTimeSeriesDataRequest_descriptor, @@ -927,7 +961,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Tensorboard", "TimeSeries", }); internal_static_google_cloud_aiplatform_v1_BatchReadTensorboardTimeSeriesDataResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_aiplatform_v1_BatchReadTensorboardTimeSeriesDataResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchReadTensorboardTimeSeriesDataResponse_descriptor, @@ -935,7 +969,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeSeriesData", }); internal_static_google_cloud_aiplatform_v1_ReadTensorboardTimeSeriesDataRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_aiplatform_v1_ReadTensorboardTimeSeriesDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ReadTensorboardTimeSeriesDataRequest_descriptor, @@ -943,7 +977,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TensorboardTimeSeries", "MaxDataPoints", "Filter", }); internal_static_google_cloud_aiplatform_v1_ReadTensorboardTimeSeriesDataResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_aiplatform_v1_ReadTensorboardTimeSeriesDataResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ReadTensorboardTimeSeriesDataResponse_descriptor, @@ -951,7 +985,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeSeriesData", }); internal_static_google_cloud_aiplatform_v1_WriteTensorboardExperimentDataRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_aiplatform_v1_WriteTensorboardExperimentDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_WriteTensorboardExperimentDataRequest_descriptor, @@ -959,13 +993,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TensorboardExperiment", "WriteRunDataRequests", }); internal_static_google_cloud_aiplatform_v1_WriteTensorboardExperimentDataResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_aiplatform_v1_WriteTensorboardExperimentDataResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_WriteTensorboardExperimentDataResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1_WriteTensorboardRunDataRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_aiplatform_v1_WriteTensorboardRunDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_WriteTensorboardRunDataRequest_descriptor, @@ -973,13 +1007,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TensorboardRun", "TimeSeriesData", }); internal_static_google_cloud_aiplatform_v1_WriteTensorboardRunDataResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_aiplatform_v1_WriteTensorboardRunDataResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_WriteTensorboardRunDataResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1_ExportTensorboardTimeSeriesDataRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_aiplatform_v1_ExportTensorboardTimeSeriesDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExportTensorboardTimeSeriesDataRequest_descriptor, @@ -987,7 +1021,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TensorboardTimeSeries", "Filter", "PageSize", "PageToken", "OrderBy", }); internal_static_google_cloud_aiplatform_v1_ExportTensorboardTimeSeriesDataResponse_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_aiplatform_v1_ExportTensorboardTimeSeriesDataResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExportTensorboardTimeSeriesDataResponse_descriptor, @@ -995,7 +1029,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeSeriesDataPoints", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_CreateTensorboardOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_aiplatform_v1_CreateTensorboardOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CreateTensorboardOperationMetadata_descriptor, @@ -1003,7 +1037,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1_UpdateTensorboardOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_aiplatform_v1_UpdateTensorboardOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UpdateTensorboardOperationMetadata_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateScheduleRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateScheduleRequest.java index 8f8a307b7ae3..5af616566608 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateScheduleRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateScheduleRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The Schedule which replaces the resource on the server.
    * The following restrictions will be applied:
+   *
    *   * The scheduled request type cannot be changed.
+   *   * The non-empty fields cannot be unset.
    *   * The output_only fields will be ignored if specified.
    * 
* @@ -89,7 +91,9 @@ public boolean hasSchedule() { *
    * Required. The Schedule which replaces the resource on the server.
    * The following restrictions will be applied:
+   *
    *   * The scheduled request type cannot be changed.
+   *   * The non-empty fields cannot be unset.
    *   * The output_only fields will be ignored if specified.
    * 
* @@ -111,7 +115,9 @@ public com.google.cloud.aiplatform.v1.Schedule getSchedule() { *
    * Required. The Schedule which replaces the resource on the server.
    * The following restrictions will be applied:
+   *
    *   * The scheduled request type cannot be changed.
+   *   * The non-empty fields cannot be unset.
    *   * The output_only fields will be ignored if specified.
    * 
* @@ -571,7 +577,9 @@ public Builder mergeFrom( *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -590,7 +598,9 @@ public boolean hasSchedule() { *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -615,7 +625,9 @@ public com.google.cloud.aiplatform.v1.Schedule getSchedule() { *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -642,7 +654,9 @@ public Builder setSchedule(com.google.cloud.aiplatform.v1.Schedule value) { *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -666,7 +680,9 @@ public Builder setSchedule(com.google.cloud.aiplatform.v1.Schedule.Builder build *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -696,7 +712,9 @@ public Builder mergeSchedule(com.google.cloud.aiplatform.v1.Schedule value) { *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -720,7 +738,9 @@ public Builder clearSchedule() { *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -739,7 +759,9 @@ public com.google.cloud.aiplatform.v1.Schedule.Builder getScheduleBuilder() { *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -762,7 +784,9 @@ public com.google.cloud.aiplatform.v1.ScheduleOrBuilder getScheduleOrBuilder() { *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateScheduleRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateScheduleRequestOrBuilder.java index c88de1f1ec83..00ddb6a3cb17 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateScheduleRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateScheduleRequestOrBuilder.java @@ -29,7 +29,9 @@ public interface UpdateScheduleRequestOrBuilder *
    * Required. The Schedule which replaces the resource on the server.
    * The following restrictions will be applied:
+   *
    *   * The scheduled request type cannot be changed.
+   *   * The non-empty fields cannot be unset.
    *   * The output_only fields will be ignored if specified.
    * 
* @@ -46,7 +48,9 @@ public interface UpdateScheduleRequestOrBuilder *
    * Required. The Schedule which replaces the resource on the server.
    * The following restrictions will be applied:
+   *
    *   * The scheduled request type cannot be changed.
+   *   * The non-empty fields cannot be unset.
    *   * The output_only fields will be ignored if specified.
    * 
* @@ -63,7 +67,9 @@ public interface UpdateScheduleRequestOrBuilder *
    * Required. The Schedule which replaces the resource on the server.
    * The following restrictions will be applied:
+   *
    *   * The scheduled request type cannot be changed.
+   *   * The non-empty fields cannot be unset.
    *   * The output_only fields will be ignored if specified.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/context.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/context.proto index dfbf62d30659..8122ddb69ee9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/context.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/context.proto @@ -36,8 +36,8 @@ message Context { pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}" }; - // Output only. The resource name of the Context. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Immutable. The resource name of the Context. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // User provided display name of the Context. // May be up to 128 Unicode characters. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto index 10be55ef321e..49bb9790b1fd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto @@ -318,4 +318,9 @@ message Scheduling { // This feature can be used by distributed training jobs that are not // resilient to workers leaving and joining a job. bool restart_job_on_worker_restart = 3; + + // Optional. Indicates if the job should retry for internal errors after the + // job starts running. If true, overrides + // `Scheduling.restart_job_on_worker_restart` to false. + bool disable_retries = 5 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto index d4a0f3e3ba0f..5968668aa46b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto @@ -369,6 +369,20 @@ message ExportDataOperationMetadata { string gcs_output_directory = 2; } +// Runtime operation information for +// [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1.DatasetService.CreateDatasetVersion]. +message CreateDatasetVersionOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Runtime operation information for +// [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1.DatasetService.RestoreDatasetVersion]. +message RestoreDatasetVersionOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + // Request message for // [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems]. message ListDataItemsRequest { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto index 5239f6740ecd..f5da296dae46 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto @@ -207,6 +207,10 @@ message PipelineJob { // is from supported template registry. PipelineTemplateMetadata template_metadata = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The schedule resource name. + // Only returned if the Pipeline is created by Schedule API. + string schedule_name = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Pipeline template metadata if diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/publisher_model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/publisher_model.proto index a854fce73e7e..f942a92132b7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/publisher_model.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/publisher_model.proto @@ -154,6 +154,10 @@ message PublisherModel { // Optional. Request for access. RegionalResourceReferences request_access = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Open evaluation pipeline of the PublisherModel. + RegionalResourceReferences open_evaluation_pipeline = 11 + [(google.api.field_behavior) = OPTIONAL]; } // An enum representing the open source category of a PublisherModel. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schedule.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schedule.proto index b66e735ac64e..e40028b41881 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schedule.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schedule.proto @@ -88,8 +88,8 @@ message Schedule { CreatePipelineJobRequest create_pipeline_job_request = 14; } - // Output only. The resource name of the Schedule. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Immutable. The resource name of the Schedule. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // Required. User provided name of the Schedule. // The name can be up to 128 characters long and can consist of any UTF-8 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schedule_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schedule_service.proto index 19ffc2b89537..67b922fa0387 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schedule_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/schedule_service.proto @@ -222,6 +222,7 @@ message ListSchedulesRequest { // descending order. // // Supported fields: + // // * `create_time` // * `start_time` // * `end_time` @@ -296,7 +297,9 @@ message ResumeScheduleRequest { message UpdateScheduleRequest { // Required. The Schedule which replaces the resource on the server. // The following restrictions will be applied: + // // * The scheduled request type cannot be changed. + // * The non-empty fields cannot be unset. // * The output_only fields will be ignored if specified. Schedule schedule = 1 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tensorboard_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tensorboard_service.proto index 631705ade80f..0086f73671dd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tensorboard_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tensorboard_service.proto @@ -112,6 +112,15 @@ service TensorboardService { option (google.api.method_signature) = "tensorboard"; } + // Returns the storage size for a given TensorBoard instance. + rpc ReadTensorboardSize(ReadTensorboardSizeRequest) + returns (ReadTensorboardSizeResponse) { + option (google.api.http) = { + get: "/v1/{tensorboard=projects/*/locations/*/tensorboards/*}:readSize" + }; + option (google.api.method_signature) = "tensorboard"; + } + // Creates a TensorboardExperiment. rpc CreateTensorboardExperiment(CreateTensorboardExperimentRequest) returns (TensorboardExperiment) { @@ -510,6 +519,27 @@ message ReadTensorboardUsageResponse { map monthly_usage_data = 1; } +// Request message for +// [TensorboardService.ReadTensorboardSize][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardSize]. +message ReadTensorboardSizeRequest { + // Required. The name of the Tensorboard resource. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + string tensorboard = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Tensorboard" + } + ]; +} + +// Response message for +// [TensorboardService.ReadTensorboardSize][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardSize]. +message ReadTensorboardSizeResponse { + // Payload storage size for the TensorBoard + int64 storage_size_byte = 1; +} + // Request message for // [TensorboardService.CreateTensorboardExperiment][google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperiment]. message CreateTensorboardExperimentRequest { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java index e4086499fd5a..c6c1a80bee32 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java @@ -118,6 +118,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * NVIDIA_L4 = 11; */ NVIDIA_L4(11), + /** + * + * + *
+   * Nvidia H100 80Gb GPU.
+   * 
+ * + * NVIDIA_H100_80GB = 13; + */ + NVIDIA_H100_80GB(13), /** * * @@ -148,6 +158,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * TPU_V4_POD = 10; */ TPU_V4_POD(10), + /** + * + * + *
+   * TPU v5.
+   * 
+ * + * TPU_V5_LITEPOD = 12; + */ + TPU_V5_LITEPOD(12), UNRECOGNIZED(-1), ; @@ -241,6 +261,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * NVIDIA_L4 = 11; */ public static final int NVIDIA_L4_VALUE = 11; + /** + * + * + *
+   * Nvidia H100 80Gb GPU.
+   * 
+ * + * NVIDIA_H100_80GB = 13; + */ + public static final int NVIDIA_H100_80GB_VALUE = 13; /** * * @@ -271,6 +301,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * TPU_V4_POD = 10; */ public static final int TPU_V4_POD_VALUE = 10; + /** + * + * + *
+   * TPU v5.
+   * 
+ * + * TPU_V5_LITEPOD = 12; + */ + public static final int TPU_V5_LITEPOD_VALUE = 12; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -314,12 +354,16 @@ public static AcceleratorType forNumber(int value) { return NVIDIA_A100_80GB; case 11: return NVIDIA_L4; + case 13: + return NVIDIA_H100_80GB; case 6: return TPU_V2; case 7: return TPU_V3; case 10: return TPU_V4_POD; + case 12: + return TPU_V5_LITEPOD; default: return null; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java index c01204ac03e1..d8bba682b73e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java @@ -37,19 +37,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n6google/cloud/aiplatform/v1beta1/accele" + "rator_type.proto\022\037google.cloud.aiplatfor" - + "m.v1beta1*\205\002\n\017AcceleratorType\022 \n\034ACCELER" + + "m.v1beta1*\257\002\n\017AcceleratorType\022 \n\034ACCELER" + "ATOR_TYPE_UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_" + "K80\020\001\022\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_T" + "ESLA_V100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVID" + "IA_TESLA_T4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010\022\024\n\020" - + "NVIDIA_A100_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\n\n\006TPU" - + "_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4_POD\020\nB\353\001\n#co" - + "m.google.cloud.aiplatform.v1beta1B\024Accel" - + "eratorTypeProtoP\001ZCcloud.google.com/go/a" - + "iplatform/apiv1beta1/aiplatformpb;aiplat" - + "formpb\252\002\037Google.Cloud.AIPlatform.V1Beta1" - + "\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goo" - + "gle::Cloud::AIPlatform::V1beta1b\006proto3" + + "NVIDIA_A100_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n\020NVI" + + "DIA_H100_80GB\020\r\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022" + + "\016\n\nTPU_V4_POD\020\n\022\022\n\016TPU_V5_LITEPOD\020\014B\353\001\n#" + + "com.google.cloud.aiplatform.v1beta1B\024Acc" + + "eleratorTypeProtoP\001ZCcloud.google.com/go" + + "/aiplatform/apiv1beta1/aiplatformpb;aipl" + + "atformpb\252\002\037Google.Cloud.AIPlatform.V1Bet" + + "a1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"G" + + "oogle::Cloud::AIPlatform::V1beta1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java index 28c64e2be713..713dae9c2d5d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Context.java @@ -87,10 +87,10 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
-   * Output only. The resource name of the Context.
+   * Immutable. The resource name of the Context.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -110,10 +110,10 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name of the Context.
+   * Immutable. The resource name of the Context.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ @@ -1410,10 +1410,10 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name of the Context.
+     * Immutable. The resource name of the Context.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -1432,10 +1432,10 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name of the Context.
+     * Immutable. The resource name of the Context.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ @@ -1454,10 +1454,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name of the Context.
+     * Immutable. The resource name of the Context.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The name to set. * @return This builder for chaining. @@ -1475,10 +1475,10 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name of the Context.
+     * Immutable. The resource name of the Context.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ @@ -1492,10 +1492,10 @@ public Builder clearName() { * * *
-     * Output only. The resource name of the Context.
+     * Immutable. The resource name of the Context.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java index f1f647aefbf5..cb7f04f183b3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextOrBuilder.java @@ -27,10 +27,10 @@ public interface ContextOrBuilder * * *
-   * Output only. The resource name of the Context.
+   * Immutable. The resource name of the Context.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -39,10 +39,10 @@ public interface ContextOrBuilder * * *
-   * Output only. The resource name of the Context.
+   * Immutable. The resource name of the Context.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java index a2fcedf4efd6..724199797a2a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContextProto.java @@ -49,7 +49,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032\037google/api/field_behavior.proto\032\031googl" + "e/api/resource.proto\032\034google/protobuf/st" + "ruct.proto\032\037google/protobuf/timestamp.pr" - + "oto\"\334\004\n\007Context\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014d" + + "oto\"\334\004\n\007Context\022\022\n\004name\030\001 \001(\tB\004\342A\001\005\022\024\n\014d" + "isplay_name\030\002 \001(\t\022\014\n\004etag\030\010 \001(\t\022D\n\006label" + "s\030\t \003(\01324.google.cloud.aiplatform.v1beta" + "1.Context.LabelsEntry\0225\n\013create_time\030\n \001" diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequest.java new file mode 100644 index 000000000000..365bc753df72 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequest.java @@ -0,0 +1,1205 @@ +/* + * Copyright 2023 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/prediction_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [PredictionService.CountTokens][google.cloud.aiplatform.v1beta1.PredictionService.CountTokens].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CountTokensRequest} + */ +public final class CountTokensRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CountTokensRequest) + CountTokensRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CountTokensRequest.newBuilder() to construct. + private CountTokensRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CountTokensRequest() { + endpoint_ = ""; + instances_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CountTokensRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CountTokensRequest.class, + com.google.cloud.aiplatform.v1beta1.CountTokensRequest.Builder.class); + } + + public static final int ENDPOINT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; + /** + * + * + *
+   * Required. The name of the Endpoint requested to perform token counting.
+   * Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The endpoint. + */ + @java.lang.Override + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + 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(); + endpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Endpoint requested to perform token counting.
+   * Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for endpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List instances_; + /** + * + * + *
+   * Required. The instances that are the input to token counting call.
+   * Schema is identical to the prediction schema of the underlying model.
+   * 
+ * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getInstancesList() { + return instances_; + } + /** + * + * + *
+   * Required. The instances that are the input to token counting call.
+   * Schema is identical to the prediction schema of the underlying model.
+   * 
+ * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
+   * Required. The instances that are the input to token counting call.
+   * Schema is identical to the prediction schema of the underlying model.
+   * 
+ * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
+   * Required. The instances that are the input to token counting call.
+   * Schema is identical to the prediction schema of the underlying model.
+   * 
+ * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.Value getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
+   * Required. The instances that are the input to token counting call.
+   * Schema is identical to the prediction schema of the underlying model.
+   * 
+ * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index) { + return instances_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(2, instances_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, instances_.get(i)); + } + size += getUnknownFields().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.CountTokensRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CountTokensRequest other = + (com.google.cloud.aiplatform.v1beta1.CountTokensRequest) obj; + + if (!getEndpoint().equals(other.getEndpoint())) return false; + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensRequest 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.CountTokensRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensRequest 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.CountTokensRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensRequest 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.CountTokensRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensRequest 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.CountTokensRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensRequest 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.CountTokensRequest 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.CountTokensRequest 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.CountTokensRequest 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
+   * [PredictionService.CountTokens][google.cloud.aiplatform.v1beta1.PredictionService.CountTokens].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CountTokensRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CountTokensRequest) + com.google.cloud.aiplatform.v1beta1.CountTokensRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CountTokensRequest.class, + com.google.cloud.aiplatform.v1beta1.CountTokensRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CountTokensRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpoint_ = ""; + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CountTokensRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CountTokensRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CountTokensRequest build() { + com.google.cloud.aiplatform.v1beta1.CountTokensRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CountTokensRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CountTokensRequest result = + new com.google.cloud.aiplatform.v1beta1.CountTokensRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.CountTokensRequest result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CountTokensRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + } + + @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.CountTokensRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CountTokensRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CountTokensRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.CountTokensRequest.getDefaultInstance()) + return this; + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000002); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + endpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.Value m = + input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object endpoint_ = ""; + /** + * + * + *
+     * Required. The name of the Endpoint requested to perform token counting.
+     * Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Endpoint requested to perform token counting.
+     * Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Endpoint requested to perform token counting.
+     * Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Endpoint requested to perform token counting.
+     * Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Endpoint requested to perform token counting.
+     * Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List instances_ = + java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instances_ = new java.util.ArrayList(instances_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + instancesBuilder_; + + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Value getInstances(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances(int index, com.google.protobuf.Value value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstances(int index, com.google.protobuf.Value.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances(com.google.protobuf.Value value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances(int index, com.google.protobuf.Value value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances(com.google.protobuf.Value.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInstances(int index, com.google.protobuf.Value.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInstances(java.lang.Iterable values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Value.Builder getInstancesBuilder(int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Value.Builder addInstancesBuilder() { + return getInstancesFieldBuilder().addBuilder(com.google.protobuf.Value.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Value.Builder addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder(index, com.google.protobuf.Value.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The instances that are the input to token counting call.
+     * Schema is identical to the prediction schema of the underlying model.
+     * 
+ * + * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + instances_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + @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.CountTokensRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CountTokensRequest) + private static final com.google.cloud.aiplatform.v1beta1.CountTokensRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CountTokensRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CountTokensRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.CountTokensRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequestOrBuilder.java new file mode 100644 index 000000000000..160b91ff5817 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensRequestOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2023 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/prediction_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CountTokensRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CountTokensRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Endpoint requested to perform token counting.
+   * Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The endpoint. + */ + java.lang.String getEndpoint(); + /** + * + * + *
+   * Required. The name of the Endpoint requested to perform token counting.
+   * Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for endpoint. + */ + com.google.protobuf.ByteString getEndpointBytes(); + + /** + * + * + *
+   * Required. The instances that are the input to token counting call.
+   * Schema is identical to the prediction schema of the underlying model.
+   * 
+ * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getInstancesList(); + /** + * + * + *
+   * Required. The instances that are the input to token counting call.
+   * Schema is identical to the prediction schema of the underlying model.
+   * 
+ * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.Value getInstances(int index); + /** + * + * + *
+   * Required. The instances that are the input to token counting call.
+   * Schema is identical to the prediction schema of the underlying model.
+   * 
+ * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInstancesCount(); + /** + * + * + *
+   * Required. The instances that are the input to token counting call.
+   * Schema is identical to the prediction schema of the underlying model.
+   * 
+ * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getInstancesOrBuilderList(); + /** + * + * + *
+   * Required. The instances that are the input to token counting call.
+   * Schema is identical to the prediction schema of the underlying model.
+   * 
+ * + * repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.ValueOrBuilder getInstancesOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponse.java new file mode 100644 index 000000000000..ff28c5d341a8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponse.java @@ -0,0 +1,634 @@ +/* + * Copyright 2023 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/prediction_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [PredictionService.CountTokens][google.cloud.aiplatform.v1beta1.PredictionService.CountTokens].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CountTokensResponse} + */ +public final class CountTokensResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CountTokensResponse) + CountTokensResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CountTokensResponse.newBuilder() to construct. + private CountTokensResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CountTokensResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CountTokensResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CountTokensResponse.class, + com.google.cloud.aiplatform.v1beta1.CountTokensResponse.Builder.class); + } + + public static final int TOTAL_TOKENS_FIELD_NUMBER = 1; + private int totalTokens_ = 0; + /** + * + * + *
+   * The total number of tokens counted across all instances from the request.
+   * 
+ * + * int32 total_tokens = 1; + * + * @return The totalTokens. + */ + @java.lang.Override + public int getTotalTokens() { + return totalTokens_; + } + + public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 2; + private int totalBillableCharacters_ = 0; + /** + * + * + *
+   * The total number of billable characters counted across all instances from
+   * the request.
+   * 
+ * + * int32 total_billable_characters = 2; + * + * @return The totalBillableCharacters. + */ + @java.lang.Override + public int getTotalBillableCharacters() { + return totalBillableCharacters_; + } + + 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 (totalTokens_ != 0) { + output.writeInt32(1, totalTokens_); + } + if (totalBillableCharacters_ != 0) { + output.writeInt32(2, totalBillableCharacters_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (totalTokens_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, totalTokens_); + } + if (totalBillableCharacters_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalBillableCharacters_); + } + size += getUnknownFields().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.CountTokensResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CountTokensResponse other = + (com.google.cloud.aiplatform.v1beta1.CountTokensResponse) obj; + + if (getTotalTokens() != other.getTotalTokens()) return false; + if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TOTAL_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + getTotalTokens(); + hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; + hash = (53 * hash) + getTotalBillableCharacters(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensResponse 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.CountTokensResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensResponse 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.CountTokensResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensResponse 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.CountTokensResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensResponse 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.CountTokensResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensResponse 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.CountTokensResponse 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.CountTokensResponse 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.CountTokensResponse 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
+   * [PredictionService.CountTokens][google.cloud.aiplatform.v1beta1.PredictionService.CountTokens].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CountTokensResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CountTokensResponse) + com.google.cloud.aiplatform.v1beta1.CountTokensResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CountTokensResponse.class, + com.google.cloud.aiplatform.v1beta1.CountTokensResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CountTokensResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalTokens_ = 0; + totalBillableCharacters_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CountTokensResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CountTokensResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CountTokensResponse build() { + com.google.cloud.aiplatform.v1beta1.CountTokensResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CountTokensResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.CountTokensResponse result = + new com.google.cloud.aiplatform.v1beta1.CountTokensResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CountTokensResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalTokens_ = totalTokens_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalBillableCharacters_ = totalBillableCharacters_; + } + } + + @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.CountTokensResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CountTokensResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CountTokensResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.CountTokensResponse.getDefaultInstance()) + return this; + if (other.getTotalTokens() != 0) { + setTotalTokens(other.getTotalTokens()); + } + if (other.getTotalBillableCharacters() != 0) { + setTotalBillableCharacters(other.getTotalBillableCharacters()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + totalTokens_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + totalBillableCharacters_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int totalTokens_; + /** + * + * + *
+     * The total number of tokens counted across all instances from the request.
+     * 
+ * + * int32 total_tokens = 1; + * + * @return The totalTokens. + */ + @java.lang.Override + public int getTotalTokens() { + return totalTokens_; + } + /** + * + * + *
+     * The total number of tokens counted across all instances from the request.
+     * 
+ * + * int32 total_tokens = 1; + * + * @param value The totalTokens to set. + * @return This builder for chaining. + */ + public Builder setTotalTokens(int value) { + + totalTokens_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The total number of tokens counted across all instances from the request.
+     * 
+ * + * int32 total_tokens = 1; + * + * @return This builder for chaining. + */ + public Builder clearTotalTokens() { + bitField0_ = (bitField0_ & ~0x00000001); + totalTokens_ = 0; + onChanged(); + return this; + } + + private int totalBillableCharacters_; + /** + * + * + *
+     * The total number of billable characters counted across all instances from
+     * the request.
+     * 
+ * + * int32 total_billable_characters = 2; + * + * @return The totalBillableCharacters. + */ + @java.lang.Override + public int getTotalBillableCharacters() { + return totalBillableCharacters_; + } + /** + * + * + *
+     * The total number of billable characters counted across all instances from
+     * the request.
+     * 
+ * + * int32 total_billable_characters = 2; + * + * @param value The totalBillableCharacters to set. + * @return This builder for chaining. + */ + public Builder setTotalBillableCharacters(int value) { + + totalBillableCharacters_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The total number of billable characters counted across all instances from
+     * the request.
+     * 
+ * + * int32 total_billable_characters = 2; + * + * @return This builder for chaining. + */ + public Builder clearTotalBillableCharacters() { + bitField0_ = (bitField0_ & ~0x00000002); + totalBillableCharacters_ = 0; + 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.CountTokensResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CountTokensResponse) + private static final com.google.cloud.aiplatform.v1beta1.CountTokensResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CountTokensResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.CountTokensResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CountTokensResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.CountTokensResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponseOrBuilder.java new file mode 100644 index 000000000000..5f8fbf64f54b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponseOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 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/prediction_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CountTokensResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CountTokensResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The total number of tokens counted across all instances from the request.
+   * 
+ * + * int32 total_tokens = 1; + * + * @return The totalTokens. + */ + int getTotalTokens(); + + /** + * + * + *
+   * The total number of billable characters counted across all instances from
+   * the request.
+   * 
+ * + * int32 total_billable_characters = 2; + * + * @return The totalBillableCharacters. + */ + int getTotalBillableCharacters(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetVersionOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetVersionOperationMetadata.java new file mode 100644 index 000000000000..ec8fcc7c5511 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetVersionOperationMetadata.java @@ -0,0 +1,737 @@ +/* + * Copyright 2023 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/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Runtime operation information for
+ * [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata} + */ +public final class CreateDatasetVersionOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata) + CreateDatasetVersionOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDatasetVersionOperationMetadata.newBuilder() to construct. + private CreateDatasetVersionOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDatasetVersionOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDatasetVersionOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata.Builder + .class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .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 common part of the operation metadata.
+   * 
+ * + * .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 common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + 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()); + } + getUnknownFields().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 += getUnknownFields().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.CreateDatasetVersionOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata 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.CreateDatasetVersionOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata 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.CreateDatasetVersionOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata 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.CreateDatasetVersionOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata 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.CreateDatasetVersionOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata + 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.CreateDatasetVersionOperationMetadata 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.CreateDatasetVersionOperationMetadata 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.CreateDatasetVersionOperationMetadata 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
+   * [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata) + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + + @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.CreateDatasetVersionOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + 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 common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .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 common part of the operation metadata.
+     * 
+ * + * .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; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .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(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .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 common part of the operation metadata.
+     * 
+ * + * .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.CreateDatasetVersionOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetVersionOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.CreateDatasetVersionOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetVersionOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetVersionOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..01250b3a3e55 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetVersionOperationMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2023 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/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateDatasetVersionOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java index d1e5589ac99c..8dbd3e926d16 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobProto.java @@ -138,16 +138,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "executor_image_uri\030\001 \001(\tB\004\342A\001\002\022\032\n\014packag" + "e_uris\030\002 \003(\tB\004\342A\001\002\022\033\n\rpython_module\030\003 \001(" + "\tB\004\342A\001\002\022\014\n\004args\030\004 \003(\t\0224\n\003env\030\005 \003(\0132\'.goo" - + "gle.cloud.aiplatform.v1beta1.EnvVar\"_\n\nS" + + "gle.cloud.aiplatform.v1beta1.EnvVar\"~\n\nS" + "cheduling\022*\n\007timeout\030\001 \001(\0132\031.google.prot" + "obuf.Duration\022%\n\035restart_job_on_worker_r" - + "estart\030\003 \001(\010B\345\001\n#com.google.cloud.aiplat" - + "form.v1beta1B\016CustomJobProtoP\001ZCcloud.go" - + "ogle.com/go/aiplatform/apiv1beta1/aiplat" - + "formpb;aiplatformpb\252\002\037Google.Cloud.AIPla" - + "tform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\" - + "V1beta1\352\002\"Google::Cloud::AIPlatform::V1b" - + "eta1b\006proto3" + + "estart\030\003 \001(\010\022\035\n\017disable_retries\030\005 \001(\010B\004\342" + + "A\001\001B\345\001\n#com.google.cloud.aiplatform.v1be" + + "ta1B\016CustomJobProtoP\001ZCcloud.google.com/" + + "go/aiplatform/apiv1beta1/aiplatformpb;ai" + + "platformpb\252\002\037Google.Cloud.AIPlatform.V1B" + + "eta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002" + + "\"Google::Cloud::AIPlatform::V1beta1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -258,7 +259,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Scheduling_descriptor, new java.lang.String[] { - "Timeout", "RestartJobOnWorkerRestart", + "Timeout", "RestartJobOnWorkerRestart", "DisableRetries", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java index feb3af14ce23..1c292f0f0608 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java @@ -79,6 +79,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ExportDataOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ExportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -190,140 +198,146 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\t\"\220\001\n\033ExportDataOperationMetadata\022S\n\020" + "generic_metadata\030\001 \001(\01329.google.cloud.ai" + "platform.v1beta1.GenericOperationMetadat" - + "a\022\034\n\024gcs_output_directory\030\002 \001(\t\"\312\001\n\024List" - + "DataItemsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A" - + "#\n!aiplatform.googleapis.com/Dataset\022\016\n\006" - + "filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_" - + "token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google." - + "protobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"o\n\025" - + "ListDataItemsResponse\022=\n\ndata_items\030\001 \003(" - + "\0132).google.cloud.aiplatform.v1beta1.Data" - + "Item\022\027\n\017next_page_token\030\002 \001(\t\"\343\004\n\026Search" - + "DataItemsRequest\022\034\n\022order_by_data_item\030\014" - + " \001(\tH\000\022h\n\023order_by_annotation\030\r \001(\0132I.go" - + "ogle.cloud.aiplatform.v1beta1.SearchData" - + "ItemsRequest.OrderByAnnotationH\000\022;\n\007data" - + "set\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapi" - + "s.com/Dataset\022@\n\013saved_query\030\002 \001(\tB+\030\001\372A" - + "&\n$aiplatform.googleapis.com/SavedQuery\022" - + "\031\n\021data_labeling_job\030\003 \001(\t\022\030\n\020data_item_" - + "filter\030\004 \001(\t\022\036\n\022annotations_filter\030\005 \001(\t" - + "B\002\030\001\022\032\n\022annotation_filters\030\013 \003(\t\022.\n\nfiel" - + "d_mask\030\006 \001(\0132\032.google.protobuf.FieldMask" - + "\022\031\n\021annotations_limit\030\007 \001(\005\022\021\n\tpage_size" - + "\030\010 \001(\005\022\024\n\010order_by\030\t \001(\tB\002\030\001\022\022\n\npage_tok" - + "en\030\n \001(\t\032@\n\021OrderByAnnotation\022\031\n\013saved_q" - + "uery\030\001 \001(\tB\004\342A\001\002\022\020\n\010order_by\030\002 \001(\tB\007\n\005or" - + "der\"z\n\027SearchDataItemsResponse\022F\n\017data_i" - + "tem_views\030\001 \003(\0132-.google.cloud.aiplatfor" - + "m.v1beta1.DataItemView\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"\261\001\n\014DataItemView\022<\n\tdata_item\030\001 " - + "\001(\0132).google.cloud.aiplatform.v1beta1.Da" - + "taItem\022@\n\013annotations\030\002 \003(\0132+.google.clo" - + "ud.aiplatform.v1beta1.Annotation\022!\n\031has_" - + "truncated_annotations\030\003 \001(\010\"\315\001\n\027ListSave" - + "dQueriesRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#" - + "\n!aiplatform.googleapis.com/Dataset\022\016\n\006f" - + "ilter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_t" - + "oken\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.p" - + "rotobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"w\n\030L" - + "istSavedQueriesResponse\022B\n\rsaved_queries" - + "\030\001 \003(\0132+.google.cloud.aiplatform.v1beta1" - + ".SavedQuery\022\027\n\017next_page_token\030\002 \001(\t\"V\n\027" - + "DeleteSavedQueryRequest\022;\n\004name\030\001 \001(\tB-\342" - + "A\001\002\372A&\n$aiplatform.googleapis.com/SavedQ" - + "uery\"\212\001\n\030GetAnnotationSpecRequest\022?\n\004nam" - + "e\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatform.googleapis." - + "com/AnnotationSpec\022-\n\tread_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMask\"\315\001\n\026ListAnnota" - + "tionsRequest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\n\"a" - + "iplatform.googleapis.com/DataItem\022\016\n\006fil" - + "ter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_tok" - + "en\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.pro" - + "tobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"t\n\027Lis" - + "tAnnotationsResponse\022@\n\013annotations\030\001 \003(" - + "\0132+.google.cloud.aiplatform.v1beta1.Anno" - + "tation\022\027\n\017next_page_token\030\002 \001(\t2\377\026\n\016Data" - + "setService\022\346\001\n\rCreateDataset\0225.google.cl" - + "oud.aiplatform.v1beta1.CreateDatasetRequ" - + "est\032\035.google.longrunning.Operation\"\177\312A)\n" - + "\007Dataset\022\036CreateDatasetOperationMetadata" - + "\332A\016parent,dataset\202\323\344\223\002<\"1/v1beta1/{paren" - + "t=projects/*/locations/*}/datasets:\007data" - + "set\022\254\001\n\nGetDataset\0222.google.cloud.aiplat" - + "form.v1beta1.GetDatasetRequest\032(.google." - + "cloud.aiplatform.v1beta1.Dataset\"@\332A\004nam" - + "e\202\323\344\223\0023\0221/v1beta1/{name=projects/*/locat" - + "ions/*/datasets/*}\022\322\001\n\rUpdateDataset\0225.g" - + "oogle.cloud.aiplatform.v1beta1.UpdateDat" - + "asetRequest\032(.google.cloud.aiplatform.v1" - + "beta1.Dataset\"`\332A\023dataset,update_mask\202\323\344" - + "\223\002D29/v1beta1/{dataset.name=projects/*/l" - + "ocations/*/datasets/*}:\007dataset\022\277\001\n\014List" - + "Datasets\0224.google.cloud.aiplatform.v1bet" - + "a1.ListDatasetsRequest\0325.google.cloud.ai" - + "platform.v1beta1.ListDatasetsResponse\"B\332" - + "A\006parent\202\323\344\223\0023\0221/v1beta1/{parent=project" - + "s/*/locations/*}/datasets\022\332\001\n\rDeleteData" - + "set\0225.google.cloud.aiplatform.v1beta1.De" - + "leteDatasetRequest\032\035.google.longrunning." - + "Operation\"s\312A0\n\025google.protobuf.Empty\022\027D" - + "eleteOperationMetadata\332A\004name\202\323\344\223\0023*1/v1" - + "beta1/{name=projects/*/locations/*/datas" - + "ets/*}\022\357\001\n\nImportData\0222.google.cloud.aip" - + "latform.v1beta1.ImportDataRequest\032\035.goog" - + "le.longrunning.Operation\"\215\001\312A1\n\022ImportDa" - + "taResponse\022\033ImportDataOperationMetadata\332" - + "A\023name,import_configs\202\323\344\223\002=\"8/v1beta1/{n" - + "ame=projects/*/locations/*/datasets/*}:i" - + "mport:\001*\022\356\001\n\nExportData\0222.google.cloud.a" - + "iplatform.v1beta1.ExportDataRequest\032\035.go" - + "ogle.longrunning.Operation\"\214\001\312A1\n\022Export" - + "DataResponse\022\033ExportDataOperationMetadat" - + "a\332A\022name,export_config\202\323\344\223\002=\"8/v1beta1/{" - + "name=projects/*/locations/*/datasets/*}:" - + "export:\001*\022\316\001\n\rListDataItems\0225.google.clo" - + "ud.aiplatform.v1beta1.ListDataItemsReque" - + "st\0326.google.cloud.aiplatform.v1beta1.Lis" - + "tDataItemsResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1" - + "beta1/{parent=projects/*/locations/*/dat" - + "asets/*}/dataItems\022\322\001\n\017SearchDataItems\0227" - + ".google.cloud.aiplatform.v1beta1.SearchD" - + "ataItemsRequest\0328.google.cloud.aiplatfor" - + "m.v1beta1.SearchDataItemsResponse\"L\202\323\344\223\002" - + "F\022D/v1beta1/{dataset=projects/*/location" - + "s/*/datasets/*}:searchDataItems\022\332\001\n\020List" - + "SavedQueries\0228.google.cloud.aiplatform.v" - + "1beta1.ListSavedQueriesRequest\0329.google." - + "cloud.aiplatform.v1beta1.ListSavedQuerie" - + "sResponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta1/{pa" - + "rent=projects/*/locations/*/datasets/*}/" - + "savedQueries\022\360\001\n\020DeleteSavedQuery\0228.goog" - + "le.cloud.aiplatform.v1beta1.DeleteSavedQ" - + "ueryRequest\032\035.google.longrunning.Operati" - + "on\"\202\001\312A0\n\025google.protobuf.Empty\022\027DeleteO" - + "perationMetadata\332A\004name\202\323\344\223\002B*@/v1beta1/" - + "{name=projects/*/locations/*/datasets/*/" - + "savedQueries/*}\022\323\001\n\021GetAnnotationSpec\0229." - + "google.cloud.aiplatform.v1beta1.GetAnnot" - + "ationSpecRequest\032/.google.cloud.aiplatfo" - + "rm.v1beta1.AnnotationSpec\"R\332A\004name\202\323\344\223\002E" - + "\022C/v1beta1/{name=projects/*/locations/*/" - + "datasets/*/annotationSpecs/*}\022\342\001\n\017ListAn" - + "notations\0227.google.cloud.aiplatform.v1be" - + "ta1.ListAnnotationsRequest\0328.google.clou" - + "d.aiplatform.v1beta1.ListAnnotationsResp" - + "onse\"\\\332A\006parent\202\323\344\223\002M\022K/v1beta1/{parent=" - + "projects/*/locations/*/datasets/*/dataIt" - + "ems/*}/annotations\032M\312A\031aiplatform.google" - + "apis.com\322A.https://www.googleapis.com/au" - + "th/cloud-platformB\352\001\n#com.google.cloud.a" - + "iplatform.v1beta1B\023DatasetServiceProtoP\001" - + "ZCcloud.google.com/go/aiplatform/apiv1be" - + "ta1/aiplatformpb;aiplatformpb\252\002\037Google.C" - + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A" - + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPla" - + "tform::V1beta1b\006proto3" + + "a\022\034\n\024gcs_output_directory\030\002 \001(\t\"|\n%Creat" + + "eDatasetVersionOperationMetadata\022S\n\020gene" + + "ric_metadata\030\001 \001(\01329.google.cloud.aiplat" + + "form.v1beta1.GenericOperationMetadata\"}\n" + + "&RestoreDatasetVersionOperationMetadata\022" + + "S\n\020generic_metadata\030\001 \001(\01329.google.cloud" + + ".aiplatform.v1beta1.GenericOperationMeta" + + "data\"\312\001\n\024ListDataItemsRequest\022:\n\006parent\030" + + "\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapis.co" + + "m/Dataset\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003" + + " \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 " + + "\001(\0132\032.google.protobuf.FieldMask\022\020\n\010order" + + "_by\030\006 \001(\t\"o\n\025ListDataItemsResponse\022=\n\nda" + + "ta_items\030\001 \003(\0132).google.cloud.aiplatform" + + ".v1beta1.DataItem\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\343\004\n\026SearchDataItemsRequest\022\034\n\022order_b" + + "y_data_item\030\014 \001(\tH\000\022h\n\023order_by_annotati" + + "on\030\r \001(\0132I.google.cloud.aiplatform.v1bet" + + "a1.SearchDataItemsRequest.OrderByAnnotat" + + "ionH\000\022;\n\007dataset\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatf" + + "orm.googleapis.com/Dataset\022@\n\013saved_quer" + + "y\030\002 \001(\tB+\030\001\372A&\n$aiplatform.googleapis.co" + + "m/SavedQuery\022\031\n\021data_labeling_job\030\003 \001(\t\022" + + "\030\n\020data_item_filter\030\004 \001(\t\022\036\n\022annotations" + + "_filter\030\005 \001(\tB\002\030\001\022\032\n\022annotation_filters\030" + + "\013 \003(\t\022.\n\nfield_mask\030\006 \001(\0132\032.google.proto" + + "buf.FieldMask\022\031\n\021annotations_limit\030\007 \001(\005" + + "\022\021\n\tpage_size\030\010 \001(\005\022\024\n\010order_by\030\t \001(\tB\002\030" + + "\001\022\022\n\npage_token\030\n \001(\t\032@\n\021OrderByAnnotati" + + "on\022\031\n\013saved_query\030\001 \001(\tB\004\342A\001\002\022\020\n\010order_b" + + "y\030\002 \001(\tB\007\n\005order\"z\n\027SearchDataItemsRespo" + + "nse\022F\n\017data_item_views\030\001 \003(\0132-.google.cl" + + "oud.aiplatform.v1beta1.DataItemView\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"\261\001\n\014DataItemView\022<\n" + + "\tdata_item\030\001 \001(\0132).google.cloud.aiplatfo" + + "rm.v1beta1.DataItem\022@\n\013annotations\030\002 \003(\013" + + "2+.google.cloud.aiplatform.v1beta1.Annot" + + "ation\022!\n\031has_truncated_annotations\030\003 \001(\010" + + "\"\315\001\n\027ListSavedQueriesRequest\022:\n\006parent\030\001" + + " \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapis.com" + + "/Dataset\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 " + + "\001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001" + + "(\0132\032.google.protobuf.FieldMask\022\020\n\010order_" + + "by\030\006 \001(\t\"w\n\030ListSavedQueriesResponse\022B\n\r" + + "saved_queries\030\001 \003(\0132+.google.cloud.aipla" + + "tform.v1beta1.SavedQuery\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"V\n\027DeleteSavedQueryRequest\022;\n\004" + + "name\030\001 \001(\tB-\342A\001\002\372A&\n$aiplatform.googleap" + + "is.com/SavedQuery\"\212\001\n\030GetAnnotationSpecR" + + "equest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatfor" + + "m.googleapis.com/AnnotationSpec\022-\n\tread_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\315" + + "\001\n\026ListAnnotationsRequest\022;\n\006parent\030\001 \001(" + + "\tB+\342A\001\002\372A$\n\"aiplatform.googleapis.com/Da" + + "taItem\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(" + + "\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\013" + + "2\032.google.protobuf.FieldMask\022\020\n\010order_by" + + "\030\006 \001(\t\"t\n\027ListAnnotationsResponse\022@\n\013ann" + + "otations\030\001 \003(\0132+.google.cloud.aiplatform" + + ".v1beta1.Annotation\022\027\n\017next_page_token\030\002" + + " \001(\t2\377\026\n\016DatasetService\022\346\001\n\rCreateDatase" + + "t\0225.google.cloud.aiplatform.v1beta1.Crea" + + "teDatasetRequest\032\035.google.longrunning.Op" + + "eration\"\177\312A)\n\007Dataset\022\036CreateDatasetOper" + + "ationMetadata\332A\016parent,dataset\202\323\344\223\002<\"1/v" + + "1beta1/{parent=projects/*/locations/*}/d" + + "atasets:\007dataset\022\254\001\n\nGetDataset\0222.google" + + ".cloud.aiplatform.v1beta1.GetDatasetRequ" + + "est\032(.google.cloud.aiplatform.v1beta1.Da" + + "taset\"@\332A\004name\202\323\344\223\0023\0221/v1beta1/{name=pro" + + "jects/*/locations/*/datasets/*}\022\322\001\n\rUpda" + + "teDataset\0225.google.cloud.aiplatform.v1be" + + "ta1.UpdateDatasetRequest\032(.google.cloud." + + "aiplatform.v1beta1.Dataset\"`\332A\023dataset,u" + + "pdate_mask\202\323\344\223\002D29/v1beta1/{dataset.name" + + "=projects/*/locations/*/datasets/*}:\007dat" + + "aset\022\277\001\n\014ListDatasets\0224.google.cloud.aip" + + "latform.v1beta1.ListDatasetsRequest\0325.go" + + "ogle.cloud.aiplatform.v1beta1.ListDatase" + + "tsResponse\"B\332A\006parent\202\323\344\223\0023\0221/v1beta1/{p" + + "arent=projects/*/locations/*}/datasets\022\332" + + "\001\n\rDeleteDataset\0225.google.cloud.aiplatfo" + + "rm.v1beta1.DeleteDatasetRequest\032\035.google" + + ".longrunning.Operation\"s\312A0\n\025google.prot" + + "obuf.Empty\022\027DeleteOperationMetadata\332A\004na" + + "me\202\323\344\223\0023*1/v1beta1/{name=projects/*/loca" + + "tions/*/datasets/*}\022\357\001\n\nImportData\0222.goo" + + "gle.cloud.aiplatform.v1beta1.ImportDataR" + + "equest\032\035.google.longrunning.Operation\"\215\001" + + "\312A1\n\022ImportDataResponse\022\033ImportDataOpera" + + "tionMetadata\332A\023name,import_configs\202\323\344\223\002=" + + "\"8/v1beta1/{name=projects/*/locations/*/" + + "datasets/*}:import:\001*\022\356\001\n\nExportData\0222.g" + + "oogle.cloud.aiplatform.v1beta1.ExportDat" + + "aRequest\032\035.google.longrunning.Operation\"" + + "\214\001\312A1\n\022ExportDataResponse\022\033ExportDataOpe" + + "rationMetadata\332A\022name,export_config\202\323\344\223\002" + + "=\"8/v1beta1/{name=projects/*/locations/*" + + "/datasets/*}:export:\001*\022\316\001\n\rListDataItems" + + "\0225.google.cloud.aiplatform.v1beta1.ListD" + + "ataItemsRequest\0326.google.cloud.aiplatfor" + + "m.v1beta1.ListDataItemsResponse\"N\332A\006pare" + + "nt\202\323\344\223\002?\022=/v1beta1/{parent=projects/*/lo" + + "cations/*/datasets/*}/dataItems\022\322\001\n\017Sear" + + "chDataItems\0227.google.cloud.aiplatform.v1" + + "beta1.SearchDataItemsRequest\0328.google.cl" + + "oud.aiplatform.v1beta1.SearchDataItemsRe" + + "sponse\"L\202\323\344\223\002F\022D/v1beta1/{dataset=projec" + + "ts/*/locations/*/datasets/*}:searchDataI" + + "tems\022\332\001\n\020ListSavedQueries\0228.google.cloud" + + ".aiplatform.v1beta1.ListSavedQueriesRequ" + + "est\0329.google.cloud.aiplatform.v1beta1.Li" + + "stSavedQueriesResponse\"Q\332A\006parent\202\323\344\223\002B\022" + + "@/v1beta1/{parent=projects/*/locations/*" + + "/datasets/*}/savedQueries\022\360\001\n\020DeleteSave" + + "dQuery\0228.google.cloud.aiplatform.v1beta1" + + ".DeleteSavedQueryRequest\032\035.google.longru" + + "nning.Operation\"\202\001\312A0\n\025google.protobuf.E" + + "mpty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223" + + "\002B*@/v1beta1/{name=projects/*/locations/" + + "*/datasets/*/savedQueries/*}\022\323\001\n\021GetAnno" + + "tationSpec\0229.google.cloud.aiplatform.v1b" + + "eta1.GetAnnotationSpecRequest\032/.google.c" + + "loud.aiplatform.v1beta1.AnnotationSpec\"R" + + "\332A\004name\202\323\344\223\002E\022C/v1beta1/{name=projects/*" + + "/locations/*/datasets/*/annotationSpecs/" + + "*}\022\342\001\n\017ListAnnotations\0227.google.cloud.ai" + + "platform.v1beta1.ListAnnotationsRequest\032" + + "8.google.cloud.aiplatform.v1beta1.ListAn" + + "notationsResponse\"\\\332A\006parent\202\323\344\223\002M\022K/v1b" + + "eta1/{parent=projects/*/locations/*/data" + + "sets/*/dataItems/*}/annotations\032M\312A\031aipl" + + "atform.googleapis.com\322A.https://www.goog" + + "leapis.com/auth/cloud-platformB\352\001\n#com.g" + + "oogle.cloud.aiplatform.v1beta1B\023DatasetS" + + "erviceProtoP\001ZCcloud.google.com/go/aipla" + + "tform/apiv1beta1/aiplatformpb;aiplatform" + + "pb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" + + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:" + + ":Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -445,8 +459,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GenericMetadata", "GcsOutputDirectory", }); - internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsRequest_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsRequest_descriptor, @@ -454,7 +484,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsResponse_descriptor, @@ -462,7 +492,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataItems", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_descriptor, @@ -493,7 +523,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SavedQuery", "OrderBy", }); internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_descriptor, @@ -501,7 +531,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataItemViews", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1beta1_DataItemView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor, @@ -509,7 +539,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataItem", "Annotations", "HasTruncatedAnnotations", }); internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_descriptor, @@ -517,7 +547,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_descriptor, @@ -525,7 +555,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SavedQueries", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_DeleteSavedQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_aiplatform_v1beta1_DeleteSavedQueryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DeleteSavedQueryRequest_descriptor, @@ -533,7 +563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_descriptor, @@ -541,7 +571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ReadMask", }); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsRequest_descriptor, @@ -549,7 +579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsResponse_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsResponse_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java index cb09c5d1124f..886139dac311 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePool.java @@ -71,12 +71,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. The resource name of the DeploymentResourcePool.
+   * Immutable. The resource name of the DeploymentResourcePool.
    * Format:
    * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -96,12 +96,12 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name of the DeploymentResourcePool.
+   * Immutable. The resource name of the DeploymentResourcePool.
    * Format:
    * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ @@ -642,12 +642,12 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name of the DeploymentResourcePool.
+     * Immutable. The resource name of the DeploymentResourcePool.
      * Format:
      * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -666,12 +666,12 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name of the DeploymentResourcePool.
+     * Immutable. The resource name of the DeploymentResourcePool.
      * Format:
      * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ @@ -690,12 +690,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name of the DeploymentResourcePool.
+     * Immutable. The resource name of the DeploymentResourcePool.
      * Format:
      * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The name to set. * @return This builder for chaining. @@ -713,12 +713,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name of the DeploymentResourcePool.
+     * Immutable. The resource name of the DeploymentResourcePool.
      * Format:
      * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ @@ -732,12 +732,12 @@ public Builder clearName() { * * *
-     * Output only. The resource name of the DeploymentResourcePool.
+     * Immutable. The resource name of the DeploymentResourcePool.
      * Format:
      * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolOrBuilder.java index a01a01b614a3..d4df42e8a991 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolOrBuilder.java @@ -27,12 +27,12 @@ public interface DeploymentResourcePoolOrBuilder * * *
-   * Output only. The resource name of the DeploymentResourcePool.
+   * Immutable. The resource name of the DeploymentResourcePool.
    * Format:
    * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -41,12 +41,12 @@ public interface DeploymentResourcePoolOrBuilder * * *
-   * Output only. The resource name of the DeploymentResourcePool.
+   * Immutable. The resource name of the DeploymentResourcePool.
    * Format:
    * `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolProto.java index 46fadbb1fc77..6e80d5d43bb3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolProto.java @@ -47,7 +47,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/cloud/aiplatform/v1beta1/machine_r" + "esources.proto\032\037google/protobuf/timestam" + "p.proto\"\320\002\n\026DeploymentResourcePool\022\022\n\004na" - + "me\030\001 \001(\tB\004\342A\001\003\022V\n\023dedicated_resources\030\002 " + + "me\030\001 \001(\tB\004\342A\001\005\022V\n\023dedicated_resources\030\002 " + "\001(\01323.google.cloud.aiplatform.v1beta1.De" + "dicatedResourcesB\004\342A\001\002\0225\n\013create_time\030\004 " + "\001(\0132\032.google.protobuf.TimestampB\004\342A\001\003:\222\001" diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSchedulesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSchedulesRequest.java index 071e6d4c7226..d6c6e35349b9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSchedulesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSchedulesRequest.java @@ -332,6 +332,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -370,6 +371,7 @@ public java.lang.String getOrderBy() { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -1407,6 +1409,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -1444,6 +1447,7 @@ public java.lang.String getOrderBy() { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -1481,6 +1485,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -1517,6 +1522,7 @@ public Builder setOrderBy(java.lang.String value) { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -1549,6 +1555,7 @@ public Builder clearOrderBy() { * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSchedulesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSchedulesRequestOrBuilder.java index 6b4d99f8c053..d4e7eb1380bd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSchedulesRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSchedulesRequestOrBuilder.java @@ -202,6 +202,7 @@ public interface ListSchedulesRequestOrBuilder * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` @@ -229,6 +230,7 @@ public interface ListSchedulesRequestOrBuilder * descending order. * * Supported fields: + * * * `create_time` * * `start_time` * * `end_time` diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java index bffa3940c9bc..114a44d10f40 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java @@ -51,6 +51,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_DiskSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_DiskSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_NfsMount_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -92,17 +96,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "unt\030\003 \001(\005B\004\342A\001\005\"0\n\021ResourcesConsumed\022\033\n\r" + "replica_hours\030\001 \001(\001B\004\342A\001\003\"=\n\010DiskSpec\022\026\n" + "\016boot_disk_type\030\001 \001(\t\022\031\n\021boot_disk_size_" - + "gb\030\002 \001(\005\"O\n\010NfsMount\022\024\n\006server\030\001 \001(\tB\004\342A" - + "\001\002\022\022\n\004path\030\002 \001(\tB\004\342A\001\002\022\031\n\013mount_point\030\003 " - + "\001(\tB\004\342A\001\002\"B\n\025AutoscalingMetricSpec\022\031\n\013me" - + "tric_name\030\001 \001(\tB\004\342A\001\002\022\016\n\006target\030\002 \001(\005B\354\001" - + "\n#com.google.cloud.aiplatform.v1beta1B\025M" - + "achineResourcesProtoP\001ZCcloud.google.com" - + "/go/aiplatform/apiv1beta1/aiplatformpb;a" - + "iplatformpb\252\002\037Google.Cloud.AIPlatform.V1" - + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" - + "\002\"Google::Cloud::AIPlatform::V1beta1b\006pr" - + "oto3" + + "gb\030\002 \001(\005\"=\n\022PersistentDiskSpec\022\021\n\tdisk_t" + + "ype\030\001 \001(\t\022\024\n\014disk_size_gb\030\002 \001(\003\"O\n\010NfsMo" + + "unt\022\024\n\006server\030\001 \001(\tB\004\342A\001\002\022\022\n\004path\030\002 \001(\tB" + + "\004\342A\001\002\022\031\n\013mount_point\030\003 \001(\tB\004\342A\001\002\"B\n\025Auto" + + "scalingMetricSpec\022\031\n\013metric_name\030\001 \001(\tB\004" + + "\342A\001\002\022\016\n\006target\030\002 \001(\005B\354\001\n#com.google.clou" + + "d.aiplatform.v1beta1B\025MachineResourcesPr" + + "otoP\001ZCcloud.google.com/go/aiplatform/ap" + + "iv1beta1/aiplatformpb;aiplatformpb\252\002\037Goo" + + "gle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cl" + + "oud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::" + + "AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -159,8 +164,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BootDiskType", "BootDiskSizeGb", }); - internal_static_google_cloud_aiplatform_v1beta1_NfsMount_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_descriptor, + new java.lang.String[] { + "DiskType", "DiskSizeGb", + }); + internal_static_google_cloud_aiplatform_v1beta1_NfsMount_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1beta1_NfsMount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_NfsMount_descriptor, @@ -168,7 +181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Server", "Path", "MountPoint", }); internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentDiskSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentDiskSpec.java new file mode 100644 index 000000000000..1efb1546c569 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentDiskSpec.java @@ -0,0 +1,748 @@ +/* + * Copyright 2023 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/machine_resources.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Represents the spec of [persistent
+ * disk][https://cloud.google.com/compute/docs/disks/persistent-disks] options.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PersistentDiskSpec} + */ +public final class PersistentDiskSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PersistentDiskSpec) + PersistentDiskSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersistentDiskSpec.newBuilder() to construct. + private PersistentDiskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersistentDiskSpec() { + diskType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PersistentDiskSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.class, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder.class); + } + + public static final int DISK_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object diskType_ = ""; + /** + * + * + *
+   * Type of the disk (default is "pd-standard").
+   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+   * "pd-standard" (Persistent Disk Hard Disk Drive)
+   * "pd-balanced" (Balanced Persistent Disk)
+   * "pd-extreme" (Extreme Persistent Disk)
+   * 
+ * + * string disk_type = 1; + * + * @return The diskType. + */ + @java.lang.Override + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + 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(); + diskType_ = s; + return s; + } + } + /** + * + * + *
+   * Type of the disk (default is "pd-standard").
+   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+   * "pd-standard" (Persistent Disk Hard Disk Drive)
+   * "pd-balanced" (Balanced Persistent Disk)
+   * "pd-extreme" (Extreme Persistent Disk)
+   * 
+ * + * string disk_type = 1; + * + * @return The bytes for diskType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_SIZE_GB_FIELD_NUMBER = 2; + private long diskSizeGb_ = 0L; + /** + * + * + *
+   * Size in GB of the disk (default is 100GB).
+   * 
+ * + * int64 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public long getDiskSizeGb() { + return diskSizeGb_; + } + + 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(diskType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, diskType_); + } + if (diskSizeGb_ != 0L) { + output.writeInt64(2, diskSizeGb_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, diskType_); + } + if (diskSizeGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, diskSizeGb_); + } + size += getUnknownFields().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.PersistentDiskSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec other = + (com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec) obj; + + if (!getDiskType().equals(other.getDiskType())) return false; + if (getDiskSizeGb() != other.getDiskSizeGb()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDiskType().hashCode(); + hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiskSizeGb()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec 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.PersistentDiskSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec 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.PersistentDiskSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec 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.PersistentDiskSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec 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.PersistentDiskSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec 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.PersistentDiskSpec 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.PersistentDiskSpec 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.PersistentDiskSpec 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; + } + /** + * + * + *
+   * Represents the spec of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks] options.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PersistentDiskSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PersistentDiskSpec) + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.class, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + diskType_ = ""; + diskSizeGb_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec build() { + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec result = + new com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskSizeGb_ = diskSizeGb_; + } + } + + @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.PersistentDiskSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance()) + return this; + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getDiskSizeGb() != 0L) { + setDiskSizeGb(other.getDiskSizeGb()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + diskSizeGb_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object diskType_ = ""; + /** + * + * + *
+     * Type of the disk (default is "pd-standard").
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+     * "pd-standard" (Persistent Disk Hard Disk Drive)
+     * "pd-balanced" (Balanced Persistent Disk)
+     * "pd-extreme" (Extreme Persistent Disk)
+     * 
+ * + * string disk_type = 1; + * + * @return The diskType. + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Type of the disk (default is "pd-standard").
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+     * "pd-standard" (Persistent Disk Hard Disk Drive)
+     * "pd-balanced" (Balanced Persistent Disk)
+     * "pd-extreme" (Extreme Persistent Disk)
+     * 
+ * + * string disk_type = 1; + * + * @return The bytes for diskType. + */ + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Type of the disk (default is "pd-standard").
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+     * "pd-standard" (Persistent Disk Hard Disk Drive)
+     * "pd-balanced" (Balanced Persistent Disk)
+     * "pd-extreme" (Extreme Persistent Disk)
+     * 
+ * + * string disk_type = 1; + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + diskType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk (default is "pd-standard").
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+     * "pd-standard" (Persistent Disk Hard Disk Drive)
+     * "pd-balanced" (Balanced Persistent Disk)
+     * "pd-extreme" (Extreme Persistent Disk)
+     * 
+ * + * string disk_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + diskType_ = getDefaultInstance().getDiskType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk (default is "pd-standard").
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+     * "pd-standard" (Persistent Disk Hard Disk Drive)
+     * "pd-balanced" (Balanced Persistent Disk)
+     * "pd-extreme" (Extreme Persistent Disk)
+     * 
+ * + * string disk_type = 1; + * + * @param value The bytes for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diskType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long diskSizeGb_; + /** + * + * + *
+     * Size in GB of the disk (default is 100GB).
+     * 
+ * + * int64 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public long getDiskSizeGb() { + return diskSizeGb_; + } + /** + * + * + *
+     * Size in GB of the disk (default is 100GB).
+     * 
+ * + * int64 disk_size_gb = 2; + * + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(long value) { + + diskSizeGb_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Size in GB of the disk (default is 100GB).
+     * 
+ * + * int64 disk_size_gb = 2; + * + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + bitField0_ = (bitField0_ & ~0x00000002); + diskSizeGb_ = 0L; + 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.PersistentDiskSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PersistentDiskSpec) + private static final com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentDiskSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.PersistentDiskSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentDiskSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentDiskSpecOrBuilder.java new file mode 100644 index 000000000000..40d7e2628039 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentDiskSpecOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2023 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/machine_resources.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface PersistentDiskSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PersistentDiskSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Type of the disk (default is "pd-standard").
+   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+   * "pd-standard" (Persistent Disk Hard Disk Drive)
+   * "pd-balanced" (Balanced Persistent Disk)
+   * "pd-extreme" (Extreme Persistent Disk)
+   * 
+ * + * string disk_type = 1; + * + * @return The diskType. + */ + java.lang.String getDiskType(); + /** + * + * + *
+   * Type of the disk (default is "pd-standard").
+   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+   * "pd-standard" (Persistent Disk Hard Disk Drive)
+   * "pd-balanced" (Balanced Persistent Disk)
+   * "pd-extreme" (Extreme Persistent Disk)
+   * 
+ * + * string disk_type = 1; + * + * @return The bytes for diskType. + */ + com.google.protobuf.ByteString getDiskTypeBytes(); + + /** + * + * + *
+   * Size in GB of the disk (default is 100GB).
+   * 
+ * + * int64 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + long getDiskSizeGb(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceProto.java index 117364e8b1f1..64b5d1ae7e4a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceProto.java @@ -51,6 +51,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_RaySpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_RaySpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RaySpec_ResourcePoolImagesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RaySpec_ResourcePoolImagesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ResourceRuntime_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -108,38 +112,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020\005:\205\001\352A\201\001\n,aiplatform.googleapis.com/Per" + "sistentResource\022Qprojects/{project}/loca" + "tions/{location}/persistentResources/{pe" - + "rsistent_resource}\"\224\004\n\014ResourcePool\022\020\n\002i" - + "d\030\001 \001(\tB\004\342A\001\001\022I\n\014machine_spec\030\002 \001(\0132,.go" + + "rsistent_resource}\"\360\003\n\014ResourcePool\022\020\n\002i" + + "d\030\001 \001(\tB\004\342A\001\005\022I\n\014machine_spec\030\002 \001(\0132,.go" + "ogle.cloud.aiplatform.v1beta1.MachineSpe" + "cB\005\342A\002\002\005\022 \n\rreplica_count\030\003 \001(\003B\004\342A\001\001H\000\210" + "\001\001\022B\n\tdisk_spec\030\004 \001(\0132).google.cloud.aip" - + "latform.v1beta1.DiskSpecB\004\342A\001\001\022\"\n\022idle_r" - + "eplica_count\030\005 \001(\003B\006\030\001\342A\001\003\022 \n\022used_repli" - + "ca_count\030\006 \001(\003B\004\342A\001\003\022]\n\020autoscaling_spec" - + "\030\007 \001(\0132=.google.cloud.aiplatform.v1beta1" - + ".ResourcePool.AutoscalingSpecB\004\342A\001\001\032\211\001\n\017" - + "AutoscalingSpec\022$\n\021min_replica_count\030\001 \001" - + "(\003B\004\342A\001\001H\000\210\001\001\022$\n\021max_replica_count\030\002 \001(\003" - + "B\004\342A\001\001H\001\210\001\001B\024\n\022_min_replica_countB\024\n\022_ma" - + "x_replica_countB\020\n\016_replica_count\"\260\001\n\023Re" - + "sourceRuntimeSpec\022W\n\024service_account_spe" - + "c\030\002 \001(\01323.google.cloud.aiplatform.v1beta" - + "1.ServiceAccountSpecB\004\342A\001\001\022@\n\010ray_spec\030\001" - + " \001(\0132(.google.cloud.aiplatform.v1beta1.R" - + "aySpecB\004\342A\001\001\"\"\n\007RaySpec\022\027\n\timage_uri\030\001 \001" - + "(\tB\004\342A\001\001\"\241\001\n\017ResourceRuntime\022[\n\013access_u" - + "ris\030\001 \003(\0132@.google.cloud.aiplatform.v1be" - + "ta1.ResourceRuntime.AccessUrisEntryB\004\342A\001" - + "\003\0321\n\017AccessUrisEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"`\n\022ServiceAccountSpec\022+\n\035en" - + "able_custom_service_account\030\001 \001(\010B\004\342A\001\002\022" - + "\035\n\017service_account\030\002 \001(\tB\004\342A\001\001B\356\001\n#com.g" - + "oogle.cloud.aiplatform.v1beta1B\027Persiste" - + "ntResourceProtoP\001ZCcloud.google.com/go/a" - + "iplatform/apiv1beta1/aiplatformpb;aiplat" - + "formpb\252\002\037Google.Cloud.AIPlatform.V1Beta1" - + "\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goo" - + "gle::Cloud::AIPlatform::V1beta1b\006proto3" + + "latform.v1beta1.DiskSpecB\004\342A\001\001\022 \n\022used_r" + + "eplica_count\030\006 \001(\003B\004\342A\001\003\022]\n\020autoscaling_" + + "spec\030\007 \001(\0132=.google.cloud.aiplatform.v1b" + + "eta1.ResourcePool.AutoscalingSpecB\004\342A\001\001\032" + + "\211\001\n\017AutoscalingSpec\022$\n\021min_replica_count" + + "\030\001 \001(\003B\004\342A\001\001H\000\210\001\001\022$\n\021max_replica_count\030\002" + + " \001(\003B\004\342A\001\001H\001\210\001\001B\024\n\022_min_replica_countB\024\n" + + "\022_max_replica_countB\020\n\016_replica_count\"\260\001" + + "\n\023ResourceRuntimeSpec\022W\n\024service_account" + + "_spec\030\002 \001(\01323.google.cloud.aiplatform.v1" + + "beta1.ServiceAccountSpecB\004\342A\001\001\022@\n\010ray_sp" + + "ec\030\001 \001(\0132(.google.cloud.aiplatform.v1bet" + + "a1.RaySpecB\004\342A\001\001\"\355\001\n\007RaySpec\022\027\n\timage_ur" + + "i\030\001 \001(\tB\004\342A\001\001\022d\n\024resource_pool_images\030\006 " + + "\003(\0132@.google.cloud.aiplatform.v1beta1.Ra" + + "ySpec.ResourcePoolImagesEntryB\004\342A\001\001\022(\n\032h" + + "ead_node_resource_pool_id\030\007 \001(\tB\004\342A\001\001\0329\n" + + "\027ResourcePoolImagesEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\241\001\n\017ResourceRuntime\022[\n\013" + + "access_uris\030\001 \003(\0132@.google.cloud.aiplatf" + + "orm.v1beta1.ResourceRuntime.AccessUrisEn" + + "tryB\004\342A\001\003\0321\n\017AccessUrisEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\022ServiceAccountSp" + + "ec\022+\n\035enable_custom_service_account\030\001 \001(" + + "\010B\004\342A\001\002\022\035\n\017service_account\030\002 \001(\tB\004\342A\001\001B\356" + + "\001\n#com.google.cloud.aiplatform.v1beta1B\027" + + "PersistentResourceProtoP\001ZCcloud.google." + + "com/go/aiplatform/apiv1beta1/aiplatformp" + + "b;aiplatformpb\252\002\037Google.Cloud.AIPlatform" + + ".V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1bet" + + "a1\352\002\"Google::Cloud::AIPlatform::V1beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -193,7 +202,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MachineSpec", "ReplicaCount", "DiskSpec", - "IdleReplicaCount", "UsedReplicaCount", "AutoscalingSpec", "ReplicaCount", @@ -222,7 +230,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_RaySpec_descriptor, new java.lang.String[] { - "ImageUri", + "ImageUri", "ResourcePoolImages", "HeadNodeResourcePoolId", + }); + internal_static_google_cloud_aiplatform_v1beta1_RaySpec_ResourcePoolImagesEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RaySpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_RaySpec_ResourcePoolImagesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RaySpec_ResourcePoolImagesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); internal_static_google_cloud_aiplatform_v1beta1_ResourceRuntime_descriptor = getDescriptor().getMessageTypes().get(4); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceProto.java index df97c8dd9bc6..cdb7373e2817 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceProto.java @@ -35,6 +35,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_CreatePersistentResourceOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_CreatePersistentResourceOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceOperationMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_GetPersistentResourceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -51,6 +55,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_DeletePersistentResourceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_DeletePersistentResourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -69,64 +77,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/v1beta1/operation.proto\0329google/cloud/a" + "iplatform/v1beta1/persistent_resource.pr" + "oto\032#google/longrunning/operations.proto" - + "\032\033google/protobuf/empty.proto\"\333\001\n\037Create" - + "PersistentResourceRequest\022:\n\006parent\030\001 \001(" - + "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022V\n\023persistent_resource\030\002 \001(\01323.goo" - + "gle.cloud.aiplatform.v1beta1.PersistentR" - + "esourceB\004\342A\001\002\022$\n\026persistent_resource_id\030" - + "\003 \001(\tB\004\342A\001\002\"\200\001\n)CreatePersistentResource" - + "OperationMetadata\022S\n\020generic_metadata\030\001 " - + "\001(\01329.google.cloud.aiplatform.v1beta1.Ge" - + "nericOperationMetadata\"c\n\034GetPersistentR" - + "esourceRequest\022C\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,a" - + "iplatform.googleapis.com/PersistentResou" - + "rce\"\217\001\n\036ListPersistentResourcesRequest\022:" - + "\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googl" - + "eapis.com/Location\022\027\n\tpage_size\030\003 \001(\005B\004\342" - + "A\001\001\022\030\n\npage_token\030\004 \001(\tB\004\342A\001\001\"\215\001\n\037ListPe" - + "rsistentResourcesResponse\022Q\n\024persistent_" - + "resources\030\001 \003(\01323.google.cloud.aiplatfor" - + "m.v1beta1.PersistentResource\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"f\n\037DeletePersistentResourc" - + "eRequest\022C\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,aiplatf" - + "orm.googleapis.com/PersistentResource2\201\t" - + "\n\031PersistentResourceService\022\315\002\n\030CreatePe" - + "rsistentResource\022@.google.cloud.aiplatfo" - + "rm.v1beta1.CreatePersistentResourceReque" - + "st\032\035.google.longrunning.Operation\"\317\001\312A?\n" - + "\022PersistentResource\022)CreatePersistentRes" - + "ourceOperationMetadata\332A1parent,persiste" - + "nt_resource,persistent_resource_id\202\323\344\223\002S" - + "\"" - + "\022\022<" - + "/v1beta1/{parent=projects/*/locations/*}" - + "/persistentResources\022\373\001\n\030DeletePersisten" - + "tResource\022@.google.cloud.aiplatform.v1be" - + "ta1.DeletePersistentResourceRequest\032\035.go" - + "ogle.longrunning.Operation\"~\312A0\n\025google." - + "protobuf.Empty\022\027DeleteOperationMetadata\332" - + "A\004name\202\323\344\223\002>*\022\022*\n\010main" - + "_job\030\001 \001(\tB,\342A\001\003\372A%\n#aiplatform.googleap" - + "is.com/CustomJob\022K\n\025pre_caching_check_jo" - + "b\030\002 \001(\tB,\342A\001\003\372A%\n#aiplatform.googleapis." - + "com/CustomJob\022\036\n\020failed_main_jobs\030\003 \003(\tB" - + "\004\342A\001\003\022+\n\035failed_pre_caching_check_jobs\030\004" - + " \003(\tB\004\342A\001\003\032g\n\017CustomJobDetail\0229\n\003job\030\001 \001" - + "(\tB,\342A\001\003\372A%\n#aiplatform.googleapis.com/C" - + "ustomJob\022\031\n\013failed_jobs\030\003 \003(\tB\004\342A\001\003B\t\n\007d" - + "etailsB\260\002\n#com.google.cloud.aiplatform.v" - + "1beta1B\010PipelineP\001ZCcloud.google.com/go/" - + "aiplatform/apiv1beta1/aiplatformpb;aipla" - + "tformpb\252\002\037Google.Cloud.AIPlatform.V1Beta" - + "1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Go" - + "ogle::Cloud::AIPlatform::V1beta1\352AN\n\036com" - + "pute.googleapis.com/Network\022,projects/{p" - + "roject}/global/networks/{network}b\006proto" - + "3" + + "1beta1.PipelineTemplateMetadataB\004\342A\001\003\022\033\n" + + "\rschedule_name\030\026 \001(\tB\004\342A\001\003\032\227\006\n\rRuntimeCo" + + "nfig\022b\n\nparameters\030\001 \003(\0132J.google.cloud." + + "aiplatform.v1beta1.PipelineJob.RuntimeCo" + + "nfig.ParametersEntryB\002\030\001\022\"\n\024gcs_output_d" + + "irectory\030\002 \001(\tB\004\342A\001\002\022i\n\020parameter_values" + + "\030\003 \003(\0132O.google.cloud.aiplatform.v1beta1" + + ".PipelineJob.RuntimeConfig.ParameterValu" + + "esEntry\022N\n\016failure_policy\030\004 \001(\01626.google" + + ".cloud.aiplatform.v1beta1.PipelineFailur" + + "ePolicy\022g\n\017input_artifacts\030\005 \003(\0132N.googl" + + "e.cloud.aiplatform.v1beta1.PipelineJob.R" + + "untimeConfig.InputArtifactsEntry\032.\n\rInpu" + + "tArtifact\022\025\n\013artifact_id\030\001 \001(\tH\000B\006\n\004kind" + + "\032Y\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\0225\n\005valu" + + "e\030\002 \001(\0132&.google.cloud.aiplatform.v1beta" + + "1.Value:\0028\001\032N\n\024ParameterValuesEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobu" + + "f.Value:\0028\001\032\177\n\023InputArtifactsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022W\n\005value\030\002 \001(\0132H.google.cloud.ai" + + "platform.v1beta1.PipelineJob.RuntimeConf" + + "ig.InputArtifact:\0028\001\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%aiplat" + + "form.googleapis.com/PipelineJob\022Cproject" + + "s/{project}/locations/{location}/pipelin" + + "eJobs/{pipeline_job}\"+\n\030PipelineTemplate" + + "Metadata\022\017\n\007version\030\003 \001(\t\"\374\001\n\021PipelineJo" + + "bDetail\022H\n\020pipeline_context\030\001 \001(\0132(.goog" + + "le.cloud.aiplatform.v1beta1.ContextB\004\342A\001" + + "\003\022L\n\024pipeline_run_context\030\002 \001(\0132(.google" + + ".cloud.aiplatform.v1beta1.ContextB\004\342A\001\003\022" + + "O\n\014task_details\030\003 \003(\01323.google.cloud.aip" + + "latform.v1beta1.PipelineTaskDetailB\004\342A\001\003" + + "\"\340\013\n\022PipelineTaskDetail\022\025\n\007task_id\030\001 \001(\003" + + "B\004\342A\001\003\022\034\n\016parent_task_id\030\014 \001(\003B\004\342A\001\003\022\027\n\t" + + "task_name\030\002 \001(\tB\004\342A\001\003\0225\n\013create_time\030\003 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0224\n\n" + + "start_time\030\004 \001(\0132\032.google.protobuf.Times" + + "tampB\004\342A\001\003\0222\n\010end_time\030\005 \001(\0132\032.google.pr" + + "otobuf.TimestampB\004\342A\001\003\022Z\n\017executor_detai" + + "l\030\006 \001(\0132;.google.cloud.aiplatform.v1beta" + + "1.PipelineTaskExecutorDetailB\004\342A\001\003\022N\n\005st" + + "ate\030\007 \001(\01629.google.cloud.aiplatform.v1be" + + "ta1.PipelineTaskDetail.StateB\004\342A\001\003\022C\n\tex" + + "ecution\030\010 \001(\0132*.google.cloud.aiplatform." + + "v1beta1.ExecutionB\004\342A\001\003\022\'\n\005error\030\t \001(\0132\022" + + ".google.rpc.StatusB\004\342A\001\003\022j\n\024pipeline_tas" + + "k_status\030\r \003(\0132F.google.cloud.aiplatform" + + ".v1beta1.PipelineTaskDetail.PipelineTask" + + "StatusB\004\342A\001\003\022U\n\006inputs\030\n \003(\0132?.google.cl" + + "oud.aiplatform.v1beta1.PipelineTaskDetai" + + "l.InputsEntryB\004\342A\001\003\022W\n\007outputs\030\013 \003(\0132@.g" + + "oogle.cloud.aiplatform.v1beta1.PipelineT" + + "askDetail.OutputsEntryB\004\342A\001\003\032\304\001\n\022Pipelin" + + "eTaskStatus\0225\n\013update_time\030\001 \001(\0132\032.googl" + + "e.protobuf.TimestampB\004\342A\001\003\022N\n\005state\030\002 \001(" + + "\01629.google.cloud.aiplatform.v1beta1.Pipe" + + "lineTaskDetail.StateB\004\342A\001\003\022\'\n\005error\030\003 \001(" + + "\0132\022.google.rpc.StatusB\004\342A\001\003\032R\n\014ArtifactL" + + "ist\022B\n\tartifacts\030\001 \003(\0132).google.cloud.ai" + + "platform.v1beta1.ArtifactB\004\342A\001\003\032o\n\013Input" + + "sEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.goo" + + "gle.cloud.aiplatform.v1beta1.PipelineTas" + + "kDetail.ArtifactList:\0028\001\032p\n\014OutputsEntry" + + "\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.google.cl" + + "oud.aiplatform.v1beta1.PipelineTaskDetai" + + "l.ArtifactList:\0028\001\"\246\001\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\r\n" + + "\tSUCCEEDED\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n\nCANC" + + "ELLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007\022\013\n\007S" + + "KIPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\335\004\n\032Pipeline" + + "TaskExecutorDetail\022m\n\020container_detail\030\001" + + " \001(\0132K.google.cloud.aiplatform.v1beta1.P" + + "ipelineTaskExecutorDetail.ContainerDetai" + + "lB\004\342A\001\003H\000\022n\n\021custom_job_detail\030\002 \001(\0132K.g" + + "oogle.cloud.aiplatform.v1beta1.PipelineT" + + "askExecutorDetail.CustomJobDetailB\004\342A\001\003H" + + "\000\032\353\001\n\017ContainerDetail\022>\n\010main_job\030\001 \001(\tB" + + ",\342A\001\003\372A%\n#aiplatform.googleapis.com/Cust" + + "omJob\022K\n\025pre_caching_check_job\030\002 \001(\tB,\342A" + + "\001\003\372A%\n#aiplatform.googleapis.com/CustomJ" + + "ob\022\036\n\020failed_main_jobs\030\003 \003(\tB\004\342A\001\003\022+\n\035fa" + + "iled_pre_caching_check_jobs\030\004 \003(\tB\004\342A\001\003\032" + + "g\n\017CustomJobDetail\0229\n\003job\030\001 \001(\tB,\342A\001\003\372A%" + + "\n#aiplatform.googleapis.com/CustomJob\022\031\n" + + "\013failed_jobs\030\003 \003(\tB\004\342A\001\003B\t\n\007detailsB\260\002\n#" + + "com.google.cloud.aiplatform.v1beta1B\010Pip" + + "elineP\001ZCcloud.google.com/go/aiplatform/" + + "apiv1beta1/aiplatformpb;aiplatformpb\252\002\037G" + + "oogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\" + + "Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud" + + "::AIPlatform::V1beta1\352AN\n\036compute.google" + + "apis.com/Network\022,projects/{project}/glo" + + "bal/networks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -278,6 +278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReservedIpRanges", "TemplateUri", "TemplateMetadata", + "ScheduleName", }); internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java index d6f0b4c3e130..f1d624d9505e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java @@ -45,6 +45,7 @@ private PipelineJob() { network_ = ""; reservedIpRanges_ = com.google.protobuf.LazyStringArrayList.emptyList(); templateUri_ = ""; + scheduleName_ = ""; } @java.lang.Override @@ -4523,6 +4524,59 @@ public com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadata getTemplateM : templateMetadata_; } + public static final int SCHEDULE_NAME_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private volatile java.lang.Object scheduleName_ = ""; + /** + * + * + *
+   * Output only. The schedule resource name.
+   * Only returned if the Pipeline is created by Schedule API.
+   * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scheduleName. + */ + @java.lang.Override + public java.lang.String getScheduleName() { + java.lang.Object ref = scheduleName_; + 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(); + scheduleName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The schedule resource name.
+   * Only returned if the Pipeline is created by Schedule API.
+   * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scheduleName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScheduleNameBytes() { + java.lang.Object ref = scheduleName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scheduleName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4589,6 +4643,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (templateMetadata_ != null) { output.writeMessage(20, getTemplateMetadata()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, scheduleName_); + } for (int i = 0; i < reservedIpRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, reservedIpRanges_.getRaw(i)); } @@ -4661,6 +4718,9 @@ public int getSerializedSize() { if (templateMetadata_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getTemplateMetadata()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, scheduleName_); + } { int dataSize = 0; for (int i = 0; i < reservedIpRanges_.size(); i++) { @@ -4733,6 +4793,7 @@ public boolean equals(final java.lang.Object obj) { if (hasTemplateMetadata()) { if (!getTemplateMetadata().equals(other.getTemplateMetadata())) return false; } + if (!getScheduleName().equals(other.getScheduleName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4804,6 +4865,8 @@ public int hashCode() { hash = (37 * hash) + TEMPLATE_METADATA_FIELD_NUMBER; hash = (53 * hash) + getTemplateMetadata().hashCode(); } + hash = (37 * hash) + SCHEDULE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getScheduleName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5021,6 +5084,7 @@ public Builder clear() { templateMetadataBuilder_.dispose(); templateMetadataBuilder_ = null; } + scheduleName_ = ""; return this; } @@ -5117,6 +5181,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PipelineJob resul result.templateMetadata_ = templateMetadataBuilder_ == null ? templateMetadata_ : templateMetadataBuilder_.build(); } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.scheduleName_ = scheduleName_; + } } @java.lang.Override @@ -5235,6 +5302,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineJob other) if (other.hasTemplateMetadata()) { mergeTemplateMetadata(other.getTemplateMetadata()); } + if (!other.getScheduleName().isEmpty()) { + scheduleName_ = other.scheduleName_; + bitField0_ |= 0x00040000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5370,6 +5442,12 @@ public Builder mergeFrom( bitField0_ |= 0x00020000; break; } // case 162 + case 178: + { + scheduleName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 178 case 202: { java.lang.String s = input.readStringRequireUtf8(); @@ -8569,6 +8647,117 @@ public Builder clearTemplateMetadata() { return templateMetadataBuilder_; } + private java.lang.Object scheduleName_ = ""; + /** + * + * + *
+     * Output only. The schedule resource name.
+     * Only returned if the Pipeline is created by Schedule API.
+     * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scheduleName. + */ + public java.lang.String getScheduleName() { + java.lang.Object ref = scheduleName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + scheduleName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The schedule resource name.
+     * Only returned if the Pipeline is created by Schedule API.
+     * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scheduleName. + */ + public com.google.protobuf.ByteString getScheduleNameBytes() { + java.lang.Object ref = scheduleName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + scheduleName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The schedule resource name.
+     * Only returned if the Pipeline is created by Schedule API.
+     * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The scheduleName to set. + * @return This builder for chaining. + */ + public Builder setScheduleName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scheduleName_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The schedule resource name.
+     * Only returned if the Pipeline is created by Schedule API.
+     * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScheduleName() { + scheduleName_ = getDefaultInstance().getScheduleName(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The schedule resource name.
+     * Only returned if the Pipeline is created by Schedule API.
+     * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for scheduleName to set. + * @return This builder for chaining. + */ + public Builder setScheduleNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scheduleName_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java index 69f645715496..4099793e2a28 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java @@ -794,4 +794,31 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.aiplatform.v1beta1.PipelineTemplateMetadataOrBuilder getTemplateMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. The schedule resource name.
+   * Only returned if the Pipeline is created by Schedule API.
+   * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The scheduleName. + */ + java.lang.String getScheduleName(); + /** + * + * + *
+   * Output only. The schedule resource name.
+   * Only returned if the Pipeline is created by Schedule API.
+   * 
+ * + * string schedule_name = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for scheduleName. + */ + com.google.protobuf.ByteString getScheduleNameBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java index e93edc201865..667b114408e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java @@ -55,6 +55,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ExplainResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ExplainResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -107,44 +115,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "planations\030\001 \003(\0132,.google.cloud.aiplatfo" + "rm.v1beta1.Explanation\022\031\n\021deployed_model" + "_id\030\002 \001(\t\022+\n\013predictions\030\003 \003(\0132\026.google." - + "protobuf.Value2\325\t\n\021PredictionService\022\250\002\n" - + "\007Predict\022/.google.cloud.aiplatform.v1bet" - + "a1.PredictRequest\0320.google.cloud.aiplatf" - + "orm.v1beta1.PredictResponse\"\271\001\332A\035endpoin" - + "t,instances,parameters\202\323\344\223\002\222\001\">/v1beta1/" - + "{endpoint=projects/*/locations/*/endpoin" - + "ts/*}:predict:\001*ZM\"H/v1beta1/{endpoint=p" - + "rojects/*/locations/*/publishers/*/model" - + "s/*}:predict:\001*\022\215\002\n\nRawPredict\0222.google." - + "cloud.aiplatform.v1beta1.RawPredictReque" - + "st\032\024.google.api.HttpBody\"\264\001\332A\022endpoint,h" - + "ttp_body\202\323\344\223\002\230\001\"A/v1beta1/{endpoint=proj" - + "ects/*/locations/*/endpoints/*}:rawPredi" - + "ct:\001*ZP\"K/v1beta1/{endpoint=projects/*/l" - + "ocations/*/publishers/*/models/*}:rawPre" - + "dict:\001*\022\311\002\n\026ServerStreamingPredict\0228.goo" - + "gle.cloud.aiplatform.v1beta1.StreamingPr" - + "edictRequest\0329.google.cloud.aiplatform.v" - + "1beta1.StreamingPredictResponse\"\267\001\202\323\344\223\002\260" - + "\001\"M/v1beta1/{endpoint=projects/*/locatio" - + "ns/*/endpoints/*}:serverStreamingPredict" - + ":\001*Z\\\"W/v1beta1/{endpoint=projects/*/loc" - + "ations/*/publishers/*/models/*}:serverSt" - + "reamingPredict:\001*0\001\022\351\001\n\007Explain\022/.google" - + ".cloud.aiplatform.v1beta1.ExplainRequest" - + "\0320.google.cloud.aiplatform.v1beta1.Expla" - + "inResponse\"{\332A/endpoint,instances,parame" - + "ters,deployed_model_id\202\323\344\223\002C\">/v1beta1/{" - + "endpoint=projects/*/locations/*/endpoint" - + "s/*}:explain:\001*\032M\312A\031aiplatform.googleapi" - + "s.com\322A.https://www.googleapis.com/auth/" - + "cloud-platformB\355\001\n#com.google.cloud.aipl" - + "atform.v1beta1B\026PredictionServiceProtoP\001" - + "ZCcloud.google.com/go/aiplatform/apiv1be" - + "ta1/aiplatformpb;aiplatformpb\252\002\037Google.C" - + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A" - + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPla" - + "tform::V1beta1b\006proto3" + + "protobuf.Value\"\204\001\n\022CountTokensRequest\022=\n" + + "\010endpoint\030\001 \001(\tB+\342A\001\002\372A$\n\"aiplatform.goo" + + "gleapis.com/Endpoint\022/\n\tinstances\030\002 \003(\0132" + + "\026.google.protobuf.ValueB\004\342A\001\002\"N\n\023CountTo" + + "kensResponse\022\024\n\014total_tokens\030\001 \001(\005\022!\n\031to" + + "tal_billable_characters\030\002 \001(\0052\211\014\n\021Predic" + + "tionService\022\250\002\n\007Predict\022/.google.cloud.a" + + "iplatform.v1beta1.PredictRequest\0320.googl" + + "e.cloud.aiplatform.v1beta1.PredictRespon" + + "se\"\271\001\332A\035endpoint,instances,parameters\202\323\344" + + "\223\002\222\001\">/v1beta1/{endpoint=projects/*/loca" + + "tions/*/endpoints/*}:predict:\001*ZM\"H/v1be" + + "ta1/{endpoint=projects/*/locations/*/pub" + + "lishers/*/models/*}:predict:\001*\022\215\002\n\nRawPr" + + "edict\0222.google.cloud.aiplatform.v1beta1." + + "RawPredictRequest\032\024.google.api.HttpBody\"" + + "\264\001\332A\022endpoint,http_body\202\323\344\223\002\230\001\"A/v1beta1" + + "/{endpoint=projects/*/locations/*/endpoi" + + "nts/*}:rawPredict:\001*ZP\"K/v1beta1/{endpoi" + + "nt=projects/*/locations/*/publishers/*/m" + + "odels/*}:rawPredict:\001*\022\311\002\n\026ServerStreami" + + "ngPredict\0228.google.cloud.aiplatform.v1be" + + "ta1.StreamingPredictRequest\0329.google.clo" + + "ud.aiplatform.v1beta1.StreamingPredictRe" + + "sponse\"\267\001\202\323\344\223\002\260\001\"M/v1beta1/{endpoint=pro" + + "jects/*/locations/*/endpoints/*}:serverS" + + "treamingPredict:\001*Z\\\"W/v1beta1/{endpoint" + + "=projects/*/locations/*/publishers/*/mod" + + "els/*}:serverStreamingPredict:\001*0\001\022\351\001\n\007E" + + "xplain\022/.google.cloud.aiplatform.v1beta1" + + ".ExplainRequest\0320.google.cloud.aiplatfor" + + "m.v1beta1.ExplainResponse\"{\332A/endpoint,i" + + "nstances,parameters,deployed_model_id\202\323\344" + + "\223\002C\">/v1beta1/{endpoint=projects/*/locat" + + "ions/*/endpoints/*}:explain:\001*\022\261\002\n\013Count" + + "Tokens\0223.google.cloud.aiplatform.v1beta1" + + ".CountTokensRequest\0324.google.cloud.aipla" + + "tform.v1beta1.CountTokensResponse\"\266\001\332A\022e" + + "ndpoint,instances\202\323\344\223\002\232\001\"B/v1beta1/{endp" + + "oint=projects/*/locations/*/endpoints/*}" + + ":countTokens:\001*ZQ\"L/v1beta1/{endpoint=pr" + + "ojects/*/locations/*/publishers/*/models" + + "/*}:countTokens:\001*\032M\312A\031aiplatform.google" + + "apis.com\322A.https://www.googleapis.com/au" + + "th/cloud-platformB\355\001\n#com.google.cloud.a" + + "iplatform.v1beta1B\026PredictionServiceProt" + + "oP\001ZCcloud.google.com/go/aiplatform/apiv" + + "1beta1/aiplatformpb;aiplatformpb\252\002\037Googl" + + "e.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clou" + + "d\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AI" + + "Platform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -220,6 +241,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Explanations", "DeployedModelId", "Predictions", }); + internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_descriptor, + new java.lang.String[] { + "Endpoint", "Instances", + }); + internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_descriptor, + new java.lang.String[] { + "TotalTokens", "TotalBillableCharacters", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModel.java index aa72825da032..a60607ba77f9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModel.java @@ -1576,6 +1576,1000 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface ParentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PublisherModel.Parent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The display name of the parent. E.g., LaMDA, T5, Vision API,
+     * Natural Language API.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+     * Required. The display name of the parent. E.g., LaMDA, T5, Vision API,
+     * Natural Language API.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+     * Optional. The Google Cloud resource name or the URI reference.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the reference field is set. + */ + boolean hasReference(); + /** + * + * + *
+     * Optional. The Google Cloud resource name or the URI reference.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reference. + */ + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference getReference(); + /** + * + * + *
+     * Optional. The Google Cloud resource name or the URI reference.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReferenceOrBuilder + getReferenceOrBuilder(); + } + /** + * + * + *
+   * The information about the parent of a model.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PublisherModel.Parent} + */ + public static final class Parent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PublisherModel.Parent) + ParentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Parent.newBuilder() to construct. + private Parent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Parent() { + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Parent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PublisherModelProto + .internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Parent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PublisherModelProto + .internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Parent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.class, + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. The display name of the parent. E.g., LaMDA, T5, Vision API,
+     * Natural Language API.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The display name of the parent. E.g., LaMDA, T5, Vision API,
+     * Natural Language API.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFERENCE_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference_; + /** + * + * + *
+     * Optional. The Google Cloud resource name or the URI reference.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the reference field is set. + */ + @java.lang.Override + public boolean hasReference() { + return reference_ != null; + } + /** + * + * + *
+     * Optional. The Google Cloud resource name or the URI reference.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reference. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference getReference() { + return reference_ == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference + .getDefaultInstance() + : reference_; + } + /** + * + * + *
+     * Optional. The Google Cloud resource name or the URI reference.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReferenceOrBuilder + getReferenceOrBuilder() { + return reference_ == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference + .getDefaultInstance() + : reference_; + } + + 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(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (reference_ != null) { + output.writeMessage(2, getReference()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (reference_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReference()); + } + size += getUnknownFields().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.PublisherModel.Parent)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent other = + (com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasReference() != other.hasReference()) return false; + if (hasReference()) { + if (!getReference().equals(other.getReference())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasReference()) { + hash = (37 * hash) + REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getReference().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent 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.PublisherModel.Parent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent 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.PublisherModel.Parent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent 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.PublisherModel.Parent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent 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.PublisherModel.Parent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent 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.PublisherModel.Parent 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.PublisherModel.Parent 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.PublisherModel.Parent 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; + } + /** + * + * + *
+     * The information about the parent of a model.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.PublisherModel.Parent} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PublisherModel.Parent) + com.google.cloud.aiplatform.v1beta1.PublisherModel.ParentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PublisherModelProto + .internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Parent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PublisherModelProto + .internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Parent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.class, + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + reference_ = null; + if (referenceBuilder_ != null) { + referenceBuilder_.dispose(); + referenceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PublisherModelProto + .internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Parent_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent build() { + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent buildPartial() { + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent result = + new com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reference_ = referenceBuilder_ == null ? reference_ : referenceBuilder_.build(); + } + } + + @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.PublisherModel.Parent) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent other) { + if (other == com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasReference()) { + mergeReference(other.getReference()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+       * Required. The display name of the parent. E.g., LaMDA, T5, Vision API,
+       * Natural Language API.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The display name of the parent. E.g., LaMDA, T5, Vision API,
+       * Natural Language API.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The display name of the parent. E.g., LaMDA, T5, Vision API,
+       * Natural Language API.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The display name of the parent. E.g., LaMDA, T5, Vision API,
+       * Natural Language API.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The display name of the parent. E.g., LaMDA, T5, Vision API,
+       * Natural Language API.
+       * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference, + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.Builder, + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReferenceOrBuilder> + referenceBuilder_; + /** + * + * + *
+       * Optional. The Google Cloud resource name or the URI reference.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the reference field is set. + */ + public boolean hasReference() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Optional. The Google Cloud resource name or the URI reference.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reference. + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference getReference() { + if (referenceBuilder_ == null) { + return reference_ == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference + .getDefaultInstance() + : reference_; + } else { + return referenceBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional. The Google Cloud resource name or the URI reference.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReference( + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference value) { + if (referenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + } else { + referenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Google Cloud resource name or the URI reference.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReference( + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.Builder + builderForValue) { + if (referenceBuilder_ == null) { + reference_ = builderForValue.build(); + } else { + referenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Google Cloud resource name or the URI reference.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeReference( + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference value) { + if (referenceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && reference_ != null + && reference_ + != com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference + .getDefaultInstance()) { + getReferenceBuilder().mergeFrom(value); + } else { + reference_ = value; + } + } else { + referenceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Google Cloud resource name or the URI reference.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearReference() { + bitField0_ = (bitField0_ & ~0x00000002); + reference_ = null; + if (referenceBuilder_ != null) { + referenceBuilder_.dispose(); + referenceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Google Cloud resource name or the URI reference.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.Builder + getReferenceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReferenceFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. The Google Cloud resource name or the URI reference.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReferenceOrBuilder + getReferenceOrBuilder() { + if (referenceBuilder_ != null) { + return referenceBuilder_.getMessageOrBuilder(); + } else { + return reference_ == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference + .getDefaultInstance() + : reference_; + } + } + /** + * + * + *
+       * Optional. The Google Cloud resource name or the URI reference.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference, + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.Builder, + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReferenceOrBuilder> + getReferenceFieldBuilder() { + if (referenceBuilder_ == null) { + referenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference, + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference.Builder, + com.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReferenceOrBuilder>( + getReference(), getParentForChildren(), isClean()); + reference_ = null; + } + return referenceBuilder_; + } + + @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.PublisherModel.Parent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PublisherModel.Parent) + private static final com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent(); + } + + public static com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.PublisherModel.Parent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface DocumentationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.PublisherModel.Documentation) @@ -2782,65 +3776,109 @@ public interface CallToActionOrBuilder * @return The openGenerationAiStudio. */ com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - getOpenGenerationAiStudio(); + getOpenGenerationAiStudio(); + /** + * + * + *
+     * Optional. Open in Generation AI Studio.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_generation_ai_studio = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferencesOrBuilder + getOpenGenerationAiStudioOrBuilder(); + + /** + * + * + *
+     * Optional. Request for access.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences request_access = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestAccess field is set. + */ + boolean hasRequestAccess(); + /** + * + * + *
+     * Optional. Request for access.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences request_access = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestAccess. + */ + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences + getRequestAccess(); /** * * *
-     * Optional. Open in Generation AI Studio.
+     * Optional. Request for access.
      * 
* * - * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_generation_ai_studio = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences request_access = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction .RegionalResourceReferencesOrBuilder - getOpenGenerationAiStudioOrBuilder(); + getRequestAccessOrBuilder(); /** * * *
-     * Optional. Request for access.
+     * Optional. Open evaluation pipeline of the PublisherModel.
      * 
* * - * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences request_access = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the requestAccess field is set. + * @return Whether the openEvaluationPipeline field is set. */ - boolean hasRequestAccess(); + boolean hasOpenEvaluationPipeline(); /** * * *
-     * Optional. Request for access.
+     * Optional. Open evaluation pipeline of the PublisherModel.
      * 
* * - * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences request_access = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The requestAccess. + * @return The openEvaluationPipeline. */ com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences - getRequestAccess(); + getOpenEvaluationPipeline(); /** * * *
-     * Optional. Request for access.
+     * Optional. Open evaluation pipeline of the PublisherModel.
      * 
* * - * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences request_access = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction .RegionalResourceReferencesOrBuilder - getRequestAccessOrBuilder(); + getOpenEvaluationPipelineOrBuilder(); } /** * @@ -8873,6 +9911,70 @@ public boolean hasRequestAccess() { : requestAccess_; } + public static final int OPEN_EVALUATION_PIPELINE_FIELD_NUMBER = 11; + private com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences + openEvaluationPipeline_; + /** + * + * + *
+     * Optional. Open evaluation pipeline of the PublisherModel.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the openEvaluationPipeline field is set. + */ + @java.lang.Override + public boolean hasOpenEvaluationPipeline() { + return openEvaluationPipeline_ != null; + } + /** + * + * + *
+     * Optional. Open evaluation pipeline of the PublisherModel.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The openEvaluationPipeline. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences + getOpenEvaluationPipeline() { + return openEvaluationPipeline_ == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences.getDefaultInstance() + : openEvaluationPipeline_; + } + /** + * + * + *
+     * Optional. Open evaluation pipeline of the PublisherModel.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferencesOrBuilder + getOpenEvaluationPipelineOrBuilder() { + return openEvaluationPipeline_ == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences.getDefaultInstance() + : openEvaluationPipeline_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8914,6 +10016,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (requestAccess_ != null) { output.writeMessage(9, getRequestAccess()); } + if (openEvaluationPipeline_ != null) { + output.writeMessage(11, getOpenEvaluationPipeline()); + } getUnknownFields().writeTo(output); } @@ -8956,6 +10061,11 @@ public int getSerializedSize() { if (requestAccess_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getRequestAccess()); } + if (openEvaluationPipeline_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, getOpenEvaluationPipeline()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -9009,6 +10119,10 @@ public boolean equals(final java.lang.Object obj) { if (hasRequestAccess()) { if (!getRequestAccess().equals(other.getRequestAccess())) return false; } + if (hasOpenEvaluationPipeline() != other.hasOpenEvaluationPipeline()) return false; + if (hasOpenEvaluationPipeline()) { + if (!getOpenEvaluationPipeline().equals(other.getOpenEvaluationPipeline())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9056,6 +10170,10 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ACCESS_FIELD_NUMBER; hash = (53 * hash) + getRequestAccess().hashCode(); } + if (hasOpenEvaluationPipeline()) { + hash = (37 * hash) + OPEN_EVALUATION_PIPELINE_FIELD_NUMBER; + hash = (53 * hash) + getOpenEvaluationPipeline().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -9245,6 +10363,11 @@ public Builder clear() { requestAccessBuilder_.dispose(); requestAccessBuilder_ = null; } + openEvaluationPipeline_ = null; + if (openEvaluationPipelineBuilder_ != null) { + openEvaluationPipelineBuilder_.dispose(); + openEvaluationPipelineBuilder_ = null; + } return this; } @@ -9325,6 +10448,12 @@ private void buildPartial0( result.requestAccess_ = requestAccessBuilder_ == null ? requestAccess_ : requestAccessBuilder_.build(); } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.openEvaluationPipeline_ = + openEvaluationPipelineBuilder_ == null + ? openEvaluationPipeline_ + : openEvaluationPipelineBuilder_.build(); + } } @java.lang.Override @@ -9404,6 +10533,9 @@ public Builder mergeFrom( if (other.hasRequestAccess()) { mergeRequestAccess(other.getRequestAccess()); } + if (other.hasOpenEvaluationPipeline()) { + mergeOpenEvaluationPipeline(other.getOpenEvaluationPipeline()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -9488,6 +10620,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 74 + case 90: + { + input.readMessage( + getOpenEvaluationPipelineFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11464,52 +12603,281 @@ public Builder clearRequestAccess() { * * *
-       * Optional. Request for access.
+       * Optional. Request for access.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences request_access = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences.Builder + getRequestAccessBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getRequestAccessFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. Request for access.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences request_access = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferencesOrBuilder + getRequestAccessOrBuilder() { + if (requestAccessBuilder_ != null) { + return requestAccessBuilder_.getMessageOrBuilder(); + } else { + return requestAccess_ == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences.getDefaultInstance() + : requestAccess_; + } + } + /** + * + * + *
+       * Optional. Request for access.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences request_access = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences, + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences.Builder, + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferencesOrBuilder> + getRequestAccessFieldBuilder() { + if (requestAccessBuilder_ == null) { + requestAccessBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences, + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences.Builder, + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferencesOrBuilder>( + getRequestAccess(), getParentForChildren(), isClean()); + requestAccess_ = null; + } + return requestAccessBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences + openEvaluationPipeline_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences, + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences.Builder, + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferencesOrBuilder> + openEvaluationPipelineBuilder_; + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the openEvaluationPipeline field is set. + */ + public boolean hasOpenEvaluationPipeline() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The openEvaluationPipeline. + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences + getOpenEvaluationPipeline() { + if (openEvaluationPipelineBuilder_ == null) { + return openEvaluationPipeline_ == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences.getDefaultInstance() + : openEvaluationPipeline_; + } else { + return openEvaluationPipelineBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOpenEvaluationPipeline( + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences + value) { + if (openEvaluationPipelineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + openEvaluationPipeline_ = value; + } else { + openEvaluationPipelineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOpenEvaluationPipeline( + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences + .Builder + builderForValue) { + if (openEvaluationPipelineBuilder_ == null) { + openEvaluationPipeline_ = builderForValue.build(); + } else { + openEvaluationPipelineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOpenEvaluationPipeline( + com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences + value) { + if (openEvaluationPipelineBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && openEvaluationPipeline_ != null + && openEvaluationPipeline_ + != com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction + .RegionalResourceReferences.getDefaultInstance()) { + getOpenEvaluationPipelineBuilder().mergeFrom(value); + } else { + openEvaluationPipeline_ = value; + } + } else { + openEvaluationPipelineBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOpenEvaluationPipeline() { + bitField0_ = (bitField0_ & ~0x00000200); + openEvaluationPipeline_ = null; + if (openEvaluationPipelineBuilder_ != null) { + openEvaluationPipelineBuilder_.dispose(); + openEvaluationPipelineBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Open evaluation pipeline of the PublisherModel.
        * 
* * - * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences request_access = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction .RegionalResourceReferences.Builder - getRequestAccessBuilder() { - bitField0_ |= 0x00000100; + getOpenEvaluationPipelineBuilder() { + bitField0_ |= 0x00000200; onChanged(); - return getRequestAccessFieldBuilder().getBuilder(); + return getOpenEvaluationPipelineFieldBuilder().getBuilder(); } /** * * *
-       * Optional. Request for access.
+       * Optional. Open evaluation pipeline of the PublisherModel.
        * 
* * - * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences request_access = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction .RegionalResourceReferencesOrBuilder - getRequestAccessOrBuilder() { - if (requestAccessBuilder_ != null) { - return requestAccessBuilder_.getMessageOrBuilder(); + getOpenEvaluationPipelineOrBuilder() { + if (openEvaluationPipelineBuilder_ != null) { + return openEvaluationPipelineBuilder_.getMessageOrBuilder(); } else { - return requestAccess_ == null + return openEvaluationPipeline_ == null ? com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction .RegionalResourceReferences.getDefaultInstance() - : requestAccess_; + : openEvaluationPipeline_; } } /** * * *
-       * Optional. Request for access.
+       * Optional. Open evaluation pipeline of the PublisherModel.
        * 
* * - * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences request_access = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.RegionalResourceReferences open_evaluation_pipeline = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -11519,9 +12887,9 @@ public Builder clearRequestAccess() { .RegionalResourceReferences.Builder, com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction .RegionalResourceReferencesOrBuilder> - getRequestAccessFieldBuilder() { - if (requestAccessBuilder_ == null) { - requestAccessBuilder_ = + getOpenEvaluationPipelineFieldBuilder() { + if (openEvaluationPipelineBuilder_ == null) { + openEvaluationPipelineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction .RegionalResourceReferences, @@ -11529,10 +12897,10 @@ public Builder clearRequestAccess() { .RegionalResourceReferences.Builder, com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction .RegionalResourceReferencesOrBuilder>( - getRequestAccess(), getParentForChildren(), isClean()); - requestAccess_ = null; + getOpenEvaluationPipeline(), getParentForChildren(), isClean()); + openEvaluationPipeline_ = null; } - return requestAccessBuilder_; + return openEvaluationPipelineBuilder_; } @java.lang.Override @@ -11757,6 +13125,65 @@ public int getOpenSourceCategoryValue() { : result; } + public static final int PARENT_FIELD_NUMBER = 14; + private com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent_; + /** + * + * + *
+   * Optional. The parent that this model was customized from. E.g., Vision API,
+   * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parent field is set. + */ + @java.lang.Override + public boolean hasParent() { + return parent_ != null; + } + /** + * + * + *
+   * Optional. The parent that this model was customized from. E.g., Vision API,
+   * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parent. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent getParent() { + return parent_ == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.getDefaultInstance() + : parent_; + } + /** + * + * + *
+   * Optional. The parent that this model was customized from. E.g., Vision API,
+   * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModel.ParentOrBuilder getParentOrBuilder() { + return parent_ == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.getDefaultInstance() + : parent_; + } + public static final int SUPPORTED_ACTIONS_FIELD_NUMBER = 19; private com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction supportedActions_; /** @@ -12067,6 +13494,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(7, openSourceCategory_); } + if (parent_ != null) { + output.writeMessage(14, getParent()); + } if (supportedActions_ != null) { output.writeMessage(19, getSupportedActions()); } @@ -12105,6 +13535,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, openSourceCategory_); } + if (parent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getParent()); + } if (supportedActions_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getSupportedActions()); } @@ -12146,6 +13579,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getVersionId().equals(other.getVersionId())) return false; if (openSourceCategory_ != other.openSourceCategory_) return false; + if (hasParent() != other.hasParent()) return false; + if (hasParent()) { + if (!getParent().equals(other.getParent())) return false; + } if (hasSupportedActions() != other.hasSupportedActions()) return false; if (hasSupportedActions()) { if (!getSupportedActions().equals(other.getSupportedActions())) return false; @@ -12174,6 +13611,10 @@ public int hashCode() { hash = (53 * hash) + getVersionId().hashCode(); hash = (37 * hash) + OPEN_SOURCE_CATEGORY_FIELD_NUMBER; hash = (53 * hash) + openSourceCategory_; + if (hasParent()) { + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + } if (hasSupportedActions()) { hash = (37 * hash) + SUPPORTED_ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getSupportedActions().hashCode(); @@ -12332,6 +13773,11 @@ public Builder clear() { name_ = ""; versionId_ = ""; openSourceCategory_ = 0; + parent_ = null; + if (parentBuilder_ != null) { + parentBuilder_.dispose(); + parentBuilder_ = null; + } supportedActions_ = null; if (supportedActionsBuilder_ != null) { supportedActionsBuilder_.dispose(); @@ -12391,20 +13837,23 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PublisherModel re result.openSourceCategory_ = openSourceCategory_; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parentBuilder_ == null ? parent_ : parentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.supportedActions_ = supportedActionsBuilder_ == null ? supportedActions_ : supportedActionsBuilder_.build(); } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { frameworks_.makeImmutable(); result.frameworks_ = frameworks_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.launchStage_ = launchStage_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.publisherModelTemplate_ = publisherModelTemplate_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.predictSchemata_ = predictSchemataBuilder_ == null ? predictSchemata_ : predictSchemataBuilder_.build(); } @@ -12469,13 +13918,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PublisherModel othe if (other.openSourceCategory_ != 0) { setOpenSourceCategoryValue(other.getOpenSourceCategoryValue()); } + if (other.hasParent()) { + mergeParent(other.getParent()); + } if (other.hasSupportedActions()) { mergeSupportedActions(other.getSupportedActions()); } if (!other.frameworks_.isEmpty()) { if (frameworks_.isEmpty()) { frameworks_ = other.frameworks_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } else { ensureFrameworksIsMutable(); frameworks_.addAll(other.frameworks_); @@ -12487,7 +13939,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PublisherModel othe } if (!other.getPublisherModelTemplate().isEmpty()) { publisherModelTemplate_ = other.publisherModelTemplate_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasPredictSchemata()) { @@ -12537,11 +13989,17 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 56 + case 114: + { + input.readMessage(getParentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 114 case 154: { input.readMessage( getSupportedActionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 154 case 186: @@ -12554,19 +14012,19 @@ public Builder mergeFrom( case 232: { launchStage_ = input.readEnum(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 232 case 242: { publisherModelTemplate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 242 case 250: { input.readMessage(getPredictSchemataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 250 default: @@ -12930,6 +14388,218 @@ public Builder clearOpenSourceCategory() { return this; } + private com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent, + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.Builder, + com.google.cloud.aiplatform.v1beta1.PublisherModel.ParentOrBuilder> + parentBuilder_; + /** + * + * + *
+     * Optional. The parent that this model was customized from. E.g., Vision API,
+     * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parent field is set. + */ + public boolean hasParent() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. The parent that this model was customized from. E.g., Vision API,
+     * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parent. + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent getParent() { + if (parentBuilder_ == null) { + return parent_ == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.getDefaultInstance() + : parent_; + } else { + return parentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The parent that this model was customized from. E.g., Vision API,
+     * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParent(com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent value) { + if (parentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + } else { + parentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The parent that this model was customized from. E.g., Vision API,
+     * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParent( + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.Builder builderForValue) { + if (parentBuilder_ == null) { + parent_ = builderForValue.build(); + } else { + parentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The parent that this model was customized from. E.g., Vision API,
+     * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeParent(com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent value) { + if (parentBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && parent_ != null + && parent_ + != com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.getDefaultInstance()) { + getParentBuilder().mergeFrom(value); + } else { + parent_ = value; + } + } else { + parentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The parent that this model was customized from. E.g., Vision API,
+     * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParent() { + bitField0_ = (bitField0_ & ~0x00000008); + parent_ = null; + if (parentBuilder_ != null) { + parentBuilder_.dispose(); + parentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The parent that this model was customized from. E.g., Vision API,
+     * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.Builder getParentBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getParentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The parent that this model was customized from. E.g., Vision API,
+     * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel.ParentOrBuilder getParentOrBuilder() { + if (parentBuilder_ != null) { + return parentBuilder_.getMessageOrBuilder(); + } else { + return parent_ == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.getDefaultInstance() + : parent_; + } + } + /** + * + * + *
+     * Optional. The parent that this model was customized from. E.g., Vision API,
+     * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent, + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.Builder, + com.google.cloud.aiplatform.v1beta1.PublisherModel.ParentOrBuilder> + getParentFieldBuilder() { + if (parentBuilder_ == null) { + parentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent, + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent.Builder, + com.google.cloud.aiplatform.v1beta1.PublisherModel.ParentOrBuilder>( + getParent(), getParentForChildren(), isClean()); + parent_ = null; + } + return parentBuilder_; + } + private com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction supportedActions_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction, @@ -12950,7 +14620,7 @@ public Builder clearOpenSourceCategory() { * @return Whether the supportedActions field is set. */ public boolean hasSupportedActions() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -12995,7 +14665,7 @@ public Builder setSupportedActions( } else { supportedActionsBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -13017,7 +14687,7 @@ public Builder setSupportedActions( } else { supportedActionsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -13035,7 +14705,7 @@ public Builder setSupportedActions( public Builder mergeSupportedActions( com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction value) { if (supportedActionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && supportedActions_ != null && supportedActions_ != com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction @@ -13047,7 +14717,7 @@ public Builder mergeSupportedActions( } else { supportedActionsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -13063,7 +14733,7 @@ public Builder mergeSupportedActions( * */ public Builder clearSupportedActions() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); supportedActions_ = null; if (supportedActionsBuilder_ != null) { supportedActionsBuilder_.dispose(); @@ -13085,7 +14755,7 @@ public Builder clearSupportedActions() { */ public com.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Builder getSupportedActionsBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getSupportedActionsFieldBuilder().getBuilder(); } @@ -13145,7 +14815,7 @@ private void ensureFrameworksIsMutable() { if (!frameworks_.isModifiable()) { frameworks_ = new com.google.protobuf.LazyStringArrayList(frameworks_); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } /** * @@ -13225,7 +14895,7 @@ public Builder setFrameworks(int index, java.lang.String value) { } ensureFrameworksIsMutable(); frameworks_.set(index, value); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -13247,7 +14917,7 @@ public Builder addFrameworks(java.lang.String value) { } ensureFrameworksIsMutable(); frameworks_.add(value); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -13266,7 +14936,7 @@ public Builder addFrameworks(java.lang.String value) { public Builder addAllFrameworks(java.lang.Iterable values) { ensureFrameworksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, frameworks_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -13283,7 +14953,7 @@ public Builder addAllFrameworks(java.lang.Iterable values) { */ public Builder clearFrameworks() { frameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); ; onChanged(); return this; @@ -13307,7 +14977,7 @@ public Builder addFrameworksBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureFrameworksIsMutable(); frameworks_.add(value); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -13346,7 +15016,7 @@ public int getLaunchStageValue() { */ public Builder setLaunchStageValue(int value) { launchStage_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -13390,7 +15060,7 @@ public Builder setLaunchStage( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; launchStage_ = value.getNumber(); onChanged(); return this; @@ -13409,7 +15079,7 @@ public Builder setLaunchStage( * @return This builder for chaining. */ public Builder clearLaunchStage() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); launchStage_ = 0; onChanged(); return this; @@ -13489,7 +15159,7 @@ public Builder setPublisherModelTemplate(java.lang.String value) { throw new NullPointerException(); } publisherModelTemplate_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -13510,7 +15180,7 @@ public Builder setPublisherModelTemplate(java.lang.String value) { */ public Builder clearPublisherModelTemplate() { publisherModelTemplate_ = getDefaultInstance().getPublisherModelTemplate(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -13536,7 +15206,7 @@ public Builder setPublisherModelTemplateBytes(com.google.protobuf.ByteString val } checkByteStringIsUtf8(value); publisherModelTemplate_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -13563,7 +15233,7 @@ public Builder setPublisherModelTemplateBytes(com.google.protobuf.ByteString val * @return Whether the predictSchemata field is set. */ public boolean hasPredictSchemata() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -13611,7 +15281,7 @@ public Builder setPredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictSch } else { predictSchemataBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -13635,7 +15305,7 @@ public Builder setPredictSchemata( } else { predictSchemataBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -13654,7 +15324,7 @@ public Builder setPredictSchemata( */ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictSchemata value) { if (predictSchemataBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && predictSchemata_ != null && predictSchemata_ != com.google.cloud.aiplatform.v1beta1.PredictSchemata.getDefaultInstance()) { @@ -13665,7 +15335,7 @@ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictS } else { predictSchemataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -13683,7 +15353,7 @@ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictS * */ public Builder clearPredictSchemata() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); predictSchemata_ = null; if (predictSchemataBuilder_ != null) { predictSchemataBuilder_.dispose(); @@ -13706,7 +15376,7 @@ public Builder clearPredictSchemata() { * */ public com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder getPredictSchemataBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getPredictSchemataFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelOrBuilder.java index 75219e0ebb72..2faf0f2da3d3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelOrBuilder.java @@ -112,6 +112,50 @@ public interface PublisherModelOrBuilder */ com.google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory getOpenSourceCategory(); + /** + * + * + *
+   * Optional. The parent that this model was customized from. E.g., Vision API,
+   * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parent field is set. + */ + boolean hasParent(); + /** + * + * + *
+   * Optional. The parent that this model was customized from. E.g., Vision API,
+   * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parent. + */ + com.google.cloud.aiplatform.v1beta1.PublisherModel.Parent getParent(); + /** + * + * + *
+   * Optional. The parent that this model was customized from. E.g., Vision API,
+   * Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.PublisherModel.ParentOrBuilder getParentOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelProto.java index cb7c5ef06a3f..072bd97fcda4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelProto.java @@ -35,6 +35,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_ResourceReference_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_ResourceReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Parent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Parent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Documentation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -74,89 +78,98 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\032\031google/api/resource.proto\0327google/clo" + "ud/aiplatform/v1beta1/machine_resources." + "proto\032+google/cloud/aiplatform/v1beta1/m" - + "odel.proto\"\357\027\n\016PublisherModel\022\022\n\004name\030\001 " + + "odel.proto\"\301\032\n\016PublisherModel\022\022\n\004name\030\001 " + "\001(\tB\004\342A\001\003\022\031\n\nversion_id\030\002 \001(\tB\005\342A\002\005\003\022f\n\024" + "open_source_category\030\007 \001(\0162B.google.clou" + "d.aiplatform.v1beta1.PublisherModel.Open" - + "SourceCategoryB\004\342A\001\002\022]\n\021supported_action" - + "s\030\023 \001(\0132<.google.cloud.aiplatform.v1beta" - + "1.PublisherModel.CallToActionB\004\342A\001\001\022\030\n\nf" - + "rameworks\030\027 \003(\tB\004\342A\001\001\022W\n\014launch_stage\030\035 " - + "\001(\0162;.google.cloud.aiplatform.v1beta1.Pu" - + "blisherModel.LaunchStageB\004\342A\001\001\022\'\n\030publis" - + "her_model_template\030\036 \001(\tB\005\342A\002\005\003\022P\n\020predi" - + "ct_schemata\030\037 \001(\01320.google.cloud.aiplatf" - + "orm.v1beta1.PredictSchemataB\004\342A\001\001\032H\n\021Res" - + "ourceReference\022\r\n\003uri\030\001 \001(\tH\000\022\027\n\rresourc" - + "e_name\030\002 \001(\tH\000B\013\n\treference\032;\n\rDocumenta" - + "tion\022\023\n\005title\030\001 \001(\tB\004\342A\001\002\022\025\n\007content\030\002 \001" - + "(\tB\004\342A\001\002\032\315\017\n\014CallToAction\022e\n\rview_rest_a" - + "pi\030\001 \001(\0132H.google.cloud.aiplatform.v1bet" - + "a1.PublisherModel.CallToAction.ViewRestA" - + "piB\004\342A\001\001\022t\n\ropen_notebook\030\002 \001(\0132W.google" - + ".cloud.aiplatform.v1beta1.PublisherModel" - + ".CallToAction.RegionalResourceReferences" - + "B\004\342A\001\001\022y\n\022create_application\030\003 \001(\0132W.goo" - + "gle.cloud.aiplatform.v1beta1.PublisherMo" - + "del.CallToAction.RegionalResourceReferen" - + "cesB\004\342A\001\001\022\200\001\n\031open_fine_tuning_pipeline\030" - + "\004 \001(\0132W.google.cloud.aiplatform.v1beta1." - + "PublisherModel.CallToAction.RegionalReso" - + "urceReferencesB\004\342A\001\001\022\202\001\n\033open_prompt_tun" - + "ing_pipeline\030\005 \001(\0132W.google.cloud.aiplat" - + "form.v1beta1.PublisherModel.CallToAction" - + ".RegionalResourceReferencesB\004\342A\001\001\022q\n\nope" - + "n_genie\030\006 \001(\0132W.google.cloud.aiplatform." - + "v1beta1.PublisherModel.CallToAction.Regi" - + "onalResourceReferencesB\004\342A\001\001\022Y\n\006deploy\030\007" - + " \001(\0132C.google.cloud.aiplatform.v1beta1.P" - + "ublisherModel.CallToAction.DeployB\004\342A\001\001\022" - + "\200\001\n\031open_generation_ai_studio\030\010 \001(\0132W.go" - + "ogle.cloud.aiplatform.v1beta1.PublisherM" - + "odel.CallToAction.RegionalResourceRefere" - + "ncesB\004\342A\001\001\022u\n\016request_access\030\t \001(\0132W.goo" - + "gle.cloud.aiplatform.v1beta1.PublisherMo" - + "del.CallToAction.RegionalResourceReferen" - + "cesB\004\342A\001\001\032\253\002\n\032RegionalResourceReferences" - + "\022\201\001\n\nreferences\030\001 \003(\0132g.google.cloud.aip" - + "latform.v1beta1.PublisherModel.CallToAct" - + "ion.RegionalResourceReferences.Reference" - + "sEntryB\004\342A\001\002\022\023\n\005title\030\002 \001(\tB\004\342A\001\002\032t\n\017Ref" - + "erencesEntry\022\013\n\003key\030\001 \001(\t\022P\n\005value\030\002 \001(\013" - + "2A.google.cloud.aiplatform.v1beta1.Publi" - + "sherModel.ResourceReference:\0028\001\032\177\n\013ViewR" - + "estApi\022[\n\016documentations\030\001 \003(\0132=.google." - + "cloud.aiplatform.v1beta1.PublisherModel." - + "DocumentationB\004\342A\001\002\022\023\n\005title\030\002 \001(\tB\004\342A\001\002" - + "\032\345\003\n\006Deploy\022R\n\023dedicated_resources\030\005 \001(\013" - + "23.google.cloud.aiplatform.v1beta1.Dedic" - + "atedResourcesH\000\022R\n\023automatic_resources\030\006" - + " \001(\01323.google.cloud.aiplatform.v1beta1.A" - + "utomaticResourcesH\000\022\032\n\020shared_resources\030" - + "\007 \001(\tH\000\022 \n\022model_display_name\030\001 \001(\tB\004\342A\001" - + "\001\022Y\n\025large_model_reference\030\002 \001(\01324.googl" - + "e.cloud.aiplatform.v1beta1.LargeModelRef" - + "erenceB\004\342A\001\001\022Q\n\016container_spec\030\003 \001(\01323.g" - + "oogle.cloud.aiplatform.v1beta1.ModelCont" - + "ainerSpecB\004\342A\001\001\022\032\n\014artifact_uri\030\004 \001(\tB\004\342" - + "A\001\001\022\023\n\005title\030\010 \001(\tB\004\342A\001\002B\026\n\024prediction_r" - + "esources\"\333\001\n\022OpenSourceCategory\022$\n OPEN_" - + "SOURCE_CATEGORY_UNSPECIFIED\020\000\022\017\n\013PROPRIE" - + "TARY\020\001\022+\n\'GOOGLE_OWNED_OSS_WITH_GOOGLE_C" - + "HECKPOINT\020\002\0220\n,THIRD_PARTY_OWNED_OSS_WIT" - + "H_GOOGLE_CHECKPOINT\020\003\022\024\n\020GOOGLE_OWNED_OS" - + "S\020\004\022\031\n\025THIRD_PARTY_OWNED_OSS\020\005\"n\n\013Launch" - + "Stage\022\034\n\030LAUNCH_STAGE_UNSPECIFIED\020\000\022\020\n\014E" - + "XPERIMENTAL\020\001\022\023\n\017PRIVATE_PREVIEW\020\002\022\022\n\016PU" - + "BLIC_PREVIEW\020\003\022\006\n\002GA\020\004:T\352AQ\n(aiplatform." - + "googleapis.com/PublisherModel\022%publisher" - + "s/{publisher}/models/{model}B\352\001\n#com.goo" - + "gle.cloud.aiplatform.v1beta1B\023PublisherM" - + "odelProtoP\001ZCcloud.google.com/go/aiplatf" - + "orm/apiv1beta1/aiplatformpb;aiplatformpb" - + "\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goo" - + "gle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::C" - + "loud::AIPlatform::V1beta1b\006proto3" + + "SourceCategoryB\004\342A\001\002\022L\n\006parent\030\016 \001(\01326.g" + + "oogle.cloud.aiplatform.v1beta1.Publisher" + + "Model.ParentB\004\342A\001\001\022]\n\021supported_actions\030" + + "\023 \001(\0132<.google.cloud.aiplatform.v1beta1." + + "PublisherModel.CallToActionB\004\342A\001\001\022\030\n\nfra" + + "meworks\030\027 \003(\tB\004\342A\001\001\022W\n\014launch_stage\030\035 \001(" + + "\0162;.google.cloud.aiplatform.v1beta1.Publ" + + "isherModel.LaunchStageB\004\342A\001\001\022\'\n\030publishe" + + "r_model_template\030\036 \001(\tB\005\342A\002\005\003\022P\n\020predict" + + "_schemata\030\037 \001(\01320.google.cloud.aiplatfor" + + "m.v1beta1.PredictSchemataB\004\342A\001\001\032H\n\021Resou" + + "rceReference\022\r\n\003uri\030\001 \001(\tH\000\022\027\n\rresource_" + + "name\030\002 \001(\tH\000B\013\n\treference\032\200\001\n\006Parent\022\032\n\014" + + "display_name\030\001 \001(\tB\004\342A\001\002\022Z\n\treference\030\002 " + + "\001(\0132A.google.cloud.aiplatform.v1beta1.Pu" + + "blisherModel.ResourceReferenceB\004\342A\001\001\032;\n\r" + + "Documentation\022\023\n\005title\030\001 \001(\tB\004\342A\001\002\022\025\n\007co" + + "ntent\030\002 \001(\tB\004\342A\001\002\032\316\020\n\014CallToAction\022e\n\rvi" + + "ew_rest_api\030\001 \001(\0132H.google.cloud.aiplatf" + + "orm.v1beta1.PublisherModel.CallToAction." + + "ViewRestApiB\004\342A\001\001\022t\n\ropen_notebook\030\002 \001(\013" + + "2W.google.cloud.aiplatform.v1beta1.Publi" + + "sherModel.CallToAction.RegionalResourceR" + + "eferencesB\004\342A\001\001\022y\n\022create_application\030\003 " + + "\001(\0132W.google.cloud.aiplatform.v1beta1.Pu" + + "blisherModel.CallToAction.RegionalResour" + + "ceReferencesB\004\342A\001\001\022\200\001\n\031open_fine_tuning_" + + "pipeline\030\004 \001(\0132W.google.cloud.aiplatform" + + ".v1beta1.PublisherModel.CallToAction.Reg" + + "ionalResourceReferencesB\004\342A\001\001\022\202\001\n\033open_p" + + "rompt_tuning_pipeline\030\005 \001(\0132W.google.clo" + + "ud.aiplatform.v1beta1.PublisherModel.Cal" + + "lToAction.RegionalResourceReferencesB\004\342A" + + "\001\001\022q\n\nopen_genie\030\006 \001(\0132W.google.cloud.ai" + + "platform.v1beta1.PublisherModel.CallToAc" + + "tion.RegionalResourceReferencesB\004\342A\001\001\022Y\n" + + "\006deploy\030\007 \001(\0132C.google.cloud.aiplatform." + + "v1beta1.PublisherModel.CallToAction.Depl" + + "oyB\004\342A\001\001\022\200\001\n\031open_generation_ai_studio\030\010" + + " \001(\0132W.google.cloud.aiplatform.v1beta1.P" + + "ublisherModel.CallToAction.RegionalResou" + + "rceReferencesB\004\342A\001\001\022u\n\016request_access\030\t " + + "\001(\0132W.google.cloud.aiplatform.v1beta1.Pu" + + "blisherModel.CallToAction.RegionalResour" + + "ceReferencesB\004\342A\001\001\022\177\n\030open_evaluation_pi" + + "peline\030\013 \001(\0132W.google.cloud.aiplatform.v" + + "1beta1.PublisherModel.CallToAction.Regio" + + "nalResourceReferencesB\004\342A\001\001\032\253\002\n\032Regional" + + "ResourceReferences\022\201\001\n\nreferences\030\001 \003(\0132" + + "g.google.cloud.aiplatform.v1beta1.Publis" + + "herModel.CallToAction.RegionalResourceRe" + + "ferences.ReferencesEntryB\004\342A\001\002\022\023\n\005title\030" + + "\002 \001(\tB\004\342A\001\002\032t\n\017ReferencesEntry\022\013\n\003key\030\001 " + + "\001(\t\022P\n\005value\030\002 \001(\0132A.google.cloud.aiplat" + + "form.v1beta1.PublisherModel.ResourceRefe" + + "rence:\0028\001\032\177\n\013ViewRestApi\022[\n\016documentatio" + + "ns\030\001 \003(\0132=.google.cloud.aiplatform.v1bet" + + "a1.PublisherModel.DocumentationB\004\342A\001\002\022\023\n" + + "\005title\030\002 \001(\tB\004\342A\001\002\032\345\003\n\006Deploy\022R\n\023dedicat" + + "ed_resources\030\005 \001(\01323.google.cloud.aiplat" + + "form.v1beta1.DedicatedResourcesH\000\022R\n\023aut" + + "omatic_resources\030\006 \001(\01323.google.cloud.ai" + + "platform.v1beta1.AutomaticResourcesH\000\022\032\n" + + "\020shared_resources\030\007 \001(\tH\000\022 \n\022model_displ" + + "ay_name\030\001 \001(\tB\004\342A\001\001\022Y\n\025large_model_refer" + + "ence\030\002 \001(\01324.google.cloud.aiplatform.v1b" + + "eta1.LargeModelReferenceB\004\342A\001\001\022Q\n\016contai" + + "ner_spec\030\003 \001(\01323.google.cloud.aiplatform" + + ".v1beta1.ModelContainerSpecB\004\342A\001\001\022\032\n\014art" + + "ifact_uri\030\004 \001(\tB\004\342A\001\001\022\023\n\005title\030\010 \001(\tB\004\342A" + + "\001\002B\026\n\024prediction_resources\"\333\001\n\022OpenSourc" + + "eCategory\022$\n OPEN_SOURCE_CATEGORY_UNSPEC" + + "IFIED\020\000\022\017\n\013PROPRIETARY\020\001\022+\n\'GOOGLE_OWNED" + + "_OSS_WITH_GOOGLE_CHECKPOINT\020\002\0220\n,THIRD_P" + + "ARTY_OWNED_OSS_WITH_GOOGLE_CHECKPOINT\020\003\022" + + "\024\n\020GOOGLE_OWNED_OSS\020\004\022\031\n\025THIRD_PARTY_OWN" + + "ED_OSS\020\005\"n\n\013LaunchStage\022\034\n\030LAUNCH_STAGE_" + + "UNSPECIFIED\020\000\022\020\n\014EXPERIMENTAL\020\001\022\023\n\017PRIVA" + + "TE_PREVIEW\020\002\022\022\n\016PUBLIC_PREVIEW\020\003\022\006\n\002GA\020\004" + + ":T\352AQ\n(aiplatform.googleapis.com/Publish" + + "erModel\022%publishers/{publisher}/models/{" + + "model}B\352\001\n#com.google.cloud.aiplatform.v" + + "1beta1B\023PublisherModelProtoP\001ZCcloud.goo" + + "gle.com/go/aiplatform/apiv1beta1/aiplatf" + + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat" + + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" + + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be" + + "ta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -176,6 +189,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "VersionId", "OpenSourceCategory", + "Parent", "SupportedActions", "Frameworks", "LaunchStage", @@ -192,10 +206,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Uri", "ResourceName", "Reference", }); - internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Documentation_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Parent_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Parent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Parent_descriptor, + new java.lang.String[] { + "DisplayName", "Reference", + }); + internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Documentation_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_descriptor + .getNestedTypes() + .get(2); internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Documentation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_Documentation_descriptor, @@ -205,7 +229,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_CallToAction_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_descriptor .getNestedTypes() - .get(2); + .get(3); internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_CallToAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_CallToAction_descriptor, @@ -219,6 +243,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Deploy", "OpenGenerationAiStudio", "RequestAccess", + "OpenEvaluationPipeline", }); internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_CallToAction_RegionalResourceReferences_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PublisherModel_CallToAction_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpec.java index aef767347e04..bc7aca42cf2f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpec.java @@ -42,6 +42,7 @@ private RaySpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { private RaySpec() { imageUri_ = ""; + headNodeResourcePoolId_ = ""; } @java.lang.Override @@ -55,6 +56,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_aiplatform_v1beta1_RaySpec_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetResourcePoolImages(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -126,6 +138,209 @@ public com.google.protobuf.ByteString getImageUriBytes() { } } + public static final int RESOURCE_POOL_IMAGES_FIELD_NUMBER = 6; + + private static final class ResourcePoolImagesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.PersistentResourceProto + .internal_static_google_cloud_aiplatform_v1beta1_RaySpec_ResourcePoolImagesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField resourcePoolImages_; + + private com.google.protobuf.MapField + internalGetResourcePoolImages() { + if (resourcePoolImages_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourcePoolImagesDefaultEntryHolder.defaultEntry); + } + return resourcePoolImages_; + } + + public int getResourcePoolImagesCount() { + return internalGetResourcePoolImages().getMap().size(); + } + /** + * + * + *
+   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * prebuild Ray image if user need to use different images for different
+   * head/worker pools. This map needs to cover all the resource pool ids.
+   * Example:
+   * {
+   *   "ray_head_node_pool": "head image"
+   *   "ray_worker_node_pool1": "worker image"
+   *   "ray_worker_node_pool2": "another worker image"
+   * }
+   * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsResourcePoolImages(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourcePoolImages().getMap().containsKey(key); + } + /** Use {@link #getResourcePoolImagesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourcePoolImages() { + return getResourcePoolImagesMap(); + } + /** + * + * + *
+   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * prebuild Ray image if user need to use different images for different
+   * head/worker pools. This map needs to cover all the resource pool ids.
+   * Example:
+   * {
+   *   "ray_head_node_pool": "head image"
+   *   "ray_worker_node_pool1": "worker image"
+   *   "ray_worker_node_pool2": "another worker image"
+   * }
+   * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getResourcePoolImagesMap() { + return internalGetResourcePoolImages().getMap(); + } + /** + * + * + *
+   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * prebuild Ray image if user need to use different images for different
+   * head/worker pools. This map needs to cover all the resource pool ids.
+   * Example:
+   * {
+   *   "ray_head_node_pool": "head image"
+   *   "ray_worker_node_pool1": "worker image"
+   *   "ray_worker_node_pool2": "another worker image"
+   * }
+   * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getResourcePoolImagesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourcePoolImages().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * prebuild Ray image if user need to use different images for different
+   * head/worker pools. This map needs to cover all the resource pool ids.
+   * Example:
+   * {
+   *   "ray_head_node_pool": "head image"
+   *   "ray_worker_node_pool1": "worker image"
+   *   "ray_worker_node_pool2": "another worker image"
+   * }
+   * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getResourcePoolImagesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourcePoolImages().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int HEAD_NODE_RESOURCE_POOL_ID_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object headNodeResourcePoolId_ = ""; + /** + * + * + *
+   * Optional. This will be used to indicate which resource pool will serve as
+   * the Ray head node(the first node within that pool). Will use the machine
+   * from the first workerpool as the head node by default if this field is not
+   * set.
+   * 
+ * + * string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The headNodeResourcePoolId. + */ + @java.lang.Override + public java.lang.String getHeadNodeResourcePoolId() { + java.lang.Object ref = headNodeResourcePoolId_; + 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(); + headNodeResourcePoolId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. This will be used to indicate which resource pool will serve as
+   * the Ray head node(the first node within that pool). Will use the machine
+   * from the first workerpool as the head node by default if this field is not
+   * set.
+   * 
+ * + * string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for headNodeResourcePoolId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHeadNodeResourcePoolIdBytes() { + java.lang.Object ref = headNodeResourcePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headNodeResourcePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -143,6 +358,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageUri_); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetResourcePoolImages(), + ResourcePoolImagesDefaultEntryHolder.defaultEntry, + 6); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headNodeResourcePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, headNodeResourcePoolId_); + } getUnknownFields().writeTo(output); } @@ -155,6 +378,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageUri_); } + for (java.util.Map.Entry entry : + internalGetResourcePoolImages().getMap().entrySet()) { + com.google.protobuf.MapEntry resourcePoolImages__ = + ResourcePoolImagesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, resourcePoolImages__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headNodeResourcePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, headNodeResourcePoolId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -172,6 +408,9 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.RaySpec) obj; if (!getImageUri().equals(other.getImageUri())) return false; + if (!internalGetResourcePoolImages().equals(other.internalGetResourcePoolImages())) + return false; + if (!getHeadNodeResourcePoolId().equals(other.getHeadNodeResourcePoolId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,6 +424,12 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER; hash = (53 * hash) + getImageUri().hashCode(); + if (!internalGetResourcePoolImages().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_POOL_IMAGES_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourcePoolImages().hashCode(); + } + hash = (37 * hash) + HEAD_NODE_RESOURCE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getHeadNodeResourcePoolId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -306,6 +551,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_aiplatform_v1beta1_RaySpec_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetResourcePoolImages(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 6: + return internalGetMutableResourcePoolImages(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -328,6 +593,8 @@ public Builder clear() { super.clear(); bitField0_ = 0; imageUri_ = ""; + internalGetMutableResourcePoolImages().clear(); + headNodeResourcePoolId_ = ""; return this; } @@ -367,6 +634,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RaySpec result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.imageUri_ = imageUri_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourcePoolImages_ = internalGetResourcePoolImages(); + result.resourcePoolImages_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.headNodeResourcePoolId_ = headNodeResourcePoolId_; + } } @java.lang.Override @@ -419,6 +693,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RaySpec other) { bitField0_ |= 0x00000001; onChanged(); } + internalGetMutableResourcePoolImages().mergeFrom(other.internalGetResourcePoolImages()); + bitField0_ |= 0x00000002; + if (!other.getHeadNodeResourcePoolId().isEmpty()) { + headNodeResourcePoolId_ = other.headNodeResourcePoolId_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -451,6 +732,25 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 50: + { + com.google.protobuf.MapEntry + resourcePoolImages__ = + input.readMessage( + ResourcePoolImagesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourcePoolImages() + .getMutableMap() + .put(resourcePoolImages__.getKey(), resourcePoolImages__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 50 + case 58: + { + headNodeResourcePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -601,6 +901,367 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.MapField resourcePoolImages_; + + private com.google.protobuf.MapField + internalGetResourcePoolImages() { + if (resourcePoolImages_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourcePoolImagesDefaultEntryHolder.defaultEntry); + } + return resourcePoolImages_; + } + + private com.google.protobuf.MapField + internalGetMutableResourcePoolImages() { + if (resourcePoolImages_ == null) { + resourcePoolImages_ = + com.google.protobuf.MapField.newMapField( + ResourcePoolImagesDefaultEntryHolder.defaultEntry); + } + if (!resourcePoolImages_.isMutable()) { + resourcePoolImages_ = resourcePoolImages_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return resourcePoolImages_; + } + + public int getResourcePoolImagesCount() { + return internalGetResourcePoolImages().getMap().size(); + } + /** + * + * + *
+     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * prebuild Ray image if user need to use different images for different
+     * head/worker pools. This map needs to cover all the resource pool ids.
+     * Example:
+     * {
+     *   "ray_head_node_pool": "head image"
+     *   "ray_worker_node_pool1": "worker image"
+     *   "ray_worker_node_pool2": "another worker image"
+     * }
+     * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsResourcePoolImages(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourcePoolImages().getMap().containsKey(key); + } + /** Use {@link #getResourcePoolImagesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourcePoolImages() { + return getResourcePoolImagesMap(); + } + /** + * + * + *
+     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * prebuild Ray image if user need to use different images for different
+     * head/worker pools. This map needs to cover all the resource pool ids.
+     * Example:
+     * {
+     *   "ray_head_node_pool": "head image"
+     *   "ray_worker_node_pool1": "worker image"
+     *   "ray_worker_node_pool2": "another worker image"
+     * }
+     * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getResourcePoolImagesMap() { + return internalGetResourcePoolImages().getMap(); + } + /** + * + * + *
+     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * prebuild Ray image if user need to use different images for different
+     * head/worker pools. This map needs to cover all the resource pool ids.
+     * Example:
+     * {
+     *   "ray_head_node_pool": "head image"
+     *   "ray_worker_node_pool1": "worker image"
+     *   "ray_worker_node_pool2": "another worker image"
+     * }
+     * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getResourcePoolImagesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourcePoolImages().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * prebuild Ray image if user need to use different images for different
+     * head/worker pools. This map needs to cover all the resource pool ids.
+     * Example:
+     * {
+     *   "ray_head_node_pool": "head image"
+     *   "ray_worker_node_pool1": "worker image"
+     *   "ray_worker_node_pool2": "another worker image"
+     * }
+     * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getResourcePoolImagesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourcePoolImages().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearResourcePoolImages() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableResourcePoolImages().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * prebuild Ray image if user need to use different images for different
+     * head/worker pools. This map needs to cover all the resource pool ids.
+     * Example:
+     * {
+     *   "ray_head_node_pool": "head image"
+     *   "ray_worker_node_pool1": "worker image"
+     *   "ray_worker_node_pool2": "another worker image"
+     * }
+     * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeResourcePoolImages(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableResourcePoolImages().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableResourcePoolImages() { + bitField0_ |= 0x00000002; + return internalGetMutableResourcePoolImages().getMutableMap(); + } + /** + * + * + *
+     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * prebuild Ray image if user need to use different images for different
+     * head/worker pools. This map needs to cover all the resource pool ids.
+     * Example:
+     * {
+     *   "ray_head_node_pool": "head image"
+     *   "ray_worker_node_pool1": "worker image"
+     *   "ray_worker_node_pool2": "another worker image"
+     * }
+     * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putResourcePoolImages(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableResourcePoolImages().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * prebuild Ray image if user need to use different images for different
+     * head/worker pools. This map needs to cover all the resource pool ids.
+     * Example:
+     * {
+     *   "ray_head_node_pool": "head image"
+     *   "ray_worker_node_pool1": "worker image"
+     *   "ray_worker_node_pool2": "another worker image"
+     * }
+     * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllResourcePoolImages( + java.util.Map values) { + internalGetMutableResourcePoolImages().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + private java.lang.Object headNodeResourcePoolId_ = ""; + /** + * + * + *
+     * Optional. This will be used to indicate which resource pool will serve as
+     * the Ray head node(the first node within that pool). Will use the machine
+     * from the first workerpool as the head node by default if this field is not
+     * set.
+     * 
+ * + * string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The headNodeResourcePoolId. + */ + public java.lang.String getHeadNodeResourcePoolId() { + java.lang.Object ref = headNodeResourcePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + headNodeResourcePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. This will be used to indicate which resource pool will serve as
+     * the Ray head node(the first node within that pool). Will use the machine
+     * from the first workerpool as the head node by default if this field is not
+     * set.
+     * 
+ * + * string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for headNodeResourcePoolId. + */ + public com.google.protobuf.ByteString getHeadNodeResourcePoolIdBytes() { + java.lang.Object ref = headNodeResourcePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headNodeResourcePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. This will be used to indicate which resource pool will serve as
+     * the Ray head node(the first node within that pool). Will use the machine
+     * from the first workerpool as the head node by default if this field is not
+     * set.
+     * 
+ * + * string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The headNodeResourcePoolId to set. + * @return This builder for chaining. + */ + public Builder setHeadNodeResourcePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + headNodeResourcePoolId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This will be used to indicate which resource pool will serve as
+     * the Ray head node(the first node within that pool). Will use the machine
+     * from the first workerpool as the head node by default if this field is not
+     * set.
+     * 
+ * + * string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHeadNodeResourcePoolId() { + headNodeResourcePoolId_ = getDefaultInstance().getHeadNodeResourcePoolId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This will be used to indicate which resource pool will serve as
+     * the Ray head node(the first node within that pool). Will use the machine
+     * from the first workerpool as the head node by default if this field is not
+     * set.
+     * 
+ * + * string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for headNodeResourcePoolId to set. + * @return This builder for chaining. + */ + public Builder setHeadNodeResourcePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + headNodeResourcePoolId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpecOrBuilder.java index 08c879d8e6d0..1672a399a91d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpecOrBuilder.java @@ -57,4 +57,143 @@ public interface RaySpecOrBuilder * @return The bytes for imageUri. */ com.google.protobuf.ByteString getImageUriBytes(); + + /** + * + * + *
+   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * prebuild Ray image if user need to use different images for different
+   * head/worker pools. This map needs to cover all the resource pool ids.
+   * Example:
+   * {
+   *   "ray_head_node_pool": "head image"
+   *   "ray_worker_node_pool1": "worker image"
+   *   "ray_worker_node_pool2": "another worker image"
+   * }
+   * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getResourcePoolImagesCount(); + /** + * + * + *
+   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * prebuild Ray image if user need to use different images for different
+   * head/worker pools. This map needs to cover all the resource pool ids.
+   * Example:
+   * {
+   *   "ray_head_node_pool": "head image"
+   *   "ray_worker_node_pool1": "worker image"
+   *   "ray_worker_node_pool2": "another worker image"
+   * }
+   * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsResourcePoolImages(java.lang.String key); + /** Use {@link #getResourcePoolImagesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getResourcePoolImages(); + /** + * + * + *
+   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * prebuild Ray image if user need to use different images for different
+   * head/worker pools. This map needs to cover all the resource pool ids.
+   * Example:
+   * {
+   *   "ray_head_node_pool": "head image"
+   *   "ray_worker_node_pool1": "worker image"
+   *   "ray_worker_node_pool2": "another worker image"
+   * }
+   * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getResourcePoolImagesMap(); + /** + * + * + *
+   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * prebuild Ray image if user need to use different images for different
+   * head/worker pools. This map needs to cover all the resource pool ids.
+   * Example:
+   * {
+   *   "ray_head_node_pool": "head image"
+   *   "ray_worker_node_pool1": "worker image"
+   *   "ray_worker_node_pool2": "another worker image"
+   * }
+   * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getResourcePoolImagesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * prebuild Ray image if user need to use different images for different
+   * head/worker pools. This map needs to cover all the resource pool ids.
+   * Example:
+   * {
+   *   "ray_head_node_pool": "head image"
+   *   "ray_worker_node_pool1": "worker image"
+   *   "ray_worker_node_pool2": "another worker image"
+   * }
+   * 
+ * + * + * map<string, string> resource_pool_images = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getResourcePoolImagesOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. This will be used to indicate which resource pool will serve as
+   * the Ray head node(the first node within that pool). Will use the machine
+   * from the first workerpool as the head node by default if this field is not
+   * set.
+   * 
+ * + * string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The headNodeResourcePoolId. + */ + java.lang.String getHeadNodeResourcePoolId(); + /** + * + * + *
+   * Optional. This will be used to indicate which resource pool will serve as
+   * the Ray head node(the first node within that pool). Will use the machine
+   * from the first workerpool as the head node by default if this field is not
+   * set.
+   * 
+ * + * string head_node_resource_pool_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for headNodeResourcePoolId. + */ + com.google.protobuf.ByteString getHeadNodeResourcePoolIdBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePool.java index d0eeffa1010b..9148bddbeb83 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePool.java @@ -852,12 +852,12 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * Optional. The unique ID in a PersistentResource to refer the this resource
+   * Immutable. The unique ID in a PersistentResource to refer the this resource
    * pool. User can specify it if need to use it, otherwise we will generate it
    * automatically.
    * 
* - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The id. */ @@ -877,12 +877,12 @@ public java.lang.String getId() { * * *
-   * Optional. The unique ID in a PersistentResource to refer the this resource
+   * Immutable. The unique ID in a PersistentResource to refer the this resource
    * pool. User can specify it if need to use it, otherwise we will generate it
    * automatically.
    * 
* - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for id. */ @@ -1044,30 +1044,6 @@ public com.google.cloud.aiplatform.v1beta1.DiskSpecOrBuilder getDiskSpecOrBuilde : diskSpec_; } - public static final int IDLE_REPLICA_COUNT_FIELD_NUMBER = 5; - private long idleReplicaCount_ = 0L; - /** - * - * - *
-   * Output only. The number of machines currently not in use by training jobs
-   * for this resource pool. Deprecated. Use `used_replica_count` instead.
-   * 
- * - * - * int64 idle_replica_count = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.cloud.aiplatform.v1beta1.ResourcePool.idle_replica_count is deprecated. See - * google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=187 - * @return The idleReplicaCount. - */ - @java.lang.Override - @java.lang.Deprecated - public long getIdleReplicaCount() { - return idleReplicaCount_; - } - public static final int USED_REPLICA_COUNT_FIELD_NUMBER = 6; private long usedReplicaCount_ = 0L; /** @@ -1170,9 +1146,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (diskSpec_ != null) { output.writeMessage(4, getDiskSpec()); } - if (idleReplicaCount_ != 0L) { - output.writeInt64(5, idleReplicaCount_); - } if (usedReplicaCount_ != 0L) { output.writeInt64(6, usedReplicaCount_); } @@ -1200,9 +1173,6 @@ public int getSerializedSize() { if (diskSpec_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDiskSpec()); } - if (idleReplicaCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, idleReplicaCount_); - } if (usedReplicaCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, usedReplicaCount_); } @@ -1238,7 +1208,6 @@ public boolean equals(final java.lang.Object obj) { if (hasDiskSpec()) { if (!getDiskSpec().equals(other.getDiskSpec())) return false; } - if (getIdleReplicaCount() != other.getIdleReplicaCount()) return false; if (getUsedReplicaCount() != other.getUsedReplicaCount()) return false; if (hasAutoscalingSpec() != other.hasAutoscalingSpec()) return false; if (hasAutoscalingSpec()) { @@ -1269,8 +1238,6 @@ public int hashCode() { hash = (37 * hash) + DISK_SPEC_FIELD_NUMBER; hash = (53 * hash) + getDiskSpec().hashCode(); } - hash = (37 * hash) + IDLE_REPLICA_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIdleReplicaCount()); hash = (37 * hash) + USED_REPLICA_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUsedReplicaCount()); if (hasAutoscalingSpec()) { @@ -1429,7 +1396,6 @@ public Builder clear() { diskSpecBuilder_.dispose(); diskSpecBuilder_ = null; } - idleReplicaCount_ = 0L; usedReplicaCount_ = 0L; autoscalingSpec_ = null; if (autoscalingSpecBuilder_ != null) { @@ -1488,12 +1454,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ResourcePool resu result.diskSpec_ = diskSpecBuilder_ == null ? diskSpec_ : diskSpecBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.idleReplicaCount_ = idleReplicaCount_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { result.usedReplicaCount_ = usedReplicaCount_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.autoscalingSpec_ = autoscalingSpecBuilder_ == null ? autoscalingSpec_ : autoscalingSpecBuilder_.build(); } @@ -1560,9 +1523,6 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ResourcePool other) if (other.hasDiskSpec()) { mergeDiskSpec(other.getDiskSpec()); } - if (other.getIdleReplicaCount() != 0L) { - setIdleReplicaCount(other.getIdleReplicaCount()); - } if (other.getUsedReplicaCount() != 0L) { setUsedReplicaCount(other.getUsedReplicaCount()); } @@ -1619,22 +1579,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 - case 40: - { - idleReplicaCount_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 case 48: { usedReplicaCount_ = input.readInt64(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; break; } // case 48 case 58: { input.readMessage(getAutoscalingSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; break; } // case 58 default: @@ -1661,12 +1615,12 @@ public Builder mergeFrom( * * *
-     * Optional. The unique ID in a PersistentResource to refer the this resource
+     * Immutable. The unique ID in a PersistentResource to refer the this resource
      * pool. User can specify it if need to use it, otherwise we will generate it
      * automatically.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The id. */ @@ -1685,12 +1639,12 @@ public java.lang.String getId() { * * *
-     * Optional. The unique ID in a PersistentResource to refer the this resource
+     * Immutable. The unique ID in a PersistentResource to refer the this resource
      * pool. User can specify it if need to use it, otherwise we will generate it
      * automatically.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for id. */ @@ -1709,12 +1663,12 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-     * Optional. The unique ID in a PersistentResource to refer the this resource
+     * Immutable. The unique ID in a PersistentResource to refer the this resource
      * pool. User can specify it if need to use it, otherwise we will generate it
      * automatically.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The id to set. * @return This builder for chaining. @@ -1732,12 +1686,12 @@ public Builder setId(java.lang.String value) { * * *
-     * Optional. The unique ID in a PersistentResource to refer the this resource
+     * Immutable. The unique ID in a PersistentResource to refer the this resource
      * pool. User can specify it if need to use it, otherwise we will generate it
      * automatically.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ @@ -1751,12 +1705,12 @@ public Builder clearId() { * * *
-     * Optional. The unique ID in a PersistentResource to refer the this resource
+     * Immutable. The unique ID in a PersistentResource to refer the this resource
      * pool. User can specify it if need to use it, otherwise we will generate it
      * automatically.
      * 
* - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The bytes for id to set. * @return This builder for chaining. @@ -2245,77 +2199,6 @@ public com.google.cloud.aiplatform.v1beta1.DiskSpecOrBuilder getDiskSpecOrBuilde return diskSpecBuilder_; } - private long idleReplicaCount_; - /** - * - * - *
-     * Output only. The number of machines currently not in use by training jobs
-     * for this resource pool. Deprecated. Use `used_replica_count` instead.
-     * 
- * - * - * int64 idle_replica_count = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.cloud.aiplatform.v1beta1.ResourcePool.idle_replica_count is deprecated. - * See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=187 - * @return The idleReplicaCount. - */ - @java.lang.Override - @java.lang.Deprecated - public long getIdleReplicaCount() { - return idleReplicaCount_; - } - /** - * - * - *
-     * Output only. The number of machines currently not in use by training jobs
-     * for this resource pool. Deprecated. Use `used_replica_count` instead.
-     * 
- * - * - * int64 idle_replica_count = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.cloud.aiplatform.v1beta1.ResourcePool.idle_replica_count is deprecated. - * See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=187 - * @param value The idleReplicaCount to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setIdleReplicaCount(long value) { - - idleReplicaCount_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The number of machines currently not in use by training jobs
-     * for this resource pool. Deprecated. Use `used_replica_count` instead.
-     * 
- * - * - * int64 idle_replica_count = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.cloud.aiplatform.v1beta1.ResourcePool.idle_replica_count is deprecated. - * See google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=187 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearIdleReplicaCount() { - bitField0_ = (bitField0_ & ~0x00000010); - idleReplicaCount_ = 0L; - onChanged(); - return this; - } - private long usedReplicaCount_; /** * @@ -2349,7 +2232,7 @@ public long getUsedReplicaCount() { public Builder setUsedReplicaCount(long value) { usedReplicaCount_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2366,7 +2249,7 @@ public Builder setUsedReplicaCount(long value) { * @return This builder for chaining. */ public Builder clearUsedReplicaCount() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); usedReplicaCount_ = 0L; onChanged(); return this; @@ -2392,7 +2275,7 @@ public Builder clearUsedReplicaCount() { * @return Whether the autoscalingSpec field is set. */ public boolean hasAutoscalingSpec() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2437,7 +2320,7 @@ public Builder setAutoscalingSpec( } else { autoscalingSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2459,7 +2342,7 @@ public Builder setAutoscalingSpec( } else { autoscalingSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2477,7 +2360,7 @@ public Builder setAutoscalingSpec( public Builder mergeAutoscalingSpec( com.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec value) { if (autoscalingSpecBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000020) != 0) && autoscalingSpec_ != null && autoscalingSpec_ != com.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec @@ -2489,7 +2372,7 @@ public Builder mergeAutoscalingSpec( } else { autoscalingSpecBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2505,7 +2388,7 @@ public Builder mergeAutoscalingSpec( * */ public Builder clearAutoscalingSpec() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000020); autoscalingSpec_ = null; if (autoscalingSpecBuilder_ != null) { autoscalingSpecBuilder_.dispose(); @@ -2527,7 +2410,7 @@ public Builder clearAutoscalingSpec() { */ public com.google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec.Builder getAutoscalingSpecBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return getAutoscalingSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePoolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePoolOrBuilder.java index 40492f788a34..fa7e83ef31c9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePoolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePoolOrBuilder.java @@ -27,12 +27,12 @@ public interface ResourcePoolOrBuilder * * *
-   * Optional. The unique ID in a PersistentResource to refer the this resource
+   * Immutable. The unique ID in a PersistentResource to refer the this resource
    * pool. User can specify it if need to use it, otherwise we will generate it
    * automatically.
    * 
* - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The id. */ @@ -41,12 +41,12 @@ public interface ResourcePoolOrBuilder * * *
-   * Optional. The unique ID in a PersistentResource to refer the this resource
+   * Immutable. The unique ID in a PersistentResource to refer the this resource
    * pool. User can specify it if need to use it, otherwise we will generate it
    * automatically.
    * 
* - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for id. */ @@ -159,25 +159,6 @@ public interface ResourcePoolOrBuilder */ com.google.cloud.aiplatform.v1beta1.DiskSpecOrBuilder getDiskSpecOrBuilder(); - /** - * - * - *
-   * Output only. The number of machines currently not in use by training jobs
-   * for this resource pool. Deprecated. Use `used_replica_count` instead.
-   * 
- * - * - * int64 idle_replica_count = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.cloud.aiplatform.v1beta1.ResourcePool.idle_replica_count is deprecated. See - * google/cloud/aiplatform/v1beta1/persistent_resource.proto;l=187 - * @return The idleReplicaCount. - */ - @java.lang.Deprecated - long getIdleReplicaCount(); - /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeSpec.java index b7ff5f41c8a9..684a22181e74 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeSpec.java @@ -126,7 +126,7 @@ public com.google.cloud.aiplatform.v1beta1.ServiceAccountSpec getServiceAccountS * * *
-   * Ray cluster configuration.
+   * Optional. Ray cluster configuration.
    * Required when creating a dedicated RayCluster on the PersistentResource.
    * 
* @@ -144,7 +144,7 @@ public boolean hasRaySpec() { * * *
-   * Ray cluster configuration.
+   * Optional. Ray cluster configuration.
    * Required when creating a dedicated RayCluster on the PersistentResource.
    * 
* @@ -164,7 +164,7 @@ public com.google.cloud.aiplatform.v1beta1.RaySpec getRaySpec() { * * *
-   * Ray cluster configuration.
+   * Optional. Ray cluster configuration.
    * Required when creating a dedicated RayCluster on the PersistentResource.
    * 
* @@ -784,7 +784,7 @@ public Builder clearServiceAccountSpec() { * * *
-     * Ray cluster configuration.
+     * Optional. Ray cluster configuration.
      * Required when creating a dedicated RayCluster on the PersistentResource.
      * 
* @@ -801,7 +801,7 @@ public boolean hasRaySpec() { * * *
-     * Ray cluster configuration.
+     * Optional. Ray cluster configuration.
      * Required when creating a dedicated RayCluster on the PersistentResource.
      * 
* @@ -824,7 +824,7 @@ public com.google.cloud.aiplatform.v1beta1.RaySpec getRaySpec() { * * *
-     * Ray cluster configuration.
+     * Optional. Ray cluster configuration.
      * Required when creating a dedicated RayCluster on the PersistentResource.
      * 
* @@ -849,7 +849,7 @@ public Builder setRaySpec(com.google.cloud.aiplatform.v1beta1.RaySpec value) { * * *
-     * Ray cluster configuration.
+     * Optional. Ray cluster configuration.
      * Required when creating a dedicated RayCluster on the PersistentResource.
      * 
* @@ -871,7 +871,7 @@ public Builder setRaySpec(com.google.cloud.aiplatform.v1beta1.RaySpec.Builder bu * * *
-     * Ray cluster configuration.
+     * Optional. Ray cluster configuration.
      * Required when creating a dedicated RayCluster on the PersistentResource.
      * 
* @@ -899,7 +899,7 @@ public Builder mergeRaySpec(com.google.cloud.aiplatform.v1beta1.RaySpec value) { * * *
-     * Ray cluster configuration.
+     * Optional. Ray cluster configuration.
      * Required when creating a dedicated RayCluster on the PersistentResource.
      * 
* @@ -921,7 +921,7 @@ public Builder clearRaySpec() { * * *
-     * Ray cluster configuration.
+     * Optional. Ray cluster configuration.
      * Required when creating a dedicated RayCluster on the PersistentResource.
      * 
* @@ -938,7 +938,7 @@ public com.google.cloud.aiplatform.v1beta1.RaySpec.Builder getRaySpecBuilder() { * * *
-     * Ray cluster configuration.
+     * Optional. Ray cluster configuration.
      * Required when creating a dedicated RayCluster on the PersistentResource.
      * 
* @@ -959,7 +959,7 @@ public com.google.cloud.aiplatform.v1beta1.RaySpecOrBuilder getRaySpecOrBuilder( * * *
-     * Ray cluster configuration.
+     * Optional. Ray cluster configuration.
      * Required when creating a dedicated RayCluster on the PersistentResource.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeSpecOrBuilder.java index 7b2840c4a386..8abc9be03e2c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeSpecOrBuilder.java @@ -68,7 +68,7 @@ public interface ResourceRuntimeSpecOrBuilder * * *
-   * Ray cluster configuration.
+   * Optional. Ray cluster configuration.
    * Required when creating a dedicated RayCluster on the PersistentResource.
    * 
* @@ -83,7 +83,7 @@ public interface ResourceRuntimeSpecOrBuilder * * *
-   * Ray cluster configuration.
+   * Optional. Ray cluster configuration.
    * Required when creating a dedicated RayCluster on the PersistentResource.
    * 
* @@ -98,7 +98,7 @@ public interface ResourceRuntimeSpecOrBuilder * * *
-   * Ray cluster configuration.
+   * Optional. Ray cluster configuration.
    * Required when creating a dedicated RayCluster on the PersistentResource.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RestoreDatasetVersionOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RestoreDatasetVersionOperationMetadata.java new file mode 100644 index 000000000000..d312030128db --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RestoreDatasetVersionOperationMetadata.java @@ -0,0 +1,742 @@ +/* + * Copyright 2023 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/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Runtime operation information for
+ * [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.RestoreDatasetVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata} + */ +public final class RestoreDatasetVersionOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata) + RestoreDatasetVersionOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RestoreDatasetVersionOperationMetadata.newBuilder() to construct. + private RestoreDatasetVersionOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RestoreDatasetVersionOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RestoreDatasetVersionOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata.Builder + .class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .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 common part of the operation metadata.
+   * 
+ * + * .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 common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + 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()); + } + getUnknownFields().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 += getUnknownFields().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.RestoreDatasetVersionOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata + 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.RestoreDatasetVersionOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata + 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.RestoreDatasetVersionOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata + 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.RestoreDatasetVersionOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata + 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.RestoreDatasetVersionOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata + 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.RestoreDatasetVersionOperationMetadata + 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.RestoreDatasetVersionOperationMetadata + 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.RestoreDatasetVersionOperationMetadata 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
+   * [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.RestoreDatasetVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata) + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + + @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.RestoreDatasetVersionOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + 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 common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .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 common part of the operation metadata.
+     * 
+ * + * .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; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .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(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .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 common part of the operation metadata.
+     * 
+ * + * .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.RestoreDatasetVersionOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreDatasetVersionOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.RestoreDatasetVersionOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RestoreDatasetVersionOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RestoreDatasetVersionOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..053c7e3a9373 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RestoreDatasetVersionOperationMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2023 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/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface RestoreDatasetVersionOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Schedule.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Schedule.java index 87cdf4245c53..d41a4a94f6f3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Schedule.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Schedule.java @@ -1450,10 +1450,10 @@ public boolean hasCreatePipelineJobRequest() { * * *
-   * Output only. The resource name of the Schedule.
+   * Immutable. The resource name of the Schedule.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -1473,10 +1473,10 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name of the Schedule.
+   * Immutable. The resource name of the Schedule.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ @@ -3463,10 +3463,10 @@ public Builder clearCreatePipelineJobRequest() { * * *
-     * Output only. The resource name of the Schedule.
+     * Immutable. The resource name of the Schedule.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -3485,10 +3485,10 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name of the Schedule.
+     * Immutable. The resource name of the Schedule.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ @@ -3507,10 +3507,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name of the Schedule.
+     * Immutable. The resource name of the Schedule.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The name to set. * @return This builder for chaining. @@ -3528,10 +3528,10 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name of the Schedule.
+     * Immutable. The resource name of the Schedule.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ @@ -3545,10 +3545,10 @@ public Builder clearName() { * * *
-     * Output only. The resource name of the Schedule.
+     * Immutable. The resource name of the Schedule.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleOrBuilder.java index 0217d33763bc..a27be17396c4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleOrBuilder.java @@ -130,10 +130,10 @@ public interface ScheduleOrBuilder * * *
-   * Output only. The resource name of the Schedule.
+   * Immutable. The resource name of the Schedule.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The name. */ @@ -142,10 +142,10 @@ public interface ScheduleOrBuilder * * *
-   * Output only. The resource name of the Schedule.
+   * Immutable. The resource name of the Schedule.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for name. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleProto.java index 8e4f54640cf7..8f08e7c57b90 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ScheduleProto.java @@ -53,7 +53,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ule\022\016\n\004cron\030\n \001(\tH\000\022`\n\033create_pipeline_j" + "ob_request\030\016 \001(\01329.google.cloud.aiplatfo" + "rm.v1beta1.CreatePipelineJobRequestH\001\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\003\022\032\n\014display_name\030\002 \001(\tB" + + "\004name\030\001 \001(\tB\004\342A\001\005\022\032\n\014display_name\030\002 \001(\tB" + "\004\342A\001\002\0224\n\nstart_time\030\003 \001(\0132\032.google.proto" + "buf.TimestampB\004\342A\001\001\0222\n\010end_time\030\004 \001(\0132\032." + "google.protobuf.TimestampB\004\342A\001\001\022\033\n\rmax_r" diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java index 6d0daef8ed0d..ef2cd47749c4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Scheduling.java @@ -126,6 +126,26 @@ public boolean getRestartJobOnWorkerRestart() { return restartJobOnWorkerRestart_; } + public static final int DISABLE_RETRIES_FIELD_NUMBER = 5; + private boolean disableRetries_ = false; + /** + * + * + *
+   * Optional. Indicates if the job should retry for internal errors after the
+   * job starts running. If true, overrides
+   * `Scheduling.restart_job_on_worker_restart` to false.
+   * 
+ * + * bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableRetries. + */ + @java.lang.Override + public boolean getDisableRetries() { + return disableRetries_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -146,6 +166,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (restartJobOnWorkerRestart_ != false) { output.writeBool(3, restartJobOnWorkerRestart_); } + if (disableRetries_ != false) { + output.writeBool(5, disableRetries_); + } getUnknownFields().writeTo(output); } @@ -161,6 +184,9 @@ public int getSerializedSize() { if (restartJobOnWorkerRestart_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, restartJobOnWorkerRestart_); } + if (disableRetries_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disableRetries_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -182,6 +208,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTimeout().equals(other.getTimeout())) return false; } if (getRestartJobOnWorkerRestart() != other.getRestartJobOnWorkerRestart()) return false; + if (getDisableRetries() != other.getDisableRetries()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,6 +226,8 @@ public int hashCode() { } hash = (37 * hash) + RESTART_JOB_ON_WORKER_RESTART_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRestartJobOnWorkerRestart()); + hash = (37 * hash) + DISABLE_RETRIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableRetries()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -344,6 +373,7 @@ public Builder clear() { timeoutBuilder_ = null; } restartJobOnWorkerRestart_ = false; + disableRetries_ = false; return this; } @@ -386,6 +416,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Scheduling result if (((from_bitField0_ & 0x00000002) != 0)) { result.restartJobOnWorkerRestart_ = restartJobOnWorkerRestart_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disableRetries_ = disableRetries_; + } } @java.lang.Override @@ -439,6 +472,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Scheduling other) { if (other.getRestartJobOnWorkerRestart() != false) { setRestartJobOnWorkerRestart(other.getRestartJobOnWorkerRestart()); } + if (other.getDisableRetries() != false) { + setDisableRetries(other.getDisableRetries()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -477,6 +513,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 40: + { + disableRetries_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -734,6 +776,65 @@ public Builder clearRestartJobOnWorkerRestart() { return this; } + private boolean disableRetries_; + /** + * + * + *
+     * Optional. Indicates if the job should retry for internal errors after the
+     * job starts running. If true, overrides
+     * `Scheduling.restart_job_on_worker_restart` to false.
+     * 
+ * + * bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableRetries. + */ + @java.lang.Override + public boolean getDisableRetries() { + return disableRetries_; + } + /** + * + * + *
+     * Optional. Indicates if the job should retry for internal errors after the
+     * job starts running. If true, overrides
+     * `Scheduling.restart_job_on_worker_restart` to false.
+     * 
+ * + * bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableRetries to set. + * @return This builder for chaining. + */ + public Builder setDisableRetries(boolean value) { + + disableRetries_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Indicates if the job should retry for internal errors after the
+     * job starts running. If true, overrides
+     * `Scheduling.restart_job_on_worker_restart` to false.
+     * 
+ * + * bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableRetries() { + bitField0_ = (bitField0_ & ~0x00000004); + disableRetries_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SchedulingOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SchedulingOrBuilder.java index 2fe4a5fae043..247880393f28 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SchedulingOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SchedulingOrBuilder.java @@ -72,4 +72,19 @@ public interface SchedulingOrBuilder * @return The restartJobOnWorkerRestart. */ boolean getRestartJobOnWorkerRestart(); + + /** + * + * + *
+   * Optional. Indicates if the job should retry for internal errors after the
+   * job starts running. If true, overrides
+   * `Scheduling.restart_job_on_worker_restart` to false.
+   * 
+ * + * bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableRetries. + */ + boolean getDisableRetries(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java index 7cf5ea237724..87e3d11964e6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java @@ -1233,7 +1233,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=449 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 * @return The savedQuery. */ @java.lang.Override @@ -1263,7 +1263,7 @@ public java.lang.String getSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=449 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 * @return The bytes for savedQuery. */ @java.lang.Override @@ -1428,7 +1428,7 @@ public com.google.protobuf.ByteString getDataItemFilterBytes() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 * @return The annotationsFilter. */ @java.lang.Override @@ -1456,7 +1456,7 @@ public java.lang.String getAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 * @return The bytes for annotationsFilter. */ @java.lang.Override @@ -1656,7 +1656,7 @@ public int getPageSize() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 * @return The orderBy. */ @java.lang.Override @@ -1683,7 +1683,7 @@ public java.lang.String getOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 * @return The bytes for orderBy. */ @java.lang.Override @@ -2992,7 +2992,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=449 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 * @return The savedQuery. */ @java.lang.Deprecated @@ -3021,7 +3021,7 @@ public java.lang.String getSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=449 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 * @return The bytes for savedQuery. */ @java.lang.Deprecated @@ -3050,7 +3050,7 @@ public com.google.protobuf.ByteString getSavedQueryBytes() { * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=449 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 * @param value The savedQuery to set. * @return This builder for chaining. */ @@ -3078,7 +3078,7 @@ public Builder setSavedQuery(java.lang.String value) { * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=449 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3102,7 +3102,7 @@ public Builder clearSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=449 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 * @param value The bytes for savedQuery to set. * @return This builder for chaining. */ @@ -3418,7 +3418,7 @@ public Builder setDataItemFilterBytes(com.google.protobuf.ByteString value) { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 * @return The annotationsFilter. */ @java.lang.Deprecated @@ -3445,7 +3445,7 @@ public java.lang.String getAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 * @return The bytes for annotationsFilter. */ @java.lang.Deprecated @@ -3472,7 +3472,7 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 * @param value The annotationsFilter to set. * @return This builder for chaining. */ @@ -3498,7 +3498,7 @@ public Builder setAnnotationsFilter(java.lang.String value) { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3520,7 +3520,7 @@ public Builder clearAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 * @param value The bytes for annotationsFilter to set. * @return This builder for chaining. */ @@ -4061,7 +4061,7 @@ public Builder clearPageSize() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=504 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 * @return The orderBy. */ @java.lang.Deprecated @@ -4087,7 +4087,7 @@ public java.lang.String getOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=504 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 * @return The bytes for orderBy. */ @java.lang.Deprecated @@ -4113,7 +4113,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=504 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 * @param value The orderBy to set. * @return This builder for chaining. */ @@ -4138,7 +4138,7 @@ public Builder setOrderBy(java.lang.String value) { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=504 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4159,7 +4159,7 @@ public Builder clearOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=504 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 * @param value The bytes for orderBy to set. * @return This builder for chaining. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequestOrBuilder.java index ed44e2c10b89..a6c3add561c0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequestOrBuilder.java @@ -153,7 +153,7 @@ public interface SearchDataItemsRequestOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=449 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 * @return The savedQuery. */ @java.lang.Deprecated @@ -172,7 +172,7 @@ public interface SearchDataItemsRequestOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=449 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 * @return The bytes for savedQuery. */ @java.lang.Deprecated @@ -270,7 +270,7 @@ public interface SearchDataItemsRequestOrBuilder * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 * @return The annotationsFilter. */ @java.lang.Deprecated @@ -287,7 +287,7 @@ public interface SearchDataItemsRequestOrBuilder * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=480 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 * @return The bytes for annotationsFilter. */ @java.lang.Deprecated @@ -438,7 +438,7 @@ public interface SearchDataItemsRequestOrBuilder * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 * @return The orderBy. */ @java.lang.Deprecated @@ -454,7 +454,7 @@ public interface SearchDataItemsRequestOrBuilder * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=504 + * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 * @return The bytes for orderBy. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadata.java new file mode 100644 index 000000000000..61b803c7250f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadata.java @@ -0,0 +1,743 @@ +/* + * Copyright 2023 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/persistent_resource_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform update PersistentResource.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata} + */ +public final class UpdatePersistentResourceOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata) + UpdatePersistentResourceOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdatePersistentResourceOperationMetadata.newBuilder() to construct. + private UpdatePersistentResourceOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdatePersistentResourceOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdatePersistentResourceOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.Builder + .class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for PersistentResource.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return genericMetadata_ != null; + } + /** + * + * + *
+   * Operation metadata for PersistentResource.
+   * 
+ * + * .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_; + } + /** + * + * + *
+   * Operation metadata for PersistentResource.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + 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()); + } + getUnknownFields().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 += getUnknownFields().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.UpdatePersistentResourceOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + 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.UpdatePersistentResourceOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + 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.UpdatePersistentResourceOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + 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.UpdatePersistentResourceOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + 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.UpdatePersistentResourceOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + 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.UpdatePersistentResourceOperationMetadata + 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.UpdatePersistentResourceOperationMetadata + 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.UpdatePersistentResourceOperationMetadata 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; + } + /** + * + * + *
+   * Details of operations that perform update PersistentResource.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata) + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + } + } + + @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.UpdatePersistentResourceOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + 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_; + /** + * + * + *
+     * Operation metadata for PersistentResource.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Operation metadata for PersistentResource.
+     * 
+ * + * .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(); + } + } + /** + * + * + *
+     * Operation metadata for PersistentResource.
+     * 
+ * + * .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; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation metadata for PersistentResource.
+     * 
+ * + * .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(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation metadata for PersistentResource.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation metadata for PersistentResource.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Operation metadata for PersistentResource.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for PersistentResource.
+     * 
+ * + * .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_; + } + } + /** + * + * + *
+     * Operation metadata for PersistentResource.
+     * 
+ * + * .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.UpdatePersistentResourceOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePersistentResourceOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.UpdatePersistentResourceOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..1affc36ca732 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2023 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/persistent_resource_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdatePersistentResourceOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for PersistentResource.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for PersistentResource.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for PersistentResource.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceRequest.java new file mode 100644 index 000000000000..281551079247 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceRequest.java @@ -0,0 +1,1085 @@ +/* + * Copyright 2023 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/persistent_resource_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for UpdatePersistentResource method.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest} + */ +public final class UpdatePersistentResourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest) + UpdatePersistentResourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdatePersistentResourceRequest.newBuilder() to construct. + private UpdatePersistentResourceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdatePersistentResourceRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdatePersistentResourceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.Builder.class); + } + + public static final int PERSISTENT_RESOURCE_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.PersistentResource persistentResource_; + /** + * + * + *
+   * Required. The PersistentResource to update.
+   *
+   * The PersistentResource's `name` field is used to identify the
+   * PersistentResource to update. Format:
+   * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the persistentResource field is set. + */ + @java.lang.Override + public boolean hasPersistentResource() { + return persistentResource_ != null; + } + /** + * + * + *
+   * Required. The PersistentResource to update.
+   *
+   * The PersistentResource's `name` field is used to identify the
+   * PersistentResource to update. Format:
+   * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The persistentResource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PersistentResource getPersistentResource() { + return persistentResource_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentResource.getDefaultInstance() + : persistentResource_; + } + /** + * + * + *
+   * Required. The PersistentResource to update.
+   *
+   * The PersistentResource's `name` field is used to identify the
+   * PersistentResource to update. Format:
+   * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PersistentResourceOrBuilder + getPersistentResourceOrBuilder() { + return persistentResource_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentResource.getDefaultInstance() + : persistentResource_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Specify the fields to be overwritten in the PersistentResource by
+   * the update method.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Specify the fields to be overwritten in the PersistentResource by
+   * the update method.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Specify the fields to be overwritten in the PersistentResource by
+   * the update method.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (persistentResource_ != null) { + output.writeMessage(1, getPersistentResource()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (persistentResource_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPersistentResource()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().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.UpdatePersistentResourceRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest) obj; + + if (hasPersistentResource() != other.hasPersistentResource()) return false; + if (hasPersistentResource()) { + if (!getPersistentResource().equals(other.getPersistentResource())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPersistentResource()) { + hash = (37 * hash) + PERSISTENT_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getPersistentResource().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest 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.UpdatePersistentResourceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest 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.UpdatePersistentResourceRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest 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.UpdatePersistentResourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest 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.UpdatePersistentResourceRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + 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.UpdatePersistentResourceRequest 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.UpdatePersistentResourceRequest 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.UpdatePersistentResourceRequest 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 UpdatePersistentResource method.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest) + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + persistentResource_ = null; + if (persistentResourceBuilder_ != null) { + persistentResourceBuilder_.dispose(); + persistentResourceBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.persistentResource_ = + persistentResourceBuilder_ == null + ? persistentResource_ + : persistentResourceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @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.UpdatePersistentResourceRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + .getDefaultInstance()) return this; + if (other.hasPersistentResource()) { + mergePersistentResource(other.getPersistentResource()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getPersistentResourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.PersistentResource persistentResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PersistentResource, + com.google.cloud.aiplatform.v1beta1.PersistentResource.Builder, + com.google.cloud.aiplatform.v1beta1.PersistentResourceOrBuilder> + persistentResourceBuilder_; + /** + * + * + *
+     * Required. The PersistentResource to update.
+     *
+     * The PersistentResource's `name` field is used to identify the
+     * PersistentResource to update. Format:
+     * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the persistentResource field is set. + */ + public boolean hasPersistentResource() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The PersistentResource to update.
+     *
+     * The PersistentResource's `name` field is used to identify the
+     * PersistentResource to update. Format:
+     * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The persistentResource. + */ + public com.google.cloud.aiplatform.v1beta1.PersistentResource getPersistentResource() { + if (persistentResourceBuilder_ == null) { + return persistentResource_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentResource.getDefaultInstance() + : persistentResource_; + } else { + return persistentResourceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The PersistentResource to update.
+     *
+     * The PersistentResource's `name` field is used to identify the
+     * PersistentResource to update. Format:
+     * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPersistentResource( + com.google.cloud.aiplatform.v1beta1.PersistentResource value) { + if (persistentResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + persistentResource_ = value; + } else { + persistentResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The PersistentResource to update.
+     *
+     * The PersistentResource's `name` field is used to identify the
+     * PersistentResource to update. Format:
+     * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPersistentResource( + com.google.cloud.aiplatform.v1beta1.PersistentResource.Builder builderForValue) { + if (persistentResourceBuilder_ == null) { + persistentResource_ = builderForValue.build(); + } else { + persistentResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The PersistentResource to update.
+     *
+     * The PersistentResource's `name` field is used to identify the
+     * PersistentResource to update. Format:
+     * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePersistentResource( + com.google.cloud.aiplatform.v1beta1.PersistentResource value) { + if (persistentResourceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && persistentResource_ != null + && persistentResource_ + != com.google.cloud.aiplatform.v1beta1.PersistentResource.getDefaultInstance()) { + getPersistentResourceBuilder().mergeFrom(value); + } else { + persistentResource_ = value; + } + } else { + persistentResourceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The PersistentResource to update.
+     *
+     * The PersistentResource's `name` field is used to identify the
+     * PersistentResource to update. Format:
+     * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPersistentResource() { + bitField0_ = (bitField0_ & ~0x00000001); + persistentResource_ = null; + if (persistentResourceBuilder_ != null) { + persistentResourceBuilder_.dispose(); + persistentResourceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The PersistentResource to update.
+     *
+     * The PersistentResource's `name` field is used to identify the
+     * PersistentResource to update. Format:
+     * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PersistentResource.Builder + getPersistentResourceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPersistentResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The PersistentResource to update.
+     *
+     * The PersistentResource's `name` field is used to identify the
+     * PersistentResource to update. Format:
+     * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PersistentResourceOrBuilder + getPersistentResourceOrBuilder() { + if (persistentResourceBuilder_ != null) { + return persistentResourceBuilder_.getMessageOrBuilder(); + } else { + return persistentResource_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentResource.getDefaultInstance() + : persistentResource_; + } + } + /** + * + * + *
+     * Required. The PersistentResource to update.
+     *
+     * The PersistentResource's `name` field is used to identify the
+     * PersistentResource to update. Format:
+     * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PersistentResource, + com.google.cloud.aiplatform.v1beta1.PersistentResource.Builder, + com.google.cloud.aiplatform.v1beta1.PersistentResourceOrBuilder> + getPersistentResourceFieldBuilder() { + if (persistentResourceBuilder_ == null) { + persistentResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PersistentResource, + com.google.cloud.aiplatform.v1beta1.PersistentResource.Builder, + com.google.cloud.aiplatform.v1beta1.PersistentResourceOrBuilder>( + getPersistentResource(), getParentForChildren(), isClean()); + persistentResource_ = null; + } + return persistentResourceBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Specify the fields to be overwritten in the PersistentResource by
+     * the update method.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Specify the fields to be overwritten in the PersistentResource by
+     * the update method.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Specify the fields to be overwritten in the PersistentResource by
+     * the update method.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Specify the fields to be overwritten in the PersistentResource by
+     * the update method.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Specify the fields to be overwritten in the PersistentResource by
+     * the update method.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Specify the fields to be overwritten in the PersistentResource by
+     * the update method.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Specify the fields to be overwritten in the PersistentResource by
+     * the update method.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Specify the fields to be overwritten in the PersistentResource by
+     * the update method.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Specify the fields to be overwritten in the PersistentResource by
+     * the update method.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.UpdatePersistentResourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePersistentResourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.UpdatePersistentResourceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceRequestOrBuilder.java new file mode 100644 index 000000000000..268da8d93a95 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceRequestOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2023 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/persistent_resource_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdatePersistentResourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The PersistentResource to update.
+   *
+   * The PersistentResource's `name` field is used to identify the
+   * PersistentResource to update. Format:
+   * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the persistentResource field is set. + */ + boolean hasPersistentResource(); + /** + * + * + *
+   * Required. The PersistentResource to update.
+   *
+   * The PersistentResource's `name` field is used to identify the
+   * PersistentResource to update. Format:
+   * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The persistentResource. + */ + com.google.cloud.aiplatform.v1beta1.PersistentResource getPersistentResource(); + /** + * + * + *
+   * Required. The PersistentResource to update.
+   *
+   * The PersistentResource's `name` field is used to identify the
+   * PersistentResource to update. Format:
+   * `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentResource persistent_resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.PersistentResourceOrBuilder getPersistentResourceOrBuilder(); + + /** + * + * + *
+   * Required. Specify the fields to be overwritten in the PersistentResource by
+   * the update method.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Specify the fields to be overwritten in the PersistentResource by
+   * the update method.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Specify the fields to be overwritten in the PersistentResource by
+   * the update method.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateScheduleRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateScheduleRequest.java index 53319fd16b12..d54e725b0f2e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateScheduleRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateScheduleRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The Schedule which replaces the resource on the server.
    * The following restrictions will be applied:
+   *
    *   * The scheduled request type cannot be changed.
+   *   * The non-empty fields cannot be unset.
    *   * The output_only fields will be ignored if specified.
    * 
* @@ -89,7 +91,9 @@ public boolean hasSchedule() { *
    * Required. The Schedule which replaces the resource on the server.
    * The following restrictions will be applied:
+   *
    *   * The scheduled request type cannot be changed.
+   *   * The non-empty fields cannot be unset.
    *   * The output_only fields will be ignored if specified.
    * 
* @@ -111,7 +115,9 @@ public com.google.cloud.aiplatform.v1beta1.Schedule getSchedule() { *
    * Required. The Schedule which replaces the resource on the server.
    * The following restrictions will be applied:
+   *
    *   * The scheduled request type cannot be changed.
+   *   * The non-empty fields cannot be unset.
    *   * The output_only fields will be ignored if specified.
    * 
* @@ -572,7 +578,9 @@ public Builder mergeFrom( *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -591,7 +599,9 @@ public boolean hasSchedule() { *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -616,7 +626,9 @@ public com.google.cloud.aiplatform.v1beta1.Schedule getSchedule() { *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -643,7 +655,9 @@ public Builder setSchedule(com.google.cloud.aiplatform.v1beta1.Schedule value) { *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -668,7 +682,9 @@ public Builder setSchedule( *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -698,7 +714,9 @@ public Builder mergeSchedule(com.google.cloud.aiplatform.v1beta1.Schedule value) *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -722,7 +740,9 @@ public Builder clearSchedule() { *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -741,7 +761,9 @@ public com.google.cloud.aiplatform.v1beta1.Schedule.Builder getScheduleBuilder() *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* @@ -764,7 +786,9 @@ public com.google.cloud.aiplatform.v1beta1.ScheduleOrBuilder getScheduleOrBuilde *
      * Required. The Schedule which replaces the resource on the server.
      * The following restrictions will be applied:
+     *
      *   * The scheduled request type cannot be changed.
+     *   * The non-empty fields cannot be unset.
      *   * The output_only fields will be ignored if specified.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateScheduleRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateScheduleRequestOrBuilder.java index 1da6760471b6..5bcd76d39b6b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateScheduleRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateScheduleRequestOrBuilder.java @@ -29,7 +29,9 @@ public interface UpdateScheduleRequestOrBuilder *
    * Required. The Schedule which replaces the resource on the server.
    * The following restrictions will be applied:
+   *
    *   * The scheduled request type cannot be changed.
+   *   * The non-empty fields cannot be unset.
    *   * The output_only fields will be ignored if specified.
    * 
* @@ -46,7 +48,9 @@ public interface UpdateScheduleRequestOrBuilder *
    * Required. The Schedule which replaces the resource on the server.
    * The following restrictions will be applied:
+   *
    *   * The scheduled request type cannot be changed.
+   *   * The non-empty fields cannot be unset.
    *   * The output_only fields will be ignored if specified.
    * 
* @@ -63,7 +67,9 @@ public interface UpdateScheduleRequestOrBuilder *
    * Required. The Schedule which replaces the resource on the server.
    * The following restrictions will be applied:
+   *
    *   * The scheduled request type cannot be changed.
+   *   * The non-empty fields cannot be unset.
    *   * The output_only fields will be ignored if specified.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto index 4e7bf4657ebe..d1e55286e1c4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto @@ -53,6 +53,9 @@ enum AcceleratorType { // Nvidia L4 GPU. NVIDIA_L4 = 11; + // Nvidia H100 80Gb GPU. + NVIDIA_H100_80GB = 13; + // TPU v2. TPU_V2 = 6; @@ -61,4 +64,7 @@ enum AcceleratorType { // TPU v4. TPU_V4_POD = 10; + + // TPU v5. + TPU_V5_LITEPOD = 12; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto index bcfcd3e89870..19d59cdac778 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/context.proto @@ -36,8 +36,8 @@ message Context { pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}" }; - // Output only. The resource name of the Context. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Immutable. The resource name of the Context. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // User provided display name of the Context. // May be up to 128 Unicode characters. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto index 892dd2fa3c49..399c14eaeb17 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -332,4 +332,9 @@ message Scheduling { // This feature can be used by distributed training jobs that are not // resilient to workers leaving and joining a job. bool restart_job_on_worker_restart = 3; + + // Optional. Indicates if the job should retry for internal errors after the + // job starts running. If true, overrides + // `Scheduling.restart_job_on_worker_restart` to false. + bool disable_retries = 5 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto index 08204a0c8e4f..07dd6c05a6f2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -369,6 +369,20 @@ message ExportDataOperationMetadata { string gcs_output_directory = 2; } +// Runtime operation information for +// [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetVersion]. +message CreateDatasetVersionOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Runtime operation information for +// [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.RestoreDatasetVersion]. +message RestoreDatasetVersionOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + // Request message for // [DatasetService.ListDataItems][google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems]. message ListDataItemsRequest { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto index bb450ca452b3..5ab75189fc93 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/deployment_resource_pool.proto @@ -37,10 +37,10 @@ message DeploymentResourcePool { pattern: "projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}" }; - // Output only. The resource name of the DeploymentResourcePool. + // Immutable. The resource name of the DeploymentResourcePool. // Format: // `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // Required. The underlying DedicatedResources that the DeploymentResourcePool // uses. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto index 098ca31b443e..b7e19fa130fe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto @@ -181,6 +181,20 @@ message DiskSpec { int32 boot_disk_size_gb = 2; } +// Represents the spec of [persistent +// disk][https://cloud.google.com/compute/docs/disks/persistent-disks] options. +message PersistentDiskSpec { + // Type of the disk (default is "pd-standard"). + // Valid values: "pd-ssd" (Persistent Disk Solid State Drive) + // "pd-standard" (Persistent Disk Hard Disk Drive) + // "pd-balanced" (Balanced Persistent Disk) + // "pd-extreme" (Extreme Persistent Disk) + string disk_type = 1; + + // Size in GB of the disk (default is 100GB). + int64 disk_size_gb = 2; +} + // Represents a mount configuration for Network File System (NFS) to mount. message NfsMount { // Required. IP address of the NFS server. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource.proto index 44ce3e0a723a..5cc2b3bf61d5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource.proto @@ -166,10 +166,10 @@ message ResourcePool { [(google.api.field_behavior) = OPTIONAL]; } - // Optional. The unique ID in a PersistentResource to refer the this resource + // Immutable. The unique ID in a PersistentResource to refer the this resource // pool. User can specify it if need to use it, otherwise we will generate it // automatically. - string id = 1 [(google.api.field_behavior) = OPTIONAL]; + string id = 1 [(google.api.field_behavior) = IMMUTABLE]; // Required. Immutable. The specification of a single machine. MachineSpec machine_spec = 2 [ @@ -183,11 +183,6 @@ message ResourcePool { // Optional. Disk spec for the machine in this node pool. DiskSpec disk_spec = 4 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The number of machines currently not in use by training jobs - // for this resource pool. Deprecated. Use `used_replica_count` instead. - int64 idle_replica_count = 5 - [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The number of machines currently in use by training jobs for // this resource pool. Will replace idle_replica_count. int64 used_replica_count = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -205,7 +200,7 @@ message ResourceRuntimeSpec { ServiceAccountSpec service_account_spec = 2 [(google.api.field_behavior) = OPTIONAL]; - // Ray cluster configuration. + // Optional. Ray cluster configuration. // Required when creating a dedicated RayCluster on the PersistentResource. RaySpec ray_spec = 1 [(google.api.field_behavior) = OPTIONAL]; } @@ -222,6 +217,25 @@ message RaySpec { // you need all the resource pools to have the same Ray image, Otherwise, use // the {@code resource_pool_images} field. string image_uri = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Required if image_uri is not set. A map of resource_pool_id to + // prebuild Ray image if user need to use different images for different + // head/worker pools. This map needs to cover all the resource pool ids. + // Example: + // { + // "ray_head_node_pool": "head image" + // "ray_worker_node_pool1": "worker image" + // "ray_worker_node_pool2": "another worker image" + // } + map resource_pool_images = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This will be used to indicate which resource pool will serve as + // the Ray head node(the first node within that pool). Will use the machine + // from the first workerpool as the head node by default if this field is not + // set. + string head_node_resource_pool_id = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Persistent Cluster runtime information as output diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto index 360caa533587..0da3cb87783f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto @@ -24,6 +24,7 @@ import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/cloud/aiplatform/v1beta1/persistent_resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; @@ -39,7 +40,7 @@ service PersistentResourceService { option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // Uploads a Model artifact into Vertex AI. + // Creates a PersistentResource. rpc CreatePersistentResource(CreatePersistentResourceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -84,6 +85,20 @@ service PersistentResourceService { metadata_type: "DeleteOperationMetadata" }; } + + // Updates a PersistentResource. + rpc UpdatePersistentResource(UpdatePersistentResourceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{persistent_resource.name=projects/*/locations/*/persistentResources/*}" + body: "persistent_resource" + }; + option (google.api.method_signature) = "persistent_resource,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "PersistentResource" + metadata_type: "UpdatePersistentResourceOperationMetadata" + }; + } } // Request message for @@ -116,6 +131,12 @@ message CreatePersistentResourceOperationMetadata { GenericOperationMetadata generic_metadata = 1; } +// Details of operations that perform update PersistentResource. +message UpdatePersistentResourceOperationMetadata { + // Operation metadata for PersistentResource. + GenericOperationMetadata generic_metadata = 1; +} + // Request message for // [PersistentResourceService.GetPersistentResource][google.cloud.aiplatform.v1beta1.PersistentResourceService.GetPersistentResource]. message GetPersistentResourceRequest { @@ -176,3 +197,19 @@ message DeletePersistentResourceRequest { } ]; } + +// Request message for UpdatePersistentResource method. +message UpdatePersistentResourceRequest { + // Required. The PersistentResource to update. + // + // The PersistentResource's `name` field is used to identify the + // PersistentResource to update. Format: + // `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` + PersistentResource persistent_resource = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Specify the fields to be overwritten in the PersistentResource by + // the update method. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto index 6228dc58f7fb..af06a61a4ccb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -207,6 +207,10 @@ message PipelineJob { // is from supported template registry. PipelineTemplateMetadata template_metadata = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The schedule resource name. + // Only returned if the Pipeline is created by Schedule API. + string schedule_name = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Pipeline template metadata if diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto index 6a1c720d2403..d837110b5a53 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto @@ -108,6 +108,19 @@ service PredictionService { option (google.api.method_signature) = "endpoint,instances,parameters,deployed_model_id"; } + + // Perform a token counting. + rpc CountTokens(CountTokensRequest) returns (CountTokensResponse) { + option (google.api.http) = { + post: "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens" + body: "*" + additional_bindings { + post: "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens" + body: "*" + } + }; + option (google.api.method_signature) = "endpoint,instances"; + } } // Request message for @@ -316,3 +329,33 @@ message ExplainResponse { // [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions]. repeated google.protobuf.Value predictions = 3; } + +// Request message for +// [PredictionService.CountTokens][google.cloud.aiplatform.v1beta1.PredictionService.CountTokens]. +message CountTokensRequest { + // Required. The name of the Endpoint requested to perform token counting. + // Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string endpoint = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; + + // Required. The instances that are the input to token counting call. + // Schema is identical to the prediction schema of the underlying model. + repeated google.protobuf.Value instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for +// [PredictionService.CountTokens][google.cloud.aiplatform.v1beta1.PredictionService.CountTokens]. +message CountTokensResponse { + // The total number of tokens counted across all instances from the request. + int32 total_tokens = 1; + + // The total number of billable characters counted across all instances from + // the request. + int32 total_billable_characters = 2; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/publisher_model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/publisher_model.proto index dd45a764a876..f711746cbe78 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/publisher_model.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/publisher_model.proto @@ -47,6 +47,16 @@ message PublisherModel { } } + // The information about the parent of a model. + message Parent { + // Required. The display name of the parent. E.g., LaMDA, T5, Vision API, + // Natural Language API. + string display_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The Google Cloud resource name or the URI reference. + ResourceReference reference = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // A named piece of documentation. message Documentation { // Required. E.g., OVERVIEW, USE CASES, DOCUMENTATION, SDK & SAMPLES, JAVA, @@ -154,6 +164,10 @@ message PublisherModel { // Optional. Request for access. RegionalResourceReferences request_access = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Open evaluation pipeline of the PublisherModel. + RegionalResourceReferences open_evaluation_pipeline = 11 + [(google.api.field_behavior) = OPTIONAL]; } // An enum representing the open source category of a PublisherModel. @@ -214,6 +228,10 @@ message PublisherModel { OpenSourceCategory open_source_category = 7 [(google.api.field_behavior) = REQUIRED]; + // Optional. The parent that this model was customized from. E.g., Vision API, + // Natural Language API, LaMDA, T5, etc. Foundation models don't have parents. + Parent parent = 14 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Supported call-to-action options. CallToAction supported_actions = 19 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schedule.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schedule.proto index ad02ad01d2b6..266dc394db97 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schedule.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schedule.proto @@ -88,8 +88,8 @@ message Schedule { CreatePipelineJobRequest create_pipeline_job_request = 14; } - // Output only. The resource name of the Schedule. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Immutable. The resource name of the Schedule. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // Required. User provided name of the Schedule. // The name can be up to 128 characters long and can consist of any UTF-8 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schedule_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schedule_service.proto index f71ea0f85e0e..ea6a1328d38b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schedule_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/schedule_service.proto @@ -222,6 +222,7 @@ message ListSchedulesRequest { // descending order. // // Supported fields: + // // * `create_time` // * `start_time` // * `end_time` @@ -296,7 +297,9 @@ message ResumeScheduleRequest { message UpdateScheduleRequest { // Required. The Schedule which replaces the resource on the server. // The following restrictions will be applied: + // // * The scheduled request type cannot be changed. + // * The non-empty fields cannot be unset. // * The output_only fields will be ignored if specified. Schedule schedule = 1 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/tensorboardservice/readtensorboardsize/AsyncReadTensorboardSize.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/tensorboardservice/readtensorboardsize/AsyncReadTensorboardSize.java new file mode 100644 index 000000000000..4ba44c165ab5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/tensorboardservice/readtensorboardsize/AsyncReadTensorboardSize.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 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.v1.samples; + +// [START aiplatform_v1_generated_TensorboardService_ReadTensorboardSize_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest; +import com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse; +import com.google.cloud.aiplatform.v1.TensorboardName; +import com.google.cloud.aiplatform.v1.TensorboardServiceClient; + +public class AsyncReadTensorboardSize { + + public static void main(String[] args) throws Exception { + asyncReadTensorboardSize(); + } + + public static void asyncReadTensorboardSize() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) { + ReadTensorboardSizeRequest request = + ReadTensorboardSizeRequest.newBuilder() + .setTensorboard( + TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString()) + .build(); + ApiFuture future = + tensorboardServiceClient.readTensorboardSizeCallable().futureCall(request); + // Do something. + ReadTensorboardSizeResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_TensorboardService_ReadTensorboardSize_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/tensorboardservice/readtensorboardsize/SyncReadTensorboardSize.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/tensorboardservice/readtensorboardsize/SyncReadTensorboardSize.java new file mode 100644 index 000000000000..3b340ccefc91 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/tensorboardservice/readtensorboardsize/SyncReadTensorboardSize.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 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.v1.samples; + +// [START aiplatform_v1_generated_TensorboardService_ReadTensorboardSize_sync] +import com.google.cloud.aiplatform.v1.ReadTensorboardSizeRequest; +import com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse; +import com.google.cloud.aiplatform.v1.TensorboardName; +import com.google.cloud.aiplatform.v1.TensorboardServiceClient; + +public class SyncReadTensorboardSize { + + public static void main(String[] args) throws Exception { + syncReadTensorboardSize(); + } + + public static void syncReadTensorboardSize() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) { + ReadTensorboardSizeRequest request = + ReadTensorboardSizeRequest.newBuilder() + .setTensorboard( + TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString()) + .build(); + ReadTensorboardSizeResponse response = tensorboardServiceClient.readTensorboardSize(request); + } + } +} +// [END aiplatform_v1_generated_TensorboardService_ReadTensorboardSize_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/tensorboardservice/readtensorboardsize/SyncReadTensorboardSizeString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/tensorboardservice/readtensorboardsize/SyncReadTensorboardSizeString.java new file mode 100644 index 000000000000..965763a61c7f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/tensorboardservice/readtensorboardsize/SyncReadTensorboardSizeString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 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.v1.samples; + +// [START aiplatform_v1_generated_TensorboardService_ReadTensorboardSize_String_sync] +import com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse; +import com.google.cloud.aiplatform.v1.TensorboardName; +import com.google.cloud.aiplatform.v1.TensorboardServiceClient; + +public class SyncReadTensorboardSizeString { + + public static void main(String[] args) throws Exception { + syncReadTensorboardSizeString(); + } + + public static void syncReadTensorboardSizeString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) { + String tensorboard = + TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]").toString(); + ReadTensorboardSizeResponse response = + tensorboardServiceClient.readTensorboardSize(tensorboard); + } + } +} +// [END aiplatform_v1_generated_TensorboardService_ReadTensorboardSize_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/tensorboardservice/readtensorboardsize/SyncReadTensorboardSizeTensorboardname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/tensorboardservice/readtensorboardsize/SyncReadTensorboardSizeTensorboardname.java new file mode 100644 index 000000000000..d209add871b1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/tensorboardservice/readtensorboardsize/SyncReadTensorboardSizeTensorboardname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 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.v1.samples; + +// [START aiplatform_v1_generated_TensorboardService_ReadTensorboardSize_Tensorboardname_sync] +import com.google.cloud.aiplatform.v1.ReadTensorboardSizeResponse; +import com.google.cloud.aiplatform.v1.TensorboardName; +import com.google.cloud.aiplatform.v1.TensorboardServiceClient; + +public class SyncReadTensorboardSizeTensorboardname { + + public static void main(String[] args) throws Exception { + syncReadTensorboardSizeTensorboardname(); + } + + public static void syncReadTensorboardSizeTensorboardname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.create()) { + TensorboardName tensorboard = TensorboardName.of("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"); + ReadTensorboardSizeResponse response = + tensorboardServiceClient.readTensorboardSize(tensorboard); + } + } +} +// [END aiplatform_v1_generated_TensorboardService_ReadTensorboardSize_Tensorboardname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/persistentresourceservice/updatepersistentresource/AsyncUpdatePersistentResource.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/persistentresourceservice/updatepersistentresource/AsyncUpdatePersistentResource.java new file mode 100644 index 000000000000..fd5d3a2d577d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/persistentresourceservice/updatepersistentresource/AsyncUpdatePersistentResource.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 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.samples; + +// [START aiplatform_v1beta1_generated_PersistentResourceService_UpdatePersistentResource_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.PersistentResource; +import com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceClient; +import com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdatePersistentResource { + + public static void main(String[] args) throws Exception { + asyncUpdatePersistentResource(); + } + + public static void asyncUpdatePersistentResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PersistentResourceServiceClient persistentResourceServiceClient = + PersistentResourceServiceClient.create()) { + UpdatePersistentResourceRequest request = + UpdatePersistentResourceRequest.newBuilder() + .setPersistentResource(PersistentResource.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + persistentResourceServiceClient.updatePersistentResourceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_PersistentResourceService_UpdatePersistentResource_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/persistentresourceservice/updatepersistentresource/AsyncUpdatePersistentResourceLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/persistentresourceservice/updatepersistentresource/AsyncUpdatePersistentResourceLRO.java new file mode 100644 index 000000000000..3110050a7189 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/persistentresourceservice/updatepersistentresource/AsyncUpdatePersistentResourceLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 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.samples; + +// [START aiplatform_v1beta1_generated_PersistentResourceService_UpdatePersistentResource_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.PersistentResource; +import com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceClient; +import com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdatePersistentResourceLRO { + + public static void main(String[] args) throws Exception { + asyncUpdatePersistentResourceLRO(); + } + + public static void asyncUpdatePersistentResourceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PersistentResourceServiceClient persistentResourceServiceClient = + PersistentResourceServiceClient.create()) { + UpdatePersistentResourceRequest request = + UpdatePersistentResourceRequest.newBuilder() + .setPersistentResource(PersistentResource.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + persistentResourceServiceClient + .updatePersistentResourceOperationCallable() + .futureCall(request); + // Do something. + PersistentResource response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_PersistentResourceService_UpdatePersistentResource_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/persistentresourceservice/updatepersistentresource/SyncUpdatePersistentResource.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/persistentresourceservice/updatepersistentresource/SyncUpdatePersistentResource.java new file mode 100644 index 000000000000..d1a89b248cb7 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/persistentresourceservice/updatepersistentresource/SyncUpdatePersistentResource.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 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.samples; + +// [START aiplatform_v1beta1_generated_PersistentResourceService_UpdatePersistentResource_sync] +import com.google.cloud.aiplatform.v1beta1.PersistentResource; +import com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceClient; +import com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePersistentResource { + + public static void main(String[] args) throws Exception { + syncUpdatePersistentResource(); + } + + public static void syncUpdatePersistentResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PersistentResourceServiceClient persistentResourceServiceClient = + PersistentResourceServiceClient.create()) { + UpdatePersistentResourceRequest request = + UpdatePersistentResourceRequest.newBuilder() + .setPersistentResource(PersistentResource.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + PersistentResource response = + persistentResourceServiceClient.updatePersistentResourceAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_PersistentResourceService_UpdatePersistentResource_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/persistentresourceservice/updatepersistentresource/SyncUpdatePersistentResourcePersistentresourceFieldmask.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/persistentresourceservice/updatepersistentresource/SyncUpdatePersistentResourcePersistentresourceFieldmask.java new file mode 100644 index 000000000000..9485b6fc0c42 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/persistentresourceservice/updatepersistentresource/SyncUpdatePersistentResourcePersistentresourceFieldmask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 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.samples; + +// [START aiplatform_v1beta1_generated_PersistentResourceService_UpdatePersistentResource_PersistentresourceFieldmask_sync] +import com.google.cloud.aiplatform.v1beta1.PersistentResource; +import com.google.cloud.aiplatform.v1beta1.PersistentResourceServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePersistentResourcePersistentresourceFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdatePersistentResourcePersistentresourceFieldmask(); + } + + public static void syncUpdatePersistentResourcePersistentresourceFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PersistentResourceServiceClient persistentResourceServiceClient = + PersistentResourceServiceClient.create()) { + PersistentResource persistentResource = PersistentResource.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + PersistentResource response = + persistentResourceServiceClient + .updatePersistentResourceAsync(persistentResource, updateMask) + .get(); + } + } +} +// [END aiplatform_v1beta1_generated_PersistentResourceService_UpdatePersistentResource_PersistentresourceFieldmask_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/AsyncCountTokens.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/AsyncCountTokens.java new file mode 100644 index 000000000000..3ba0f05e0bc3 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/AsyncCountTokens.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 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.samples; + +// [START aiplatform_v1beta1_generated_PredictionService_CountTokens_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.CountTokensRequest; +import com.google.cloud.aiplatform.v1beta1.CountTokensResponse; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.PredictionServiceClient; +import com.google.protobuf.Value; +import java.util.ArrayList; + +public class AsyncCountTokens { + + public static void main(String[] args) throws Exception { + asyncCountTokens(); + } + + public static void asyncCountTokens() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + CountTokensRequest request = + CountTokensRequest.newBuilder() + .setEndpoint( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllInstances(new ArrayList()) + .build(); + ApiFuture future = + predictionServiceClient.countTokensCallable().futureCall(request); + // Do something. + CountTokensResponse response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_PredictionService_CountTokens_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokens.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokens.java new file mode 100644 index 000000000000..fc6161d8c4ff --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokens.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 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.samples; + +// [START aiplatform_v1beta1_generated_PredictionService_CountTokens_sync] +import com.google.cloud.aiplatform.v1beta1.CountTokensRequest; +import com.google.cloud.aiplatform.v1beta1.CountTokensResponse; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.PredictionServiceClient; +import com.google.protobuf.Value; +import java.util.ArrayList; + +public class SyncCountTokens { + + public static void main(String[] args) throws Exception { + syncCountTokens(); + } + + public static void syncCountTokens() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + CountTokensRequest request = + CountTokensRequest.newBuilder() + .setEndpoint( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllInstances(new ArrayList()) + .build(); + CountTokensResponse response = predictionServiceClient.countTokens(request); + } + } +} +// [END aiplatform_v1beta1_generated_PredictionService_CountTokens_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokensEndpointnameListvalue.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokensEndpointnameListvalue.java new file mode 100644 index 000000000000..240bb034420a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokensEndpointnameListvalue.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 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.samples; + +// [START aiplatform_v1beta1_generated_PredictionService_CountTokens_EndpointnameListvalue_sync] +import com.google.cloud.aiplatform.v1beta1.CountTokensResponse; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.PredictionServiceClient; +import com.google.protobuf.Value; +import java.util.ArrayList; +import java.util.List; + +public class SyncCountTokensEndpointnameListvalue { + + public static void main(String[] args) throws Exception { + syncCountTokensEndpointnameListvalue(); + } + + public static void syncCountTokensEndpointnameListvalue() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + EndpointName endpoint = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + List instances = new ArrayList<>(); + CountTokensResponse response = predictionServiceClient.countTokens(endpoint, instances); + } + } +} +// [END aiplatform_v1beta1_generated_PredictionService_CountTokens_EndpointnameListvalue_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokensStringListvalue.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokensStringListvalue.java new file mode 100644 index 000000000000..5ce0a734035c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/counttokens/SyncCountTokensStringListvalue.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 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.samples; + +// [START aiplatform_v1beta1_generated_PredictionService_CountTokens_StringListvalue_sync] +import com.google.cloud.aiplatform.v1beta1.CountTokensResponse; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.PredictionServiceClient; +import com.google.protobuf.Value; +import java.util.ArrayList; +import java.util.List; + +public class SyncCountTokensStringListvalue { + + public static void main(String[] args) throws Exception { + syncCountTokensStringListvalue(); + } + + public static void syncCountTokensStringListvalue() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + String endpoint = + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString(); + List instances = new ArrayList<>(); + CountTokensResponse response = predictionServiceClient.countTokens(endpoint, instances); + } + } +} +// [END aiplatform_v1beta1_generated_PredictionService_CountTokens_StringListvalue_sync]