diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 0a6655bc2a63..d9352194ac77 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -38,20 +38,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.1') +implementation platform('com.google.cloud:libraries-bom:26.1.2') implementation 'com.google.cloud:google-cloud-aiplatform' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.2.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.3.0" ``` ## Authentication diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java index 6fe815920b58..bf046a568caa 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java @@ -3573,6 +3573,209 @@ public final UnaryCallable exportFeatureV return stub.exportFeatureValuesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete Feature values from Featurestore. + * + *

The progress of the deletion is tracked by the returned operation. The deleted feature + * values are guaranteed to be invisible to subsequent read operations after the operation is + * marked as successfully done. + * + *

If a delete feature values operation fails, the feature values returned from reads and + * exports may be inconsistent. If consistency is required, the caller must retry the same delete + * request again and wait till the new operation returned is marked as successfully done. + * + *

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 (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   EntityTypeName entityType =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+   *   DeleteFeatureValuesResponse response =
+   *       featurestoreServiceClient.deleteFeatureValuesAsync(entityType).get();
+   * }
+   * }
+ * + * @param entityType Required. The resource name of the EntityType grouping the Features for which + * values are being deleted from. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteFeatureValuesAsync(EntityTypeName entityType) { + DeleteFeatureValuesRequest request = + DeleteFeatureValuesRequest.newBuilder() + .setEntityType(entityType == null ? null : entityType.toString()) + .build(); + return deleteFeatureValuesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete Feature values from Featurestore. + * + *

The progress of the deletion is tracked by the returned operation. The deleted feature + * values are guaranteed to be invisible to subsequent read operations after the operation is + * marked as successfully done. + * + *

If a delete feature values operation fails, the feature values returned from reads and + * exports may be inconsistent. If consistency is required, the caller must retry the same delete + * request again and wait till the new operation returned is marked as successfully done. + * + *

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 (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   String entityType =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *           .toString();
+   *   DeleteFeatureValuesResponse response =
+   *       featurestoreServiceClient.deleteFeatureValuesAsync(entityType).get();
+   * }
+   * }
+ * + * @param entityType Required. The resource name of the EntityType grouping the Features for which + * values are being deleted from. Format: + * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteFeatureValuesAsync(String entityType) { + DeleteFeatureValuesRequest request = + DeleteFeatureValuesRequest.newBuilder().setEntityType(entityType).build(); + return deleteFeatureValuesAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete Feature values from Featurestore. + * + *

The progress of the deletion is tracked by the returned operation. The deleted feature + * values are guaranteed to be invisible to subsequent read operations after the operation is + * marked as successfully done. + * + *

If a delete feature values operation fails, the feature values returned from reads and + * exports may be inconsistent. If consistency is required, the caller must retry the same delete + * request again and wait till the new operation returned is marked as successfully done. + * + *

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 (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   DeleteFeatureValuesRequest request =
+   *       DeleteFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .build();
+   *   DeleteFeatureValuesResponse response =
+   *       featurestoreServiceClient.deleteFeatureValuesAsync(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 + deleteFeatureValuesAsync(DeleteFeatureValuesRequest request) { + return deleteFeatureValuesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete Feature values from Featurestore. + * + *

The progress of the deletion is tracked by the returned operation. The deleted feature + * values are guaranteed to be invisible to subsequent read operations after the operation is + * marked as successfully done. + * + *

If a delete feature values operation fails, the feature values returned from reads and + * exports may be inconsistent. If consistency is required, the caller must retry the same delete + * request again and wait till the new operation returned is marked as successfully done. + * + *

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 (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   DeleteFeatureValuesRequest request =
+   *       DeleteFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       featurestoreServiceClient.deleteFeatureValuesOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DeleteFeatureValuesResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteFeatureValuesRequest, + DeleteFeatureValuesResponse, + DeleteFeatureValuesOperationMetadata> + deleteFeatureValuesOperationCallable() { + return stub.deleteFeatureValuesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete Feature values from Featurestore. + * + *

The progress of the deletion is tracked by the returned operation. The deleted feature + * values are guaranteed to be invisible to subsequent read operations after the operation is + * marked as successfully done. + * + *

If a delete feature values operation fails, the feature values returned from reads and + * exports may be inconsistent. If consistency is required, the caller must retry the same delete + * request again and wait till the new operation returned is marked as successfully done. + * + *

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 (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
+   *   DeleteFeatureValuesRequest request =
+   *       DeleteFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreServiceClient.deleteFeatureValuesCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteFeatureValuesCallable() { + return stub.deleteFeatureValuesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches Features matching a query in a given project. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java index 8d7380ccac44..12be3e6fd6ae 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceSettings.java @@ -283,6 +283,21 @@ public UnaryCallSettings exportFeatureVal .exportFeatureValuesOperationSettings(); } + /** Returns the object with the settings used for calls to deleteFeatureValues. */ + public UnaryCallSettings deleteFeatureValuesSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()).deleteFeatureValuesSettings(); + } + + /** Returns the object with the settings used for calls to deleteFeatureValues. */ + public OperationCallSettings< + DeleteFeatureValuesRequest, + DeleteFeatureValuesResponse, + DeleteFeatureValuesOperationMetadata> + deleteFeatureValuesOperationSettings() { + return ((FeaturestoreServiceStubSettings) getStubSettings()) + .deleteFeatureValuesOperationSettings(); + } + /** Returns the object with the settings used for calls to searchFeatures. */ public PagedCallSettings< SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> @@ -608,6 +623,21 @@ public UnaryCallSettings.Builder deleteFeatureS return getStubSettingsBuilder().exportFeatureValuesOperationSettings(); } + /** Returns the builder for the settings used for calls to deleteFeatureValues. */ + public UnaryCallSettings.Builder + deleteFeatureValuesSettings() { + return getStubSettingsBuilder().deleteFeatureValuesSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFeatureValues. */ + public OperationCallSettings.Builder< + DeleteFeatureValuesRequest, + DeleteFeatureValuesResponse, + DeleteFeatureValuesOperationMetadata> + deleteFeatureValuesOperationSettings() { + return getStubSettingsBuilder().deleteFeatureValuesOperationSettings(); + } + /** Returns the builder for the settings used for calls to searchFeatures. */ public PagedCallSettings.Builder< SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> 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 4db13dbe8410..3e16df96339b 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 @@ -205,6 +205,9 @@ "DeleteFeature": { "methods": ["deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureOperationCallable", "deleteFeatureCallable"] }, + "DeleteFeatureValues": { + "methods": ["deleteFeatureValuesAsync", "deleteFeatureValuesAsync", "deleteFeatureValuesAsync", "deleteFeatureValuesOperationCallable", "deleteFeatureValuesCallable"] + }, "DeleteFeaturestore": { "methods": ["deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreOperationCallable", "deleteFeaturestoreCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java index c9069eae6f83..5d188e5a4c3d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStub.java @@ -40,6 +40,9 @@ import com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; import com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; import com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; import com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1beta1.EntityType; @@ -261,6 +264,19 @@ public UnaryCallable exportFeatureValuesC throw new UnsupportedOperationException("Not implemented: exportFeatureValuesCallable()"); } + public OperationCallable< + DeleteFeatureValuesRequest, + DeleteFeatureValuesResponse, + DeleteFeatureValuesOperationMetadata> + deleteFeatureValuesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteFeatureValuesOperationCallable()"); + } + + public UnaryCallable deleteFeatureValuesCallable() { + throw new UnsupportedOperationException("Not implemented: deleteFeatureValuesCallable()"); + } + public UnaryCallable searchFeaturesPagedCallable() { throw new UnsupportedOperationException("Not implemented: searchFeaturesPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java index 21e66825cdda..561f5ae17e4f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeaturestoreServiceStubSettings.java @@ -62,6 +62,9 @@ import com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; import com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; import com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; import com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1beta1.EntityType; @@ -219,6 +222,13 @@ public class FeaturestoreServiceStubSettings extends StubSettings exportFeatureValuesOperationSettings; + private final UnaryCallSettings + deleteFeatureValuesSettings; + private final OperationCallSettings< + DeleteFeatureValuesRequest, + DeleteFeatureValuesResponse, + DeleteFeatureValuesOperationMetadata> + deleteFeatureValuesOperationSettings; private final PagedCallSettings< SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> searchFeaturesSettings; @@ -690,6 +700,20 @@ public UnaryCallSettings exportFeatureVal return exportFeatureValuesOperationSettings; } + /** Returns the object with the settings used for calls to deleteFeatureValues. */ + public UnaryCallSettings deleteFeatureValuesSettings() { + return deleteFeatureValuesSettings; + } + + /** Returns the object with the settings used for calls to deleteFeatureValues. */ + public OperationCallSettings< + DeleteFeatureValuesRequest, + DeleteFeatureValuesResponse, + DeleteFeatureValuesOperationMetadata> + deleteFeatureValuesOperationSettings() { + return deleteFeatureValuesOperationSettings; + } + /** Returns the object with the settings used for calls to searchFeatures. */ public PagedCallSettings< SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> @@ -836,6 +860,9 @@ protected FeaturestoreServiceStubSettings(Builder settingsBuilder) throws IOExce exportFeatureValuesSettings = settingsBuilder.exportFeatureValuesSettings().build(); exportFeatureValuesOperationSettings = settingsBuilder.exportFeatureValuesOperationSettings().build(); + deleteFeatureValuesSettings = settingsBuilder.deleteFeatureValuesSettings().build(); + deleteFeatureValuesOperationSettings = + settingsBuilder.deleteFeatureValuesOperationSettings().build(); searchFeaturesSettings = settingsBuilder.searchFeaturesSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); @@ -925,6 +952,13 @@ public static class Builder ExportFeatureValuesResponse, ExportFeatureValuesOperationMetadata> exportFeatureValuesOperationSettings; + private final UnaryCallSettings.Builder + deleteFeatureValuesSettings; + private final OperationCallSettings.Builder< + DeleteFeatureValuesRequest, + DeleteFeatureValuesResponse, + DeleteFeatureValuesOperationMetadata> + deleteFeatureValuesOperationSettings; private final PagedCallSettings.Builder< SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> searchFeaturesSettings; @@ -1003,6 +1037,8 @@ protected Builder(ClientContext clientContext) { batchReadFeatureValuesOperationSettings = OperationCallSettings.newBuilder(); exportFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); exportFeatureValuesOperationSettings = OperationCallSettings.newBuilder(); + deleteFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteFeatureValuesOperationSettings = OperationCallSettings.newBuilder(); searchFeaturesSettings = PagedCallSettings.newBuilder(SEARCH_FEATURES_PAGE_STR_FACT); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1031,6 +1067,7 @@ protected Builder(ClientContext clientContext) { importFeatureValuesSettings, batchReadFeatureValuesSettings, exportFeatureValuesSettings, + deleteFeatureValuesSettings, searchFeaturesSettings, listLocationsSettings, getLocationSettings, @@ -1080,6 +1117,9 @@ protected Builder(FeaturestoreServiceStubSettings settings) { exportFeatureValuesSettings = settings.exportFeatureValuesSettings.toBuilder(); exportFeatureValuesOperationSettings = settings.exportFeatureValuesOperationSettings.toBuilder(); + deleteFeatureValuesSettings = settings.deleteFeatureValuesSettings.toBuilder(); + deleteFeatureValuesOperationSettings = + settings.deleteFeatureValuesOperationSettings.toBuilder(); searchFeaturesSettings = settings.searchFeaturesSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -1108,6 +1148,7 @@ protected Builder(FeaturestoreServiceStubSettings settings) { importFeatureValuesSettings, batchReadFeatureValuesSettings, exportFeatureValuesSettings, + deleteFeatureValuesSettings, searchFeaturesSettings, listLocationsSettings, getLocationSettings, @@ -1225,6 +1266,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .deleteFeatureValuesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .searchFeaturesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_12_codes")) @@ -1531,6 +1577,32 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .deleteFeatureValuesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + DeleteFeatureValuesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + DeleteFeatureValuesOperationMetadata.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; } @@ -1765,6 +1837,23 @@ public UnaryCallSettings.Builder deleteFeatureS return exportFeatureValuesOperationSettings; } + /** Returns the builder for the settings used for calls to deleteFeatureValues. */ + public UnaryCallSettings.Builder + deleteFeatureValuesSettings() { + return deleteFeatureValuesSettings; + } + + /** Returns the builder for the settings used for calls to deleteFeatureValues. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteFeatureValuesRequest, + DeleteFeatureValuesResponse, + DeleteFeatureValuesOperationMetadata> + deleteFeatureValuesOperationSettings() { + return deleteFeatureValuesOperationSettings; + } + /** Returns the builder for the settings used for calls to searchFeatures. */ public PagedCallSettings.Builder< SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java index 0a15e6dca952..801dbe5d20ba 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeaturestoreServiceStub.java @@ -44,6 +44,9 @@ import com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; import com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; import com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; import com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1beta1.EntityType; @@ -305,6 +308,17 @@ public class GrpcFeaturestoreServiceStub extends FeaturestoreServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + deleteFeatureValuesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeaturestoreService/DeleteFeatureValues") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteFeatureValuesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor searchFeaturesMethodDescriptor = MethodDescriptor.newBuilder() @@ -428,6 +442,12 @@ public class GrpcFeaturestoreServiceStub extends FeaturestoreServiceStub { ExportFeatureValuesResponse, ExportFeatureValuesOperationMetadata> exportFeatureValuesOperationCallable; + private final UnaryCallable deleteFeatureValuesCallable; + private final OperationCallable< + DeleteFeatureValuesRequest, + DeleteFeatureValuesResponse, + DeleteFeatureValuesOperationMetadata> + deleteFeatureValuesOperationCallable; private final UnaryCallable searchFeaturesCallable; private final UnaryCallable searchFeaturesPagedCallable; @@ -678,6 +698,16 @@ protected GrpcFeaturestoreServiceStub( return params.build(); }) .build(); + GrpcCallSettings deleteFeatureValuesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFeatureValuesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("entity_type", String.valueOf(request.getEntityType())); + return params.build(); + }) + .build(); GrpcCallSettings searchFeaturesTransportSettings = GrpcCallSettings.newBuilder() @@ -891,6 +921,17 @@ protected GrpcFeaturestoreServiceStub( settings.exportFeatureValuesOperationSettings(), clientContext, operationsStub); + this.deleteFeatureValuesCallable = + callableFactory.createUnaryCallable( + deleteFeatureValuesTransportSettings, + settings.deleteFeatureValuesSettings(), + clientContext); + this.deleteFeatureValuesOperationCallable = + callableFactory.createOperationCallable( + deleteFeatureValuesTransportSettings, + settings.deleteFeatureValuesOperationSettings(), + clientContext, + operationsStub); this.searchFeaturesCallable = callableFactory.createUnaryCallable( searchFeaturesTransportSettings, settings.searchFeaturesSettings(), clientContext); @@ -1119,6 +1160,20 @@ public UnaryCallable exportFeatureValuesC return exportFeatureValuesOperationCallable; } + @Override + public UnaryCallable deleteFeatureValuesCallable() { + return deleteFeatureValuesCallable; + } + + @Override + public OperationCallable< + DeleteFeatureValuesRequest, + DeleteFeatureValuesResponse, + DeleteFeatureValuesOperationMetadata> + deleteFeatureValuesOperationCallable() { + return deleteFeatureValuesOperationCallable; + } + @Override public UnaryCallable searchFeaturesCallable() { return searchFeaturesCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClientTest.java index 986555ccbb16..0a6f17777d83 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClientTest.java @@ -2350,6 +2350,94 @@ public void exportFeatureValuesExceptionTest2() throws Exception { } } + @Test + public void deleteFeatureValuesTest() throws Exception { + DeleteFeatureValuesResponse expectedResponse = DeleteFeatureValuesResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFeatureValuesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + EntityTypeName entityType = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + + DeleteFeatureValuesResponse actualResponse = client.deleteFeatureValuesAsync(entityType).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFeatureValuesRequest actualRequest = ((DeleteFeatureValuesRequest) actualRequests.get(0)); + + Assert.assertEquals(entityType.toString(), actualRequest.getEntityType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFeatureValuesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + EntityTypeName entityType = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + client.deleteFeatureValuesAsync(entityType).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 deleteFeatureValuesTest2() throws Exception { + DeleteFeatureValuesResponse expectedResponse = DeleteFeatureValuesResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFeatureValuesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeaturestoreService.addResponse(resultOperation); + + String entityType = "entityType-1482998339"; + + DeleteFeatureValuesResponse actualResponse = client.deleteFeatureValuesAsync(entityType).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFeatureValuesRequest actualRequest = ((DeleteFeatureValuesRequest) actualRequests.get(0)); + + Assert.assertEquals(entityType, actualRequest.getEntityType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFeatureValuesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreService.addException(exception); + + try { + String entityType = "entityType-1482998339"; + client.deleteFeatureValuesAsync(entityType).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 searchFeaturesTest() throws Exception { Feature responsesElement = Feature.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreServiceImpl.java index 9c5b5f132c72..4a231a895b2e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeaturestoreServiceImpl.java @@ -458,6 +458,27 @@ public void exportFeatureValues( } } + @Override + public void deleteFeatureValues( + DeleteFeatureValuesRequest 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 DeleteFeatureValues, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void searchFeatures( SearchFeaturesRequest request, StreamObserver responseObserver) { diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceGrpc.java index 294ca0a6f949..f7d624f3ad59 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceGrpc.java @@ -936,6 +936,55 @@ private FeaturestoreServiceGrpc() {} return getExportFeatureValuesMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest, + com.google.longrunning.Operation> + getDeleteFeatureValuesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeatureValues", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest, + com.google.longrunning.Operation> + getDeleteFeatureValuesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest, + com.google.longrunning.Operation> + getDeleteFeatureValuesMethod; + if ((getDeleteFeatureValuesMethod = FeaturestoreServiceGrpc.getDeleteFeatureValuesMethod) + == null) { + synchronized (FeaturestoreServiceGrpc.class) { + if ((getDeleteFeatureValuesMethod = FeaturestoreServiceGrpc.getDeleteFeatureValuesMethod) + == null) { + FeaturestoreServiceGrpc.getDeleteFeatureValuesMethod = + getDeleteFeatureValuesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteFeatureValues")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreServiceMethodDescriptorSupplier("DeleteFeatureValues")) + .build(); + } + } + } + return getDeleteFeatureValuesMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, com.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse> @@ -1325,6 +1374,27 @@ public void exportFeatureValues( getExportFeatureValuesMethod(), responseObserver); } + /** + * + * + *
+     * Delete Feature values from Featurestore.
+     * The progress of the deletion is tracked by the returned operation. The
+     * deleted feature values are guaranteed to be invisible to subsequent read
+     * operations after the operation is marked as successfully done.
+     * If a delete feature values operation fails, the feature values
+     * returned from reads and exports may be inconsistent. If consistency is
+     * required, the caller must retry the same delete request again and wait till
+     * the new operation returned is marked as successfully done.
+     * 
+ */ + public void deleteFeatureValues( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFeatureValuesMethod(), responseObserver); + } + /** * * @@ -1463,6 +1533,12 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_FEATURE_VALUES))) + .addMethod( + getDeleteFeatureValuesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_FEATURE_VALUES))) .addMethod( getSearchFeaturesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1822,6 +1898,29 @@ public void exportFeatureValues( responseObserver); } + /** + * + * + *
+     * Delete Feature values from Featurestore.
+     * The progress of the deletion is tracked by the returned operation. The
+     * deleted feature values are guaranteed to be invisible to subsequent read
+     * operations after the operation is marked as successfully done.
+     * If a delete feature values operation fails, the feature values
+     * returned from reads and exports may be inconsistent. If consistency is
+     * required, the caller must retry the same delete request again and wait till
+     * the new operation returned is marked as successfully done.
+     * 
+ */ + public void deleteFeatureValues( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeatureValuesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2128,6 +2227,26 @@ public com.google.longrunning.Operation exportFeatureValues( getChannel(), getExportFeatureValuesMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Delete Feature values from Featurestore.
+     * The progress of the deletion is tracked by the returned operation. The
+     * deleted feature values are guaranteed to be invisible to subsequent read
+     * operations after the operation is marked as successfully done.
+     * If a delete feature values operation fails, the feature values
+     * returned from reads and exports may be inconsistent. If consistency is
+     * required, the caller must retry the same delete request again and wait till
+     * the new operation returned is marked as successfully done.
+     * 
+ */ + public com.google.longrunning.Operation deleteFeatureValues( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeatureValuesMethod(), getCallOptions(), request); + } + /** * * @@ -2442,6 +2561,27 @@ protected FeaturestoreServiceFutureStub build( getChannel().newCall(getExportFeatureValuesMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Delete Feature values from Featurestore.
+     * The progress of the deletion is tracked by the returned operation. The
+     * deleted feature values are guaranteed to be invisible to subsequent read
+     * operations after the operation is marked as successfully done.
+     * If a delete feature values operation fails, the feature values
+     * returned from reads and exports may be inconsistent. If consistency is
+     * required, the caller must retry the same delete request again and wait till
+     * the new operation returned is marked as successfully done.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteFeatureValues( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeatureValuesMethod(), getCallOptions()), request); + } + /** * * @@ -2476,7 +2616,8 @@ protected FeaturestoreServiceFutureStub build( private static final int METHODID_IMPORT_FEATURE_VALUES = 16; private static final int METHODID_BATCH_READ_FEATURE_VALUES = 17; private static final int METHODID_EXPORT_FEATURE_VALUES = 18; - private static final int METHODID_SEARCH_FEATURES = 19; + private static final int METHODID_DELETE_FEATURE_VALUES = 19; + private static final int METHODID_SEARCH_FEATURES = 20; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2601,6 +2742,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_FEATURE_VALUES: + serviceImpl.deleteFeatureValues( + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_SEARCH_FEATURES: serviceImpl.searchFeatures( (com.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) request, @@ -2691,6 +2837,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getImportFeatureValuesMethod()) .addMethod(getBatchReadFeatureValuesMethod()) .addMethod(getExportFeatureValuesMethod()) + .addMethod(getDeleteFeatureValuesMethod()) .addMethod(getSearchFeaturesMethod()) .build(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesOperationMetadata.java new file mode 100644 index 000000000000..e054527afcb4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesOperationMetadata.java @@ -0,0 +1,763 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that delete Feature values.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata} + */ +public final class DeleteFeatureValuesOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata) + DeleteFeatureValuesOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteFeatureValuesOperationMetadata.newBuilder() to construct. + private DeleteFeatureValuesOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteFeatureValuesOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteFeatureValuesOperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteFeatureValuesOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder subBuilder = + null; + if (genericMetadata_ != null) { + subBuilder = genericMetadata_.toBuilder(); + } + genericMetadata_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(genericMetadata_); + genericMetadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata.Builder.class); + } + + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for Featurestore delete Features values.
+   * 
+ * + * .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 Featurestore delete Features values.
+   * 
+ * + * .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 Featurestore delete Features values.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return getGenericMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (genericMetadata_ != null) { + output.writeMessage(1, getGenericMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (genericMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata 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.DeleteFeatureValuesOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata 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.DeleteFeatureValuesOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata 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.DeleteFeatureValuesOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata 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.DeleteFeatureValuesOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata + 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.DeleteFeatureValuesOperationMetadata 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.DeleteFeatureValuesOperationMetadata 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.DeleteFeatureValuesOperationMetadata 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 delete Feature values.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata) + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata(this); + if (genericMetadataBuilder_ == null) { + result.genericMetadata_ = genericMetadata_; + } else { + result.genericMetadata_ = genericMetadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * Operation metadata for Featurestore delete Features values.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return genericMetadataBuilder_ != null || genericMetadata_ != null; + } + /** + * + * + *
+     * Operation metadata for Featurestore delete Features values.
+     * 
+ * + * .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 Featurestore delete Features values.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + onChanged(); + } else { + genericMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Operation metadata for Featurestore delete Features values.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + onChanged(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Operation metadata for Featurestore delete Features values.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (genericMetadata_ != null) { + genericMetadata_ = + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.newBuilder( + genericMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + genericMetadata_ = value; + } + onChanged(); + } else { + genericMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Operation metadata for Featurestore delete Features values.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = null; + onChanged(); + } else { + genericMetadata_ = null; + genericMetadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Operation metadata for Featurestore delete Features values.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for Featurestore delete Features values.
+     * 
+ * + * .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 Featurestore delete Features values.
+     * 
+ * + * .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.DeleteFeatureValuesOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeatureValuesOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFeatureValuesOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..772b8b10371f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesOperationMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteFeatureValuesOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for Featurestore delete Features values.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Featurestore delete Features values.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for Featurestore delete Features values.
+   * 
+ * + * .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/DeleteFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesRequest.java new file mode 100644 index 000000000000..145a147f4827 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesRequest.java @@ -0,0 +1,1960 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest} + */ +public final class DeleteFeatureValuesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest) + DeleteFeatureValuesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteFeatureValuesRequest.newBuilder() to construct. + private DeleteFeatureValuesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteFeatureValuesRequest() { + entityType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteFeatureValuesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteFeatureValuesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + entityType_ = s; + break; + } + case 18: + { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.Builder + subBuilder = null; + if (deleteOptionCase_ == 2) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + deleteOption_) + .toBuilder(); + } + deleteOption_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + deleteOption_); + deleteOption_ = subBuilder.buildPartial(); + } + deleteOptionCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.Builder.class); + } + + public interface SelectEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Selectors choosing feature values of which entity id to be
+     * deleted from the EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the entityIdSelector field is set. + */ + boolean hasEntityIdSelector(); + /** + * + * + *
+     * Required. Selectors choosing feature values of which entity id to be
+     * deleted from the EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The entityIdSelector. + */ + com.google.cloud.aiplatform.v1beta1.EntityIdSelector getEntityIdSelector(); + /** + * + * + *
+     * Required. Selectors choosing feature values of which entity id to be
+     * deleted from the EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.EntityIdSelectorOrBuilder getEntityIdSelectorOrBuilder(); + } + /** + * + * + *
+   * Message to select entity.
+   * If an entity id is selected, all the feature values corresponding to the
+   * entity id will be deleted, including the entityId.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity} + */ + public static final class SelectEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + SelectEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use SelectEntity.newBuilder() to construct. + private SelectEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SelectEntity() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SelectEntity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SelectEntity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.EntityIdSelector.Builder subBuilder = null; + if (entityIdSelector_ != null) { + subBuilder = entityIdSelector_.toBuilder(); + } + entityIdSelector_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.EntityIdSelector.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityIdSelector_); + entityIdSelector_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_SelectEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_SelectEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.class, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.Builder + .class); + } + + public static final int ENTITY_ID_SELECTOR_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.EntityIdSelector entityIdSelector_; + /** + * + * + *
+     * Required. Selectors choosing feature values of which entity id to be
+     * deleted from the EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the entityIdSelector field is set. + */ + @java.lang.Override + public boolean hasEntityIdSelector() { + return entityIdSelector_ != null; + } + /** + * + * + *
+     * Required. Selectors choosing feature values of which entity id to be
+     * deleted from the EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The entityIdSelector. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityIdSelector getEntityIdSelector() { + return entityIdSelector_ == null + ? com.google.cloud.aiplatform.v1beta1.EntityIdSelector.getDefaultInstance() + : entityIdSelector_; + } + /** + * + * + *
+     * Required. Selectors choosing feature values of which entity id to be
+     * deleted from the EntityType.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityIdSelectorOrBuilder + getEntityIdSelectorOrBuilder() { + return getEntityIdSelector(); + } + + 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 (entityIdSelector_ != null) { + output.writeMessage(1, getEntityIdSelector()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entityIdSelector_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntityIdSelector()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity other = + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) obj; + + if (hasEntityIdSelector() != other.hasEntityIdSelector()) return false; + if (hasEntityIdSelector()) { + if (!getEntityIdSelector().equals(other.getEntityIdSelector())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntityIdSelector()) { + hash = (37 * hash) + ENTITY_ID_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getEntityIdSelector().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + 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.DeleteFeatureValuesRequest.SelectEntity + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + 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.DeleteFeatureValuesRequest.SelectEntity + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + 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.DeleteFeatureValuesRequest.SelectEntity + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + 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.DeleteFeatureValuesRequest.SelectEntity + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + 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.DeleteFeatureValuesRequest.SelectEntity + 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.DeleteFeatureValuesRequest.SelectEntity + 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.DeleteFeatureValuesRequest.SelectEntity 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; + } + /** + * + * + *
+     * Message to select entity.
+     * If an entity id is selected, all the feature values corresponding to the
+     * entity id will be deleted, including the entityId.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_SelectEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_SelectEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.class, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (entityIdSelectorBuilder_ == null) { + entityIdSelector_ = null; + } else { + entityIdSelector_ = null; + entityIdSelectorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_SelectEntity_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity build() { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity result = + new com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity(this); + if (entityIdSelectorBuilder_ == null) { + result.entityIdSelector_ = entityIdSelector_; + } else { + result.entityIdSelector_ = entityIdSelectorBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + .getDefaultInstance()) return this; + if (other.hasEntityIdSelector()) { + mergeEntityIdSelector(other.getEntityIdSelector()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.aiplatform.v1beta1.EntityIdSelector entityIdSelector_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EntityIdSelector, + com.google.cloud.aiplatform.v1beta1.EntityIdSelector.Builder, + com.google.cloud.aiplatform.v1beta1.EntityIdSelectorOrBuilder> + entityIdSelectorBuilder_; + /** + * + * + *
+       * Required. Selectors choosing feature values of which entity id to be
+       * deleted from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the entityIdSelector field is set. + */ + public boolean hasEntityIdSelector() { + return entityIdSelectorBuilder_ != null || entityIdSelector_ != null; + } + /** + * + * + *
+       * Required. Selectors choosing feature values of which entity id to be
+       * deleted from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The entityIdSelector. + */ + public com.google.cloud.aiplatform.v1beta1.EntityIdSelector getEntityIdSelector() { + if (entityIdSelectorBuilder_ == null) { + return entityIdSelector_ == null + ? com.google.cloud.aiplatform.v1beta1.EntityIdSelector.getDefaultInstance() + : entityIdSelector_; + } else { + return entityIdSelectorBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. Selectors choosing feature values of which entity id to be
+       * deleted from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEntityIdSelector( + com.google.cloud.aiplatform.v1beta1.EntityIdSelector value) { + if (entityIdSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityIdSelector_ = value; + onChanged(); + } else { + entityIdSelectorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Required. Selectors choosing feature values of which entity id to be
+       * deleted from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEntityIdSelector( + com.google.cloud.aiplatform.v1beta1.EntityIdSelector.Builder builderForValue) { + if (entityIdSelectorBuilder_ == null) { + entityIdSelector_ = builderForValue.build(); + onChanged(); + } else { + entityIdSelectorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Required. Selectors choosing feature values of which entity id to be
+       * deleted from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEntityIdSelector( + com.google.cloud.aiplatform.v1beta1.EntityIdSelector value) { + if (entityIdSelectorBuilder_ == null) { + if (entityIdSelector_ != null) { + entityIdSelector_ = + com.google.cloud.aiplatform.v1beta1.EntityIdSelector.newBuilder(entityIdSelector_) + .mergeFrom(value) + .buildPartial(); + } else { + entityIdSelector_ = value; + } + onChanged(); + } else { + entityIdSelectorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Required. Selectors choosing feature values of which entity id to be
+       * deleted from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEntityIdSelector() { + if (entityIdSelectorBuilder_ == null) { + entityIdSelector_ = null; + onChanged(); + } else { + entityIdSelector_ = null; + entityIdSelectorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Required. Selectors choosing feature values of which entity id to be
+       * deleted from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EntityIdSelector.Builder + getEntityIdSelectorBuilder() { + + onChanged(); + return getEntityIdSelectorFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. Selectors choosing feature values of which entity id to be
+       * deleted from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EntityIdSelectorOrBuilder + getEntityIdSelectorOrBuilder() { + if (entityIdSelectorBuilder_ != null) { + return entityIdSelectorBuilder_.getMessageOrBuilder(); + } else { + return entityIdSelector_ == null + ? com.google.cloud.aiplatform.v1beta1.EntityIdSelector.getDefaultInstance() + : entityIdSelector_; + } + } + /** + * + * + *
+       * Required. Selectors choosing feature values of which entity id to be
+       * deleted from the EntityType.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EntityIdSelector entity_id_selector = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EntityIdSelector, + com.google.cloud.aiplatform.v1beta1.EntityIdSelector.Builder, + com.google.cloud.aiplatform.v1beta1.EntityIdSelectorOrBuilder> + getEntityIdSelectorFieldBuilder() { + if (entityIdSelectorBuilder_ == null) { + entityIdSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EntityIdSelector, + com.google.cloud.aiplatform.v1beta1.EntityIdSelector.Builder, + com.google.cloud.aiplatform.v1beta1.EntityIdSelectorOrBuilder>( + getEntityIdSelector(), getParentForChildren(), isClean()); + entityIdSelector_ = null; + } + return entityIdSelectorBuilder_; + } + + @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.DeleteFeatureValuesRequest.SelectEntity) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + private static final com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SelectEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SelectEntity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int deleteOptionCase_ = 0; + private java.lang.Object deleteOption_; + + public enum DeleteOptionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SELECT_ENTITY(2), + DELETEOPTION_NOT_SET(0); + private final int value; + + private DeleteOptionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DeleteOptionCase valueOf(int value) { + return forNumber(value); + } + + public static DeleteOptionCase forNumber(int value) { + switch (value) { + case 2: + return SELECT_ENTITY; + case 0: + return DELETEOPTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DeleteOptionCase getDeleteOptionCase() { + return DeleteOptionCase.forNumber(deleteOptionCase_); + } + + public static final int SELECT_ENTITY_FIELD_NUMBER = 2; + /** + * + * + *
+   * Select feature values to be deleted by specifying entities.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + * + * @return Whether the selectEntity field is set. + */ + @java.lang.Override + public boolean hasSelectEntity() { + return deleteOptionCase_ == 2; + } + /** + * + * + *
+   * Select feature values to be deleted by specifying entities.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + * + * @return The selectEntity. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + getSelectEntity() { + if (deleteOptionCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + deleteOption_; + } + return com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + .getDefaultInstance(); + } + /** + * + * + *
+   * Select feature values to be deleted by specifying entities.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntityOrBuilder + getSelectEntityOrBuilder() { + if (deleteOptionCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + deleteOption_; + } + return com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + .getDefaultInstance(); + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object entityType_; + /** + * + * + *
+   * Required. The resource name of the EntityType grouping the Features for
+   * which values are being deleted from. Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + @java.lang.Override + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + 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(); + entityType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the EntityType grouping the Features for
+   * which values are being deleted from. Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = 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(entityType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityType_); + } + if (deleteOptionCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + deleteOption_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityType_); + } + if (deleteOptionCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + deleteOption_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest) obj; + + if (!getEntityType().equals(other.getEntityType())) return false; + if (!getDeleteOptionCase().equals(other.getDeleteOptionCase())) return false; + switch (deleteOptionCase_) { + case 2: + if (!getSelectEntity().equals(other.getSelectEntity())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getEntityType().hashCode(); + switch (deleteOptionCase_) { + case 2: + hash = (37 * hash) + SELECT_ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getSelectEntity().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest 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.DeleteFeatureValuesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest 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.DeleteFeatureValuesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest 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.DeleteFeatureValuesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest 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.DeleteFeatureValuesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest 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.DeleteFeatureValuesRequest 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.DeleteFeatureValuesRequest 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.DeleteFeatureValuesRequest 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
+   * [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest) + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + entityType_ = ""; + + deleteOptionCase_ = 0; + deleteOption_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest(this); + if (deleteOptionCase_ == 2) { + if (selectEntityBuilder_ == null) { + result.deleteOption_ = deleteOption_; + } else { + result.deleteOption_ = selectEntityBuilder_.build(); + } + } + result.entityType_ = entityType_; + result.deleteOptionCase_ = deleteOptionCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.getDefaultInstance()) + return this; + if (!other.getEntityType().isEmpty()) { + entityType_ = other.entityType_; + onChanged(); + } + switch (other.getDeleteOptionCase()) { + case SELECT_ENTITY: + { + mergeSelectEntity(other.getSelectEntity()); + break; + } + case DELETEOPTION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int deleteOptionCase_ = 0; + private java.lang.Object deleteOption_; + + public DeleteOptionCase getDeleteOptionCase() { + return DeleteOptionCase.forNumber(deleteOptionCase_); + } + + public Builder clearDeleteOption() { + deleteOptionCase_ = 0; + deleteOption_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.Builder, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntityOrBuilder> + selectEntityBuilder_; + /** + * + * + *
+     * Select feature values to be deleted by specifying entities.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + * + * @return Whether the selectEntity field is set. + */ + @java.lang.Override + public boolean hasSelectEntity() { + return deleteOptionCase_ == 2; + } + /** + * + * + *
+     * Select feature values to be deleted by specifying entities.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + * + * @return The selectEntity. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + getSelectEntity() { + if (selectEntityBuilder_ == null) { + if (deleteOptionCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + deleteOption_; + } + return com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + .getDefaultInstance(); + } else { + if (deleteOptionCase_ == 2) { + return selectEntityBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Select feature values to be deleted by specifying entities.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + */ + public Builder setSelectEntity( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity value) { + if (selectEntityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteOption_ = value; + onChanged(); + } else { + selectEntityBuilder_.setMessage(value); + } + deleteOptionCase_ = 2; + return this; + } + /** + * + * + *
+     * Select feature values to be deleted by specifying entities.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + */ + public Builder setSelectEntity( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.Builder + builderForValue) { + if (selectEntityBuilder_ == null) { + deleteOption_ = builderForValue.build(); + onChanged(); + } else { + selectEntityBuilder_.setMessage(builderForValue.build()); + } + deleteOptionCase_ = 2; + return this; + } + /** + * + * + *
+     * Select feature values to be deleted by specifying entities.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + */ + public Builder mergeSelectEntity( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity value) { + if (selectEntityBuilder_ == null) { + if (deleteOptionCase_ == 2 + && deleteOption_ + != com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + .getDefaultInstance()) { + deleteOption_ = + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + deleteOption_) + .mergeFrom(value) + .buildPartial(); + } else { + deleteOption_ = value; + } + onChanged(); + } else { + if (deleteOptionCase_ == 2) { + selectEntityBuilder_.mergeFrom(value); + } else { + selectEntityBuilder_.setMessage(value); + } + } + deleteOptionCase_ = 2; + return this; + } + /** + * + * + *
+     * Select feature values to be deleted by specifying entities.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + */ + public Builder clearSelectEntity() { + if (selectEntityBuilder_ == null) { + if (deleteOptionCase_ == 2) { + deleteOptionCase_ = 0; + deleteOption_ = null; + onChanged(); + } + } else { + if (deleteOptionCase_ == 2) { + deleteOptionCase_ = 0; + deleteOption_ = null; + } + selectEntityBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Select feature values to be deleted by specifying entities.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.Builder + getSelectEntityBuilder() { + return getSelectEntityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Select feature values to be deleted by specifying entities.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntityOrBuilder + getSelectEntityOrBuilder() { + if ((deleteOptionCase_ == 2) && (selectEntityBuilder_ != null)) { + return selectEntityBuilder_.getMessageOrBuilder(); + } else { + if (deleteOptionCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + deleteOption_; + } + return com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Select feature values to be deleted by specifying entities.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.Builder, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntityOrBuilder> + getSelectEntityFieldBuilder() { + if (selectEntityBuilder_ == null) { + if (!(deleteOptionCase_ == 2)) { + deleteOption_ = + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity + .getDefaultInstance(); + } + selectEntityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.Builder, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest + .SelectEntityOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity) + deleteOption_, + getParentForChildren(), + isClean()); + deleteOption_ = null; + } + deleteOptionCase_ = 2; + onChanged(); + ; + return selectEntityBuilder_; + } + + private java.lang.Object entityType_ = ""; + /** + * + * + *
+     * Required. The resource name of the EntityType grouping the Features for
+     * which values are being deleted from. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the EntityType grouping the Features for
+     * which values are being deleted from. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the EntityType grouping the Features for
+     * which values are being deleted from. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the EntityType grouping the Features for
+     * which values are being deleted from. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEntityType() { + + entityType_ = getDefaultInstance().getEntityType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the EntityType grouping the Features for
+     * which values are being deleted from. Format:
+     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+     * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityType_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeatureValuesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFeatureValuesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesRequestOrBuilder.java new file mode 100644 index 000000000000..52e7db27d58b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteFeatureValuesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Select feature values to be deleted by specifying entities.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + * + * @return Whether the selectEntity field is set. + */ + boolean hasSelectEntity(); + /** + * + * + *
+   * Select feature values to be deleted by specifying entities.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + * + * @return The selectEntity. + */ + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity getSelectEntity(); + /** + * + * + *
+   * Select feature values to be deleted by specifying entities.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity select_entity = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntityOrBuilder + getSelectEntityOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the EntityType grouping the Features for
+   * which values are being deleted from. Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The entityType. + */ + java.lang.String getEntityType(); + /** + * + * + *
+   * Required. The resource name of the EntityType grouping the Features for
+   * which values are being deleted from. Format:
+   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + com.google.protobuf.ByteString getEntityTypeBytes(); + + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.DeleteOptionCase + getDeleteOptionCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesResponse.java new file mode 100644 index 000000000000..f988263af4ee --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesResponse.java @@ -0,0 +1,468 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse} + */ +public final class DeleteFeatureValuesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse) + DeleteFeatureValuesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteFeatureValuesResponse.newBuilder() to construct. + private DeleteFeatureValuesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteFeatureValuesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteFeatureValuesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteFeatureValuesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse other = + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse 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.DeleteFeatureValuesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse 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.DeleteFeatureValuesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse 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.DeleteFeatureValuesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse 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.DeleteFeatureValuesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse 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.DeleteFeatureValuesResponse 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.DeleteFeatureValuesResponse 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.DeleteFeatureValuesResponse 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
+   * [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse) + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse build() { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse result = + new com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.DeleteFeatureValuesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse) + private static final com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeatureValuesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFeatureValuesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesResponseOrBuilder.java new file mode 100644 index 000000000000..d4bf23690f5d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteFeatureValuesResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteFeatureValuesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityIdSelector.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityIdSelector.java new file mode 100644 index 000000000000..f5e290117635 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityIdSelector.java @@ -0,0 +1,1028 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Selector for entityId. Getting ids from the given source.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EntityIdSelector} + */ +public final class EntityIdSelector extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EntityIdSelector) + EntityIdSelectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntityIdSelector.newBuilder() to construct. + private EntityIdSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntityIdSelector() { + entityIdField_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntityIdSelector(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EntityIdSelector( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: + { + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder subBuilder = null; + if (entityIdsSourceCase_ == 3) { + subBuilder = + ((com.google.cloud.aiplatform.v1beta1.CsvSource) entityIdsSource_).toBuilder(); + } + entityIdsSource_ = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.CsvSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CsvSource) entityIdsSource_); + entityIdsSource_ = subBuilder.buildPartial(); + } + entityIdsSourceCase_ = 3; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + entityIdField_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EntityIdSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EntityIdSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EntityIdSelector.class, + com.google.cloud.aiplatform.v1beta1.EntityIdSelector.Builder.class); + } + + private int entityIdsSourceCase_ = 0; + private java.lang.Object entityIdsSource_; + + public enum EntityIdsSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CSV_SOURCE(3), + ENTITYIDSSOURCE_NOT_SET(0); + private final int value; + + private EntityIdsSourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EntityIdsSourceCase valueOf(int value) { + return forNumber(value); + } + + public static EntityIdsSourceCase forNumber(int value) { + switch (value) { + case 3: + return CSV_SOURCE; + case 0: + return ENTITYIDSSOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EntityIdsSourceCase getEntityIdsSourceCase() { + return EntityIdsSourceCase.forNumber(entityIdsSourceCase_); + } + + public static final int CSV_SOURCE_FIELD_NUMBER = 3; + /** + * + * + *
+   * Source of Csv
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + * + * @return Whether the csvSource field is set. + */ + @java.lang.Override + public boolean hasCsvSource() { + return entityIdsSourceCase_ == 3; + } + /** + * + * + *
+   * Source of Csv
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + * + * @return The csvSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSource getCsvSource() { + if (entityIdsSourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.CsvSource) entityIdsSource_; + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + /** + * + * + *
+   * Source of Csv
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvSourceOrBuilder() { + if (entityIdsSourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.CsvSource) entityIdsSource_; + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + + public static final int ENTITY_ID_FIELD_FIELD_NUMBER = 5; + private volatile java.lang.Object entityIdField_; + /** + * + * + *
+   * Source column that holds entity IDs. If not provided, entity IDs are
+   * extracted from the column named `entity_id`.
+   * 
+ * + * string entity_id_field = 5; + * + * @return The entityIdField. + */ + @java.lang.Override + public java.lang.String getEntityIdField() { + java.lang.Object ref = entityIdField_; + 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(); + entityIdField_ = s; + return s; + } + } + /** + * + * + *
+   * Source column that holds entity IDs. If not provided, entity IDs are
+   * extracted from the column named `entity_id`.
+   * 
+ * + * string entity_id_field = 5; + * + * @return The bytes for entityIdField. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityIdFieldBytes() { + java.lang.Object ref = entityIdField_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityIdField_ = 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 (entityIdsSourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.aiplatform.v1beta1.CsvSource) entityIdsSource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityIdField_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, entityIdField_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entityIdsSourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.aiplatform.v1beta1.CsvSource) entityIdsSource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityIdField_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, entityIdField_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.EntityIdSelector)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EntityIdSelector other = + (com.google.cloud.aiplatform.v1beta1.EntityIdSelector) obj; + + if (!getEntityIdField().equals(other.getEntityIdField())) return false; + if (!getEntityIdsSourceCase().equals(other.getEntityIdsSourceCase())) return false; + switch (entityIdsSourceCase_) { + case 3: + if (!getCsvSource().equals(other.getCsvSource())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENTITY_ID_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getEntityIdField().hashCode(); + switch (entityIdsSourceCase_) { + case 3: + hash = (37 * hash) + CSV_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getCsvSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EntityIdSelector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EntityIdSelector 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.EntityIdSelector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EntityIdSelector 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.EntityIdSelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EntityIdSelector 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.EntityIdSelector parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EntityIdSelector 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.EntityIdSelector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EntityIdSelector 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.EntityIdSelector 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.EntityIdSelector 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.EntityIdSelector 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; + } + /** + * + * + *
+   * Selector for entityId. Getting ids from the given source.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EntityIdSelector} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EntityIdSelector) + com.google.cloud.aiplatform.v1beta1.EntityIdSelectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EntityIdSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EntityIdSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EntityIdSelector.class, + com.google.cloud.aiplatform.v1beta1.EntityIdSelector.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.EntityIdSelector.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + entityIdField_ = ""; + + entityIdsSourceCase_ = 0; + entityIdsSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeaturestoreServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EntityIdSelector_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityIdSelector getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EntityIdSelector.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityIdSelector build() { + com.google.cloud.aiplatform.v1beta1.EntityIdSelector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityIdSelector buildPartial() { + com.google.cloud.aiplatform.v1beta1.EntityIdSelector result = + new com.google.cloud.aiplatform.v1beta1.EntityIdSelector(this); + if (entityIdsSourceCase_ == 3) { + if (csvSourceBuilder_ == null) { + result.entityIdsSource_ = entityIdsSource_; + } else { + result.entityIdsSource_ = csvSourceBuilder_.build(); + } + } + result.entityIdField_ = entityIdField_; + result.entityIdsSourceCase_ = entityIdsSourceCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.EntityIdSelector) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.EntityIdSelector) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EntityIdSelector other) { + if (other == com.google.cloud.aiplatform.v1beta1.EntityIdSelector.getDefaultInstance()) + return this; + if (!other.getEntityIdField().isEmpty()) { + entityIdField_ = other.entityIdField_; + onChanged(); + } + switch (other.getEntityIdsSourceCase()) { + case CSV_SOURCE: + { + mergeCsvSource(other.getCsvSource()); + break; + } + case ENTITYIDSSOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.EntityIdSelector parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.EntityIdSelector) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int entityIdsSourceCase_ = 0; + private java.lang.Object entityIdsSource_; + + public EntityIdsSourceCase getEntityIdsSourceCase() { + return EntityIdsSourceCase.forNumber(entityIdsSourceCase_); + } + + public Builder clearEntityIdsSource() { + entityIdsSourceCase_ = 0; + entityIdsSource_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CsvSource, + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder, + com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder> + csvSourceBuilder_; + /** + * + * + *
+     * Source of Csv
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + * + * @return Whether the csvSource field is set. + */ + @java.lang.Override + public boolean hasCsvSource() { + return entityIdsSourceCase_ == 3; + } + /** + * + * + *
+     * Source of Csv
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + * + * @return The csvSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSource getCsvSource() { + if (csvSourceBuilder_ == null) { + if (entityIdsSourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.CsvSource) entityIdsSource_; + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } else { + if (entityIdsSourceCase_ == 3) { + return csvSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Source of Csv
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + */ + public Builder setCsvSource(com.google.cloud.aiplatform.v1beta1.CsvSource value) { + if (csvSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityIdsSource_ = value; + onChanged(); + } else { + csvSourceBuilder_.setMessage(value); + } + entityIdsSourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Source of Csv
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + */ + public Builder setCsvSource( + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder builderForValue) { + if (csvSourceBuilder_ == null) { + entityIdsSource_ = builderForValue.build(); + onChanged(); + } else { + csvSourceBuilder_.setMessage(builderForValue.build()); + } + entityIdsSourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Source of Csv
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + */ + public Builder mergeCsvSource(com.google.cloud.aiplatform.v1beta1.CsvSource value) { + if (csvSourceBuilder_ == null) { + if (entityIdsSourceCase_ == 3 + && entityIdsSource_ + != com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance()) { + entityIdsSource_ = + com.google.cloud.aiplatform.v1beta1.CsvSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.CsvSource) entityIdsSource_) + .mergeFrom(value) + .buildPartial(); + } else { + entityIdsSource_ = value; + } + onChanged(); + } else { + if (entityIdsSourceCase_ == 3) { + csvSourceBuilder_.mergeFrom(value); + } else { + csvSourceBuilder_.setMessage(value); + } + } + entityIdsSourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Source of Csv
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + */ + public Builder clearCsvSource() { + if (csvSourceBuilder_ == null) { + if (entityIdsSourceCase_ == 3) { + entityIdsSourceCase_ = 0; + entityIdsSource_ = null; + onChanged(); + } + } else { + if (entityIdsSourceCase_ == 3) { + entityIdsSourceCase_ = 0; + entityIdsSource_ = null; + } + csvSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Source of Csv
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + */ + public com.google.cloud.aiplatform.v1beta1.CsvSource.Builder getCsvSourceBuilder() { + return getCsvSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Source of Csv
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvSourceOrBuilder() { + if ((entityIdsSourceCase_ == 3) && (csvSourceBuilder_ != null)) { + return csvSourceBuilder_.getMessageOrBuilder(); + } else { + if (entityIdsSourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.CsvSource) entityIdsSource_; + } + return com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Source of Csv
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CsvSource, + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder, + com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder> + getCsvSourceFieldBuilder() { + if (csvSourceBuilder_ == null) { + if (!(entityIdsSourceCase_ == 3)) { + entityIdsSource_ = com.google.cloud.aiplatform.v1beta1.CsvSource.getDefaultInstance(); + } + csvSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CsvSource, + com.google.cloud.aiplatform.v1beta1.CsvSource.Builder, + com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.CsvSource) entityIdsSource_, + getParentForChildren(), + isClean()); + entityIdsSource_ = null; + } + entityIdsSourceCase_ = 3; + onChanged(); + ; + return csvSourceBuilder_; + } + + private java.lang.Object entityIdField_ = ""; + /** + * + * + *
+     * Source column that holds entity IDs. If not provided, entity IDs are
+     * extracted from the column named `entity_id`.
+     * 
+ * + * string entity_id_field = 5; + * + * @return The entityIdField. + */ + public java.lang.String getEntityIdField() { + java.lang.Object ref = entityIdField_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityIdField_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Source column that holds entity IDs. If not provided, entity IDs are
+     * extracted from the column named `entity_id`.
+     * 
+ * + * string entity_id_field = 5; + * + * @return The bytes for entityIdField. + */ + public com.google.protobuf.ByteString getEntityIdFieldBytes() { + java.lang.Object ref = entityIdField_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityIdField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Source column that holds entity IDs. If not provided, entity IDs are
+     * extracted from the column named `entity_id`.
+     * 
+ * + * string entity_id_field = 5; + * + * @param value The entityIdField to set. + * @return This builder for chaining. + */ + public Builder setEntityIdField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityIdField_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Source column that holds entity IDs. If not provided, entity IDs are
+     * extracted from the column named `entity_id`.
+     * 
+ * + * string entity_id_field = 5; + * + * @return This builder for chaining. + */ + public Builder clearEntityIdField() { + + entityIdField_ = getDefaultInstance().getEntityIdField(); + onChanged(); + return this; + } + /** + * + * + *
+     * Source column that holds entity IDs. If not provided, entity IDs are
+     * extracted from the column named `entity_id`.
+     * 
+ * + * string entity_id_field = 5; + * + * @param value The bytes for entityIdField to set. + * @return This builder for chaining. + */ + public Builder setEntityIdFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityIdField_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EntityIdSelector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EntityIdSelector) + private static final com.google.cloud.aiplatform.v1beta1.EntityIdSelector DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EntityIdSelector(); + } + + public static com.google.cloud.aiplatform.v1beta1.EntityIdSelector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityIdSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EntityIdSelector(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EntityIdSelector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityIdSelectorOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityIdSelectorOrBuilder.java new file mode 100644 index 000000000000..c45b20c1ce32 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityIdSelectorOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface EntityIdSelectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EntityIdSelector) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Source of Csv
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + * + * @return Whether the csvSource field is set. + */ + boolean hasCsvSource(); + /** + * + * + *
+   * Source of Csv
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + * + * @return The csvSource. + */ + com.google.cloud.aiplatform.v1beta1.CsvSource getCsvSource(); + /** + * + * + *
+   * Source of Csv
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CsvSource csv_source = 3; + */ + com.google.cloud.aiplatform.v1beta1.CsvSourceOrBuilder getCsvSourceOrBuilder(); + + /** + * + * + *
+   * Source column that holds entity IDs. If not provided, entity IDs are
+   * extracted from the column named `entity_id`.
+   * 
+ * + * string entity_id_field = 5; + * + * @return The entityIdField. + */ + java.lang.String getEntityIdField(); + /** + * + * + *
+   * Source column that holds entity IDs. If not provided, entity IDs are
+   * extracted from the column named `entity_id`.
+   * 
+ * + * string entity_id_field = 5; + * + * @return The bytes for entityIdField. + */ + com.google.protobuf.ByteString getEntityIdFieldBytes(); + + public com.google.cloud.aiplatform.v1beta1.EntityIdSelector.EntityIdsSourceCase + getEntityIdsSourceCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java index ccf7024019ca..d64a86f6b45e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceProto.java @@ -187,6 +187,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_BatchReadFeatureValuesOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesOperationMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -199,6 +203,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_SelectEntity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_SelectEntity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EntityIdSelector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EntityIdSelector_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -389,16 +409,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "adata\"~\n\'BatchReadFeatureValuesOperation" + "Metadata\022S\n\020generic_metadata\030\001 \001(\01329.goo" + "gle.cloud.aiplatform.v1beta1.GenericOper" - + "ationMetadata\"x\n!CreateEntityTypeOperati" - + "onMetadata\022S\n\020generic_metadata\030\001 \001(\01329.g" - + "oogle.cloud.aiplatform.v1beta1.GenericOp" - + "erationMetadata\"u\n\036CreateFeatureOperatio" - + "nMetadata\022S\n\020generic_metadata\030\001 \001(\01329.go" - + "ogle.cloud.aiplatform.v1beta1.GenericOpe" - + "rationMetadata\"{\n$BatchCreateFeaturesOpe" + + "ationMetadata\"{\n$DeleteFeatureValuesOper" + + "ationMetadata\022S\n\020generic_metadata\030\001 \001(\0132" + + "9.google.cloud.aiplatform.v1beta1.Generi" + + "cOperationMetadata\"x\n!CreateEntityTypeOp" + + "erationMetadata\022S\n\020generic_metadata\030\001 \001(" + + "\01329.google.cloud.aiplatform.v1beta1.Gene" + + "ricOperationMetadata\"u\n\036CreateFeatureOpe" + "rationMetadata\022S\n\020generic_metadata\030\001 \001(\013" + "29.google.cloud.aiplatform.v1beta1.Gener" - + "icOperationMetadata2\260)\n\023FeaturestoreServ" + + "icOperationMetadata\"{\n$BatchCreateFeatur" + + "esOperationMetadata\022S\n\020generic_metadata\030" + + "\001 \001(\01329.google.cloud.aiplatform.v1beta1." + + "GenericOperationMetadata\"\266\002\n\032DeleteFeatu" + + "reValuesRequest\022a\n\rselect_entity\030\002 \001(\0132H" + + ".google.cloud.aiplatform.v1beta1.DeleteF" + + "eatureValuesRequest.SelectEntityH\000\022A\n\013en" + + "tity_type\030\001 \001(\tB,\340A\002\372A&\n$aiplatform.goog" + + "leapis.com/EntityType\032b\n\014SelectEntity\022R\n" + + "\022entity_id_selector\030\001 \001(\01321.google.cloud" + + ".aiplatform.v1beta1.EntityIdSelectorB\003\340A" + + "\002B\016\n\014DeleteOption\"\035\n\033DeleteFeatureValues" + + "Response\"\200\001\n\020EntityIdSelector\022@\n\ncsv_sou" + + "rce\030\003 \001(\0132*.google.cloud.aiplatform.v1be" + + "ta1.CsvSourceH\000\022\027\n\017entity_id_field\030\005 \001(\t" + + "B\021\n\017EntityIdsSource2\345+\n\023FeaturestoreServ" + "ice\022\260\002\n\022CreateFeaturestore\022:.google.clou" + "d.aiplatform.v1beta1.CreateFeaturestoreR" + "equest\032\035.google.longrunning.Operation\"\276\001" @@ -522,22 +557,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ojects/*/locations/*/featurestores/*/ent" + "ityTypes/*}:exportFeatureValues:\001*\332A\013ent" + "ity_type\312AC\n\033ExportFeatureValuesResponse" - + "\022$ExportFeatureValuesOperationMetadata\022\356" - + "\001\n\016SearchFeatures\0226.google.cloud.aiplatf" - + "orm.v1beta1.SearchFeaturesRequest\0327.goog" - + "le.cloud.aiplatform.v1beta1.SearchFeatur" - + "esResponse\"k\202\323\344\223\002I\022G/v1beta1/{location=p" - + "rojects/*/locations/*}/featurestores:sea" - + "rchFeatures\332A\010location\332A\016location,query\032" - + "M\312A\031aiplatform.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\365" - + "\001\n#com.google.cloud.aiplatform.v1beta1B\030" - + "FeaturestoreServiceProtoP\001ZIgoogle.golan" - + "g.org/genproto/googleapis/cloud/aiplatfo" - + "rm/v1beta1;aiplatform\252\002\037Google.Cloud.AIP" - + "latform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfor" - + "m\\V1beta1\352\002\"Google::Cloud::AIPlatform::V" - + "1beta1b\006proto3" + + "\022$ExportFeatureValuesOperationMetadata\022\262" + + "\002\n\023DeleteFeatureValues\022;.google.cloud.ai" + + "platform.v1beta1.DeleteFeatureValuesRequ" + + "est\032\035.google.longrunning.Operation\"\276\001\202\323\344" + + "\223\002d\"_/v1beta1/{entity_type=projects/*/lo" + + "cations/*/featurestores/*/entityTypes/*}" + + ":deleteFeatureValues:\001*\332A\013entity_type\312AC" + + "\n\033DeleteFeatureValuesResponse\022$DeleteFea" + + "tureValuesOperationMetadata\022\356\001\n\016SearchFe" + + "atures\0226.google.cloud.aiplatform.v1beta1" + + ".SearchFeaturesRequest\0327.google.cloud.ai" + + "platform.v1beta1.SearchFeaturesResponse\"" + + "k\202\323\344\223\002I\022G/v1beta1/{location=projects/*/l" + + "ocations/*}/featurestores:searchFeatures" + + "\332A\010location\332A\016location,query\032M\312A\031aiplatf" + + "orm.googleapis.com\322A.https://www.googlea" + + "pis.com/auth/cloud-platformB\365\001\n#com.goog" + + "le.cloud.aiplatform.v1beta1B\030Featurestor" + + "eServiceProtoP\001ZIgoogle.golang.org/genpr" + + "oto/googleapis/cloud/aiplatform/v1beta1;" + + "aiplatform\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( @@ -916,8 +959,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GenericMetadata", }); - internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesOperationMetadata_descriptor = getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CreateEntityTypeOperationMetadata_descriptor, @@ -925,7 +976,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureOperationMetadata_descriptor, @@ -933,13 +984,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BatchCreateFeaturesOperationMetadata_descriptor, new java.lang.String[] { "GenericMetadata", }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_descriptor, + new java.lang.String[] { + "SelectEntity", "EntityType", "DeleteOption", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_SelectEntity_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_SelectEntity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesRequest_SelectEntity_descriptor, + new java.lang.String[] { + "EntityIdSelector", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesResponse_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureValuesResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1beta1_EntityIdSelector_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_aiplatform_v1beta1_EntityIdSelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_EntityIdSelector_descriptor, + new java.lang.String[] { + "CsvSource", "EntityIdField", "EntityIdsSource", + }); 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/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto index 7deb35938a0c..6acace9e7d7f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -280,6 +280,29 @@ service FeaturestoreService { }; } + // Delete Feature values from Featurestore. + // + // The progress of the deletion is tracked by the returned operation. The + // deleted feature values are guaranteed to be invisible to subsequent read + // operations after the operation is marked as successfully done. + // + // If a delete feature values operation fails, the feature values + // returned from reads and exports may be inconsistent. If consistency is + // required, the caller must retry the same delete request again and wait till + // the new operation returned is marked as successfully done. + rpc DeleteFeatureValues(DeleteFeatureValuesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:deleteFeatureValues" + body: "*" + }; + option (google.api.method_signature) = "entity_type"; + option (google.longrunning.operation_info) = { + response_type: "DeleteFeatureValuesResponse" + metadata_type: "DeleteFeatureValuesOperationMetadata" + }; + } + // Searches Features matching a query in a given project. rpc SearchFeatures(SearchFeaturesRequest) returns (SearchFeaturesResponse) { option (google.api.http) = { @@ -1207,6 +1230,12 @@ message BatchReadFeatureValuesOperationMetadata { GenericOperationMetadata generic_metadata = 1; } +// Details of operations that delete Feature values. +message DeleteFeatureValuesOperationMetadata { + // Operation metadata for Featurestore delete Features values. + GenericOperationMetadata generic_metadata = 1; +} + // Details of operations that perform create EntityType. message CreateEntityTypeOperationMetadata { // Operation metadata for EntityType. @@ -1224,3 +1253,51 @@ message BatchCreateFeaturesOperationMetadata { // Operation metadata for Feature. GenericOperationMetadata generic_metadata = 1; } + +// Request message for +// [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues]. +message DeleteFeatureValuesRequest { + // Message to select entity. + // If an entity id is selected, all the feature values corresponding to the + // entity id will be deleted, including the entityId. + message SelectEntity { + // Required. Selectors choosing feature values of which entity id to be + // deleted from the EntityType. + EntityIdSelector entity_id_selector = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // Defines options to select feature values to be deleted. + oneof DeleteOption { + // Select feature values to be deleted by specifying entities. + SelectEntity select_entity = 2; + } + + // Required. The resource name of the EntityType grouping the Features for + // which values are being deleted from. Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` + string entity_type = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/EntityType" + } + ]; +} + +// Response message for +// [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues]. +message DeleteFeatureValuesResponse {} + +// Selector for entityId. Getting ids from the given source. +message EntityIdSelector { + // Details about the source data, including the location of the storage and + // the format. + oneof EntityIdsSource { + // Source of Csv + CsvSource csv_source = 3; + } + + // Source column that holds entity IDs. If not provided, entity IDs are + // extracted from the column named `entity_id`. + string entity_id_field = 5; +} diff --git a/java-aiplatform/renovate.json b/java-aiplatform/renovate.json new file mode 100644 index 000000000000..f4f4efd59fe2 --- /dev/null +++ b/java-aiplatform/renovate.json @@ -0,0 +1,74 @@ +{ + "extends": [ + ":separateMajorReleases", + ":combinePatchMinorReleases", + ":ignoreUnstable", + ":prImmediately", + ":updateNotScheduled", + ":automergeDisabled", + ":ignoreModulesAndTests", + ":maintainLockFilesDisabled", + ":autodetectPinVersions" + ], + "packageRules": [ + { + "packagePatterns": [ + "^com.google.guava:" + ], + "versionScheme": "docker" + }, + { + "packagePatterns": [ + "*" + ], + "semanticCommitType": "deps", + "semanticCommitScope": null + }, + { + "packagePatterns": [ + "^org.apache.maven", + "^org.jacoco:", + "^org.codehaus.mojo:", + "^org.sonatype.plugins:", + "^com.coveo:", + "^com.google.cloud:google-cloud-shared-config" + ], + "semanticCommitType": "build", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^com.google.cloud:google-cloud-aiplatform", + "^com.google.cloud:libraries-bom", + "^com.google.cloud.samples:shared-configuration" + ], + "semanticCommitType": "chore", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^junit:junit", + "^com.google.truth:truth", + "^org.mockito:mockito-core", + "^org.objenesis:objenesis", + "^com.google.cloud:google-cloud-conformance-tests" + ], + "semanticCommitType": "test", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^com.google.cloud:google-cloud-" + ], + "ignoreUnstable": false + }, + { + "packagePatterns": [ + "^com.fasterxml.jackson.core" + ], + "groupName": "jackson dependencies" + } + ], + "semanticCommits": true, + "dependencyDashboard": true +}