diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java index 7e47af0d779b..67122d0d90ff 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java @@ -1332,6 +1332,141 @@ public final UnaryCallable listData return stub.listDataItemsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches DataItems in a Dataset. + * + *

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 (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   SearchDataItemsRequest request =
+   *       SearchDataItemsRequest.newBuilder()
+   *           .setDataset(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setSavedQuery(
+   *               SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]")
+   *                   .toString())
+   *           .setDataLabelingJob("dataLabelingJob951814757")
+   *           .setDataItemFilter("dataItemFilter1487804341")
+   *           .setAnnotationsFilter("annotationsFilter-583841860")
+   *           .addAllAnnotationFilters(new ArrayList())
+   *           .setFieldMask(FieldMask.newBuilder().build())
+   *           .setAnnotationsLimit(134561504)
+   *           .setPageSize(883849137)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (DataItemView element : datasetServiceClient.searchDataItems(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchDataItemsPagedResponse searchDataItems(SearchDataItemsRequest request) { + return searchDataItemsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches DataItems in a Dataset. + * + *

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 (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   SearchDataItemsRequest request =
+   *       SearchDataItemsRequest.newBuilder()
+   *           .setDataset(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setSavedQuery(
+   *               SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]")
+   *                   .toString())
+   *           .setDataLabelingJob("dataLabelingJob951814757")
+   *           .setDataItemFilter("dataItemFilter1487804341")
+   *           .setAnnotationsFilter("annotationsFilter-583841860")
+   *           .addAllAnnotationFilters(new ArrayList())
+   *           .setFieldMask(FieldMask.newBuilder().build())
+   *           .setAnnotationsLimit(134561504)
+   *           .setPageSize(883849137)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.searchDataItemsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DataItemView element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchDataItemsPagedCallable() { + return stub.searchDataItemsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches DataItems in a Dataset. + * + *

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 (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   SearchDataItemsRequest request =
+   *       SearchDataItemsRequest.newBuilder()
+   *           .setDataset(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setSavedQuery(
+   *               SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]")
+   *                   .toString())
+   *           .setDataLabelingJob("dataLabelingJob951814757")
+   *           .setDataItemFilter("dataItemFilter1487804341")
+   *           .setAnnotationsFilter("annotationsFilter-583841860")
+   *           .addAllAnnotationFilters(new ArrayList())
+   *           .setFieldMask(FieldMask.newBuilder().build())
+   *           .setAnnotationsLimit(134561504)
+   *           .setPageSize(883849137)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchDataItemsResponse response =
+   *         datasetServiceClient.searchDataItemsCallable().call(request);
+   *     for (DataItemView element : response.getDataItemViewsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchDataItemsCallable() { + return stub.searchDataItemsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists SavedQueries in a Dataset. @@ -2348,6 +2483,83 @@ protected ListDataItemsFixedSizeCollection createCollection( } } + public static class SearchDataItemsPagedResponse + extends AbstractPagedListResponse< + SearchDataItemsRequest, + SearchDataItemsResponse, + DataItemView, + SearchDataItemsPage, + SearchDataItemsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchDataItemsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchDataItemsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchDataItemsPagedResponse(SearchDataItemsPage page) { + super(page, SearchDataItemsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchDataItemsPage + extends AbstractPage< + SearchDataItemsRequest, SearchDataItemsResponse, DataItemView, SearchDataItemsPage> { + + private SearchDataItemsPage( + PageContext context, + SearchDataItemsResponse response) { + super(context, response); + } + + private static SearchDataItemsPage createEmptyPage() { + return new SearchDataItemsPage(null, null); + } + + @Override + protected SearchDataItemsPage createPage( + PageContext context, + SearchDataItemsResponse response) { + return new SearchDataItemsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchDataItemsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchDataItemsRequest, + SearchDataItemsResponse, + DataItemView, + SearchDataItemsPage, + SearchDataItemsFixedSizeCollection> { + + private SearchDataItemsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchDataItemsFixedSizeCollection createEmptyCollection() { + return new SearchDataItemsFixedSizeCollection(null, 0); + } + + @Override + protected SearchDataItemsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchDataItemsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListSavedQueriesPagedResponse extends AbstractPagedListResponse< ListSavedQueriesRequest, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java index 0d1d1b6d3534..690e168597b2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java @@ -21,6 +21,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListSavedQueriesPagedResponse; +import static com.google.cloud.aiplatform.v1.DatasetServiceClient.SearchDataItemsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -153,6 +154,13 @@ public UnaryCallSettings exportDataSettings() { return ((DatasetServiceStubSettings) getStubSettings()).listDataItemsSettings(); } + /** Returns the object with the settings used for calls to searchDataItems. */ + public PagedCallSettings< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + searchDataItemsSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).searchDataItemsSettings(); + } + /** Returns the object with the settings used for calls to listSavedQueries. */ public PagedCallSettings< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> @@ -367,6 +375,13 @@ public UnaryCallSettings.Builder exportDataSetting return getStubSettingsBuilder().listDataItemsSettings(); } + /** Returns the builder for the settings used for calls to searchDataItems. */ + public PagedCallSettings.Builder< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + searchDataItemsSettings() { + return getStubSettingsBuilder().searchDataItemsSettings(); + } + /** Returns the builder for the settings used for calls to listSavedQueries. */ public PagedCallSettings.Builder< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java index e83729b4ce00..b971c7246fd4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClient.java @@ -357,6 +357,165 @@ public final ReadFeatureValuesResponse readFeatureValues(ReadFeatureValuesReques return stub.streamingReadFeatureValuesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes Feature values of one or more entities of an EntityType. + * + *

The Feature values are merged into existing entities if any. The Feature values to be + * written must have timestamp within the online storage retention. + * + *

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 (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   EntityTypeName entityType =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
+   *   List payloads = new ArrayList<>();
+   *   WriteFeatureValuesResponse response =
+   *       featurestoreOnlineServingServiceClient.writeFeatureValues(entityType, payloads);
+   * }
+   * }
+ * + * @param entityType Required. The resource name of the EntityType for the entities being written. + * Value format: `projects/{project}/locations/{location}/featurestores/ + * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model + * predicting user clicks on a website, an EntityType ID could be `user`. + * @param payloads Required. The entities to be written. Up to 100,000 feature values can be + * written across all `payloads`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WriteFeatureValuesResponse writeFeatureValues( + EntityTypeName entityType, List payloads) { + WriteFeatureValuesRequest request = + WriteFeatureValuesRequest.newBuilder() + .setEntityType(entityType == null ? null : entityType.toString()) + .addAllPayloads(payloads) + .build(); + return writeFeatureValues(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes Feature values of one or more entities of an EntityType. + * + *

The Feature values are merged into existing entities if any. The Feature values to be + * written must have timestamp within the online storage retention. + * + *

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 (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   String entityType =
+   *       EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *           .toString();
+   *   List payloads = new ArrayList<>();
+   *   WriteFeatureValuesResponse response =
+   *       featurestoreOnlineServingServiceClient.writeFeatureValues(entityType, payloads);
+   * }
+   * }
+ * + * @param entityType Required. The resource name of the EntityType for the entities being written. + * Value format: `projects/{project}/locations/{location}/featurestores/ + * {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model + * predicting user clicks on a website, an EntityType ID could be `user`. + * @param payloads Required. The entities to be written. Up to 100,000 feature values can be + * written across all `payloads`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WriteFeatureValuesResponse writeFeatureValues( + String entityType, List payloads) { + WriteFeatureValuesRequest request = + WriteFeatureValuesRequest.newBuilder() + .setEntityType(entityType) + .addAllPayloads(payloads) + .build(); + return writeFeatureValues(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes Feature values of one or more entities of an EntityType. + * + *

The Feature values are merged into existing entities if any. The Feature values to be + * written must have timestamp within the online storage retention. + * + *

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 (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   WriteFeatureValuesRequest request =
+   *       WriteFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPayloads(new ArrayList())
+   *           .build();
+   *   WriteFeatureValuesResponse response =
+   *       featurestoreOnlineServingServiceClient.writeFeatureValues(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WriteFeatureValuesResponse writeFeatureValues(WriteFeatureValuesRequest request) { + return writeFeatureValuesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Writes Feature values of one or more entities of an EntityType. + * + *

The Feature values are merged into existing entities if any. The Feature values to be + * written must have timestamp within the online storage retention. + * + *

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 (FeaturestoreOnlineServingServiceClient featurestoreOnlineServingServiceClient =
+   *     FeaturestoreOnlineServingServiceClient.create()) {
+   *   WriteFeatureValuesRequest request =
+   *       WriteFeatureValuesRequest.newBuilder()
+   *           .setEntityType(
+   *               EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
+   *                   .toString())
+   *           .addAllPayloads(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       featurestoreOnlineServingServiceClient.writeFeatureValuesCallable().futureCall(request);
+   *   // Do something.
+   *   WriteFeatureValuesResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + writeFeatureValuesCallable() { + return stub.writeFeatureValuesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceSettings.java index 200e75739baf..4f42e302a321 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceSettings.java @@ -101,6 +101,13 @@ public class FeaturestoreOnlineServingServiceSettings .streamingReadFeatureValuesSettings(); } + /** Returns the object with the settings used for calls to writeFeatureValues. */ + public UnaryCallSettings + writeFeatureValuesSettings() { + return ((FeaturestoreOnlineServingServiceStubSettings) getStubSettings()) + .writeFeatureValuesSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -243,6 +250,12 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().streamingReadFeatureValuesSettings(); } + /** Returns the builder for the settings used for calls to writeFeatureValues. */ + public UnaryCallSettings.Builder + writeFeatureValuesSettings() { + return getStubSettingsBuilder().writeFeatureValuesSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json index de116b201edc..1266a979fe2e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json @@ -49,6 +49,9 @@ "ListSavedQueries": { "methods": ["listSavedQueries", "listSavedQueries", "listSavedQueries", "listSavedQueriesPagedCallable", "listSavedQueriesCallable"] }, + "SearchDataItems": { + "methods": ["searchDataItems", "searchDataItemsPagedCallable", "searchDataItemsCallable"] + }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, @@ -132,6 +135,9 @@ }, "TestIamPermissions": { "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "WriteFeatureValues": { + "methods": ["writeFeatureValues", "writeFeatureValues", "writeFeatureValues", "writeFeatureValuesCallable"] } } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java index 63b0806c2257..d5d4003f31f7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java @@ -21,6 +21,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListSavedQueriesPagedResponse; +import static com.google.cloud.aiplatform.v1.DatasetServiceClient.SearchDataItemsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; @@ -47,6 +48,8 @@ import com.google.cloud.aiplatform.v1.ListDatasetsResponse; import com.google.cloud.aiplatform.v1.ListSavedQueriesRequest; import com.google.cloud.aiplatform.v1.ListSavedQueriesResponse; +import com.google.cloud.aiplatform.v1.SearchDataItemsRequest; +import com.google.cloud.aiplatform.v1.SearchDataItemsResponse; import com.google.cloud.aiplatform.v1.UpdateDatasetRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -136,6 +139,15 @@ public UnaryCallable listDataItemsC throw new UnsupportedOperationException("Not implemented: listDataItemsCallable()"); } + public UnaryCallable + searchDataItemsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchDataItemsPagedCallable()"); + } + + public UnaryCallable searchDataItemsCallable() { + throw new UnsupportedOperationException("Not implemented: searchDataItemsCallable()"); + } + public UnaryCallable listSavedQueriesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listSavedQueriesPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java index 4ea07afd176b..dab14692954b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java @@ -21,6 +21,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListSavedQueriesPagedResponse; +import static com.google.cloud.aiplatform.v1.DatasetServiceClient.SearchDataItemsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -53,6 +54,7 @@ import com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata; import com.google.cloud.aiplatform.v1.CreateDatasetRequest; import com.google.cloud.aiplatform.v1.DataItem; +import com.google.cloud.aiplatform.v1.DataItemView; import com.google.cloud.aiplatform.v1.Dataset; import com.google.cloud.aiplatform.v1.DeleteDatasetRequest; import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; @@ -73,6 +75,8 @@ import com.google.cloud.aiplatform.v1.ListSavedQueriesRequest; import com.google.cloud.aiplatform.v1.ListSavedQueriesResponse; import com.google.cloud.aiplatform.v1.SavedQuery; +import com.google.cloud.aiplatform.v1.SearchDataItemsRequest; +import com.google.cloud.aiplatform.v1.SearchDataItemsResponse; import com.google.cloud.aiplatform.v1.UpdateDatasetRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -156,6 +160,9 @@ public class DatasetServiceStubSettings extends StubSettings listDataItemsSettings; + private final PagedCallSettings< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + searchDataItemsSettings; private final PagedCallSettings< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> listSavedQueriesSettings; @@ -245,6 +252,45 @@ public Iterable extractResources(ListDataItemsResponse payload) { } }; + private static final PagedListDescriptor< + SearchDataItemsRequest, SearchDataItemsResponse, DataItemView> + SEARCH_DATA_ITEMS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchDataItemsRequest injectToken( + SearchDataItemsRequest payload, String token) { + return SearchDataItemsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchDataItemsRequest injectPageSize( + SearchDataItemsRequest payload, int pageSize) { + return SearchDataItemsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchDataItemsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchDataItemsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchDataItemsResponse payload) { + return payload.getDataItemViewsList() == null + ? ImmutableList.of() + : payload.getDataItemViewsList(); + } + }; + private static final PagedListDescriptor< ListSavedQueriesRequest, ListSavedQueriesResponse, SavedQuery> LIST_SAVED_QUERIES_PAGE_STR_DESC = @@ -393,6 +439,25 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + SEARCH_DATA_ITEMS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchDataItemsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, SEARCH_DATA_ITEMS_PAGE_STR_DESC, request, context); + return SearchDataItemsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> LIST_SAVED_QUERIES_PAGE_STR_FACT = @@ -512,6 +577,13 @@ public UnaryCallSettings exportDataSettings() { return listDataItemsSettings; } + /** Returns the object with the settings used for calls to searchDataItems. */ + public PagedCallSettings< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + searchDataItemsSettings() { + return searchDataItemsSettings; + } + /** Returns the object with the settings used for calls to listSavedQueries. */ public PagedCallSettings< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> @@ -645,6 +717,7 @@ protected DatasetServiceStubSettings(Builder settingsBuilder) throws IOException exportDataSettings = settingsBuilder.exportDataSettings().build(); exportDataOperationSettings = settingsBuilder.exportDataOperationSettings().build(); listDataItemsSettings = settingsBuilder.listDataItemsSettings().build(); + searchDataItemsSettings = settingsBuilder.searchDataItemsSettings().build(); listSavedQueriesSettings = settingsBuilder.listSavedQueriesSettings().build(); getAnnotationSpecSettings = settingsBuilder.getAnnotationSpecSettings().build(); listAnnotationsSettings = settingsBuilder.listAnnotationsSettings().build(); @@ -682,6 +755,9 @@ public static class Builder extends StubSettings.Builder listDataItemsSettings; + private final PagedCallSettings.Builder< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + searchDataItemsSettings; private final PagedCallSettings.Builder< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> listSavedQueriesSettings; @@ -737,6 +813,7 @@ protected Builder(ClientContext clientContext) { exportDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); exportDataOperationSettings = OperationCallSettings.newBuilder(); listDataItemsSettings = PagedCallSettings.newBuilder(LIST_DATA_ITEMS_PAGE_STR_FACT); + searchDataItemsSettings = PagedCallSettings.newBuilder(SEARCH_DATA_ITEMS_PAGE_STR_FACT); listSavedQueriesSettings = PagedCallSettings.newBuilder(LIST_SAVED_QUERIES_PAGE_STR_FACT); getAnnotationSpecSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listAnnotationsSettings = PagedCallSettings.newBuilder(LIST_ANNOTATIONS_PAGE_STR_FACT); @@ -756,6 +833,7 @@ protected Builder(ClientContext clientContext) { importDataSettings, exportDataSettings, listDataItemsSettings, + searchDataItemsSettings, listSavedQueriesSettings, getAnnotationSpecSettings, listAnnotationsSettings, @@ -782,6 +860,7 @@ protected Builder(DatasetServiceStubSettings settings) { exportDataSettings = settings.exportDataSettings.toBuilder(); exportDataOperationSettings = settings.exportDataOperationSettings.toBuilder(); listDataItemsSettings = settings.listDataItemsSettings.toBuilder(); + searchDataItemsSettings = settings.searchDataItemsSettings.toBuilder(); listSavedQueriesSettings = settings.listSavedQueriesSettings.toBuilder(); getAnnotationSpecSettings = settings.getAnnotationSpecSettings.toBuilder(); listAnnotationsSettings = settings.listAnnotationsSettings.toBuilder(); @@ -801,6 +880,7 @@ protected Builder(DatasetServiceStubSettings settings) { importDataSettings, exportDataSettings, listDataItemsSettings, + searchDataItemsSettings, listSavedQueriesSettings, getAnnotationSpecSettings, listAnnotationsSettings, @@ -865,6 +945,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .searchDataItemsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listSavedQueriesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1099,6 +1184,13 @@ public UnaryCallSettings.Builder exportDataSetting return listDataItemsSettings; } + /** Returns the builder for the settings used for calls to searchDataItems. */ + public PagedCallSettings.Builder< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + searchDataItemsSettings() { + return searchDataItemsSettings; + } + /** Returns the builder for the settings used for calls to listSavedQueries. */ public PagedCallSettings.Builder< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStub.java index bc29da25dcea..97c65805c017 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStub.java @@ -24,6 +24,8 @@ import com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest; import com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse; import com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest; +import com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest; +import com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -55,6 +57,11 @@ public abstract class FeaturestoreOnlineServingServiceStub implements Background "Not implemented: streamingReadFeatureValuesCallable()"); } + public UnaryCallable + writeFeatureValuesCallable() { + throw new UnsupportedOperationException("Not implemented: writeFeatureValuesCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java index 6223d799b094..bb53ad851fb5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeaturestoreOnlineServingServiceStubSettings.java @@ -44,6 +44,8 @@ import com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest; import com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse; import com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest; +import com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest; +import com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -112,6 +114,8 @@ public class FeaturestoreOnlineServingServiceStubSettings private final ServerStreamingCallSettings< StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse> streamingReadFeatureValuesSettings; + private final UnaryCallSettings + writeFeatureValuesSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -186,6 +190,12 @@ public ApiFuture getFuturePagedResponse( return streamingReadFeatureValuesSettings; } + /** Returns the object with the settings used for calls to writeFeatureValues. */ + public UnaryCallSettings + writeFeatureValuesSettings() { + return writeFeatureValuesSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -293,6 +303,7 @@ protected FeaturestoreOnlineServingServiceStubSettings(Builder settingsBuilder) readFeatureValuesSettings = settingsBuilder.readFeatureValuesSettings().build(); streamingReadFeatureValuesSettings = settingsBuilder.streamingReadFeatureValuesSettings().build(); + writeFeatureValuesSettings = settingsBuilder.writeFeatureValuesSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -309,6 +320,8 @@ public static class Builder private final ServerStreamingCallSettings.Builder< StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse> streamingReadFeatureValuesSettings; + private final UnaryCallSettings.Builder + writeFeatureValuesSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -346,6 +359,7 @@ protected Builder(ClientContext clientContext) { readFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); streamingReadFeatureValuesSettings = ServerStreamingCallSettings.newBuilder(); + writeFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -355,6 +369,7 @@ protected Builder(ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList.>of( readFeatureValuesSettings, + writeFeatureValuesSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -368,6 +383,7 @@ protected Builder(FeaturestoreOnlineServingServiceStubSettings settings) { readFeatureValuesSettings = settings.readFeatureValuesSettings.toBuilder(); streamingReadFeatureValuesSettings = settings.streamingReadFeatureValuesSettings.toBuilder(); + writeFeatureValuesSettings = settings.writeFeatureValuesSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -377,6 +393,7 @@ protected Builder(FeaturestoreOnlineServingServiceStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( readFeatureValuesSettings, + writeFeatureValuesSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -408,6 +425,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .writeFeatureValuesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -464,6 +486,12 @@ public Builder applyToAllUnaryMethods( return streamingReadFeatureValuesSettings; } + /** Returns the builder for the settings used for calls to writeFeatureValues. */ + public UnaryCallSettings.Builder + writeFeatureValuesSettings() { + return writeFeatureValuesSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java index a0c1613e542e..c18cc631be69 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java @@ -21,6 +21,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListSavedQueriesPagedResponse; +import static com.google.cloud.aiplatform.v1.DatasetServiceClient.SearchDataItemsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -51,6 +52,8 @@ import com.google.cloud.aiplatform.v1.ListDatasetsResponse; import com.google.cloud.aiplatform.v1.ListSavedQueriesRequest; import com.google.cloud.aiplatform.v1.ListSavedQueriesResponse; +import com.google.cloud.aiplatform.v1.SearchDataItemsRequest; +import com.google.cloud.aiplatform.v1.SearchDataItemsResponse; import com.google.cloud.aiplatform.v1.UpdateDatasetRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -154,6 +157,17 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub { ProtoUtils.marshaller(ListDataItemsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + searchDataItemsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.DatasetService/SearchDataItems") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchDataItemsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchDataItemsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listSavedQueriesMethodDescriptor = MethodDescriptor.newBuilder() @@ -254,6 +268,10 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub { private final UnaryCallable listDataItemsCallable; private final UnaryCallable listDataItemsPagedCallable; + private final UnaryCallable + searchDataItemsCallable; + private final UnaryCallable + searchDataItemsPagedCallable; private final UnaryCallable listSavedQueriesCallable; private final UnaryCallable @@ -396,6 +414,17 @@ protected GrpcDatasetServiceStub( return params.build(); }) .build(); + GrpcCallSettings + searchDataItemsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchDataItemsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("dataset", String.valueOf(request.getDataset())); + return params.build(); + }) + .build(); GrpcCallSettings listSavedQueriesTransportSettings = GrpcCallSettings.newBuilder() @@ -534,6 +563,12 @@ protected GrpcDatasetServiceStub( this.listDataItemsPagedCallable = callableFactory.createPagedCallable( listDataItemsTransportSettings, settings.listDataItemsSettings(), clientContext); + this.searchDataItemsCallable = + callableFactory.createUnaryCallable( + searchDataItemsTransportSettings, settings.searchDataItemsSettings(), clientContext); + this.searchDataItemsPagedCallable = + callableFactory.createPagedCallable( + searchDataItemsTransportSettings, settings.searchDataItemsSettings(), clientContext); this.listSavedQueriesCallable = callableFactory.createUnaryCallable( listSavedQueriesTransportSettings, settings.listSavedQueriesSettings(), clientContext); @@ -655,6 +690,17 @@ public UnaryCallable listDataItemsC return listDataItemsPagedCallable; } + @Override + public UnaryCallable searchDataItemsCallable() { + return searchDataItemsCallable; + } + + @Override + public UnaryCallable + searchDataItemsPagedCallable() { + return searchDataItemsPagedCallable; + } + @Override public UnaryCallable listSavedQueriesCallable() { diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreOnlineServingServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreOnlineServingServiceStub.java index 514665402b61..0a8953247c01 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreOnlineServingServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeaturestoreOnlineServingServiceStub.java @@ -28,6 +28,8 @@ import com.google.cloud.aiplatform.v1.ReadFeatureValuesRequest; import com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse; import com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest; +import com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest; +import com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -79,6 +81,18 @@ public class GrpcFeaturestoreOnlineServingServiceStub extends FeaturestoreOnline ProtoUtils.marshaller(ReadFeatureValuesResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + writeFeatureValuesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.FeaturestoreOnlineServingService/WriteFeatureValues") + .setRequestMarshaller( + ProtoUtils.marshaller(WriteFeatureValuesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(WriteFeatureValuesResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -130,6 +144,8 @@ public class GrpcFeaturestoreOnlineServingServiceStub extends FeaturestoreOnline private final ServerStreamingCallable< StreamingReadFeatureValuesRequest, ReadFeatureValuesResponse> streamingReadFeatureValuesCallable; + private final UnaryCallable + writeFeatureValuesCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -209,6 +225,17 @@ protected GrpcFeaturestoreOnlineServingServiceStub( return params.build(); }) .build(); + GrpcCallSettings + writeFeatureValuesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(writeFeatureValuesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("entity_type", String.valueOf(request.getEntityType())); + return params.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -271,6 +298,11 @@ protected GrpcFeaturestoreOnlineServingServiceStub( streamingReadFeatureValuesTransportSettings, settings.streamingReadFeatureValuesSettings(), clientContext); + this.writeFeatureValuesCallable = + callableFactory.createUnaryCallable( + writeFeatureValuesTransportSettings, + settings.writeFeatureValuesSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -312,6 +344,12 @@ public GrpcOperationsStub getOperationsStub() { return streamingReadFeatureValuesCallable; } + @Override + public UnaryCallable + writeFeatureValuesCallable() { + return writeFeatureValuesCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java index 6399c9922a88..00d054d606ca 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java @@ -1334,6 +1334,141 @@ public final UnaryCallable listData return stub.listDataItemsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches DataItems in a Dataset. + * + *

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 (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   SearchDataItemsRequest request =
+   *       SearchDataItemsRequest.newBuilder()
+   *           .setDataset(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setSavedQuery(
+   *               SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]")
+   *                   .toString())
+   *           .setDataLabelingJob("dataLabelingJob951814757")
+   *           .setDataItemFilter("dataItemFilter1487804341")
+   *           .setAnnotationsFilter("annotationsFilter-583841860")
+   *           .addAllAnnotationFilters(new ArrayList())
+   *           .setFieldMask(FieldMask.newBuilder().build())
+   *           .setAnnotationsLimit(134561504)
+   *           .setPageSize(883849137)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (DataItemView element : datasetServiceClient.searchDataItems(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchDataItemsPagedResponse searchDataItems(SearchDataItemsRequest request) { + return searchDataItemsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches DataItems in a Dataset. + * + *

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 (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   SearchDataItemsRequest request =
+   *       SearchDataItemsRequest.newBuilder()
+   *           .setDataset(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setSavedQuery(
+   *               SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]")
+   *                   .toString())
+   *           .setDataLabelingJob("dataLabelingJob951814757")
+   *           .setDataItemFilter("dataItemFilter1487804341")
+   *           .setAnnotationsFilter("annotationsFilter-583841860")
+   *           .addAllAnnotationFilters(new ArrayList())
+   *           .setFieldMask(FieldMask.newBuilder().build())
+   *           .setAnnotationsLimit(134561504)
+   *           .setPageSize(883849137)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.searchDataItemsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DataItemView element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchDataItemsPagedCallable() { + return stub.searchDataItemsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches DataItems in a Dataset. + * + *

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 (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   SearchDataItemsRequest request =
+   *       SearchDataItemsRequest.newBuilder()
+   *           .setDataset(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setSavedQuery(
+   *               SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]")
+   *                   .toString())
+   *           .setDataLabelingJob("dataLabelingJob951814757")
+   *           .setDataItemFilter("dataItemFilter1487804341")
+   *           .setAnnotationsFilter("annotationsFilter-583841860")
+   *           .addAllAnnotationFilters(new ArrayList())
+   *           .setFieldMask(FieldMask.newBuilder().build())
+   *           .setAnnotationsLimit(134561504)
+   *           .setPageSize(883849137)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchDataItemsResponse response =
+   *         datasetServiceClient.searchDataItemsCallable().call(request);
+   *     for (DataItemView element : response.getDataItemViewsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchDataItemsCallable() { + return stub.searchDataItemsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists SavedQueries in a Dataset. @@ -2350,6 +2485,83 @@ protected ListDataItemsFixedSizeCollection createCollection( } } + public static class SearchDataItemsPagedResponse + extends AbstractPagedListResponse< + SearchDataItemsRequest, + SearchDataItemsResponse, + DataItemView, + SearchDataItemsPage, + SearchDataItemsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchDataItemsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchDataItemsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchDataItemsPagedResponse(SearchDataItemsPage page) { + super(page, SearchDataItemsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchDataItemsPage + extends AbstractPage< + SearchDataItemsRequest, SearchDataItemsResponse, DataItemView, SearchDataItemsPage> { + + private SearchDataItemsPage( + PageContext context, + SearchDataItemsResponse response) { + super(context, response); + } + + private static SearchDataItemsPage createEmptyPage() { + return new SearchDataItemsPage(null, null); + } + + @Override + protected SearchDataItemsPage createPage( + PageContext context, + SearchDataItemsResponse response) { + return new SearchDataItemsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchDataItemsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchDataItemsRequest, + SearchDataItemsResponse, + DataItemView, + SearchDataItemsPage, + SearchDataItemsFixedSizeCollection> { + + private SearchDataItemsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchDataItemsFixedSizeCollection createEmptyCollection() { + return new SearchDataItemsFixedSizeCollection(null, 0); + } + + @Override + protected SearchDataItemsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchDataItemsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListSavedQueriesPagedResponse extends AbstractPagedListResponse< ListSavedQueriesRequest, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java index 97a668682bcf..4a1e964e5e19 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java @@ -21,6 +21,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListSavedQueriesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.SearchDataItemsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -154,6 +155,13 @@ public UnaryCallSettings exportDataSettings() { return ((DatasetServiceStubSettings) getStubSettings()).listDataItemsSettings(); } + /** Returns the object with the settings used for calls to searchDataItems. */ + public PagedCallSettings< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + searchDataItemsSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).searchDataItemsSettings(); + } + /** Returns the object with the settings used for calls to listSavedQueries. */ public PagedCallSettings< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> @@ -368,6 +376,13 @@ public UnaryCallSettings.Builder exportDataSetting return getStubSettingsBuilder().listDataItemsSettings(); } + /** Returns the builder for the settings used for calls to searchDataItems. */ + public PagedCallSettings.Builder< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + searchDataItemsSettings() { + return getStubSettingsBuilder().searchDataItemsSettings(); + } + /** Returns the builder for the settings used for calls to listSavedQueries. */ public PagedCallSettings.Builder< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> 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 0fa3ca172ad8..ca737a56a108 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 @@ -758,7 +758,7 @@ public final ListFeaturestoresPagedResponse listFeaturestores(ListFeaturestoresR * be overwritten. Set the update_mask to `*` to override all fields. *

Updatable fields: *

* `labels` * `online_serving_config.fixed_node_count` * - * `online_serving_config.scaling` + * `online_serving_config.scaling` * `online_storage_ttl_days` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -1661,7 +1661,7 @@ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest * `monitoring_config.import_features_analysis.state` * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * - * `monitoring_config.categorical_threshold_config.value` + * `monitoring_config.categorical_threshold_config.value` * `offline_storage_ttl_days` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EntityType updateEntityType(EntityType entityType, FieldMask updateMask) { 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 1bf9b64642f1..bb0afb5bc03f 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 @@ -49,6 +49,9 @@ "ListSavedQueries": { "methods": ["listSavedQueries", "listSavedQueries", "listSavedQueries", "listSavedQueriesPagedCallable", "listSavedQueriesCallable"] }, + "SearchDataItems": { + "methods": ["searchDataItems", "searchDataItemsPagedCallable", "searchDataItemsCallable"] + }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java index ed2e04aeab12..d399273e1365 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java @@ -21,6 +21,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListSavedQueriesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.SearchDataItemsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -48,6 +49,8 @@ import com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse; import com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; import com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; +import com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; +import com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; import com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -138,6 +141,15 @@ public UnaryCallable listDataItemsC throw new UnsupportedOperationException("Not implemented: listDataItemsCallable()"); } + public UnaryCallable + searchDataItemsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchDataItemsPagedCallable()"); + } + + public UnaryCallable searchDataItemsCallable() { + throw new UnsupportedOperationException("Not implemented: searchDataItemsCallable()"); + } + public UnaryCallable listSavedQueriesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listSavedQueriesPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java index fe973777f037..7af085640f08 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java @@ -21,6 +21,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListSavedQueriesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.SearchDataItemsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -53,6 +54,7 @@ import com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; import com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest; import com.google.cloud.aiplatform.v1beta1.DataItem; +import com.google.cloud.aiplatform.v1beta1.DataItemView; import com.google.cloud.aiplatform.v1beta1.Dataset; import com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; @@ -73,6 +75,8 @@ import com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; import com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; import com.google.cloud.aiplatform.v1beta1.SavedQuery; +import com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; +import com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; import com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -157,6 +161,9 @@ public class DatasetServiceStubSettings extends StubSettings listDataItemsSettings; + private final PagedCallSettings< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + searchDataItemsSettings; private final PagedCallSettings< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> listSavedQueriesSettings; @@ -246,6 +253,45 @@ public Iterable extractResources(ListDataItemsResponse payload) { } }; + private static final PagedListDescriptor< + SearchDataItemsRequest, SearchDataItemsResponse, DataItemView> + SEARCH_DATA_ITEMS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchDataItemsRequest injectToken( + SearchDataItemsRequest payload, String token) { + return SearchDataItemsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchDataItemsRequest injectPageSize( + SearchDataItemsRequest payload, int pageSize) { + return SearchDataItemsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchDataItemsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchDataItemsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchDataItemsResponse payload) { + return payload.getDataItemViewsList() == null + ? ImmutableList.of() + : payload.getDataItemViewsList(); + } + }; + private static final PagedListDescriptor< ListSavedQueriesRequest, ListSavedQueriesResponse, SavedQuery> LIST_SAVED_QUERIES_PAGE_STR_DESC = @@ -394,6 +440,25 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + SEARCH_DATA_ITEMS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchDataItemsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, SEARCH_DATA_ITEMS_PAGE_STR_DESC, request, context); + return SearchDataItemsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> LIST_SAVED_QUERIES_PAGE_STR_FACT = @@ -513,6 +578,13 @@ public UnaryCallSettings exportDataSettings() { return listDataItemsSettings; } + /** Returns the object with the settings used for calls to searchDataItems. */ + public PagedCallSettings< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + searchDataItemsSettings() { + return searchDataItemsSettings; + } + /** Returns the object with the settings used for calls to listSavedQueries. */ public PagedCallSettings< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> @@ -646,6 +718,7 @@ protected DatasetServiceStubSettings(Builder settingsBuilder) throws IOException exportDataSettings = settingsBuilder.exportDataSettings().build(); exportDataOperationSettings = settingsBuilder.exportDataOperationSettings().build(); listDataItemsSettings = settingsBuilder.listDataItemsSettings().build(); + searchDataItemsSettings = settingsBuilder.searchDataItemsSettings().build(); listSavedQueriesSettings = settingsBuilder.listSavedQueriesSettings().build(); getAnnotationSpecSettings = settingsBuilder.getAnnotationSpecSettings().build(); listAnnotationsSettings = settingsBuilder.listAnnotationsSettings().build(); @@ -683,6 +756,9 @@ public static class Builder extends StubSettings.Builder listDataItemsSettings; + private final PagedCallSettings.Builder< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + searchDataItemsSettings; private final PagedCallSettings.Builder< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> listSavedQueriesSettings; @@ -748,6 +824,7 @@ protected Builder(ClientContext clientContext) { exportDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); exportDataOperationSettings = OperationCallSettings.newBuilder(); listDataItemsSettings = PagedCallSettings.newBuilder(LIST_DATA_ITEMS_PAGE_STR_FACT); + searchDataItemsSettings = PagedCallSettings.newBuilder(SEARCH_DATA_ITEMS_PAGE_STR_FACT); listSavedQueriesSettings = PagedCallSettings.newBuilder(LIST_SAVED_QUERIES_PAGE_STR_FACT); getAnnotationSpecSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listAnnotationsSettings = PagedCallSettings.newBuilder(LIST_ANNOTATIONS_PAGE_STR_FACT); @@ -767,6 +844,7 @@ protected Builder(ClientContext clientContext) { importDataSettings, exportDataSettings, listDataItemsSettings, + searchDataItemsSettings, listSavedQueriesSettings, getAnnotationSpecSettings, listAnnotationsSettings, @@ -793,6 +871,7 @@ protected Builder(DatasetServiceStubSettings settings) { exportDataSettings = settings.exportDataSettings.toBuilder(); exportDataOperationSettings = settings.exportDataOperationSettings.toBuilder(); listDataItemsSettings = settings.listDataItemsSettings.toBuilder(); + searchDataItemsSettings = settings.searchDataItemsSettings.toBuilder(); listSavedQueriesSettings = settings.listSavedQueriesSettings.toBuilder(); getAnnotationSpecSettings = settings.getAnnotationSpecSettings.toBuilder(); listAnnotationsSettings = settings.listAnnotationsSettings.toBuilder(); @@ -812,6 +891,7 @@ protected Builder(DatasetServiceStubSettings settings) { importDataSettings, exportDataSettings, listDataItemsSettings, + searchDataItemsSettings, listSavedQueriesSettings, getAnnotationSpecSettings, listAnnotationsSettings, @@ -876,6 +956,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .searchDataItemsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listSavedQueriesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1110,6 +1195,13 @@ public UnaryCallSettings.Builder exportDataSetting return listDataItemsSettings; } + /** Returns the builder for the settings used for calls to searchDataItems. */ + public PagedCallSettings.Builder< + SearchDataItemsRequest, SearchDataItemsResponse, SearchDataItemsPagedResponse> + searchDataItemsSettings() { + return searchDataItemsSettings; + } + /** Returns the builder for the settings used for calls to listSavedQueries. */ public PagedCallSettings.Builder< ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java index c16b31fb1291..8a76ab73ae40 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java @@ -21,6 +21,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListSavedQueriesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.SearchDataItemsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -52,6 +53,8 @@ import com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse; import com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; import com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; +import com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; +import com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; import com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -156,6 +159,17 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub { ProtoUtils.marshaller(ListDataItemsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + searchDataItemsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.DatasetService/SearchDataItems") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchDataItemsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchDataItemsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listSavedQueriesMethodDescriptor = MethodDescriptor.newBuilder() @@ -256,6 +270,10 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub { private final UnaryCallable listDataItemsCallable; private final UnaryCallable listDataItemsPagedCallable; + private final UnaryCallable + searchDataItemsCallable; + private final UnaryCallable + searchDataItemsPagedCallable; private final UnaryCallable listSavedQueriesCallable; private final UnaryCallable @@ -398,6 +416,17 @@ protected GrpcDatasetServiceStub( return params.build(); }) .build(); + GrpcCallSettings + searchDataItemsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchDataItemsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("dataset", String.valueOf(request.getDataset())); + return params.build(); + }) + .build(); GrpcCallSettings listSavedQueriesTransportSettings = GrpcCallSettings.newBuilder() @@ -536,6 +565,12 @@ protected GrpcDatasetServiceStub( this.listDataItemsPagedCallable = callableFactory.createPagedCallable( listDataItemsTransportSettings, settings.listDataItemsSettings(), clientContext); + this.searchDataItemsCallable = + callableFactory.createUnaryCallable( + searchDataItemsTransportSettings, settings.searchDataItemsSettings(), clientContext); + this.searchDataItemsPagedCallable = + callableFactory.createPagedCallable( + searchDataItemsTransportSettings, settings.searchDataItemsSettings(), clientContext); this.listSavedQueriesCallable = callableFactory.createUnaryCallable( listSavedQueriesTransportSettings, settings.listSavedQueriesSettings(), clientContext); @@ -657,6 +692,17 @@ public UnaryCallable listDataItemsC return listDataItemsPagedCallable; } + @Override + public UnaryCallable searchDataItemsCallable() { + return searchDataItemsCallable; + } + + @Override + public UnaryCallable + searchDataItemsPagedCallable() { + return searchDataItemsPagedCallable; + } + @Override public UnaryCallable listSavedQueriesCallable() { diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java index 0c9aaadf0dd7..8dfabaedd25c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java @@ -21,6 +21,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListSavedQueriesPagedResponse; +import static com.google.cloud.aiplatform.v1.DatasetServiceClient.SearchDataItemsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -124,6 +125,7 @@ public void createDatasetTest() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setMetadataArtifact("metadataArtifact1018119713") .build(); Operation resultOperation = Operation.newBuilder() @@ -182,6 +184,7 @@ public void createDatasetTest2() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setMetadataArtifact("metadataArtifact1018119713") .build(); Operation resultOperation = Operation.newBuilder() @@ -240,6 +243,7 @@ public void getDatasetTest() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setMetadataArtifact("metadataArtifact1018119713") .build(); mockDatasetService.addResponse(expectedResponse); @@ -287,6 +291,7 @@ public void getDatasetTest2() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setMetadataArtifact("metadataArtifact1018119713") .build(); mockDatasetService.addResponse(expectedResponse); @@ -334,6 +339,7 @@ public void updateDatasetTest() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setMetadataArtifact("metadataArtifact1018119713") .build(); mockDatasetService.addResponse(expectedResponse); @@ -816,6 +822,93 @@ public void listDataItemsExceptionTest2() throws Exception { } } + @Test + public void searchDataItemsTest() throws Exception { + DataItemView responsesElement = DataItemView.newBuilder().build(); + SearchDataItemsResponse expectedResponse = + SearchDataItemsResponse.newBuilder() + .setNextPageToken("") + .addAllDataItemViews(Arrays.asList(responsesElement)) + .build(); + mockDatasetService.addResponse(expectedResponse); + + SearchDataItemsRequest request = + SearchDataItemsRequest.newBuilder() + .setDataset(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setSavedQuery( + SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]") + .toString()) + .setDataLabelingJob("dataLabelingJob951814757") + .setDataItemFilter("dataItemFilter1487804341") + .setAnnotationsFilter("annotationsFilter-583841860") + .addAllAnnotationFilters(new ArrayList()) + .setFieldMask(FieldMask.newBuilder().build()) + .setAnnotationsLimit(134561504) + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .build(); + + SearchDataItemsPagedResponse pagedListResponse = client.searchDataItems(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataItemViewsList().get(0), resources.get(0)); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchDataItemsRequest actualRequest = ((SearchDataItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getOrderByDataItem(), actualRequest.getOrderByDataItem()); + Assert.assertEquals(request.getOrderByAnnotation(), actualRequest.getOrderByAnnotation()); + Assert.assertEquals(request.getDataset(), actualRequest.getDataset()); + Assert.assertEquals(request.getSavedQuery(), actualRequest.getSavedQuery()); + Assert.assertEquals(request.getDataLabelingJob(), actualRequest.getDataLabelingJob()); + Assert.assertEquals(request.getDataItemFilter(), actualRequest.getDataItemFilter()); + Assert.assertEquals(request.getAnnotationsFilter(), actualRequest.getAnnotationsFilter()); + Assert.assertEquals( + request.getAnnotationFiltersList(), actualRequest.getAnnotationFiltersList()); + Assert.assertEquals(request.getFieldMask(), actualRequest.getFieldMask()); + Assert.assertEquals(request.getAnnotationsLimit(), actualRequest.getAnnotationsLimit()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchDataItemsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + SearchDataItemsRequest request = + SearchDataItemsRequest.newBuilder() + .setDataset(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setSavedQuery( + SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]") + .toString()) + .setDataLabelingJob("dataLabelingJob951814757") + .setDataItemFilter("dataItemFilter1487804341") + .setAnnotationsFilter("annotationsFilter-583841860") + .addAllAnnotationFilters(new ArrayList()) + .setFieldMask(FieldMask.newBuilder().build()) + .setAnnotationsLimit(134561504) + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .build(); + client.searchDataItems(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listSavedQueriesTest() throws Exception { SavedQuery responsesElement = SavedQuery.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClientTest.java index 799cfbb23e7c..9937c0cbefc0 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceClientTest.java @@ -242,6 +242,84 @@ public void streamingReadFeatureValuesExceptionTest() throws Exception { } } + @Test + public void writeFeatureValuesTest() throws Exception { + WriteFeatureValuesResponse expectedResponse = WriteFeatureValuesResponse.newBuilder().build(); + mockFeaturestoreOnlineServingService.addResponse(expectedResponse); + + EntityTypeName entityType = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + List payloads = new ArrayList<>(); + + WriteFeatureValuesResponse actualResponse = client.writeFeatureValues(entityType, payloads); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreOnlineServingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + WriteFeatureValuesRequest actualRequest = ((WriteFeatureValuesRequest) actualRequests.get(0)); + + Assert.assertEquals(entityType.toString(), actualRequest.getEntityType()); + Assert.assertEquals(payloads, actualRequest.getPayloadsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void writeFeatureValuesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreOnlineServingService.addException(exception); + + try { + EntityTypeName entityType = + EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]"); + List payloads = new ArrayList<>(); + client.writeFeatureValues(entityType, payloads); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void writeFeatureValuesTest2() throws Exception { + WriteFeatureValuesResponse expectedResponse = WriteFeatureValuesResponse.newBuilder().build(); + mockFeaturestoreOnlineServingService.addResponse(expectedResponse); + + String entityType = "entityType-1482998339"; + List payloads = new ArrayList<>(); + + WriteFeatureValuesResponse actualResponse = client.writeFeatureValues(entityType, payloads); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeaturestoreOnlineServingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + WriteFeatureValuesRequest actualRequest = ((WriteFeatureValuesRequest) actualRequests.get(0)); + + Assert.assertEquals(entityType, actualRequest.getEntityType()); + Assert.assertEquals(payloads, actualRequest.getPayloadsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void writeFeatureValuesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeaturestoreOnlineServingService.addException(exception); + + try { + String entityType = "entityType-1482998339"; + List payloads = new ArrayList<>(); + client.writeFeatureValues(entityType, payloads); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java index a740c517c836..fff34d12bd23 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java @@ -224,6 +224,27 @@ public void listDataItems( } } + @Override + public void searchDataItems( + SearchDataItemsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchDataItemsResponse) { + requests.add(request); + responseObserver.onNext(((SearchDataItemsResponse) 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 SearchDataItems, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchDataItemsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listSavedQueries( ListSavedQueriesRequest request, StreamObserver responseObserver) { diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreOnlineServingServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreOnlineServingServiceImpl.java index a6fab90c9673..110ba6b215a4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreOnlineServingServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockFeaturestoreOnlineServingServiceImpl.java @@ -102,4 +102,26 @@ public void streamingReadFeatureValues( Exception.class.getName()))); } } + + @Override + public void writeFeatureValues( + WriteFeatureValuesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof WriteFeatureValuesResponse) { + requests.add(request); + responseObserver.onNext(((WriteFeatureValuesResponse) 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 WriteFeatureValues, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + WriteFeatureValuesResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java index f8bafe402dc1..bfd1982a423d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java @@ -21,6 +21,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListSavedQueriesPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.SearchDataItemsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -124,6 +125,7 @@ public void createDatasetTest() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setMetadataArtifact("metadataArtifact1018119713") .build(); Operation resultOperation = Operation.newBuilder() @@ -182,6 +184,7 @@ public void createDatasetTest2() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setMetadataArtifact("metadataArtifact1018119713") .build(); Operation resultOperation = Operation.newBuilder() @@ -240,6 +243,7 @@ public void getDatasetTest() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setMetadataArtifact("metadataArtifact1018119713") .build(); mockDatasetService.addResponse(expectedResponse); @@ -287,6 +291,7 @@ public void getDatasetTest2() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setMetadataArtifact("metadataArtifact1018119713") .build(); mockDatasetService.addResponse(expectedResponse); @@ -334,6 +339,7 @@ public void updateDatasetTest() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) + .setMetadataArtifact("metadataArtifact1018119713") .build(); mockDatasetService.addResponse(expectedResponse); @@ -816,6 +822,93 @@ public void listDataItemsExceptionTest2() throws Exception { } } + @Test + public void searchDataItemsTest() throws Exception { + DataItemView responsesElement = DataItemView.newBuilder().build(); + SearchDataItemsResponse expectedResponse = + SearchDataItemsResponse.newBuilder() + .setNextPageToken("") + .addAllDataItemViews(Arrays.asList(responsesElement)) + .build(); + mockDatasetService.addResponse(expectedResponse); + + SearchDataItemsRequest request = + SearchDataItemsRequest.newBuilder() + .setDataset(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setSavedQuery( + SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]") + .toString()) + .setDataLabelingJob("dataLabelingJob951814757") + .setDataItemFilter("dataItemFilter1487804341") + .setAnnotationsFilter("annotationsFilter-583841860") + .addAllAnnotationFilters(new ArrayList()) + .setFieldMask(FieldMask.newBuilder().build()) + .setAnnotationsLimit(134561504) + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .build(); + + SearchDataItemsPagedResponse pagedListResponse = client.searchDataItems(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataItemViewsList().get(0), resources.get(0)); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchDataItemsRequest actualRequest = ((SearchDataItemsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getOrderByDataItem(), actualRequest.getOrderByDataItem()); + Assert.assertEquals(request.getOrderByAnnotation(), actualRequest.getOrderByAnnotation()); + Assert.assertEquals(request.getDataset(), actualRequest.getDataset()); + Assert.assertEquals(request.getSavedQuery(), actualRequest.getSavedQuery()); + Assert.assertEquals(request.getDataLabelingJob(), actualRequest.getDataLabelingJob()); + Assert.assertEquals(request.getDataItemFilter(), actualRequest.getDataItemFilter()); + Assert.assertEquals(request.getAnnotationsFilter(), actualRequest.getAnnotationsFilter()); + Assert.assertEquals( + request.getAnnotationFiltersList(), actualRequest.getAnnotationFiltersList()); + Assert.assertEquals(request.getFieldMask(), actualRequest.getFieldMask()); + Assert.assertEquals(request.getAnnotationsLimit(), actualRequest.getAnnotationsLimit()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchDataItemsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + SearchDataItemsRequest request = + SearchDataItemsRequest.newBuilder() + .setDataset(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setSavedQuery( + SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]") + .toString()) + .setDataLabelingJob("dataLabelingJob951814757") + .setDataItemFilter("dataItemFilter1487804341") + .setAnnotationsFilter("annotationsFilter-583841860") + .addAllAnnotationFilters(new ArrayList()) + .setFieldMask(FieldMask.newBuilder().build()) + .setAnnotationsLimit(134561504) + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .build(); + client.searchDataItems(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listSavedQueriesTest() throws Exception { SavedQuery responsesElement = SavedQuery.newBuilder().build(); 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 c62d5ab2802c..9747ac3d8c0a 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 @@ -119,6 +119,7 @@ public void createFeaturestoreTest() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setOnlineServingConfig(Featurestore.OnlineServingConfig.newBuilder().build()) + .setOnlineStorageTtlDays(1491501178) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = @@ -174,6 +175,7 @@ public void createFeaturestoreTest2() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setOnlineServingConfig(Featurestore.OnlineServingConfig.newBuilder().build()) + .setOnlineStorageTtlDays(1491501178) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = @@ -229,6 +231,7 @@ public void createFeaturestoreTest3() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setOnlineServingConfig(Featurestore.OnlineServingConfig.newBuilder().build()) + .setOnlineStorageTtlDays(1491501178) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = @@ -288,6 +291,7 @@ public void createFeaturestoreTest4() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setOnlineServingConfig(Featurestore.OnlineServingConfig.newBuilder().build()) + .setOnlineStorageTtlDays(1491501178) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = @@ -347,6 +351,7 @@ public void getFeaturestoreTest() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setOnlineServingConfig(Featurestore.OnlineServingConfig.newBuilder().build()) + .setOnlineStorageTtlDays(1491501178) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockFeaturestoreService.addResponse(expectedResponse); @@ -391,6 +396,7 @@ public void getFeaturestoreTest2() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setOnlineServingConfig(Featurestore.OnlineServingConfig.newBuilder().build()) + .setOnlineStorageTtlDays(1491501178) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockFeaturestoreService.addResponse(expectedResponse); @@ -523,6 +529,7 @@ public void updateFeaturestoreTest() throws Exception { .setEtag("etag3123477") .putAllLabels(new HashMap()) .setOnlineServingConfig(Featurestore.OnlineServingConfig.newBuilder().build()) + .setOnlineStorageTtlDays(1491501178) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = @@ -755,6 +762,7 @@ public void createEntityTypeTest() throws Exception { .putAllLabels(new HashMap()) .setEtag("etag3123477") .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .setOfflineStorageTtlDays(-844678422) .build(); Operation resultOperation = Operation.newBuilder() @@ -812,6 +820,7 @@ public void createEntityTypeTest2() throws Exception { .putAllLabels(new HashMap()) .setEtag("etag3123477") .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .setOfflineStorageTtlDays(-844678422) .build(); Operation resultOperation = Operation.newBuilder() @@ -869,6 +878,7 @@ public void createEntityTypeTest3() throws Exception { .putAllLabels(new HashMap()) .setEtag("etag3123477") .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .setOfflineStorageTtlDays(-844678422) .build(); Operation resultOperation = Operation.newBuilder() @@ -930,6 +940,7 @@ public void createEntityTypeTest4() throws Exception { .putAllLabels(new HashMap()) .setEtag("etag3123477") .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .setOfflineStorageTtlDays(-844678422) .build(); Operation resultOperation = Operation.newBuilder() @@ -991,6 +1002,7 @@ public void getEntityTypeTest() throws Exception { .putAllLabels(new HashMap()) .setEtag("etag3123477") .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .setOfflineStorageTtlDays(-844678422) .build(); mockFeaturestoreService.addResponse(expectedResponse); @@ -1039,6 +1051,7 @@ public void getEntityTypeTest2() throws Exception { .putAllLabels(new HashMap()) .setEtag("etag3123477") .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .setOfflineStorageTtlDays(-844678422) .build(); mockFeaturestoreService.addResponse(expectedResponse); @@ -1173,6 +1186,7 @@ public void updateEntityTypeTest() throws Exception { .putAllLabels(new HashMap()) .setEtag("etag3123477") .setMonitoringConfig(FeaturestoreMonitoringConfig.newBuilder().build()) + .setOfflineStorageTtlDays(-844678422) .build(); mockFeaturestoreService.addResponse(expectedResponse); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java index 7cc84b185481..4f2d8ea92f58 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java @@ -224,6 +224,27 @@ public void listDataItems( } } + @Override + public void searchDataItems( + SearchDataItemsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchDataItemsResponse) { + requests.add(request); + responseObserver.onNext(((SearchDataItemsResponse) 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 SearchDataItems, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchDataItemsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listSavedQueries( ListSavedQueriesRequest request, StreamObserver responseObserver) { diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java index c1f0596d5efd..ce3c5872e4ac 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java @@ -389,6 +389,53 @@ private DatasetServiceGrpc() {} return getListDataItemsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.SearchDataItemsRequest, + com.google.cloud.aiplatform.v1.SearchDataItemsResponse> + getSearchDataItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchDataItems", + requestType = com.google.cloud.aiplatform.v1.SearchDataItemsRequest.class, + responseType = com.google.cloud.aiplatform.v1.SearchDataItemsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.SearchDataItemsRequest, + com.google.cloud.aiplatform.v1.SearchDataItemsResponse> + getSearchDataItemsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.SearchDataItemsRequest, + com.google.cloud.aiplatform.v1.SearchDataItemsResponse> + getSearchDataItemsMethod; + if ((getSearchDataItemsMethod = DatasetServiceGrpc.getSearchDataItemsMethod) == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getSearchDataItemsMethod = DatasetServiceGrpc.getSearchDataItemsMethod) == null) { + DatasetServiceGrpc.getSearchDataItemsMethod = + getSearchDataItemsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchDataItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.SearchDataItemsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("SearchDataItems")) + .build(); + } + } + } + return getSearchDataItemsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.ListSavedQueriesRequest, com.google.cloud.aiplatform.v1.ListSavedQueriesResponse> @@ -691,6 +738,21 @@ public void listDataItems( getListDataItemsMethod(), responseObserver); } + /** + * + * + *

+     * Searches DataItems in a Dataset.
+     * 
+ */ + public void searchDataItems( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchDataItemsMethod(), responseObserver); + } + /** * * @@ -789,6 +851,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.aiplatform.v1.ListDataItemsRequest, com.google.cloud.aiplatform.v1.ListDataItemsResponse>( this, METHODID_LIST_DATA_ITEMS))) + .addMethod( + getSearchDataItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.SearchDataItemsRequest, + com.google.cloud.aiplatform.v1.SearchDataItemsResponse>( + this, METHODID_SEARCH_DATA_ITEMS))) .addMethod( getListSavedQueriesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -957,6 +1026,23 @@ public void listDataItems( responseObserver); } + /** + * + * + *
+     * Searches DataItems in a Dataset.
+     * 
+ */ + public void searchDataItems( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchDataItemsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1133,6 +1219,19 @@ public com.google.cloud.aiplatform.v1.ListDataItemsResponse listDataItems( getChannel(), getListDataItemsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Searches DataItems in a Dataset.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.SearchDataItemsResponse searchDataItems( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchDataItemsMethod(), getCallOptions(), request); + } + /** * * @@ -1301,6 +1400,20 @@ protected DatasetServiceFutureStub build( getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Searches DataItems in a Dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.SearchDataItemsResponse> + searchDataItems(com.google.cloud.aiplatform.v1.SearchDataItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchDataItemsMethod(), getCallOptions()), request); + } + /** * * @@ -1352,9 +1465,10 @@ protected DatasetServiceFutureStub build( private static final int METHODID_IMPORT_DATA = 5; private static final int METHODID_EXPORT_DATA = 6; private static final int METHODID_LIST_DATA_ITEMS = 7; - private static final int METHODID_LIST_SAVED_QUERIES = 8; - private static final int METHODID_GET_ANNOTATION_SPEC = 9; - private static final int METHODID_LIST_ANNOTATIONS = 10; + private static final int METHODID_SEARCH_DATA_ITEMS = 8; + private static final int METHODID_LIST_SAVED_QUERIES = 9; + private static final int METHODID_GET_ANNOTATION_SPEC = 10; + private static final int METHODID_LIST_ANNOTATIONS = 11; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1417,6 +1531,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_SEARCH_DATA_ITEMS: + serviceImpl.searchDataItems( + (com.google.cloud.aiplatform.v1.SearchDataItemsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_LIST_SAVED_QUERIES: serviceImpl.listSavedQueries( (com.google.cloud.aiplatform.v1.ListSavedQueriesRequest) request, @@ -1507,6 +1627,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getImportDataMethod()) .addMethod(getExportDataMethod()) .addMethod(getListDataItemsMethod()) + .addMethod(getSearchDataItemsMethod()) .addMethod(getListSavedQueriesMethod()) .addMethod(getGetAnnotationSpecMethod()) .addMethod(getListAnnotationsMethod()) diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceGrpc.java index 49f389dfd651..be0562532619 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServingServiceGrpc.java @@ -141,6 +141,58 @@ private FeaturestoreOnlineServingServiceGrpc() {} return getStreamingReadFeatureValuesMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest, + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse> + getWriteFeatureValuesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "WriteFeatureValues", + requestType = com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest.class, + responseType = com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest, + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse> + getWriteFeatureValuesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest, + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse> + getWriteFeatureValuesMethod; + if ((getWriteFeatureValuesMethod = + FeaturestoreOnlineServingServiceGrpc.getWriteFeatureValuesMethod) + == null) { + synchronized (FeaturestoreOnlineServingServiceGrpc.class) { + if ((getWriteFeatureValuesMethod = + FeaturestoreOnlineServingServiceGrpc.getWriteFeatureValuesMethod) + == null) { + FeaturestoreOnlineServingServiceGrpc.getWriteFeatureValuesMethod = + getWriteFeatureValuesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteFeatureValues")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new FeaturestoreOnlineServingServiceMethodDescriptorSupplier( + "WriteFeatureValues")) + .build(); + } + } + } + return getWriteFeatureValuesMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static FeaturestoreOnlineServingServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -227,6 +279,24 @@ public void streamingReadFeatureValues( getStreamingReadFeatureValuesMethod(), responseObserver); } + /** + * + * + *
+     * Writes Feature values of one or more entities of an EntityType.
+     * The Feature values are merged into existing entities if any. The Feature
+     * values to be written must have timestamp within the online storage
+     * retention.
+     * 
+ */ + public void writeFeatureValues( + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getWriteFeatureValuesMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -244,6 +314,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest, com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse>( this, METHODID_STREAMING_READ_FEATURE_VALUES))) + .addMethod( + getWriteFeatureValuesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest, + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse>( + this, METHODID_WRITE_FEATURE_VALUES))) .build(); } } @@ -305,6 +382,26 @@ public void streamingReadFeatureValues( request, responseObserver); } + + /** + * + * + *
+     * Writes Feature values of one or more entities of an EntityType.
+     * The Feature values are merged into existing entities if any. The Feature
+     * values to be written must have timestamp within the online storage
+     * retention.
+     * 
+ */ + public void writeFeatureValues( + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getWriteFeatureValuesMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -357,6 +454,22 @@ public com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse readFeatureValue return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getStreamingReadFeatureValuesMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Writes Feature values of one or more entities of an EntityType.
+     * The Feature values are merged into existing entities if any. The Feature
+     * values to be written must have timestamp within the online storage
+     * retention.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse writeFeatureValues( + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getWriteFeatureValuesMethod(), getCallOptions(), request); + } } /** @@ -394,10 +507,28 @@ protected FeaturestoreOnlineServingServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReadFeatureValuesMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Writes Feature values of one or more entities of an EntityType.
+     * The Feature values are merged into existing entities if any. The Feature
+     * values to be written must have timestamp within the online storage
+     * retention.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse> + writeFeatureValues(com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getWriteFeatureValuesMethod(), getCallOptions()), request); + } } private static final int METHODID_READ_FEATURE_VALUES = 0; private static final int METHODID_STREAMING_READ_FEATURE_VALUES = 1; + private static final int METHODID_WRITE_FEATURE_VALUES = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -430,6 +561,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.aiplatform.v1.ReadFeatureValuesResponse>) responseObserver); break; + case METHODID_WRITE_FEATURE_VALUES: + serviceImpl.writeFeatureValues( + (com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -497,6 +635,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { new FeaturestoreOnlineServingServiceFileDescriptorSupplier()) .addMethod(getReadFeatureValuesMethod()) .addMethod(getStreamingReadFeatureValuesMethod()) + .addMethod(getWriteFeatureValuesMethod()) .build(); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java index bcc156c53fcf..e8d624d55e4f 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java @@ -397,6 +397,53 @@ private DatasetServiceGrpc() {} return getListDataItemsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse> + getSearchDataItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchDataItems", + requestType = com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse> + getSearchDataItemsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse> + getSearchDataItemsMethod; + if ((getSearchDataItemsMethod = DatasetServiceGrpc.getSearchDataItemsMethod) == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getSearchDataItemsMethod = DatasetServiceGrpc.getSearchDataItemsMethod) == null) { + DatasetServiceGrpc.getSearchDataItemsMethod = + getSearchDataItemsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchDataItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("SearchDataItems")) + .build(); + } + } + } + return getSearchDataItemsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest, com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse> @@ -700,6 +747,21 @@ public void listDataItems( getListDataItemsMethod(), responseObserver); } + /** + * + * + *
+     * Searches DataItems in a Dataset.
+     * 
+ */ + public void searchDataItems( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchDataItemsMethod(), responseObserver); + } + /** * * @@ -798,6 +860,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest, com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse>( this, METHODID_LIST_DATA_ITEMS))) + .addMethod( + getSearchDataItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse>( + this, METHODID_SEARCH_DATA_ITEMS))) .addMethod( getListSavedQueriesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -966,6 +1035,23 @@ public void listDataItems( responseObserver); } + /** + * + * + *
+     * Searches DataItems in a Dataset.
+     * 
+ */ + public void searchDataItems( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchDataItemsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1142,6 +1228,19 @@ public com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse listDataItems( getChannel(), getListDataItemsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Searches DataItems in a Dataset.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse searchDataItems( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchDataItemsMethod(), getCallOptions(), request); + } + /** * * @@ -1310,6 +1409,20 @@ protected DatasetServiceFutureStub build( getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Searches DataItems in a Dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse> + searchDataItems(com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchDataItemsMethod(), getCallOptions()), request); + } + /** * * @@ -1361,9 +1474,10 @@ protected DatasetServiceFutureStub build( private static final int METHODID_IMPORT_DATA = 5; private static final int METHODID_EXPORT_DATA = 6; private static final int METHODID_LIST_DATA_ITEMS = 7; - private static final int METHODID_LIST_SAVED_QUERIES = 8; - private static final int METHODID_GET_ANNOTATION_SPEC = 9; - private static final int METHODID_LIST_ANNOTATIONS = 10; + private static final int METHODID_SEARCH_DATA_ITEMS = 8; + private static final int METHODID_LIST_SAVED_QUERIES = 9; + private static final int METHODID_GET_ANNOTATION_SPEC = 10; + private static final int METHODID_LIST_ANNOTATIONS = 11; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1428,6 +1542,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse>) responseObserver); break; + case METHODID_SEARCH_DATA_ITEMS: + serviceImpl.searchDataItems( + (com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse>) + responseObserver); + break; case METHODID_LIST_SAVED_QUERIES: serviceImpl.listSavedQueries( (com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest) request, @@ -1520,6 +1641,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getImportDataMethod()) .addMethod(getExportDataMethod()) .addMethod(getListDataItemsMethod()) + .addMethod(getSearchDataItemsMethod()) .addMethod(getListSavedQueriesMethod()) .addMethod(getGetAnnotationSpecMethod()) .addMethod(getListAnnotationsMethod()) diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java index 0ce840ca0144..97e332fa681a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpec.java @@ -125,7 +125,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The user-defined name of the AnnotationSpec.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -150,7 +150,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The user-defined name of the AnnotationSpec.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -873,7 +873,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The user-defined name of the AnnotationSpec.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -897,7 +897,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The user-defined name of the AnnotationSpec.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -921,7 +921,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The user-defined name of the AnnotationSpec.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -944,7 +944,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The user-defined name of the AnnotationSpec.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -963,7 +963,7 @@ public Builder clearDisplayName() { * *
      * Required. The user-defined name of the AnnotationSpec.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecOrBuilder.java index 4e8d39339204..492e7d0bad43 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AnnotationSpecOrBuilder.java @@ -53,7 +53,7 @@ public interface AnnotationSpecOrBuilder * *
    * Required. The user-defined name of the AnnotationSpec.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface AnnotationSpecOrBuilder * *
    * Required. The user-defined name of the AnnotationSpec.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java index 8a386f1d6c82..b62b27818dfd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJob.java @@ -5379,7 +5379,7 @@ public com.google.cloud.aiplatform.v1.BatchDedicatedResources getDedicatedResour * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -5407,7 +5407,7 @@ public java.lang.String getServiceAccount() { * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -5736,7 +5736,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -5754,7 +5754,7 @@ public java.util.List getPartialFailuresList() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -5773,7 +5773,7 @@ public java.util.List getPartialFailuresList() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -5791,7 +5791,7 @@ public int getPartialFailuresCount() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -5809,7 +5809,7 @@ public com.google.rpc.Status getPartialFailures(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -9082,7 +9082,7 @@ public Builder clearDedicatedResources() { * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -9109,7 +9109,7 @@ public java.lang.String getServiceAccount() { * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -9136,7 +9136,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -9162,7 +9162,7 @@ public Builder setServiceAccount(java.lang.String value) { * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -9184,7 +9184,7 @@ public Builder clearServiceAccount() { * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -10261,7 +10261,7 @@ private void ensurePartialFailuresIsMutable() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10282,7 +10282,7 @@ public java.util.List getPartialFailuresList() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10303,7 +10303,7 @@ public int getPartialFailuresCount() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10324,7 +10324,7 @@ public com.google.rpc.Status getPartialFailures(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10351,7 +10351,7 @@ public Builder setPartialFailures(int index, com.google.rpc.Status value) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10375,7 +10375,7 @@ public Builder setPartialFailures(int index, com.google.rpc.Status.Builder build * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10402,7 +10402,7 @@ public Builder addPartialFailures(com.google.rpc.Status value) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10429,7 +10429,7 @@ public Builder addPartialFailures(int index, com.google.rpc.Status value) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10453,7 +10453,7 @@ public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue) * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10477,7 +10477,7 @@ public Builder addPartialFailures(int index, com.google.rpc.Status.Builder build * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10502,7 +10502,7 @@ public Builder addAllPartialFailures( * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10526,7 +10526,7 @@ public Builder clearPartialFailures() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10550,7 +10550,7 @@ public Builder removePartialFailures(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10567,7 +10567,7 @@ public com.google.rpc.Status.Builder getPartialFailuresBuilder(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10588,7 +10588,7 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10610,7 +10610,7 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10628,7 +10628,7 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -10646,7 +10646,7 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java index a8d3806b7922..31f6556b3ef7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchPredictionJobOrBuilder.java @@ -394,7 +394,7 @@ public interface BatchPredictionJobOrBuilder * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -411,7 +411,7 @@ public interface BatchPredictionJobOrBuilder * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -659,7 +659,7 @@ public interface BatchPredictionJobOrBuilder * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -674,7 +674,7 @@ public interface BatchPredictionJobOrBuilder * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -689,7 +689,7 @@ public interface BatchPredictionJobOrBuilder * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -704,7 +704,7 @@ public interface BatchPredictionJobOrBuilder * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -719,7 +719,7 @@ public interface BatchPredictionJobOrBuilder * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJob.java index 9a38e4fe9a99..85e2401dd366 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJob.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The display name of the CustomJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -166,7 +166,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The display name of the CustomJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -1656,7 +1656,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The display name of the CustomJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1680,7 +1680,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The display name of the CustomJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1704,7 +1704,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The display name of the CustomJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1727,7 +1727,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The display name of the CustomJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1746,7 +1746,7 @@ public Builder clearDisplayName() { * *
      * Required. The display name of the CustomJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobOrBuilder.java index 625082ef290e..b7dcb6f7f3e9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CustomJobOrBuilder.java @@ -53,7 +53,7 @@ public interface CustomJobOrBuilder * *
    * Required. The display name of the CustomJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface CustomJobOrBuilder * *
    * Required. The display name of the CustomJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemView.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemView.java new file mode 100644 index 000000000000..ca44f1b6a458 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemView.java @@ -0,0 +1,1351 @@ +/* + * 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/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * A container for a single DataItem and Annotations on it.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DataItemView} + */ +public final class DataItemView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DataItemView) + DataItemViewOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataItemView.newBuilder() to construct. + private DataItemView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataItemView() { + annotations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataItemView(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_DataItemView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_DataItemView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DataItemView.class, + com.google.cloud.aiplatform.v1.DataItemView.Builder.class); + } + + public static final int DATA_ITEM_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.DataItem dataItem_; + /** + * + * + *
+   * The DataItem.
+   * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + * + * @return Whether the dataItem field is set. + */ + @java.lang.Override + public boolean hasDataItem() { + return dataItem_ != null; + } + /** + * + * + *
+   * The DataItem.
+   * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + * + * @return The dataItem. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DataItem getDataItem() { + return dataItem_ == null + ? com.google.cloud.aiplatform.v1.DataItem.getDefaultInstance() + : dataItem_; + } + /** + * + * + *
+   * The DataItem.
+   * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DataItemOrBuilder getDataItemOrBuilder() { + return getDataItem(); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 2; + private java.util.List annotations_; + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + @java.lang.Override + public java.util.List getAnnotationsList() { + return annotations_; + } + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + @java.lang.Override + public java.util.List + getAnnotationsOrBuilderList() { + return annotations_; + } + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + @java.lang.Override + public int getAnnotationsCount() { + return annotations_.size(); + } + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Annotation getAnnotations(int index) { + return annotations_.get(index); + } + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index) { + return annotations_.get(index); + } + + public static final int HAS_TRUNCATED_ANNOTATIONS_FIELD_NUMBER = 3; + private boolean hasTruncatedAnnotations_; + /** + * + * + *
+   * True if and only if the Annotations field has been truncated. It happens if
+   * more Annotations for this DataItem met the request's annotation_filter than
+   * are allowed to be returned by annotations_limit.
+   * Note that if Annotations field is not being returned due to field mask,
+   * then this field will not be set to true no matter how many Annotations are
+   * there.
+   * 
+ * + * bool has_truncated_annotations = 3; + * + * @return The hasTruncatedAnnotations. + */ + @java.lang.Override + public boolean getHasTruncatedAnnotations() { + return hasTruncatedAnnotations_; + } + + 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 (dataItem_ != null) { + output.writeMessage(1, getDataItem()); + } + for (int i = 0; i < annotations_.size(); i++) { + output.writeMessage(2, annotations_.get(i)); + } + if (hasTruncatedAnnotations_ != false) { + output.writeBool(3, hasTruncatedAnnotations_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataItem_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataItem()); + } + for (int i = 0; i < annotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, annotations_.get(i)); + } + if (hasTruncatedAnnotations_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, hasTruncatedAnnotations_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.DataItemView)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.DataItemView other = + (com.google.cloud.aiplatform.v1.DataItemView) obj; + + if (hasDataItem() != other.hasDataItem()) return false; + if (hasDataItem()) { + if (!getDataItem().equals(other.getDataItem())) return false; + } + if (!getAnnotationsList().equals(other.getAnnotationsList())) return false; + if (getHasTruncatedAnnotations() != other.getHasTruncatedAnnotations()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataItem()) { + hash = (37 * hash) + DATA_ITEM_FIELD_NUMBER; + hash = (53 * hash) + getDataItem().hashCode(); + } + if (getAnnotationsCount() > 0) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationsList().hashCode(); + } + hash = (37 * hash) + HAS_TRUNCATED_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasTruncatedAnnotations()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.DataItemView parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DataItemView parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DataItemView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DataItemView parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DataItemView parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DataItemView parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DataItemView parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DataItemView parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DataItemView parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DataItemView parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DataItemView parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DataItemView parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.DataItemView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A container for a single DataItem and Annotations on it.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DataItemView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DataItemView) + com.google.cloud.aiplatform.v1.DataItemViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_DataItemView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_DataItemView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DataItemView.class, + com.google.cloud.aiplatform.v1.DataItemView.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.DataItemView.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataItemBuilder_ == null) { + dataItem_ = null; + } else { + dataItem_ = null; + dataItemBuilder_ = null; + } + if (annotationsBuilder_ == null) { + annotations_ = java.util.Collections.emptyList(); + } else { + annotations_ = null; + annotationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + hasTruncatedAnnotations_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_DataItemView_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DataItemView getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.DataItemView.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DataItemView build() { + com.google.cloud.aiplatform.v1.DataItemView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DataItemView buildPartial() { + com.google.cloud.aiplatform.v1.DataItemView result = + new com.google.cloud.aiplatform.v1.DataItemView(this); + int from_bitField0_ = bitField0_; + if (dataItemBuilder_ == null) { + result.dataItem_ = dataItem_; + } else { + result.dataItem_ = dataItemBuilder_.build(); + } + if (annotationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + annotations_ = java.util.Collections.unmodifiableList(annotations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + result.hasTruncatedAnnotations_ = hasTruncatedAnnotations_; + 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.v1.DataItemView) { + return mergeFrom((com.google.cloud.aiplatform.v1.DataItemView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.DataItemView other) { + if (other == com.google.cloud.aiplatform.v1.DataItemView.getDefaultInstance()) return this; + if (other.hasDataItem()) { + mergeDataItem(other.getDataItem()); + } + if (annotationsBuilder_ == null) { + if (!other.annotations_.isEmpty()) { + if (annotations_.isEmpty()) { + annotations_ = other.annotations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAnnotationsIsMutable(); + annotations_.addAll(other.annotations_); + } + onChanged(); + } + } else { + if (!other.annotations_.isEmpty()) { + if (annotationsBuilder_.isEmpty()) { + annotationsBuilder_.dispose(); + annotationsBuilder_ = null; + annotations_ = other.annotations_; + bitField0_ = (bitField0_ & ~0x00000001); + annotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAnnotationsFieldBuilder() + : null; + } else { + annotationsBuilder_.addAllMessages(other.annotations_); + } + } + } + if (other.getHasTruncatedAnnotations() != false) { + setHasTruncatedAnnotations(other.getHasTruncatedAnnotations()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getDataItemFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1.Annotation m = + input.readMessage( + com.google.cloud.aiplatform.v1.Annotation.parser(), extensionRegistry); + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.add(m); + } else { + annotationsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + hasTruncatedAnnotations_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.DataItem dataItem_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.DataItem, + com.google.cloud.aiplatform.v1.DataItem.Builder, + com.google.cloud.aiplatform.v1.DataItemOrBuilder> + dataItemBuilder_; + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + * + * @return Whether the dataItem field is set. + */ + public boolean hasDataItem() { + return dataItemBuilder_ != null || dataItem_ != null; + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + * + * @return The dataItem. + */ + public com.google.cloud.aiplatform.v1.DataItem getDataItem() { + if (dataItemBuilder_ == null) { + return dataItem_ == null + ? com.google.cloud.aiplatform.v1.DataItem.getDefaultInstance() + : dataItem_; + } else { + return dataItemBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + */ + public Builder setDataItem(com.google.cloud.aiplatform.v1.DataItem value) { + if (dataItemBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataItem_ = value; + onChanged(); + } else { + dataItemBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + */ + public Builder setDataItem(com.google.cloud.aiplatform.v1.DataItem.Builder builderForValue) { + if (dataItemBuilder_ == null) { + dataItem_ = builderForValue.build(); + onChanged(); + } else { + dataItemBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + */ + public Builder mergeDataItem(com.google.cloud.aiplatform.v1.DataItem value) { + if (dataItemBuilder_ == null) { + if (dataItem_ != null) { + dataItem_ = + com.google.cloud.aiplatform.v1.DataItem.newBuilder(dataItem_) + .mergeFrom(value) + .buildPartial(); + } else { + dataItem_ = value; + } + onChanged(); + } else { + dataItemBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + */ + public Builder clearDataItem() { + if (dataItemBuilder_ == null) { + dataItem_ = null; + onChanged(); + } else { + dataItem_ = null; + dataItemBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + */ + public com.google.cloud.aiplatform.v1.DataItem.Builder getDataItemBuilder() { + + onChanged(); + return getDataItemFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + */ + public com.google.cloud.aiplatform.v1.DataItemOrBuilder getDataItemOrBuilder() { + if (dataItemBuilder_ != null) { + return dataItemBuilder_.getMessageOrBuilder(); + } else { + return dataItem_ == null + ? com.google.cloud.aiplatform.v1.DataItem.getDefaultInstance() + : dataItem_; + } + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.DataItem, + com.google.cloud.aiplatform.v1.DataItem.Builder, + com.google.cloud.aiplatform.v1.DataItemOrBuilder> + getDataItemFieldBuilder() { + if (dataItemBuilder_ == null) { + dataItemBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.DataItem, + com.google.cloud.aiplatform.v1.DataItem.Builder, + com.google.cloud.aiplatform.v1.DataItemOrBuilder>( + getDataItem(), getParentForChildren(), isClean()); + dataItem_ = null; + } + return dataItemBuilder_; + } + + private java.util.List annotations_ = + java.util.Collections.emptyList(); + + private void ensureAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + annotations_ = + new java.util.ArrayList(annotations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Annotation, + com.google.cloud.aiplatform.v1.Annotation.Builder, + com.google.cloud.aiplatform.v1.AnnotationOrBuilder> + annotationsBuilder_; + + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public java.util.List getAnnotationsList() { + if (annotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(annotations_); + } else { + return annotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public int getAnnotationsCount() { + if (annotationsBuilder_ == null) { + return annotations_.size(); + } else { + return annotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public com.google.cloud.aiplatform.v1.Annotation getAnnotations(int index) { + if (annotationsBuilder_ == null) { + return annotations_.get(index); + } else { + return annotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public Builder setAnnotations(int index, com.google.cloud.aiplatform.v1.Annotation value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.set(index, value); + onChanged(); + } else { + annotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public Builder setAnnotations( + int index, com.google.cloud.aiplatform.v1.Annotation.Builder builderForValue) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.set(index, builderForValue.build()); + onChanged(); + } else { + annotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public Builder addAnnotations(com.google.cloud.aiplatform.v1.Annotation value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.add(value); + onChanged(); + } else { + annotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public Builder addAnnotations(int index, com.google.cloud.aiplatform.v1.Annotation value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.add(index, value); + onChanged(); + } else { + annotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public Builder addAnnotations( + com.google.cloud.aiplatform.v1.Annotation.Builder builderForValue) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.add(builderForValue.build()); + onChanged(); + } else { + annotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public Builder addAnnotations( + int index, com.google.cloud.aiplatform.v1.Annotation.Builder builderForValue) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.add(index, builderForValue.build()); + onChanged(); + } else { + annotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public Builder addAllAnnotations( + java.lang.Iterable values) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotations_); + onChanged(); + } else { + annotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + annotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public Builder removeAnnotations(int index) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.remove(index); + onChanged(); + } else { + annotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public com.google.cloud.aiplatform.v1.Annotation.Builder getAnnotationsBuilder(int index) { + return getAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public com.google.cloud.aiplatform.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index) { + if (annotationsBuilder_ == null) { + return annotations_.get(index); + } else { + return annotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public java.util.List + getAnnotationsOrBuilderList() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(annotations_); + } + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public com.google.cloud.aiplatform.v1.Annotation.Builder addAnnotationsBuilder() { + return getAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Annotation.getDefaultInstance()); + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public com.google.cloud.aiplatform.v1.Annotation.Builder addAnnotationsBuilder(int index) { + return getAnnotationsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Annotation.getDefaultInstance()); + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + public java.util.List + getAnnotationsBuilderList() { + return getAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Annotation, + com.google.cloud.aiplatform.v1.Annotation.Builder, + com.google.cloud.aiplatform.v1.AnnotationOrBuilder> + getAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Annotation, + com.google.cloud.aiplatform.v1.Annotation.Builder, + com.google.cloud.aiplatform.v1.AnnotationOrBuilder>( + annotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + private boolean hasTruncatedAnnotations_; + /** + * + * + *
+     * True if and only if the Annotations field has been truncated. It happens if
+     * more Annotations for this DataItem met the request's annotation_filter than
+     * are allowed to be returned by annotations_limit.
+     * Note that if Annotations field is not being returned due to field mask,
+     * then this field will not be set to true no matter how many Annotations are
+     * there.
+     * 
+ * + * bool has_truncated_annotations = 3; + * + * @return The hasTruncatedAnnotations. + */ + @java.lang.Override + public boolean getHasTruncatedAnnotations() { + return hasTruncatedAnnotations_; + } + /** + * + * + *
+     * True if and only if the Annotations field has been truncated. It happens if
+     * more Annotations for this DataItem met the request's annotation_filter than
+     * are allowed to be returned by annotations_limit.
+     * Note that if Annotations field is not being returned due to field mask,
+     * then this field will not be set to true no matter how many Annotations are
+     * there.
+     * 
+ * + * bool has_truncated_annotations = 3; + * + * @param value The hasTruncatedAnnotations to set. + * @return This builder for chaining. + */ + public Builder setHasTruncatedAnnotations(boolean value) { + + hasTruncatedAnnotations_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * True if and only if the Annotations field has been truncated. It happens if
+     * more Annotations for this DataItem met the request's annotation_filter than
+     * are allowed to be returned by annotations_limit.
+     * Note that if Annotations field is not being returned due to field mask,
+     * then this field will not be set to true no matter how many Annotations are
+     * there.
+     * 
+ * + * bool has_truncated_annotations = 3; + * + * @return This builder for chaining. + */ + public Builder clearHasTruncatedAnnotations() { + + hasTruncatedAnnotations_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.DataItemView) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DataItemView) + private static final com.google.cloud.aiplatform.v1.DataItemView DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DataItemView(); + } + + public static com.google.cloud.aiplatform.v1.DataItemView getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataItemView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DataItemView getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemViewOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemViewOrBuilder.java new file mode 100644 index 000000000000..e71cc02734a5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataItemViewOrBuilder.java @@ -0,0 +1,140 @@ +/* + * 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/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface DataItemViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.DataItemView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DataItem.
+   * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + * + * @return Whether the dataItem field is set. + */ + boolean hasDataItem(); + /** + * + * + *
+   * The DataItem.
+   * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + * + * @return The dataItem. + */ + com.google.cloud.aiplatform.v1.DataItem getDataItem(); + /** + * + * + *
+   * The DataItem.
+   * 
+ * + * .google.cloud.aiplatform.v1.DataItem data_item = 1; + */ + com.google.cloud.aiplatform.v1.DataItemOrBuilder getDataItemOrBuilder(); + + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + java.util.List getAnnotationsList(); + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + com.google.cloud.aiplatform.v1.Annotation getAnnotations(int index); + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + int getAnnotationsCount(); + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + java.util.List + getAnnotationsOrBuilderList(); + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.Annotation annotations = 2; + */ + com.google.cloud.aiplatform.v1.AnnotationOrBuilder getAnnotationsOrBuilder(int index); + + /** + * + * + *
+   * True if and only if the Annotations field has been truncated. It happens if
+   * more Annotations for this DataItem met the request's annotation_filter than
+   * are allowed to be returned by annotations_limit.
+   * Note that if Annotations field is not being returned due to field mask,
+   * then this field will not be set to true no matter how many Annotations are
+   * there.
+   * 
+ * + * bool has_truncated_annotations = 3; + * + * @return The hasTruncatedAnnotations. + */ + boolean getHasTruncatedAnnotations(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java index c6b05e90c7c3..ad03fefb3c74 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJob.java @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The user-defined name of the DataLabelingJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a DataLabelingJob.
    * 
@@ -169,7 +169,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The user-defined name of the DataLabelingJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a DataLabelingJob.
    * 
@@ -2115,7 +2115,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The user-defined name of the DataLabelingJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a DataLabelingJob.
      * 
@@ -2140,7 +2140,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The user-defined name of the DataLabelingJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a DataLabelingJob.
      * 
@@ -2165,7 +2165,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The user-defined name of the DataLabelingJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a DataLabelingJob.
      * 
@@ -2189,7 +2189,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The user-defined name of the DataLabelingJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a DataLabelingJob.
      * 
@@ -2209,7 +2209,7 @@ public Builder clearDisplayName() { * *
      * Required. The user-defined name of the DataLabelingJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a DataLabelingJob.
      * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java index 61d3d140b6ee..20136a9cfbfc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DataLabelingJobOrBuilder.java @@ -53,7 +53,7 @@ public interface DataLabelingJobOrBuilder * *
    * Required. The user-defined name of the DataLabelingJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a DataLabelingJob.
    * 
@@ -68,7 +68,7 @@ public interface DataLabelingJobOrBuilder * *
    * Required. The user-defined name of the DataLabelingJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a DataLabelingJob.
    * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java index 0b64d03ee014..ebd79d179272 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Dataset.java @@ -43,6 +43,7 @@ private Dataset() { description_ = ""; metadataSchemaUri_ = ""; etag_ = ""; + metadataArtifact_ = ""; } @java.lang.Override @@ -138,7 +139,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The user-defined name of the Dataset.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -163,7 +164,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The user-defined name of the Dataset.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -190,10 +191,10 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Optional. The description of the Dataset.
+   * The description of the Dataset.
    * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return The description. */ @@ -213,10 +214,10 @@ public java.lang.String getDescription() { * * *
-   * Optional. The description of the Dataset.
+   * The description of the Dataset.
    * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return The bytes for description. */ @@ -674,6 +675,59 @@ public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecO return getEncryptionSpec(); } + public static final int METADATA_ARTIFACT_FIELD_NUMBER = 17; + private volatile java.lang.Object metadataArtifact_; + /** + * + * + *
+   * Output only. The resource name of the Artifact that was created in MetadataStore when
+   * creating the Dataset. The Artifact resource name pattern is
+   * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+   * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metadataArtifact. + */ + @java.lang.Override + public java.lang.String getMetadataArtifact() { + java.lang.Object ref = metadataArtifact_; + 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(); + metadataArtifact_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the Artifact that was created in MetadataStore when
+   * creating the Dataset. The Artifact resource name pattern is
+   * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+   * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metadataArtifact. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadataArtifactBytes() { + java.lang.Object ref = metadataArtifact_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataArtifact_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -717,6 +771,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, description_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataArtifact_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, metadataArtifact_); + } getUnknownFields().writeTo(output); } @@ -763,6 +820,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, description_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataArtifact_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, metadataArtifact_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -800,6 +860,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEncryptionSpec()) { if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; } + if (!getMetadataArtifact().equals(other.getMetadataArtifact())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -841,6 +902,8 @@ public int hashCode() { hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getEncryptionSpec().hashCode(); } + hash = (37 * hash) + METADATA_ARTIFACT_FIELD_NUMBER; + hash = (53 * hash) + getMetadataArtifact().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1034,6 +1097,8 @@ public Builder clear() { encryptionSpec_ = null; encryptionSpecBuilder_ = null; } + metadataArtifact_ = ""; + return this; } @@ -1089,6 +1154,7 @@ public com.google.cloud.aiplatform.v1.Dataset buildPartial() { } else { result.encryptionSpec_ = encryptionSpecBuilder_.build(); } + result.metadataArtifact_ = metadataArtifact_; onBuilt(); return result; } @@ -1171,6 +1237,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Dataset other) { if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } + if (!other.getMetadataArtifact().isEmpty()) { + metadataArtifact_ = other.metadataArtifact_; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1262,6 +1332,12 @@ public Builder mergeFrom( break; } // case 130 + case 138: + { + metadataArtifact_ = input.readStringRequireUtf8(); + + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1393,7 +1469,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The user-defined name of the Dataset.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1417,7 +1493,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The user-defined name of the Dataset.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1441,7 +1517,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The user-defined name of the Dataset.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1464,7 +1540,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The user-defined name of the Dataset.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1483,7 +1559,7 @@ public Builder clearDisplayName() { * *
      * Required. The user-defined name of the Dataset.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1508,10 +1584,10 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The description of the Dataset.
+     * The description of the Dataset.
      * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return The description. */ @@ -1530,10 +1606,10 @@ public java.lang.String getDescription() { * * *
-     * Optional. The description of the Dataset.
+     * The description of the Dataset.
      * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return The bytes for description. */ @@ -1552,10 +1628,10 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-     * Optional. The description of the Dataset.
+     * The description of the Dataset.
      * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @param value The description to set. * @return This builder for chaining. @@ -1573,10 +1649,10 @@ public Builder setDescription(java.lang.String value) { * * *
-     * Optional. The description of the Dataset.
+     * The description of the Dataset.
      * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return This builder for chaining. */ @@ -1590,10 +1666,10 @@ public Builder clearDescription() { * * *
-     * Optional. The description of the Dataset.
+     * The description of the Dataset.
      * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @param value The bytes for description to set. * @return This builder for chaining. @@ -2850,6 +2926,122 @@ public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecO return encryptionSpecBuilder_; } + private java.lang.Object metadataArtifact_ = ""; + /** + * + * + *
+     * Output only. The resource name of the Artifact that was created in MetadataStore when
+     * creating the Dataset. The Artifact resource name pattern is
+     * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+     * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metadataArtifact. + */ + public java.lang.String getMetadataArtifact() { + java.lang.Object ref = metadataArtifact_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataArtifact_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the Artifact that was created in MetadataStore when
+     * creating the Dataset. The Artifact resource name pattern is
+     * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+     * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metadataArtifact. + */ + public com.google.protobuf.ByteString getMetadataArtifactBytes() { + java.lang.Object ref = metadataArtifact_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataArtifact_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the Artifact that was created in MetadataStore when
+     * creating the Dataset. The Artifact resource name pattern is
+     * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+     * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The metadataArtifact to set. + * @return This builder for chaining. + */ + public Builder setMetadataArtifact(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metadataArtifact_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the Artifact that was created in MetadataStore when
+     * creating the Dataset. The Artifact resource name pattern is
+     * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+     * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMetadataArtifact() { + + metadataArtifact_ = getDefaultInstance().getMetadataArtifact(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the Artifact that was created in MetadataStore when
+     * creating the Dataset. The Artifact resource name pattern is
+     * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+     * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for metadataArtifact to set. + * @return This builder for chaining. + */ + public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metadataArtifact_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java index 36894d7679f7..f9127ea28cbd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetOrBuilder.java @@ -53,7 +53,7 @@ public interface DatasetOrBuilder * *
    * Required. The user-defined name of the Dataset.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface DatasetOrBuilder * *
    * Required. The user-defined name of the Dataset.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -81,10 +81,10 @@ public interface DatasetOrBuilder * * *
-   * Optional. The description of the Dataset.
+   * The description of the Dataset.
    * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return The description. */ @@ -93,10 +93,10 @@ public interface DatasetOrBuilder * * *
-   * Optional. The description of the Dataset.
+   * The description of the Dataset.
    * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return The bytes for description. */ @@ -419,4 +419,33 @@ java.lang.String getLabelsOrDefault( * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 11; */ com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); + + /** + * + * + *
+   * Output only. The resource name of the Artifact that was created in MetadataStore when
+   * creating the Dataset. The Artifact resource name pattern is
+   * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+   * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metadataArtifact. + */ + java.lang.String getMetadataArtifact(); + /** + * + * + *
+   * Output only. The resource name of the Artifact that was created in MetadataStore when
+   * creating the Dataset. The Artifact resource name pattern is
+   * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+   * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metadataArtifact. + */ + com.google.protobuf.ByteString getMetadataArtifactBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java index 3514f6cbd22a..44637cc6bbfb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetProto.java @@ -67,40 +67,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ncryption_spec.proto\032#google/cloud/aipla" + "tform/v1/io.proto\032\034google/protobuf/struc" + "t.proto\032\037google/protobuf/timestamp.proto" - + "\"\265\004\n\007Dataset\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014displ" - + "ay_name\030\002 \001(\tB\003\340A\002\022\030\n\013description\030\020 \001(\tB" - + "\003\340A\001\022 \n\023metadata_schema_uri\030\003 \001(\tB\003\340A\002\022-" - + "\n\010metadata\030\010 \001(\0132\026.google.protobuf.Value" - + "B\003\340A\002\0224\n\013create_time\030\004 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022\014\n\004eta" - + "g\030\006 \001(\t\022?\n\006labels\030\007 \003(\0132/.google.cloud.a" - + "iplatform.v1.Dataset.LabelsEntry\022C\n\017encr" - + "yption_spec\030\013 \001(\0132*.google.cloud.aiplatf" - + "orm.v1.EncryptionSpec\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:b\352A_\n!aipla" - + "tform.googleapis.com/Dataset\022:projects/{" - + "project}/locations/{location}/datasets/{" - + "dataset}\"\244\003\n\020ImportDataConfig\022;\n\ngcs_sou" - + "rce\030\001 \001(\0132%.google.cloud.aiplatform.v1.G" - + "csSourceH\000\022Z\n\020data_item_labels\030\002 \003(\0132@.g" + + "\"\320\004\n\007Dataset\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014displ" + + "ay_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\020 \001(\t\022" + + " \n\023metadata_schema_uri\030\003 \001(\tB\003\340A\002\022-\n\010met" + + "adata\030\010 \001(\0132\026.google.protobuf.ValueB\003\340A\002" + + "\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030\006 \001" + + "(\t\022?\n\006labels\030\007 \003(\0132/.google.cloud.aiplat" + + "form.v1.Dataset.LabelsEntry\022C\n\017encryptio" + + "n_spec\030\013 \001(\0132*.google.cloud.aiplatform.v" + + "1.EncryptionSpec\022\036\n\021metadata_artifact\030\021 " + + "\001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001:b\352A_\n!aiplatform.googlea" + + "pis.com/Dataset\022:projects/{project}/loca" + + "tions/{location}/datasets/{dataset}\"\244\003\n\020" + + "ImportDataConfig\022;\n\ngcs_source\030\001 \001(\0132%.g" + + "oogle.cloud.aiplatform.v1.GcsSourceH\000\022Z\n" + + "\020data_item_labels\030\002 \003(\0132@.google.cloud.a" + + "iplatform.v1.ImportDataConfig.DataItemLa" + + "belsEntry\022]\n\021annotation_labels\030\003 \003(\0132B.g" + "oogle.cloud.aiplatform.v1.ImportDataConf" - + "ig.DataItemLabelsEntry\022]\n\021annotation_lab" - + "els\030\003 \003(\0132B.google.cloud.aiplatform.v1.I" - + "mportDataConfig.AnnotationLabelsEntry\022\036\n" - + "\021import_schema_uri\030\004 \001(\tB\003\340A\002\0325\n\023DataIte" - + "mLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\0327\n\025AnnotationLabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006source\"\204\001\n\020Expo" - + "rtDataConfig\022E\n\017gcs_destination\030\001 \001(\0132*." - + "google.cloud.aiplatform.v1.GcsDestinatio" - + "nH\000\022\032\n\022annotations_filter\030\002 \001(\tB\r\n\013desti" - + "nationB\320\001\n\036com.google.cloud.aiplatform.v" - + "1B\014DatasetProtoP\001ZDgoogle.golang.org/gen" - + "proto/googleapis/cloud/aiplatform/v1;aip" - + "latform\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" - + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" - + "d::AIPlatform::V1b\006proto3" + + "ig.AnnotationLabelsEntry\022\036\n\021import_schem" + + "a_uri\030\004 \001(\tB\003\340A\002\0325\n\023DataItemLabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0327\n\025Annot" + + "ationLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001B\010\n\006source\"\204\001\n\020ExportDataConfig\022" + + "E\n\017gcs_destination\030\001 \001(\0132*.google.cloud." + + "aiplatform.v1.GcsDestinationH\000\022\032\n\022annota" + + "tions_filter\030\002 \001(\tB\r\n\013destinationB\320\001\n\036co" + + "m.google.cloud.aiplatform.v1B\014DatasetPro" + + "toP\001ZDgoogle.golang.org/genproto/googlea" + + "pis/cloud/aiplatform/v1;aiplatform\252\002\032Goo" + + "gle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\A" + + "IPlatform\\V1\352\002\035Google::Cloud::AIPlatform" + + "::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -129,6 +130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Etag", "Labels", "EncryptionSpec", + "MetadataArtifact", }); internal_static_google_cloud_aiplatform_v1_Dataset_LabelsEntry_descriptor = internal_static_google_cloud_aiplatform_v1_Dataset_descriptor.getNestedTypes().get(0); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java index 39009e3b9c71..f57b967a7e58 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java @@ -87,6 +87,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ListDataItemsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ListDataItemsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_OrderByAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_OrderByAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_DataItemView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_DataItemView_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -175,91 +191,118 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rotobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"j\n\025L" + "istDataItemsResponse\0228\n\ndata_items\030\001 \003(\013" + "2$.google.cloud.aiplatform.v1.DataItem\022\027" - + "\n\017next_page_token\030\002 \001(\t\"\314\001\n\027ListSavedQue" - + "riesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!aip" - + "latform.googleapis.com/Dataset\022\016\n\006filter" - + "\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030" - + "\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.protob" - + "uf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"r\n\030ListSa" - + "vedQueriesResponse\022=\n\rsaved_queries\030\001 \003(" - + "\0132&.google.cloud.aiplatform.v1.SavedQuer" - + "y\022\027\n\017next_page_token\030\002 \001(\t\"\211\001\n\030GetAnnota" - + "tionSpecRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(a" - + "iplatform.googleapis.com/AnnotationSpec\022" - + "-\n\tread_mask\030\002 \001(\0132\032.google.protobuf.Fie" - + "ldMask\"\314\001\n\026ListAnnotationsRequest\022:\n\006par" - + "ent\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googleapis" - + ".com/DataItem\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_si" - + "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mas" - + "k\030\005 \001(\0132\032.google.protobuf.FieldMask\022\020\n\010o" - + "rder_by\030\006 \001(\t\"o\n\027ListAnnotationsResponse" - + "\022;\n\013annotations\030\001 \003(\0132&.google.cloud.aip" - + "latform.v1.Annotation\022\027\n\017next_page_token" - + "\030\002 \001(\t2\246\022\n\016DatasetService\022\334\001\n\rCreateData" - + "set\0220.google.cloud.aiplatform.v1.CreateD" - + "atasetRequest\032\035.google.longrunning.Opera" - + "tion\"z\202\323\344\223\0027\",/v1/{parent=projects/*/loc" - + "ations/*}/datasets:\007dataset\332A\016parent,dat" - + "aset\312A)\n\007Dataset\022\036CreateDatasetOperation" - + "Metadata\022\235\001\n\nGetDataset\022-.google.cloud.a" - + "iplatform.v1.GetDatasetRequest\032#.google." - + "cloud.aiplatform.v1.Dataset\";\202\323\344\223\002.\022,/v1" - + "/{name=projects/*/locations/*/datasets/*" - + "}\332A\004name\022\303\001\n\rUpdateDataset\0220.google.clou" - + "d.aiplatform.v1.UpdateDatasetRequest\032#.g" - + "oogle.cloud.aiplatform.v1.Dataset\"[\202\323\344\223\002" - + "?24/v1/{dataset.name=projects/*/location" - + "s/*/datasets/*}:\007dataset\332A\023dataset,updat" - + "e_mask\022\260\001\n\014ListDatasets\022/.google.cloud.a" - + "iplatform.v1.ListDatasetsRequest\0320.googl" - + "e.cloud.aiplatform.v1.ListDatasetsRespon" - + "se\"=\202\323\344\223\002.\022,/v1/{parent=projects/*/locat" - + "ions/*}/datasets\332A\006parent\022\320\001\n\rDeleteData" - + "set\0220.google.cloud.aiplatform.v1.DeleteD" - + "atasetRequest\032\035.google.longrunning.Opera" - + "tion\"n\202\323\344\223\002.*,/v1/{name=projects/*/locat" - + "ions/*/datasets/*}\332A\004name\312A0\n\025google.pro" - + "tobuf.Empty\022\027DeleteOperationMetadata\022\345\001\n" - + "\nImportData\022-.google.cloud.aiplatform.v1" - + ".ImportDataRequest\032\035.google.longrunning." - + "Operation\"\210\001\202\323\344\223\0028\"3/v1/{name=projects/*" - + "/locations/*/datasets/*}:import:\001*\332A\023nam" - + "e,import_configs\312A1\n\022ImportDataResponse\022" - + "\033ImportDataOperationMetadata\022\344\001\n\nExportD" - + "ata\022-.google.cloud.aiplatform.v1.ExportD" - + "ataRequest\032\035.google.longrunning.Operatio" - + "n\"\207\001\202\323\344\223\0028\"3/v1/{name=projects/*/locatio" - + "ns/*/datasets/*}:export:\001*\332A\022name,export" - + "_config\312A1\n\022ExportDataResponse\022\033ExportDa" - + "taOperationMetadata\022\277\001\n\rListDataItems\0220." - + "google.cloud.aiplatform.v1.ListDataItems" - + "Request\0321.google.cloud.aiplatform.v1.Lis" - + "tDataItemsResponse\"I\202\323\344\223\002:\0228/v1/{parent=" - + "projects/*/locations/*/datasets/*}/dataI" - + "tems\332A\006parent\022\313\001\n\020ListSavedQueries\0223.goo" - + "gle.cloud.aiplatform.v1.ListSavedQueries" - + "Request\0324.google.cloud.aiplatform.v1.Lis" - + "tSavedQueriesResponse\"L\202\323\344\223\002=\022;/v1/{pare" - + "nt=projects/*/locations/*/datasets/*}/sa" - + "vedQueries\332A\006parent\022\304\001\n\021GetAnnotationSpe" - + "c\0224.google.cloud.aiplatform.v1.GetAnnota" - + "tionSpecRequest\032*.google.cloud.aiplatfor" - + "m.v1.AnnotationSpec\"M\202\323\344\223\002@\022>/v1/{name=p" - + "rojects/*/locations/*/datasets/*/annotat" - + "ionSpecs/*}\332A\004name\022\323\001\n\017ListAnnotations\0222" - + ".google.cloud.aiplatform.v1.ListAnnotati" - + "onsRequest\0323.google.cloud.aiplatform.v1." - + "ListAnnotationsResponse\"W\202\323\344\223\002H\022F/v1/{pa" - + "rent=projects/*/locations/*/datasets/*/d" - + "ataItems/*}/annotations\332A\006parent\032M\312A\031aip" - + "latform.googleapis.com\322A.https://www.goo" - + "gleapis.com/auth/cloud-platformB\327\001\n\036com." - + "google.cloud.aiplatform.v1B\023DatasetServi" - + "ceProtoP\001ZDgoogle.golang.org/genproto/go" - + "ogleapis/cloud/aiplatform/v1;aiplatform\252" - + "\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\Cl" - + "oud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPla" - + "tform::V1b\006proto3" + + "\n\017next_page_token\030\002 \001(\t\"\334\004\n\026SearchDataIt" + + "emsRequest\022\034\n\022order_by_data_item\030\014 \001(\tH\000" + + "\022c\n\023order_by_annotation\030\r \001(\0132D.google.c" + + "loud.aiplatform.v1.SearchDataItemsReques" + + "t.OrderByAnnotationH\000\022:\n\007dataset\030\001 \001(\tB)" + + "\340A\002\372A#\n!aiplatform.googleapis.com/Datase" + + "t\022@\n\013saved_query\030\002 \001(\tB+\030\001\372A&\n$aiplatfor" + + "m.googleapis.com/SavedQuery\022\031\n\021data_labe" + + "ling_job\030\003 \001(\t\022\030\n\020data_item_filter\030\004 \001(\t" + + "\022\036\n\022annotations_filter\030\005 \001(\tB\002\030\001\022\032\n\022anno" + + "tation_filters\030\013 \003(\t\022.\n\nfield_mask\030\006 \001(\013" + + "2\032.google.protobuf.FieldMask\022\031\n\021annotati" + + "ons_limit\030\007 \001(\005\022\021\n\tpage_size\030\010 \001(\005\022\024\n\010or" + + "der_by\030\t \001(\tB\002\030\001\022\022\n\npage_token\030\n \001(\t\032?\n\021" + + "OrderByAnnotation\022\030\n\013saved_query\030\001 \001(\tB\003" + + "\340A\002\022\020\n\010order_by\030\002 \001(\tB\007\n\005order\"u\n\027Search" + + "DataItemsResponse\022A\n\017data_item_views\030\001 \003" + + "(\0132(.google.cloud.aiplatform.v1.DataItem" + + "View\022\027\n\017next_page_token\030\002 \001(\t\"\247\001\n\014DataIt" + + "emView\0227\n\tdata_item\030\001 \001(\0132$.google.cloud" + + ".aiplatform.v1.DataItem\022;\n\013annotations\030\002" + + " \003(\0132&.google.cloud.aiplatform.v1.Annota" + + "tion\022!\n\031has_truncated_annotations\030\003 \001(\010\"" + + "\314\001\n\027ListSavedQueriesRequest\0229\n\006parent\030\001 " + + "\001(\tB)\340A\002\372A#\n!aiplatform.googleapis.com/D" + + "ataset\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(" + + "\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\013" + + "2\032.google.protobuf.FieldMask\022\020\n\010order_by" + + "\030\006 \001(\t\"r\n\030ListSavedQueriesResponse\022=\n\rsa" + + "ved_queries\030\001 \003(\0132&.google.cloud.aiplatf" + + "orm.v1.SavedQuery\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\211\001\n\030GetAnnotationSpecRequest\022>\n\004name\030" + + "\001 \001(\tB0\340A\002\372A*\n(aiplatform.googleapis.com" + + "/AnnotationSpec\022-\n\tread_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\"\314\001\n\026ListAnnotatio" + + "nsRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"aipla" + + "tform.googleapis.com/DataItem\022\016\n\006filter\030" + + "\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004" + + " \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.protobu" + + "f.FieldMask\022\020\n\010order_by\030\006 \001(\t\"o\n\027ListAnn" + + "otationsResponse\022;\n\013annotations\030\001 \003(\0132&." + + "google.cloud.aiplatform.v1.Annotation\022\027\n" + + "\017next_page_token\030\002 \001(\t2\354\023\n\016DatasetServic" + + "e\022\334\001\n\rCreateDataset\0220.google.cloud.aipla" + + "tform.v1.CreateDatasetRequest\032\035.google.l" + + "ongrunning.Operation\"z\202\323\344\223\0027\",/v1/{paren" + + "t=projects/*/locations/*}/datasets:\007data" + + "set\332A\016parent,dataset\312A)\n\007Dataset\022\036Create" + + "DatasetOperationMetadata\022\235\001\n\nGetDataset\022" + + "-.google.cloud.aiplatform.v1.GetDatasetR" + + "equest\032#.google.cloud.aiplatform.v1.Data" + + "set\";\202\323\344\223\002.\022,/v1/{name=projects/*/locati" + + "ons/*/datasets/*}\332A\004name\022\303\001\n\rUpdateDatas" + + "et\0220.google.cloud.aiplatform.v1.UpdateDa" + + "tasetRequest\032#.google.cloud.aiplatform.v" + + "1.Dataset\"[\202\323\344\223\002?24/v1/{dataset.name=pro" + + "jects/*/locations/*/datasets/*}:\007dataset" + + "\332A\023dataset,update_mask\022\260\001\n\014ListDatasets\022" + + "/.google.cloud.aiplatform.v1.ListDataset" + + "sRequest\0320.google.cloud.aiplatform.v1.Li" + + "stDatasetsResponse\"=\202\323\344\223\002.\022,/v1/{parent=" + + "projects/*/locations/*}/datasets\332A\006paren" + + "t\022\320\001\n\rDeleteDataset\0220.google.cloud.aipla" + + "tform.v1.DeleteDatasetRequest\032\035.google.l" + + "ongrunning.Operation\"n\202\323\344\223\002.*,/v1/{name=" + + "projects/*/locations/*/datasets/*}\332A\004nam" + + "e\312A0\n\025google.protobuf.Empty\022\027DeleteOpera" + + "tionMetadata\022\345\001\n\nImportData\022-.google.clo" + + "ud.aiplatform.v1.ImportDataRequest\032\035.goo" + + "gle.longrunning.Operation\"\210\001\202\323\344\223\0028\"3/v1/" + + "{name=projects/*/locations/*/datasets/*}" + + ":import:\001*\332A\023name,import_configs\312A1\n\022Imp" + + "ortDataResponse\022\033ImportDataOperationMeta" + + "data\022\344\001\n\nExportData\022-.google.cloud.aipla" + + "tform.v1.ExportDataRequest\032\035.google.long" + + "running.Operation\"\207\001\202\323\344\223\0028\"3/v1/{name=pr" + + "ojects/*/locations/*/datasets/*}:export:" + + "\001*\332A\022name,export_config\312A1\n\022ExportDataRe" + + "sponse\022\033ExportDataOperationMetadata\022\277\001\n\r" + + "ListDataItems\0220.google.cloud.aiplatform." + + "v1.ListDataItemsRequest\0321.google.cloud.a" + + "iplatform.v1.ListDataItemsResponse\"I\202\323\344\223" + + "\002:\0228/v1/{parent=projects/*/locations/*/d" + + "atasets/*}/dataItems\332A\006parent\022\303\001\n\017Search" + + "DataItems\0222.google.cloud.aiplatform.v1.S" + + "earchDataItemsRequest\0323.google.cloud.aip" + + "latform.v1.SearchDataItemsResponse\"G\202\323\344\223" + + "\002A\022?/v1/{dataset=projects/*/locations/*/" + + "datasets/*}:searchDataItems\022\313\001\n\020ListSave" + + "dQueries\0223.google.cloud.aiplatform.v1.Li" + + "stSavedQueriesRequest\0324.google.cloud.aip" + + "latform.v1.ListSavedQueriesResponse\"L\202\323\344" + + "\223\002=\022;/v1/{parent=projects/*/locations/*/" + + "datasets/*}/savedQueries\332A\006parent\022\304\001\n\021Ge" + + "tAnnotationSpec\0224.google.cloud.aiplatfor" + + "m.v1.GetAnnotationSpecRequest\032*.google.c" + + "loud.aiplatform.v1.AnnotationSpec\"M\202\323\344\223\002" + + "@\022>/v1/{name=projects/*/locations/*/data" + + "sets/*/annotationSpecs/*}\332A\004name\022\323\001\n\017Lis" + + "tAnnotations\0222.google.cloud.aiplatform.v" + + "1.ListAnnotationsRequest\0323.google.cloud." + + "aiplatform.v1.ListAnnotationsResponse\"W\202" + + "\323\344\223\002H\022F/v1/{parent=projects/*/locations/" + + "*/datasets/*/dataItems/*}/annotations\332A\006" + + "parent\032M\312A\031aiplatform.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\327\001\n\036com.google.cloud.aiplatform.v1" + + "B\023DatasetServiceProtoP\001ZDgoogle.golang.o" + + "rg/genproto/googleapis/cloud/aiplatform/" + + "v1;aiplatform\252\002\032Google.Cloud.AIPlatform." + + "V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google" + + "::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -396,8 +439,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DataItems", "NextPageToken", }); - internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_descriptor = + internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_descriptor, + new java.lang.String[] { + "OrderByDataItem", + "OrderByAnnotation", + "Dataset", + "SavedQuery", + "DataLabelingJob", + "DataItemFilter", + "AnnotationsFilter", + "AnnotationFilters", + "FieldMask", + "AnnotationsLimit", + "PageSize", + "OrderBy", + "PageToken", + "Order", + }); + internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_OrderByAnnotation_descriptor = + internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_OrderByAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_OrderByAnnotation_descriptor, + new java.lang.String[] { + "SavedQuery", "OrderBy", + }); + internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_descriptor, + new java.lang.String[] { + "DataItemViews", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1_DataItemView_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_aiplatform_v1_DataItemView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_DataItemView_descriptor, + new java.lang.String[] { + "DataItem", "Annotations", "HasTruncatedAnnotations", + }); + internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_descriptor = + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_descriptor, @@ -405,7 +495,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_descriptor, @@ -413,7 +503,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SavedQueries", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_descriptor, @@ -421,7 +511,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ReadMask", }); internal_static_google_cloud_aiplatform_v1_ListAnnotationsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1_ListAnnotationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListAnnotationsRequest_descriptor, @@ -429,7 +519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1_ListAnnotationsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_aiplatform_v1_ListAnnotationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListAnnotationsResponse_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java index 68943146e05c..7f878e48c063 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The display name of the Endpoint.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -168,7 +168,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The display name of the Endpoint.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -1853,7 +1853,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The display name of the Endpoint.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1877,7 +1877,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The display name of the Endpoint.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1901,7 +1901,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The display name of the Endpoint.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1924,7 +1924,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The display name of the Endpoint.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1943,7 +1943,7 @@ public Builder clearDisplayName() { * *
      * Required. The display name of the Endpoint.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java index 618cf3c805f7..ba6b18ee13b4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java @@ -53,7 +53,7 @@ public interface EndpointOrBuilder * *
    * Required. The display name of the Endpoint.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface EndpointOrBuilder * *
    * Required. The display name of the Endpoint.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServiceProto.java index 77de9bfb8f2a..a64cca3f9835 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreOnlineServiceProto.java @@ -27,6 +27,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_FeatureValuesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_FeatureValuesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_ReadFeatureValuesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -84,71 +100,89 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\0321google/cloud/aiplatform/v1/featur" + "e_selector.proto\032&google/cloud/aiplatfor" + "m/v1/types.proto\032\037google/protobuf/timest" - + "amp.proto\"\301\001\n\030ReadFeatureValuesRequest\022A" - + "\n\013entity_type\030\001 \001(\tB,\340A\002\372A&\n$aiplatform." - + "googleapis.com/EntityType\022\026\n\tentity_id\030\002" - + " \001(\tB\003\340A\002\022J\n\020feature_selector\030\003 \001(\0132+.go" - + "ogle.cloud.aiplatform.v1.FeatureSelector" - + "B\003\340A\002\"\225\005\n\031ReadFeatureValuesResponse\022L\n\006h" - + "eader\030\001 \001(\0132<.google.cloud.aiplatform.v1" - + ".ReadFeatureValuesResponse.Header\022U\n\013ent" - + "ity_view\030\002 \001(\0132@.google.cloud.aiplatform" - + ".v1.ReadFeatureValuesResponse.EntityView" - + "\032\037\n\021FeatureDescriptor\022\n\n\002id\030\001 \001(\t\032\256\001\n\006He" - + "ader\022>\n\013entity_type\030\001 \001(\tB)\372A&\n$aiplatfo" - + "rm.googleapis.com/EntityType\022d\n\023feature_" - + "descriptors\030\002 \003(\0132G.google.cloud.aiplatf" - + "orm.v1.ReadFeatureValuesResponse.Feature" - + "Descriptor\032\200\002\n\nEntityView\022\021\n\tentity_id\030\001" - + " \001(\t\022S\n\004data\030\002 \003(\0132E.google.cloud.aiplat" - + "form.v1.ReadFeatureValuesResponse.Entity" - + "View.Data\032\211\001\n\004Data\0229\n\005value\030\001 \001(\0132(.goog" - + "le.cloud.aiplatform.v1.FeatureValueH\000\022>\n" - + "\006values\030\002 \001(\0132,.google.cloud.aiplatform." - + "v1.FeatureValueListH\000B\006\n\004data\"\313\001\n!Stream" - + "ingReadFeatureValuesRequest\022A\n\013entity_ty" - + "pe\030\001 \001(\tB,\340A\002\372A&\n$aiplatform.googleapis." - + "com/EntityType\022\027\n\nentity_ids\030\002 \003(\tB\003\340A\002\022" - + "J\n\020feature_selector\030\003 \001(\0132+.google.cloud" - + ".aiplatform.v1.FeatureSelectorB\003\340A\002\"\245\004\n\014" - + "FeatureValue\022\024\n\nbool_value\030\001 \001(\010H\000\022\026\n\014do" - + "uble_value\030\002 \001(\001H\000\022\025\n\013int64_value\030\005 \001(\003H" - + "\000\022\026\n\014string_value\030\006 \001(\tH\000\022A\n\020bool_array_" - + "value\030\007 \001(\0132%.google.cloud.aiplatform.v1" - + ".BoolArrayH\000\022E\n\022double_array_value\030\010 \001(\013" - + "2\'.google.cloud.aiplatform.v1.DoubleArra" - + "yH\000\022C\n\021int64_array_value\030\013 \001(\0132&.google." - + "cloud.aiplatform.v1.Int64ArrayH\000\022E\n\022stri" - + "ng_array_value\030\014 \001(\0132\'.google.cloud.aipl" - + "atform.v1.StringArrayH\000\022\025\n\013bytes_value\030\r" - + " \001(\014H\000\022C\n\010metadata\030\016 \001(\01321.google.cloud." - + "aiplatform.v1.FeatureValue.Metadata\032=\n\010M" - + "etadata\0221\n\rgenerate_time\030\001 \001(\0132\032.google." - + "protobuf.TimestampB\007\n\005value\"L\n\020FeatureVa" - + "lueList\0228\n\006values\030\001 \003(\0132(.google.cloud.a" - + "iplatform.v1.FeatureValue2\372\004\n Featuresto" - + "reOnlineServingService\022\363\001\n\021ReadFeatureVa" - + "lues\0224.google.cloud.aiplatform.v1.ReadFe" - + "atureValuesRequest\0325.google.cloud.aiplat" - + "form.v1.ReadFeatureValuesResponse\"q\202\323\344\223\002" - + "]\"X/v1/{entity_type=projects/*/locations" - + "/*/featurestores/*/entityTypes/*}:readFe" - + "atureValues:\001*\332A\013entity_type\022\220\002\n\032Streami" - + "ngReadFeatureValues\022=.google.cloud.aipla" - + "tform.v1.StreamingReadFeatureValuesReque" - + "st\0325.google.cloud.aiplatform.v1.ReadFeat" - + "ureValuesResponse\"z\202\323\344\223\002f\"a/v1/{entity_t" - + "ype=projects/*/locations/*/featurestores" - + "/*/entityTypes/*}:streamingReadFeatureVa" - + "lues:\001*\332A\013entity_type0\001\032M\312A\031aiplatform.g" - + "oogleapis.com\322A.https://www.googleapis.c" - + "om/auth/cloud-platformB\342\001\n\036com.google.cl" - + "oud.aiplatform.v1B\036FeaturestoreOnlineSer" - + "viceProtoP\001ZDgoogle.golang.org/genproto/" - + "googleapis/cloud/aiplatform/v1;aiplatfor" - + "m\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\" - + "Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIP" - + "latform::V1b\006proto3" + + "amp.proto\"\254\001\n\031WriteFeatureValuesRequest\022" + + "A\n\013entity_type\030\001 \001(\tB,\340A\002\372A&\n$aiplatform" + + ".googleapis.com/EntityType\022L\n\010payloads\030\002" + + " \003(\01325.google.cloud.aiplatform.v1.WriteF" + + "eatureValuesPayloadB\003\340A\002\"\372\001\n\031WriteFeatur" + + "eValuesPayload\022\026\n\tentity_id\030\001 \001(\tB\003\340A\002\022e" + + "\n\016feature_values\030\002 \003(\0132H.google.cloud.ai" + + "platform.v1.WriteFeatureValuesPayload.Fe" + + "atureValuesEntryB\003\340A\002\032^\n\022FeatureValuesEn" + + "try\022\013\n\003key\030\001 \001(\t\0227\n\005value\030\002 \001(\0132(.google" + + ".cloud.aiplatform.v1.FeatureValue:\0028\001\"\034\n" + + "\032WriteFeatureValuesResponse\"\301\001\n\030ReadFeat" + + "ureValuesRequest\022A\n\013entity_type\030\001 \001(\tB,\340" + + "A\002\372A&\n$aiplatform.googleapis.com/EntityT" + + "ype\022\026\n\tentity_id\030\002 \001(\tB\003\340A\002\022J\n\020feature_s" + + "elector\030\003 \001(\0132+.google.cloud.aiplatform." + + "v1.FeatureSelectorB\003\340A\002\"\225\005\n\031ReadFeatureV" + + "aluesResponse\022L\n\006header\030\001 \001(\0132<.google.c" + + "loud.aiplatform.v1.ReadFeatureValuesResp" + + "onse.Header\022U\n\013entity_view\030\002 \001(\0132@.googl" + + "e.cloud.aiplatform.v1.ReadFeatureValuesR" + + "esponse.EntityView\032\037\n\021FeatureDescriptor\022" + + "\n\n\002id\030\001 \001(\t\032\256\001\n\006Header\022>\n\013entity_type\030\001 " + + "\001(\tB)\372A&\n$aiplatform.googleapis.com/Enti" + + "tyType\022d\n\023feature_descriptors\030\002 \003(\0132G.go" + + "ogle.cloud.aiplatform.v1.ReadFeatureValu" + + "esResponse.FeatureDescriptor\032\200\002\n\nEntityV" + + "iew\022\021\n\tentity_id\030\001 \001(\t\022S\n\004data\030\002 \003(\0132E.g" + + "oogle.cloud.aiplatform.v1.ReadFeatureVal" + + "uesResponse.EntityView.Data\032\211\001\n\004Data\0229\n\005" + + "value\030\001 \001(\0132(.google.cloud.aiplatform.v1" + + ".FeatureValueH\000\022>\n\006values\030\002 \001(\0132,.google" + + ".cloud.aiplatform.v1.FeatureValueListH\000B" + + "\006\n\004data\"\313\001\n!StreamingReadFeatureValuesRe" + + "quest\022A\n\013entity_type\030\001 \001(\tB,\340A\002\372A&\n$aipl" + + "atform.googleapis.com/EntityType\022\027\n\nenti" + + "ty_ids\030\002 \003(\tB\003\340A\002\022J\n\020feature_selector\030\003 " + + "\001(\0132+.google.cloud.aiplatform.v1.Feature" + + "SelectorB\003\340A\002\"\245\004\n\014FeatureValue\022\024\n\nbool_v" + + "alue\030\001 \001(\010H\000\022\026\n\014double_value\030\002 \001(\001H\000\022\025\n\013" + + "int64_value\030\005 \001(\003H\000\022\026\n\014string_value\030\006 \001(" + + "\tH\000\022A\n\020bool_array_value\030\007 \001(\0132%.google.c" + + "loud.aiplatform.v1.BoolArrayH\000\022E\n\022double" + + "_array_value\030\010 \001(\0132\'.google.cloud.aiplat" + + "form.v1.DoubleArrayH\000\022C\n\021int64_array_val" + + "ue\030\013 \001(\0132&.google.cloud.aiplatform.v1.In" + + "t64ArrayH\000\022E\n\022string_array_value\030\014 \001(\0132\'" + + ".google.cloud.aiplatform.v1.StringArrayH" + + "\000\022\025\n\013bytes_value\030\r \001(\014H\000\022C\n\010metadata\030\016 \001" + + "(\01321.google.cloud.aiplatform.v1.FeatureV" + + "alue.Metadata\032=\n\010Metadata\0221\n\rgenerate_ti" + + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\007\n\005" + + "value\"L\n\020FeatureValueList\0228\n\006values\030\001 \003(" + + "\0132(.google.cloud.aiplatform.v1.FeatureVa" + + "lue2\375\006\n FeaturestoreOnlineServingService" + + "\022\363\001\n\021ReadFeatureValues\0224.google.cloud.ai" + + "platform.v1.ReadFeatureValuesRequest\0325.g" + + "oogle.cloud.aiplatform.v1.ReadFeatureVal" + + "uesResponse\"q\202\323\344\223\002]\"X/v1/{entity_type=pr" + + "ojects/*/locations/*/featurestores/*/ent" + + "ityTypes/*}:readFeatureValues:\001*\332A\013entit" + + "y_type\022\220\002\n\032StreamingReadFeatureValues\022=." + + "google.cloud.aiplatform.v1.StreamingRead" + + "FeatureValuesRequest\0325.google.cloud.aipl" + + "atform.v1.ReadFeatureValuesResponse\"z\202\323\344" + + "\223\002f\"a/v1/{entity_type=projects/*/locatio" + + "ns/*/featurestores/*/entityTypes/*}:stre" + + "amingReadFeatureValues:\001*\332A\013entity_type0" + + "\001\022\200\002\n\022WriteFeatureValues\0225.google.cloud." + + "aiplatform.v1.WriteFeatureValuesRequest\032" + + "6.google.cloud.aiplatform.v1.WriteFeatur" + + "eValuesResponse\"{\202\323\344\223\002^\"Y/v1/{entity_typ" + + "e=projects/*/locations/*/featurestores/*" + + "/entityTypes/*}:writeFeatureValues:\001*\332A\024" + + "entity_type,payloads\032M\312A\031aiplatform.goog" + + "leapis.com\322A.https://www.googleapis.com/" + + "auth/cloud-platformB\342\001\n\036com.google.cloud" + + ".aiplatform.v1B\036FeaturestoreOnlineServic" + + "eProtoP\001ZDgoogle.golang.org/genproto/goo" + + "gleapis/cloud/aiplatform/v1;aiplatform\252\002" + + "\032Google.Cloud.AIPlatform.V1\312\002\032Google\\Clo" + + "ud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlat" + + "form::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -162,8 +196,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.TypesProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); - internal_static_google_cloud_aiplatform_v1_ReadFeatureValuesRequest_descriptor = + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesRequest_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesRequest_descriptor, + new java.lang.String[] { + "EntityType", "Payloads", + }); + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_descriptor, + new java.lang.String[] { + "EntityId", "FeatureValues", + }); + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_FeatureValuesEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_FeatureValuesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_FeatureValuesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1_ReadFeatureValuesRequest_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_aiplatform_v1_ReadFeatureValuesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ReadFeatureValuesRequest_descriptor, @@ -171,7 +237,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EntityType", "EntityId", "FeatureSelector", }); internal_static_google_cloud_aiplatform_v1_ReadFeatureValuesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_aiplatform_v1_ReadFeatureValuesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ReadFeatureValuesResponse_descriptor, @@ -219,7 +285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Value", "Values", "Data", }); internal_static_google_cloud_aiplatform_v1_StreamingReadFeatureValuesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_aiplatform_v1_StreamingReadFeatureValuesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_StreamingReadFeatureValuesRequest_descriptor, @@ -227,7 +293,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EntityType", "EntityIds", "FeatureSelector", }); internal_static_google_cloud_aiplatform_v1_FeatureValue_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_aiplatform_v1_FeatureValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FeatureValue_descriptor, @@ -253,7 +319,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenerateTime", }); internal_static_google_cloud_aiplatform_v1_FeatureValueList_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1_FeatureValueList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FeatureValueList_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceProto.java index 6af03c8d5d9a..c5298457835a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeaturestoreServiceProto.java @@ -374,161 +374,161 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "platform.v1.GenericOperationMetadata\"u\n#" + "UpdateFeaturestoreOperationMetadata\022N\n\020g" + "eneric_metadata\030\001 \001(\01324.google.cloud.aip" - + "latform.v1.GenericOperationMetadata\"\206\002\n$" + + "latform.v1.GenericOperationMetadata\"\233\002\n$" + "ImportFeatureValuesOperationMetadata\022N\n\020" + "generic_metadata\030\001 \001(\01324.google.cloud.ai" + "platform.v1.GenericOperationMetadata\022\035\n\025" + "imported_entity_count\030\002 \001(\003\022$\n\034imported_" - + "feature_value_count\030\003 \001(\003\022\031\n\021invalid_row" - + "_count\030\006 \001(\003\022.\n×tamp_outside_retent" - + "ion_rows_count\030\007 \001(\003\"v\n$ExportFeatureVal" - + "uesOperationMetadata\022N\n\020generic_metadata" - + "\030\001 \001(\01324.google.cloud.aiplatform.v1.Gene" - + "ricOperationMetadata\"y\n\'BatchReadFeature" - + "ValuesOperationMetadata\022N\n\020generic_metad" - + "ata\030\001 \001(\01324.google.cloud.aiplatform.v1.G" - + "enericOperationMetadata\"s\n!CreateEntityT" - + "ypeOperationMetadata\022N\n\020generic_metadata" - + "\030\001 \001(\01324.google.cloud.aiplatform.v1.Gene" - + "ricOperationMetadata\"p\n\036CreateFeatureOpe" - + "rationMetadata\022N\n\020generic_metadata\030\001 \001(\013" - + "24.google.cloud.aiplatform.v1.GenericOpe" - + "rationMetadata\"v\n$BatchCreateFeaturesOpe" - + "rationMetadata\022N\n\020generic_metadata\030\001 \001(\013" - + "24.google.cloud.aiplatform.v1.GenericOpe" - + "rationMetadata2\273\'\n\023FeaturestoreService\022\246" - + "\002\n\022CreateFeaturestore\0225.google.cloud.aip" - + "latform.v1.CreateFeaturestoreRequest\032\035.g" - + "oogle.longrunning.Operation\"\271\001\202\323\344\223\002A\"1/v" - + "1/{parent=projects/*/locations/*}/featur" - + "estores:\014featurestore\332A\023parent,featurest" - + "ore\332A#parent,featurestore,featurestore_i" - + "d\312A3\n\014Featurestore\022#CreateFeaturestoreOp" - + "erationMetadata\022\261\001\n\017GetFeaturestore\0222.go" - + "ogle.cloud.aiplatform.v1.GetFeaturestore" - + "Request\032(.google.cloud.aiplatform.v1.Fea" - + "turestore\"@\202\323\344\223\0023\0221/v1/{name=projects/*/" - + "locations/*/featurestores/*}\332A\004name\022\304\001\n\021" - + "ListFeaturestores\0224.google.cloud.aiplatf" - + "orm.v1.ListFeaturestoresRequest\0325.google" - + ".cloud.aiplatform.v1.ListFeaturestoresRe" - + "sponse\"B\202\323\344\223\0023\0221/v1/{parent=projects/*/l" - + "ocations/*}/featurestores\332A\006parent\022\222\002\n\022U" - + "pdateFeaturestore\0225.google.cloud.aiplatf" - + "orm.v1.UpdateFeaturestoreRequest\032\035.googl" - + "e.longrunning.Operation\"\245\001\202\323\344\223\002N2>/v1/{f" - + "eaturestore.name=projects/*/locations/*/" - + "featurestores/*}:\014featurestore\332A\030feature" - + "store,update_mask\312A3\n\014Featurestore\022#Upda" - + "teFeaturestoreOperationMetadata\022\355\001\n\022Dele" - + "teFeaturestore\0225.google.cloud.aiplatform" - + ".v1.DeleteFeaturestoreRequest\032\035.google.l" - + "ongrunning.Operation\"\200\001\202\323\344\223\0023*1/v1/{name" - + "=projects/*/locations/*/featurestores/*}" - + "\332A\004name\332A\nname,force\312A0\n\025google.protobuf" - + ".Empty\022\027DeleteOperationMetadata\022\250\002\n\020Crea" - + "teEntityType\0223.google.cloud.aiplatform.v" - + "1.CreateEntityTypeRequest\032\035.google.longr" - + "unning.Operation\"\277\001\202\323\344\223\002N\"?/v1/{parent=p" - + "rojects/*/locations/*/featurestores/*}/e" - + "ntityTypes:\013entity_type\332A\022parent,entity_" - + "type\332A!parent,entity_type,entity_type_id" - + "\312A/\n\nEntityType\022!CreateEntityTypeOperati" - + "onMetadata\022\271\001\n\rGetEntityType\0220.google.cl" - + "oud.aiplatform.v1.GetEntityTypeRequest\032&" - + ".google.cloud.aiplatform.v1.EntityType\"N" - + "\202\323\344\223\002A\022?/v1/{name=projects/*/locations/*" - + "/featurestores/*/entityTypes/*}\332A\004name\022\314" - + "\001\n\017ListEntityTypes\0222.google.cloud.aiplat" - + "form.v1.ListEntityTypesRequest\0323.google." - + "cloud.aiplatform.v1.ListEntityTypesRespo" - + "nse\"P\202\323\344\223\002A\022?/v1/{parent=projects/*/loca" - + "tions/*/featurestores/*}/entityTypes\332A\006p" - + "arent\022\353\001\n\020UpdateEntityType\0223.google.clou" - + "d.aiplatform.v1.UpdateEntityTypeRequest\032" - + "&.google.cloud.aiplatform.v1.EntityType\"" - + "z\202\323\344\223\002Z2K/v1/{entity_type.name=projects/" - + "*/locations/*/featurestores/*/entityType" - + "s/*}:\013entity_type\332A\027entity_type,update_m" - + "ask\022\367\001\n\020DeleteEntityType\0223.google.cloud." - + "aiplatform.v1.DeleteEntityTypeRequest\032\035." - + "google.longrunning.Operation\"\216\001\202\323\344\223\002A*?/" - + "v1/{name=projects/*/locations/*/features" - + "tores/*/entityTypes/*}\332A\004name\332A\nname,for" - + "ce\312A0\n\025google.protobuf.Empty\022\027DeleteOper" - + "ationMetadata\022\227\002\n\rCreateFeature\0220.google" - + ".cloud.aiplatform.v1.CreateFeatureReques" - + "t\032\035.google.longrunning.Operation\"\264\001\202\323\344\223\002" - + "U\"J/v1/{parent=projects/*/locations/*/fe" - + "aturestores/*/entityTypes/*}/features:\007f" - + "eature\332A\016parent,feature\332A\031parent,feature" - + ",feature_id\312A)\n\007Feature\022\036CreateFeatureOp" - + "erationMetadata\022\250\002\n\023BatchCreateFeatures\022" - + "6.google.cloud.aiplatform.v1.BatchCreate" - + "FeaturesRequest\032\035.google.longrunning.Ope" - + "ration\"\271\001\202\323\344\223\002[\"V/v1/{parent=projects/*/" - + "locations/*/featurestores/*/entityTypes/" - + "*}/features:batchCreate:\001*\332A\017parent,requ" - + "ests\312AC\n\033BatchCreateFeaturesResponse\022$Ba" - + "tchCreateFeaturesOperationMetadata\022\273\001\n\nG" - + "etFeature\022-.google.cloud.aiplatform.v1.G" - + "etFeatureRequest\032#.google.cloud.aiplatfo" - + "rm.v1.Feature\"Y\202\323\344\223\002L\022J/v1/{name=project" - + "s/*/locations/*/featurestores/*/entityTy" - + "pes/*/features/*}\332A\004name\022\316\001\n\014ListFeature" - + "s\022/.google.cloud.aiplatform.v1.ListFeatu" - + "resRequest\0320.google.cloud.aiplatform.v1." - + "ListFeaturesResponse\"[\202\323\344\223\002L\022J/v1/{paren" - + "t=projects/*/locations/*/featurestores/*" - + "/entityTypes/*}/features\332A\006parent\022\341\001\n\rUp" - + "dateFeature\0220.google.cloud.aiplatform.v1" - + ".UpdateFeatureRequest\032#.google.cloud.aip" - + "latform.v1.Feature\"y\202\323\344\223\002]2R/v1/{feature" - + ".name=projects/*/locations/*/featurestor" - + "es/*/entityTypes/*/features/*}:\007feature\332" - + "A\023feature,update_mask\022\357\001\n\rDeleteFeature\022" - + "0.google.cloud.aiplatform.v1.DeleteFeatu" - + "reRequest\032\035.google.longrunning.Operation" - + "\"\214\001\202\323\344\223\002L*J/v1/{name=projects/*/location" - + "s/*/featurestores/*/entityTypes/*/featur" - + "es/*}\332A\004name\312A0\n\025google.protobuf.Empty\022\027" - + "DeleteOperationMetadata\022\250\002\n\023ImportFeatur" - + "eValues\0226.google.cloud.aiplatform.v1.Imp" - + "ortFeatureValuesRequest\032\035.google.longrun" - + "ning.Operation\"\271\001\202\323\344\223\002_\"Z/v1/{entity_typ" + + "feature_value_count\030\003 \001(\003\022\023\n\013source_uris" + + "\030\004 \003(\t\022\031\n\021invalid_row_count\030\006 \001(\003\022.\n&tim" + + "estamp_outside_retention_rows_count\030\007 \001(" + + "\003\"v\n$ExportFeatureValuesOperationMetadat" + + "a\022N\n\020generic_metadata\030\001 \001(\01324.google.clo" + + "ud.aiplatform.v1.GenericOperationMetadat" + + "a\"y\n\'BatchReadFeatureValuesOperationMeta" + + "data\022N\n\020generic_metadata\030\001 \001(\01324.google." + + "cloud.aiplatform.v1.GenericOperationMeta" + + "data\"s\n!CreateEntityTypeOperationMetadat" + + "a\022N\n\020generic_metadata\030\001 \001(\01324.google.clo" + + "ud.aiplatform.v1.GenericOperationMetadat" + + "a\"p\n\036CreateFeatureOperationMetadata\022N\n\020g" + + "eneric_metadata\030\001 \001(\01324.google.cloud.aip" + + "latform.v1.GenericOperationMetadata\"v\n$B" + + "atchCreateFeaturesOperationMetadata\022N\n\020g" + + "eneric_metadata\030\001 \001(\01324.google.cloud.aip" + + "latform.v1.GenericOperationMetadata2\273\'\n\023" + + "FeaturestoreService\022\246\002\n\022CreateFeaturesto" + + "re\0225.google.cloud.aiplatform.v1.CreateFe" + + "aturestoreRequest\032\035.google.longrunning.O" + + "peration\"\271\001\202\323\344\223\002A\"1/v1/{parent=projects/" + + "*/locations/*}/featurestores:\014featuresto" + + "re\332A\023parent,featurestore\332A#parent,featur" + + "estore,featurestore_id\312A3\n\014Featurestore\022" + + "#CreateFeaturestoreOperationMetadata\022\261\001\n" + + "\017GetFeaturestore\0222.google.cloud.aiplatfo" + + "rm.v1.GetFeaturestoreRequest\032(.google.cl" + + "oud.aiplatform.v1.Featurestore\"@\202\323\344\223\0023\0221" + + "/v1/{name=projects/*/locations/*/feature" + + "stores/*}\332A\004name\022\304\001\n\021ListFeaturestores\0224" + + ".google.cloud.aiplatform.v1.ListFeatures" + + "toresRequest\0325.google.cloud.aiplatform.v" + + "1.ListFeaturestoresResponse\"B\202\323\344\223\0023\0221/v1" + + "/{parent=projects/*/locations/*}/feature" + + "stores\332A\006parent\022\222\002\n\022UpdateFeaturestore\0225" + + ".google.cloud.aiplatform.v1.UpdateFeatur" + + "estoreRequest\032\035.google.longrunning.Opera" + + "tion\"\245\001\202\323\344\223\002N2>/v1/{featurestore.name=pr" + + "ojects/*/locations/*/featurestores/*}:\014f" + + "eaturestore\332A\030featurestore,update_mask\312A" + + "3\n\014Featurestore\022#UpdateFeaturestoreOpera" + + "tionMetadata\022\355\001\n\022DeleteFeaturestore\0225.go" + + "ogle.cloud.aiplatform.v1.DeleteFeaturest" + + "oreRequest\032\035.google.longrunning.Operatio" + + "n\"\200\001\202\323\344\223\0023*1/v1/{name=projects/*/locatio" + + "ns/*/featurestores/*}\332A\004name\332A\nname,forc" + + "e\312A0\n\025google.protobuf.Empty\022\027DeleteOpera" + + "tionMetadata\022\250\002\n\020CreateEntityType\0223.goog" + + "le.cloud.aiplatform.v1.CreateEntityTypeR" + + "equest\032\035.google.longrunning.Operation\"\277\001" + + "\202\323\344\223\002N\"?/v1/{parent=projects/*/locations" + + "/*/featurestores/*}/entityTypes:\013entity_" + + "type\332A\022parent,entity_type\332A!parent,entit" + + "y_type,entity_type_id\312A/\n\nEntityType\022!Cr" + + "eateEntityTypeOperationMetadata\022\271\001\n\rGetE" + + "ntityType\0220.google.cloud.aiplatform.v1.G" + + "etEntityTypeRequest\032&.google.cloud.aipla" + + "tform.v1.EntityType\"N\202\323\344\223\002A\022?/v1/{name=p" + + "rojects/*/locations/*/featurestores/*/en" + + "tityTypes/*}\332A\004name\022\314\001\n\017ListEntityTypes\022" + + "2.google.cloud.aiplatform.v1.ListEntityT" + + "ypesRequest\0323.google.cloud.aiplatform.v1" + + ".ListEntityTypesResponse\"P\202\323\344\223\002A\022?/v1/{p" + + "arent=projects/*/locations/*/featurestor" + + "es/*}/entityTypes\332A\006parent\022\353\001\n\020UpdateEnt" + + "ityType\0223.google.cloud.aiplatform.v1.Upd" + + "ateEntityTypeRequest\032&.google.cloud.aipl" + + "atform.v1.EntityType\"z\202\323\344\223\002Z2K/v1/{entit" + + "y_type.name=projects/*/locations/*/featu" + + "restores/*/entityTypes/*}:\013entity_type\332A" + + "\027entity_type,update_mask\022\367\001\n\020DeleteEntit" + + "yType\0223.google.cloud.aiplatform.v1.Delet" + + "eEntityTypeRequest\032\035.google.longrunning." + + "Operation\"\216\001\202\323\344\223\002A*?/v1/{name=projects/*" + + "/locations/*/featurestores/*/entityTypes" + + "/*}\332A\004name\332A\nname,force\312A0\n\025google.proto" + + "buf.Empty\022\027DeleteOperationMetadata\022\227\002\n\rC" + + "reateFeature\0220.google.cloud.aiplatform.v" + + "1.CreateFeatureRequest\032\035.google.longrunn" + + "ing.Operation\"\264\001\202\323\344\223\002U\"J/v1/{parent=proj" + + "ects/*/locations/*/featurestores/*/entit" + + "yTypes/*}/features:\007feature\332A\016parent,fea" + + "ture\332A\031parent,feature,feature_id\312A)\n\007Fea" + + "ture\022\036CreateFeatureOperationMetadata\022\250\002\n" + + "\023BatchCreateFeatures\0226.google.cloud.aipl" + + "atform.v1.BatchCreateFeaturesRequest\032\035.g" + + "oogle.longrunning.Operation\"\271\001\202\323\344\223\002[\"V/v" + + "1/{parent=projects/*/locations/*/feature" + + "stores/*/entityTypes/*}/features:batchCr" + + "eate:\001*\332A\017parent,requests\312AC\n\033BatchCreat" + + "eFeaturesResponse\022$BatchCreateFeaturesOp" + + "erationMetadata\022\273\001\n\nGetFeature\022-.google." + + "cloud.aiplatform.v1.GetFeatureRequest\032#." + + "google.cloud.aiplatform.v1.Feature\"Y\202\323\344\223" + + "\002L\022J/v1/{name=projects/*/locations/*/fea" + + "turestores/*/entityTypes/*/features/*}\332A" + + "\004name\022\316\001\n\014ListFeatures\022/.google.cloud.ai" + + "platform.v1.ListFeaturesRequest\0320.google" + + ".cloud.aiplatform.v1.ListFeaturesRespons" + + "e\"[\202\323\344\223\002L\022J/v1/{parent=projects/*/locati" + + "ons/*/featurestores/*/entityTypes/*}/fea" + + "tures\332A\006parent\022\341\001\n\rUpdateFeature\0220.googl" + + "e.cloud.aiplatform.v1.UpdateFeatureReque" + + "st\032#.google.cloud.aiplatform.v1.Feature\"" + + "y\202\323\344\223\002]2R/v1/{feature.name=projects/*/lo" + + "cations/*/featurestores/*/entityTypes/*/" + + "features/*}:\007feature\332A\023feature,update_ma" + + "sk\022\357\001\n\rDeleteFeature\0220.google.cloud.aipl" + + "atform.v1.DeleteFeatureRequest\032\035.google." + + "longrunning.Operation\"\214\001\202\323\344\223\002L*J/v1/{nam" + "e=projects/*/locations/*/featurestores/*" - + "/entityTypes/*}:importFeatureValues:\001*\332A" - + "\013entity_type\312AC\n\033ImportFeatureValuesResp" - + "onse\022$ImportFeatureValuesOperationMetada" - + "ta\022\253\002\n\026BatchReadFeatureValues\0229.google.c" - + "loud.aiplatform.v1.BatchReadFeatureValue" - + "sRequest\032\035.google.longrunning.Operation\"" - + "\266\001\202\323\344\223\002U\"P/v1/{featurestore=projects/*/l" - + "ocations/*/featurestores/*}:batchReadFea" - + "tureValues:\001*\332A\014featurestore\312AI\n\036BatchRe" - + "adFeatureValuesResponse\022\'BatchReadFeatur" - + "eValuesOperationMetadata\022\250\002\n\023ExportFeatu" - + "reValues\0226.google.cloud.aiplatform.v1.Ex" - + "portFeatureValuesRequest\032\035.google.longru" - + "nning.Operation\"\271\001\202\323\344\223\002_\"Z/v1/{entity_ty" - + "pe=projects/*/locations/*/featurestores/" - + "*/entityTypes/*}:exportFeatureValues:\001*\332" - + "A\013entity_type\312AC\n\033ExportFeatureValuesRes" - + "ponse\022$ExportFeatureValuesOperationMetad" - + "ata\022\337\001\n\016SearchFeatures\0221.google.cloud.ai" - + "platform.v1.SearchFeaturesRequest\0322.goog" - + "le.cloud.aiplatform.v1.SearchFeaturesRes" - + "ponse\"f\202\323\344\223\002D\022B/v1/{location=projects/*/" - + "locations/*}/featurestores:searchFeature" - + "s\332A\010location\332A\016location,query\032M\312A\031aiplat" - + "form.googleapis.com\322A.https://www.google" - + "apis.com/auth/cloud-platformB\334\001\n\036com.goo" - + "gle.cloud.aiplatform.v1B\030FeaturestoreSer" - + "viceProtoP\001ZDgoogle.golang.org/genproto/" - + "googleapis/cloud/aiplatform/v1;aiplatfor" - + "m\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\" - + "Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIP" - + "latform::V1b\006proto3" + + "/entityTypes/*/features/*}\332A\004name\312A0\n\025go" + + "ogle.protobuf.Empty\022\027DeleteOperationMeta" + + "data\022\250\002\n\023ImportFeatureValues\0226.google.cl" + + "oud.aiplatform.v1.ImportFeatureValuesReq" + + "uest\032\035.google.longrunning.Operation\"\271\001\202\323" + + "\344\223\002_\"Z/v1/{entity_type=projects/*/locati" + + "ons/*/featurestores/*/entityTypes/*}:imp" + + "ortFeatureValues:\001*\332A\013entity_type\312AC\n\033Im" + + "portFeatureValuesResponse\022$ImportFeature" + + "ValuesOperationMetadata\022\253\002\n\026BatchReadFea" + + "tureValues\0229.google.cloud.aiplatform.v1." + + "BatchReadFeatureValuesRequest\032\035.google.l" + + "ongrunning.Operation\"\266\001\202\323\344\223\002U\"P/v1/{feat" + + "urestore=projects/*/locations/*/features" + + "tores/*}:batchReadFeatureValues:\001*\332A\014fea" + + "turestore\312AI\n\036BatchReadFeatureValuesResp" + + "onse\022\'BatchReadFeatureValuesOperationMet" + + "adata\022\250\002\n\023ExportFeatureValues\0226.google.c" + + "loud.aiplatform.v1.ExportFeatureValuesRe" + + "quest\032\035.google.longrunning.Operation\"\271\001\202" + + "\323\344\223\002_\"Z/v1/{entity_type=projects/*/locat" + + "ions/*/featurestores/*/entityTypes/*}:ex" + + "portFeatureValues:\001*\332A\013entity_type\312AC\n\033E" + + "xportFeatureValuesResponse\022$ExportFeatur" + + "eValuesOperationMetadata\022\337\001\n\016SearchFeatu" + + "res\0221.google.cloud.aiplatform.v1.SearchF" + + "eaturesRequest\0322.google.cloud.aiplatform" + + ".v1.SearchFeaturesResponse\"f\202\323\344\223\002D\022B/v1/" + + "{location=projects/*/locations/*}/featur" + + "estores:searchFeatures\332A\010location\332A\016loca" + + "tion,query\032M\312A\031aiplatform.googleapis.com" + + "\322A.https://www.googleapis.com/auth/cloud" + + "-platformB\334\001\n\036com.google.cloud.aiplatfor" + + "m.v1B\030FeaturestoreServiceProtoP\001ZDgoogle" + + ".golang.org/genproto/googleapis/cloud/ai" + + "platform/v1;aiplatform\252\002\032Google.Cloud.AI" + + "Platform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1" + + "\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -893,6 +893,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", "ImportedEntityCount", "ImportedFeatureValueCount", + "SourceUris", "InvalidRowCount", "TimestampOutsideRetentionRowsCount", }); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadata.java index ad73c7c56e8e..d395a1c3858c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadata.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -94,7 +94,7 @@ public java.util.List getPartialFailuresList() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -113,7 +113,7 @@ public java.util.List getPartialFailuresList() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -131,7 +131,7 @@ public int getPartialFailuresCount() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -149,7 +149,7 @@ public com.google.rpc.Status getPartialFailures(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -732,7 +732,7 @@ private void ensurePartialFailuresIsMutable() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -753,7 +753,7 @@ public java.util.List getPartialFailuresList() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -774,7 +774,7 @@ public int getPartialFailuresCount() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -795,7 +795,7 @@ public com.google.rpc.Status getPartialFailures(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -822,7 +822,7 @@ public Builder setPartialFailures(int index, com.google.rpc.Status value) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -846,7 +846,7 @@ public Builder setPartialFailures(int index, com.google.rpc.Status.Builder build * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -873,7 +873,7 @@ public Builder addPartialFailures(com.google.rpc.Status value) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -900,7 +900,7 @@ public Builder addPartialFailures(int index, com.google.rpc.Status value) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -924,7 +924,7 @@ public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue) * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -948,7 +948,7 @@ public Builder addPartialFailures(int index, com.google.rpc.Status.Builder build * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -973,7 +973,7 @@ public Builder addAllPartialFailures( * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -997,7 +997,7 @@ public Builder clearPartialFailures() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -1021,7 +1021,7 @@ public Builder removePartialFailures(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -1038,7 +1038,7 @@ public com.google.rpc.Status.Builder getPartialFailuresBuilder(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -1059,7 +1059,7 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -1081,7 +1081,7 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -1099,7 +1099,7 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -1117,7 +1117,7 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadataOrBuilder.java index b6090c861b67..40c60d5b65de 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenericOperationMetadataOrBuilder.java @@ -30,7 +30,7 @@ public interface GenericOperationMetadataOrBuilder * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -45,7 +45,7 @@ public interface GenericOperationMetadataOrBuilder * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -60,7 +60,7 @@ public interface GenericOperationMetadataOrBuilder * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -75,7 +75,7 @@ public interface GenericOperationMetadataOrBuilder * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -90,7 +90,7 @@ public interface GenericOperationMetadataOrBuilder * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java index b4a6d7b9ee80..54b368426e4f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJob.java @@ -139,7 +139,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The display name of the HyperparameterTuningJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -164,7 +164,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The display name of the HyperparameterTuningJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -1836,7 +1836,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The display name of the HyperparameterTuningJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1860,7 +1860,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The display name of the HyperparameterTuningJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1884,7 +1884,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The display name of the HyperparameterTuningJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1907,7 +1907,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The display name of the HyperparameterTuningJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1926,7 +1926,7 @@ public Builder clearDisplayName() { * *
      * Required. The display name of the HyperparameterTuningJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java index 85202fa00746..488ee230fe01 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/HyperparameterTuningJobOrBuilder.java @@ -53,7 +53,7 @@ public interface HyperparameterTuningJobOrBuilder * *
    * Required. The display name of the HyperparameterTuningJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface HyperparameterTuningJobOrBuilder * *
    * Required. The display name of the HyperparameterTuningJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadata.java index 0841a0a6695e..be22ba2a3abb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadata.java @@ -39,7 +39,9 @@ private ImportFeatureValuesOperationMetadata( super(builder); } - private ImportFeatureValuesOperationMetadata() {} + private ImportFeatureValuesOperationMetadata() { + sourceUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -152,6 +154,67 @@ public long getImportedFeatureValueCount() { return importedFeatureValueCount_; } + public static final int SOURCE_URIS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList sourceUris_; + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @return A list containing the sourceUris. + */ + public com.google.protobuf.ProtocolStringList getSourceUrisList() { + return sourceUris_; + } + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @return The count of sourceUris. + */ + public int getSourceUrisCount() { + return sourceUris_.size(); + } + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @param index The index of the element to return. + * @return The sourceUris at the given index. + */ + public java.lang.String getSourceUris(int index) { + return sourceUris_.get(index); + } + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @param index The index of the value to return. + * @return The bytes of the sourceUris at the given index. + */ + public com.google.protobuf.ByteString getSourceUrisBytes(int index) { + return sourceUris_.getByteString(index); + } + public static final int INVALID_ROW_COUNT_FIELD_NUMBER = 6; private long invalidRowCount_; /** @@ -216,6 +279,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (importedFeatureValueCount_ != 0L) { output.writeInt64(3, importedFeatureValueCount_); } + for (int i = 0; i < sourceUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceUris_.getRaw(i)); + } if (invalidRowCount_ != 0L) { output.writeInt64(6, invalidRowCount_); } @@ -240,6 +306,14 @@ public int getSerializedSize() { if (importedFeatureValueCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, importedFeatureValueCount_); } + { + int dataSize = 0; + for (int i = 0; i < sourceUris_.size(); i++) { + dataSize += computeStringSizeNoTag(sourceUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getSourceUrisList().size(); + } if (invalidRowCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, invalidRowCount_); } @@ -270,6 +344,7 @@ public boolean equals(final java.lang.Object obj) { } if (getImportedEntityCount() != other.getImportedEntityCount()) return false; if (getImportedFeatureValueCount() != other.getImportedFeatureValueCount()) return false; + if (!getSourceUrisList().equals(other.getSourceUrisList())) return false; if (getInvalidRowCount() != other.getInvalidRowCount()) return false; if (getTimestampOutsideRetentionRowsCount() != other.getTimestampOutsideRetentionRowsCount()) return false; @@ -292,6 +367,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImportedEntityCount()); hash = (37 * hash) + IMPORTED_FEATURE_VALUE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImportedFeatureValueCount()); + if (getSourceUrisCount() > 0) { + hash = (37 * hash) + SOURCE_URIS_FIELD_NUMBER; + hash = (53 * hash) + getSourceUrisList().hashCode(); + } hash = (37 * hash) + INVALID_ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInvalidRowCount()); hash = (37 * hash) + TIMESTAMP_OUTSIDE_RETENTION_ROWS_COUNT_FIELD_NUMBER; @@ -449,6 +528,8 @@ public Builder clear() { importedFeatureValueCount_ = 0L; + sourceUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); invalidRowCount_ = 0L; timestampOutsideRetentionRowsCount_ = 0L; @@ -482,6 +563,7 @@ public com.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata build public com.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata result = new com.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata(this); + int from_bitField0_ = bitField0_; if (genericMetadataBuilder_ == null) { result.genericMetadata_ = genericMetadata_; } else { @@ -489,6 +571,11 @@ public com.google.cloud.aiplatform.v1.ImportFeatureValuesOperationMetadata build } result.importedEntityCount_ = importedEntityCount_; result.importedFeatureValueCount_ = importedFeatureValueCount_; + if (((bitField0_ & 0x00000001) != 0)) { + sourceUris_ = sourceUris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sourceUris_ = sourceUris_; result.invalidRowCount_ = invalidRowCount_; result.timestampOutsideRetentionRowsCount_ = timestampOutsideRetentionRowsCount_; onBuilt(); @@ -553,6 +640,16 @@ public Builder mergeFrom( if (other.getImportedFeatureValueCount() != 0L) { setImportedFeatureValueCount(other.getImportedFeatureValueCount()); } + if (!other.sourceUris_.isEmpty()) { + if (sourceUris_.isEmpty()) { + sourceUris_ = other.sourceUris_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSourceUrisIsMutable(); + sourceUris_.addAll(other.sourceUris_); + } + onChanged(); + } if (other.getInvalidRowCount() != 0L) { setInvalidRowCount(other.getInvalidRowCount()); } @@ -603,6 +700,13 @@ public Builder mergeFrom( break; } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSourceUrisIsMutable(); + sourceUris_.add(s); + break; + } // case 34 case 48: { invalidRowCount_ = input.readInt64(); @@ -632,6 +736,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenericOperationMetadata, @@ -926,6 +1032,174 @@ public Builder clearImportedFeatureValueCount() { return this; } + private com.google.protobuf.LazyStringList sourceUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSourceUrisIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sourceUris_ = new com.google.protobuf.LazyStringArrayList(sourceUris_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @return A list containing the sourceUris. + */ + public com.google.protobuf.ProtocolStringList getSourceUrisList() { + return sourceUris_.getUnmodifiableView(); + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @return The count of sourceUris. + */ + public int getSourceUrisCount() { + return sourceUris_.size(); + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @param index The index of the element to return. + * @return The sourceUris at the given index. + */ + public java.lang.String getSourceUris(int index) { + return sourceUris_.get(index); + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @param index The index of the value to return. + * @return The bytes of the sourceUris at the given index. + */ + public com.google.protobuf.ByteString getSourceUrisBytes(int index) { + return sourceUris_.getByteString(index); + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @param index The index to set the value at. + * @param value The sourceUris to set. + * @return This builder for chaining. + */ + public Builder setSourceUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceUrisIsMutable(); + sourceUris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @param value The sourceUris to add. + * @return This builder for chaining. + */ + public Builder addSourceUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceUrisIsMutable(); + sourceUris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @param values The sourceUris to add. + * @return This builder for chaining. + */ + public Builder addAllSourceUris(java.lang.Iterable values) { + ensureSourceUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceUris_); + onChanged(); + return this; + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @return This builder for chaining. + */ + public Builder clearSourceUris() { + sourceUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @param value The bytes of the sourceUris to add. + * @return This builder for chaining. + */ + public Builder addSourceUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSourceUrisIsMutable(); + sourceUris_.add(value); + onChanged(); + return this; + } + private long invalidRowCount_; /** * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadataOrBuilder.java index 1760e2729aba..5d3671b57cb3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportFeatureValuesOperationMetadataOrBuilder.java @@ -84,6 +84,57 @@ public interface ImportFeatureValuesOperationMetadataOrBuilder */ long getImportedFeatureValueCount(); + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @return A list containing the sourceUris. + */ + java.util.List getSourceUrisList(); + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @return The count of sourceUris. + */ + int getSourceUrisCount(); + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @param index The index of the element to return. + * @return The sourceUris at the given index. + */ + java.lang.String getSourceUris(int index); + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @param index The index of the value to return. + * @return The bytes of the sourceUris at the given index. + */ + com.google.protobuf.ByteString getSourceUrisBytes(int index); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java index 59909ec3b7ed..5203c8a1d3c4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java @@ -307,7 +307,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The display name of the Index.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -332,7 +332,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The display name of the Index.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -1797,7 +1797,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The display name of the Index.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1821,7 +1821,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The display name of the Index.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1845,7 +1845,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The display name of the Index.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1868,7 +1868,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The display name of the Index.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1887,7 +1887,7 @@ public Builder clearDisplayName() { * *
      * Required. The display name of the Index.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java index eeec98ba1a98..3c5d422d11e8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexOrBuilder.java @@ -53,7 +53,7 @@ public interface IndexOrBuilder * *
    * Required. The display name of the Index.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface IndexOrBuilder * *
    * Required. The display name of the Index.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java index 1ba5b891e331..7ca53b6c4f67 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java @@ -2035,7 +2035,7 @@ public com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder() { * *
    * Required. The display name of the Model.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -2060,7 +2060,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The display name of the Model.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -5875,7 +5875,7 @@ public com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder() { * *
      * Required. The display name of the Model.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5899,7 +5899,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The display name of the Model.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5923,7 +5923,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The display name of the Model.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5946,7 +5946,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The display name of the Model.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5965,7 +5965,7 @@ public Builder clearDisplayName() { * *
      * Required. The display name of the Model.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJob.java index c98db603f069..65732e59cfe4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJob.java @@ -1418,7 +1418,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a ModelDeploymentMonitoringJob.
    * 
@@ -1444,7 +1444,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a ModelDeploymentMonitoringJob.
    * 
@@ -3958,7 +3958,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a ModelDeploymentMonitoringJob.
      * 
@@ -3983,7 +3983,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a ModelDeploymentMonitoringJob.
      * 
@@ -4008,7 +4008,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a ModelDeploymentMonitoringJob.
      * 
@@ -4032,7 +4032,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a ModelDeploymentMonitoringJob.
      * 
@@ -4052,7 +4052,7 @@ public Builder clearDisplayName() { * *
      * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a ModelDeploymentMonitoringJob.
      * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobOrBuilder.java index 68781029eda6..6ab6b6bc309b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelDeploymentMonitoringJobOrBuilder.java @@ -53,7 +53,7 @@ public interface ModelDeploymentMonitoringJobOrBuilder * *
    * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a ModelDeploymentMonitoringJob.
    * 
@@ -68,7 +68,7 @@ public interface ModelDeploymentMonitoringJobOrBuilder * *
    * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a ModelDeploymentMonitoringJob.
    * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java index bbe6c5299d71..83ada70b015d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java @@ -253,7 +253,7 @@ public interface ModelOrBuilder * *
    * Required. The display name of the Model.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -267,7 +267,7 @@ public interface ModelOrBuilder * *
    * Required. The display name of the Model.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java index 86584b34a910..4366c2bdb22a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java @@ -3358,7 +3358,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * The display name of the Pipeline.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -3383,7 +3383,7 @@ public java.lang.String getDisplayName() { * *
    * The display name of the Pipeline.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -4079,8 +4079,8 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -4114,8 +4114,8 @@ public java.lang.String getNetwork() { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -5194,7 +5194,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * The display name of the Pipeline.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5218,7 +5218,7 @@ public java.lang.String getDisplayName() { * *
      * The display name of the Pipeline.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5242,7 +5242,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * The display name of the Pipeline.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5265,7 +5265,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * The display name of the Pipeline.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5284,7 +5284,7 @@ public Builder clearDisplayName() { * *
      * The display name of the Pipeline.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -7473,8 +7473,8 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -7507,8 +7507,8 @@ public java.lang.String getNetwork() { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -7541,8 +7541,8 @@ public com.google.protobuf.ByteString getNetworkBytes() { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -7574,8 +7574,8 @@ public Builder setNetwork(java.lang.String value) { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -7603,8 +7603,8 @@ public Builder clearNetwork() { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java index 0eb77e2aa9b7..57e31763e72b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java @@ -53,7 +53,7 @@ public interface PipelineJobOrBuilder * *
    * The display name of the Pipeline.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface PipelineJobOrBuilder * *
    * The display name of the Pipeline.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -574,8 +574,8 @@ java.lang.String getLabelsOrDefault( * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -598,8 +598,8 @@ java.lang.String getLabelsOrDefault( * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryName.java new file mode 100644 index 000000000000..6d5908601acc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryName.java @@ -0,0 +1,261 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SavedQueryName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATASET_SAVED_QUERY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dataset; + private final String savedQuery; + + @Deprecated + protected SavedQueryName() { + project = null; + location = null; + dataset = null; + savedQuery = null; + } + + private SavedQueryName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataset = Preconditions.checkNotNull(builder.getDataset()); + savedQuery = Preconditions.checkNotNull(builder.getSavedQuery()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataset() { + return dataset; + } + + public String getSavedQuery() { + return savedQuery; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SavedQueryName of( + String project, String location, String dataset, String savedQuery) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataset(dataset) + .setSavedQuery(savedQuery) + .build(); + } + + public static String format(String project, String location, String dataset, String savedQuery) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataset(dataset) + .setSavedQuery(savedQuery) + .build() + .toString(); + } + + public static SavedQueryName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DATASET_SAVED_QUERY.validatedMatch( + formattedString, "SavedQueryName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("dataset"), + matchMap.get("saved_query")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SavedQueryName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATASET_SAVED_QUERY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataset != null) { + fieldMapBuilder.put("dataset", dataset); + } + if (savedQuery != null) { + fieldMapBuilder.put("saved_query", savedQuery); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DATASET_SAVED_QUERY.instantiate( + "project", project, "location", location, "dataset", dataset, "saved_query", savedQuery); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SavedQueryName that = ((SavedQueryName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataset, that.dataset) + && Objects.equals(this.savedQuery, that.savedQuery); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataset); + h *= 1000003; + h ^= Objects.hashCode(savedQuery); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}. + */ + public static class Builder { + private String project; + private String location; + private String dataset; + private String savedQuery; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataset() { + return dataset; + } + + public String getSavedQuery() { + return savedQuery; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataset(String dataset) { + this.dataset = dataset; + return this; + } + + public Builder setSavedQuery(String savedQuery) { + this.savedQuery = savedQuery; + return this; + } + + private Builder(SavedQueryName savedQueryName) { + this.project = savedQueryName.project; + this.location = savedQueryName.location; + this.dataset = savedQueryName.dataset; + this.savedQuery = savedQueryName.savedQuery; + } + + public SavedQueryName build() { + return new SavedQueryName(this); + } + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java new file mode 100644 index 000000000000..7496f82a9c7a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java @@ -0,0 +1,4250 @@ +/* + * 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/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SearchDataItemsRequest} + */ +public final class SearchDataItemsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SearchDataItemsRequest) + SearchDataItemsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchDataItemsRequest.newBuilder() to construct. + private SearchDataItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchDataItemsRequest() { + dataset_ = ""; + savedQuery_ = ""; + dataLabelingJob_ = ""; + dataItemFilter_ = ""; + annotationsFilter_ = ""; + annotationFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; + orderBy_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchDataItemsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.class, + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.Builder.class); + } + + public interface OrderByAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Saved query of the Annotation. Only Annotations belong to this saved
+     * query will be considered for ordering.
+     * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The savedQuery. + */ + java.lang.String getSavedQuery(); + /** + * + * + *
+     * Required. Saved query of the Annotation. Only Annotations belong to this saved
+     * query will be considered for ordering.
+     * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for savedQuery. + */ + com.google.protobuf.ByteString getSavedQueryBytes(); + + /** + * + * + *
+     * A comma-separated list of annotation fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending. Must also
+     * specify saved_query.
+     * 
+ * + * string order_by = 2; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+     * A comma-separated list of annotation fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending. Must also
+     * specify saved_query.
+     * 
+ * + * string order_by = 2; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + } + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation} + */ + public static final class OrderByAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) + OrderByAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use OrderByAnnotation.newBuilder() to construct. + private OrderByAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OrderByAnnotation() { + savedQuery_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OrderByAnnotation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_OrderByAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_OrderByAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation.class, + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation.Builder + .class); + } + + public static final int SAVED_QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object savedQuery_; + /** + * + * + *
+     * Required. Saved query of the Annotation. Only Annotations belong to this saved
+     * query will be considered for ordering.
+     * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The savedQuery. + */ + @java.lang.Override + public java.lang.String getSavedQuery() { + java.lang.Object ref = savedQuery_; + 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(); + savedQuery_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Saved query of the Annotation. Only Annotations belong to this saved
+     * query will be considered for ordering.
+     * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for savedQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSavedQueryBytes() { + java.lang.Object ref = savedQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + savedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 2; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+     * A comma-separated list of annotation fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending. Must also
+     * specify saved_query.
+     * 
+ * + * string order_by = 2; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+     * A comma-separated list of annotation fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending. Must also
+     * specify saved_query.
+     * 
+ * + * string order_by = 2; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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(savedQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, savedQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, savedQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation other = + (com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) obj; + + if (!getSavedQuery().equals(other.getSavedQuery())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SAVED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSavedQuery().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation 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; + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_OrderByAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_OrderByAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation.class, + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + savedQuery_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_OrderByAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation build() { + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + buildPartial() { + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation result = + new com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation(this); + result.savedQuery_ = savedQuery_; + result.orderBy_ = orderBy_; + 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.v1.SearchDataItemsRequest.OrderByAnnotation) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation other) { + if (other + == com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance()) return this; + if (!other.getSavedQuery().isEmpty()) { + savedQuery_ = other.savedQuery_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + savedQuery_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object savedQuery_ = ""; + /** + * + * + *
+       * Required. Saved query of the Annotation. Only Annotations belong to this saved
+       * query will be considered for ordering.
+       * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The savedQuery. + */ + public java.lang.String getSavedQuery() { + java.lang.Object ref = savedQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + savedQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Saved query of the Annotation. Only Annotations belong to this saved
+       * query will be considered for ordering.
+       * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for savedQuery. + */ + public com.google.protobuf.ByteString getSavedQueryBytes() { + java.lang.Object ref = savedQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + savedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Saved query of the Annotation. Only Annotations belong to this saved
+       * query will be considered for ordering.
+       * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The savedQuery to set. + * @return This builder for chaining. + */ + public Builder setSavedQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + savedQuery_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Saved query of the Annotation. Only Annotations belong to this saved
+       * query will be considered for ordering.
+       * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSavedQuery() { + + savedQuery_ = getDefaultInstance().getSavedQuery(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Saved query of the Annotation. Only Annotations belong to this saved
+       * query will be considered for ordering.
+       * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for savedQuery to set. + * @return This builder for chaining. + */ + public Builder setSavedQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + savedQuery_ = value; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+       * A comma-separated list of annotation fields to order by, sorted in
+       * ascending order. Use "desc" after a field name for descending. Must also
+       * specify saved_query.
+       * 
+ * + * string order_by = 2; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A comma-separated list of annotation fields to order by, sorted in
+       * ascending order. Use "desc" after a field name for descending. Must also
+       * specify saved_query.
+       * 
+ * + * string order_by = 2; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A comma-separated list of annotation fields to order by, sorted in
+       * ascending order. Use "desc" after a field name for descending. Must also
+       * specify saved_query.
+       * 
+ * + * string order_by = 2; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * A comma-separated list of annotation fields to order by, sorted in
+       * ascending order. Use "desc" after a field name for descending. Must also
+       * specify saved_query.
+       * 
+ * + * string order_by = 2; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+       * A comma-separated list of annotation fields to order by, sorted in
+       * ascending order. Use "desc" after a field name for descending. Must also
+       * specify saved_query.
+       * 
+ * + * string order_by = 2; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = 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.v1.SearchDataItemsRequest.OrderByAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) + private static final com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation(); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrderByAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int orderCase_ = 0; + private java.lang.Object order_; + + public enum OrderCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ORDER_BY_DATA_ITEM(12), + ORDER_BY_ANNOTATION(13), + ORDER_NOT_SET(0); + private final int value; + + private OrderCase(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 OrderCase valueOf(int value) { + return forNumber(value); + } + + public static OrderCase forNumber(int value) { + switch (value) { + case 12: + return ORDER_BY_DATA_ITEM; + case 13: + return ORDER_BY_ANNOTATION; + case 0: + return ORDER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OrderCase getOrderCase() { + return OrderCase.forNumber(orderCase_); + } + + public static final int ORDER_BY_DATA_ITEM_FIELD_NUMBER = 12; + /** + * + * + *
+   * A comma-separated list of data item fields to order by, sorted in
+   * ascending order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by_data_item = 12; + * + * @return Whether the orderByDataItem field is set. + */ + public boolean hasOrderByDataItem() { + return orderCase_ == 12; + } + /** + * + * + *
+   * A comma-separated list of data item fields to order by, sorted in
+   * ascending order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by_data_item = 12; + * + * @return The orderByDataItem. + */ + public java.lang.String getOrderByDataItem() { + java.lang.Object ref = ""; + if (orderCase_ == 12) { + ref = order_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (orderCase_ == 12) { + order_ = s; + } + return s; + } + } + /** + * + * + *
+   * A comma-separated list of data item fields to order by, sorted in
+   * ascending order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by_data_item = 12; + * + * @return The bytes for orderByDataItem. + */ + public com.google.protobuf.ByteString getOrderByDataItemBytes() { + java.lang.Object ref = ""; + if (orderCase_ == 12) { + ref = order_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (orderCase_ == 12) { + order_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_ANNOTATION_FIELD_NUMBER = 13; + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + * + * @return Whether the orderByAnnotation field is set. + */ + @java.lang.Override + public boolean hasOrderByAnnotation() { + return orderCase_ == 13; + } + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + * + * @return The orderByAnnotation. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + getOrderByAnnotation() { + if (orderCase_ == 13) { + return (com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) order_; + } + return com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotationOrBuilder + getOrderByAnnotationOrBuilder() { + if (orderCase_ == 13) { + return (com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) order_; + } + return com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private volatile java.lang.Object dataset_; + /** + * + * + *
+   * Required. The resource name of the Dataset from which to search DataItems.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataset. + */ + @java.lang.Override + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + 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(); + dataset_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Dataset from which to search DataItems.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAVED_QUERY_FIELD_NUMBER = 2; + private volatile java.lang.Object savedQuery_; + /** + * + * + *
+   * The resource name of a SavedQuery(annotation set in UI).
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+   * All of the search will be done in the context of this SavedQuery.
+   * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=414 + * @return The savedQuery. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getSavedQuery() { + java.lang.Object ref = savedQuery_; + 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(); + savedQuery_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of a SavedQuery(annotation set in UI).
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+   * All of the search will be done in the context of this SavedQuery.
+   * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=414 + * @return The bytes for savedQuery. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getSavedQueryBytes() { + java.lang.Object ref = savedQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + savedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_LABELING_JOB_FIELD_NUMBER = 3; + private volatile java.lang.Object dataLabelingJob_; + /** + * + * + *
+   * The resource name of a DataLabelingJob.
+   * Format:
+   * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+   * If this field is set, all of the search will be done in the context of
+   * this DataLabelingJob.
+   * 
+ * + * string data_labeling_job = 3; + * + * @return The dataLabelingJob. + */ + @java.lang.Override + public java.lang.String getDataLabelingJob() { + java.lang.Object ref = dataLabelingJob_; + 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(); + dataLabelingJob_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of a DataLabelingJob.
+   * Format:
+   * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+   * If this field is set, all of the search will be done in the context of
+   * this DataLabelingJob.
+   * 
+ * + * string data_labeling_job = 3; + * + * @return The bytes for dataLabelingJob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataLabelingJobBytes() { + java.lang.Object ref = dataLabelingJob_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataLabelingJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_ITEM_FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object dataItemFilter_; + /** + * + * + *
+   * An expression for filtering the DataItem that will be returned.
+   *   * `data_item_id` - for = or !=.
+   *   * `labeled` - for = or !=.
+   *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+   *     have at least one annotation with annotation_spec_id =
+   *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+   * For example:
+   * * `data_item=1`
+   * * `has_annotation(5)`
+   * 
+ * + * string data_item_filter = 4; + * + * @return The dataItemFilter. + */ + @java.lang.Override + public java.lang.String getDataItemFilter() { + java.lang.Object ref = dataItemFilter_; + 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(); + dataItemFilter_ = s; + return s; + } + } + /** + * + * + *
+   * An expression for filtering the DataItem that will be returned.
+   *   * `data_item_id` - for = or !=.
+   *   * `labeled` - for = or !=.
+   *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+   *     have at least one annotation with annotation_spec_id =
+   *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+   * For example:
+   * * `data_item=1`
+   * * `has_annotation(5)`
+   * 
+ * + * string data_item_filter = 4; + * + * @return The bytes for dataItemFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataItemFilterBytes() { + java.lang.Object ref = dataItemFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataItemFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FILTER_FIELD_NUMBER = 5; + private volatile java.lang.Object annotationsFilter_; + /** + * + * + *
+   * An expression for filtering the Annotations that will be returned per
+   * DataItem.
+   *   * `annotation_spec_id` - for = or !=.
+   * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. + * See google/cloud/aiplatform/v1/dataset_service.proto;l=445 + * @return The annotationsFilter. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getAnnotationsFilter() { + java.lang.Object ref = annotationsFilter_; + 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(); + annotationsFilter_ = s; + return s; + } + } + /** + * + * + *
+   * An expression for filtering the Annotations that will be returned per
+   * DataItem.
+   *   * `annotation_spec_id` - for = or !=.
+   * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. + * See google/cloud/aiplatform/v1/dataset_service.proto;l=445 + * @return The bytes for annotationsFilter. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getAnnotationsFilterBytes() { + java.lang.Object ref = annotationsFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + annotationsFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATION_FILTERS_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList annotationFilters_; + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @return A list containing the annotationFilters. + */ + public com.google.protobuf.ProtocolStringList getAnnotationFiltersList() { + return annotationFilters_; + } + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @return The count of annotationFilters. + */ + public int getAnnotationFiltersCount() { + return annotationFilters_.size(); + } + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index of the element to return. + * @return The annotationFilters at the given index. + */ + public java.lang.String getAnnotationFilters(int index) { + return annotationFilters_.get(index); + } + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index of the value to return. + * @return The bytes of the annotationFilters at the given index. + */ + public com.google.protobuf.ByteString getAnnotationFiltersBytes(int index) { + return annotationFilters_.getByteString(index); + } + + public static final int FIELD_MASK_FIELD_NUMBER = 6; + private com.google.protobuf.FieldMask fieldMask_; + /** + * + * + *
+   * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + * + * @return Whether the fieldMask field is set. + */ + @java.lang.Override + public boolean hasFieldMask() { + return fieldMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + * + * @return The fieldMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getFieldMask() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + /** + * + * + *
+   * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + return getFieldMask(); + } + + public static final int ANNOTATIONS_LIMIT_FIELD_NUMBER = 7; + private int annotationsLimit_; + /** + * + * + *
+   * If set, only up to this many of Annotations will be returned per
+   * DataItemView. The maximum value is 1000. If not set, the maximum value will
+   * be used.
+   * 
+ * + * int32 annotations_limit = 7; + * + * @return The annotationsLimit. + */ + @java.lang.Override + public int getAnnotationsLimit() { + return annotationsLimit_; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 8; + private int pageSize_; + /** + * + * + *
+   * Requested page size. Server may return fewer results than requested.
+   * Default and maximum page size is 100.
+   * 
+ * + * int32 page_size = 8; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 9; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=468 + * @return The orderBy. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=468 + * @return The bytes for orderBy. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 10; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A token identifying a page of results for the server to return
+   * Typically obtained via
+   * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token] of the previous
+   * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems] call.
+   * 
+ * + * string page_token = 10; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results for the server to return
+   * Typically obtained via
+   * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token] of the previous
+   * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems] call.
+   * 
+ * + * string page_token = 10; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, savedQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataLabelingJob_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dataLabelingJob_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataItemFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dataItemFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationsFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, annotationsFilter_); + } + if (fieldMask_ != null) { + output.writeMessage(6, getFieldMask()); + } + if (annotationsLimit_ != 0) { + output.writeInt32(7, annotationsLimit_); + } + if (pageSize_ != 0) { + output.writeInt32(8, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pageToken_); + } + for (int i = 0; i < annotationFilters_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, annotationFilters_.getRaw(i)); + } + if (orderCase_ == 12) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, order_); + } + if (orderCase_ == 13) { + output.writeMessage( + 13, (com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) order_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, savedQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataLabelingJob_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dataLabelingJob_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataItemFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dataItemFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationsFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, annotationsFilter_); + } + if (fieldMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getFieldMask()); + } + if (annotationsLimit_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, annotationsLimit_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < annotationFilters_.size(); i++) { + dataSize += computeStringSizeNoTag(annotationFilters_.getRaw(i)); + } + size += dataSize; + size += 1 * getAnnotationFiltersList().size(); + } + if (orderCase_ == 12) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, order_); + } + if (orderCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) order_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.SearchDataItemsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SearchDataItemsRequest other = + (com.google.cloud.aiplatform.v1.SearchDataItemsRequest) obj; + + if (!getDataset().equals(other.getDataset())) return false; + if (!getSavedQuery().equals(other.getSavedQuery())) return false; + if (!getDataLabelingJob().equals(other.getDataLabelingJob())) return false; + if (!getDataItemFilter().equals(other.getDataItemFilter())) return false; + if (!getAnnotationsFilter().equals(other.getAnnotationsFilter())) return false; + if (!getAnnotationFiltersList().equals(other.getAnnotationFiltersList())) return false; + if (hasFieldMask() != other.hasFieldMask()) return false; + if (hasFieldMask()) { + if (!getFieldMask().equals(other.getFieldMask())) return false; + } + if (getAnnotationsLimit() != other.getAnnotationsLimit()) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderCase().equals(other.getOrderCase())) return false; + switch (orderCase_) { + case 12: + if (!getOrderByDataItem().equals(other.getOrderByDataItem())) return false; + break; + case 13: + if (!getOrderByAnnotation().equals(other.getOrderByAnnotation())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + hash = (37 * hash) + SAVED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSavedQuery().hashCode(); + hash = (37 * hash) + DATA_LABELING_JOB_FIELD_NUMBER; + hash = (53 * hash) + getDataLabelingJob().hashCode(); + hash = (37 * hash) + DATA_ITEM_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDataItemFilter().hashCode(); + hash = (37 * hash) + ANNOTATIONS_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationsFilter().hashCode(); + if (getAnnotationFiltersCount() > 0) { + hash = (37 * hash) + ANNOTATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationFiltersList().hashCode(); + } + if (hasFieldMask()) { + hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getFieldMask().hashCode(); + } + hash = (37 * hash) + ANNOTATIONS_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationsLimit(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + switch (orderCase_) { + case 12: + hash = (37 * hash) + ORDER_BY_DATA_ITEM_FIELD_NUMBER; + hash = (53 * hash) + getOrderByDataItem().hashCode(); + break; + case 13: + hash = (37 * hash) + ORDER_BY_ANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + getOrderByAnnotation().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest 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 [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SearchDataItemsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SearchDataItemsRequest) + com.google.cloud.aiplatform.v1.SearchDataItemsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.class, + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.SearchDataItemsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (orderByAnnotationBuilder_ != null) { + orderByAnnotationBuilder_.clear(); + } + dataset_ = ""; + + savedQuery_ = ""; + + dataLabelingJob_ = ""; + + dataItemFilter_ = ""; + + annotationsFilter_ = ""; + + annotationFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + annotationsLimit_ = 0; + + pageSize_ = 0; + + orderBy_ = ""; + + pageToken_ = ""; + + orderCase_ = 0; + order_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SearchDataItemsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest build() { + com.google.cloud.aiplatform.v1.SearchDataItemsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest buildPartial() { + com.google.cloud.aiplatform.v1.SearchDataItemsRequest result = + new com.google.cloud.aiplatform.v1.SearchDataItemsRequest(this); + int from_bitField0_ = bitField0_; + if (orderCase_ == 12) { + result.order_ = order_; + } + if (orderCase_ == 13) { + if (orderByAnnotationBuilder_ == null) { + result.order_ = order_; + } else { + result.order_ = orderByAnnotationBuilder_.build(); + } + } + result.dataset_ = dataset_; + result.savedQuery_ = savedQuery_; + result.dataLabelingJob_ = dataLabelingJob_; + result.dataItemFilter_ = dataItemFilter_; + result.annotationsFilter_ = annotationsFilter_; + if (((bitField0_ & 0x00000001) != 0)) { + annotationFilters_ = annotationFilters_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.annotationFilters_ = annotationFilters_; + if (fieldMaskBuilder_ == null) { + result.fieldMask_ = fieldMask_; + } else { + result.fieldMask_ = fieldMaskBuilder_.build(); + } + result.annotationsLimit_ = annotationsLimit_; + result.pageSize_ = pageSize_; + result.orderBy_ = orderBy_; + result.pageToken_ = pageToken_; + result.orderCase_ = orderCase_; + 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.v1.SearchDataItemsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.SearchDataItemsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.SearchDataItemsRequest other) { + if (other == com.google.cloud.aiplatform.v1.SearchDataItemsRequest.getDefaultInstance()) + return this; + if (!other.getDataset().isEmpty()) { + dataset_ = other.dataset_; + onChanged(); + } + if (!other.getSavedQuery().isEmpty()) { + savedQuery_ = other.savedQuery_; + onChanged(); + } + if (!other.getDataLabelingJob().isEmpty()) { + dataLabelingJob_ = other.dataLabelingJob_; + onChanged(); + } + if (!other.getDataItemFilter().isEmpty()) { + dataItemFilter_ = other.dataItemFilter_; + onChanged(); + } + if (!other.getAnnotationsFilter().isEmpty()) { + annotationsFilter_ = other.annotationsFilter_; + onChanged(); + } + if (!other.annotationFilters_.isEmpty()) { + if (annotationFilters_.isEmpty()) { + annotationFilters_ = other.annotationFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAnnotationFiltersIsMutable(); + annotationFilters_.addAll(other.annotationFilters_); + } + onChanged(); + } + if (other.hasFieldMask()) { + mergeFieldMask(other.getFieldMask()); + } + if (other.getAnnotationsLimit() != 0) { + setAnnotationsLimit(other.getAnnotationsLimit()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + switch (other.getOrderCase()) { + case ORDER_BY_DATA_ITEM: + { + orderCase_ = 12; + order_ = other.order_; + onChanged(); + break; + } + case ORDER_BY_ANNOTATION: + { + mergeOrderByAnnotation(other.getOrderByAnnotation()); + break; + } + case ORDER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dataset_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + savedQuery_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + dataLabelingJob_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + dataItemFilter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + annotationsFilter_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage(getFieldMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 56: + { + annotationsLimit_ = input.readInt32(); + + break; + } // case 56 + case 64: + { + pageSize_ = input.readInt32(); + + break; + } // case 64 + case 74: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAnnotationFiltersIsMutable(); + annotationFilters_.add(s); + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + orderCase_ = 12; + order_ = s; + break; + } // case 98 + case 106: + { + input.readMessage( + getOrderByAnnotationFieldBuilder().getBuilder(), extensionRegistry); + orderCase_ = 13; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int orderCase_ = 0; + private java.lang.Object order_; + + public OrderCase getOrderCase() { + return OrderCase.forNumber(orderCase_); + } + + public Builder clearOrder() { + orderCase_ = 0; + order_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * A comma-separated list of data item fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by_data_item = 12; + * + * @return Whether the orderByDataItem field is set. + */ + @java.lang.Override + public boolean hasOrderByDataItem() { + return orderCase_ == 12; + } + /** + * + * + *
+     * A comma-separated list of data item fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by_data_item = 12; + * + * @return The orderByDataItem. + */ + @java.lang.Override + public java.lang.String getOrderByDataItem() { + java.lang.Object ref = ""; + if (orderCase_ == 12) { + ref = order_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (orderCase_ == 12) { + order_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A comma-separated list of data item fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by_data_item = 12; + * + * @return The bytes for orderByDataItem. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByDataItemBytes() { + java.lang.Object ref = ""; + if (orderCase_ == 12) { + ref = order_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (orderCase_ == 12) { + order_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A comma-separated list of data item fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by_data_item = 12; + * + * @param value The orderByDataItem to set. + * @return This builder for chaining. + */ + public Builder setOrderByDataItem(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderCase_ = 12; + order_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A comma-separated list of data item fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by_data_item = 12; + * + * @return This builder for chaining. + */ + public Builder clearOrderByDataItem() { + if (orderCase_ == 12) { + orderCase_ = 0; + order_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * A comma-separated list of data item fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by_data_item = 12; + * + * @param value The bytes for orderByDataItem to set. + * @return This builder for chaining. + */ + public Builder setOrderByDataItemBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderCase_ = 12; + order_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation, + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation.Builder, + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotationOrBuilder> + orderByAnnotationBuilder_; + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + * + * @return Whether the orderByAnnotation field is set. + */ + @java.lang.Override + public boolean hasOrderByAnnotation() { + return orderCase_ == 13; + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + * + * @return The orderByAnnotation. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + getOrderByAnnotation() { + if (orderByAnnotationBuilder_ == null) { + if (orderCase_ == 13) { + return (com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) order_; + } + return com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } else { + if (orderCase_ == 13) { + return orderByAnnotationBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + public Builder setOrderByAnnotation( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation value) { + if (orderByAnnotationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + order_ = value; + onChanged(); + } else { + orderByAnnotationBuilder_.setMessage(value); + } + orderCase_ = 13; + return this; + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + public Builder setOrderByAnnotation( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation.Builder + builderForValue) { + if (orderByAnnotationBuilder_ == null) { + order_ = builderForValue.build(); + onChanged(); + } else { + orderByAnnotationBuilder_.setMessage(builderForValue.build()); + } + orderCase_ = 13; + return this; + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + public Builder mergeOrderByAnnotation( + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation value) { + if (orderByAnnotationBuilder_ == null) { + if (orderCase_ == 13 + && order_ + != com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance()) { + order_ = + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation.newBuilder( + (com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) + order_) + .mergeFrom(value) + .buildPartial(); + } else { + order_ = value; + } + onChanged(); + } else { + if (orderCase_ == 13) { + orderByAnnotationBuilder_.mergeFrom(value); + } else { + orderByAnnotationBuilder_.setMessage(value); + } + } + orderCase_ = 13; + return this; + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + public Builder clearOrderByAnnotation() { + if (orderByAnnotationBuilder_ == null) { + if (orderCase_ == 13) { + orderCase_ = 0; + order_ = null; + onChanged(); + } + } else { + if (orderCase_ == 13) { + orderCase_ = 0; + order_ = null; + } + orderByAnnotationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation.Builder + getOrderByAnnotationBuilder() { + return getOrderByAnnotationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotationOrBuilder + getOrderByAnnotationOrBuilder() { + if ((orderCase_ == 13) && (orderByAnnotationBuilder_ != null)) { + return orderByAnnotationBuilder_.getMessageOrBuilder(); + } else { + if (orderCase_ == 13) { + return (com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) order_; + } + return com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation, + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation.Builder, + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotationOrBuilder> + getOrderByAnnotationFieldBuilder() { + if (orderByAnnotationBuilder_ == null) { + if (!(orderCase_ == 13)) { + order_ = + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } + orderByAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation, + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation.Builder, + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotationOrBuilder>( + (com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation) order_, + getParentForChildren(), + isClean()); + order_ = null; + } + orderCase_ = 13; + onChanged(); + ; + return orderByAnnotationBuilder_; + } + + private java.lang.Object dataset_ = ""; + /** + * + * + *
+     * Required. The resource name of the Dataset from which to search DataItems.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataset. + */ + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset from which to search DataItems.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataset. + */ + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset from which to search DataItems.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataset to set. + * @return This builder for chaining. + */ + public Builder setDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset from which to search DataItems.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataset() { + + dataset_ = getDefaultInstance().getDataset(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset from which to search DataItems.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataset to set. + * @return This builder for chaining. + */ + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataset_ = value; + onChanged(); + return this; + } + + private java.lang.Object savedQuery_ = ""; + /** + * + * + *
+     * The resource name of a SavedQuery(annotation set in UI).
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+     * All of the search will be done in the context of this SavedQuery.
+     * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=414 + * @return The savedQuery. + */ + @java.lang.Deprecated + public java.lang.String getSavedQuery() { + java.lang.Object ref = savedQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + savedQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of a SavedQuery(annotation set in UI).
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+     * All of the search will be done in the context of this SavedQuery.
+     * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=414 + * @return The bytes for savedQuery. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getSavedQueryBytes() { + java.lang.Object ref = savedQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + savedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of a SavedQuery(annotation set in UI).
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+     * All of the search will be done in the context of this SavedQuery.
+     * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=414 + * @param value The savedQuery to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSavedQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + savedQuery_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of a SavedQuery(annotation set in UI).
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+     * All of the search will be done in the context of this SavedQuery.
+     * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=414 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearSavedQuery() { + + savedQuery_ = getDefaultInstance().getSavedQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of a SavedQuery(annotation set in UI).
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+     * All of the search will be done in the context of this SavedQuery.
+     * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=414 + * @param value The bytes for savedQuery to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSavedQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + savedQuery_ = value; + onChanged(); + return this; + } + + private java.lang.Object dataLabelingJob_ = ""; + /** + * + * + *
+     * The resource name of a DataLabelingJob.
+     * Format:
+     * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+     * If this field is set, all of the search will be done in the context of
+     * this DataLabelingJob.
+     * 
+ * + * string data_labeling_job = 3; + * + * @return The dataLabelingJob. + */ + public java.lang.String getDataLabelingJob() { + java.lang.Object ref = dataLabelingJob_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataLabelingJob_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of a DataLabelingJob.
+     * Format:
+     * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+     * If this field is set, all of the search will be done in the context of
+     * this DataLabelingJob.
+     * 
+ * + * string data_labeling_job = 3; + * + * @return The bytes for dataLabelingJob. + */ + public com.google.protobuf.ByteString getDataLabelingJobBytes() { + java.lang.Object ref = dataLabelingJob_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataLabelingJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of a DataLabelingJob.
+     * Format:
+     * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+     * If this field is set, all of the search will be done in the context of
+     * this DataLabelingJob.
+     * 
+ * + * string data_labeling_job = 3; + * + * @param value The dataLabelingJob to set. + * @return This builder for chaining. + */ + public Builder setDataLabelingJob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataLabelingJob_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of a DataLabelingJob.
+     * Format:
+     * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+     * If this field is set, all of the search will be done in the context of
+     * this DataLabelingJob.
+     * 
+ * + * string data_labeling_job = 3; + * + * @return This builder for chaining. + */ + public Builder clearDataLabelingJob() { + + dataLabelingJob_ = getDefaultInstance().getDataLabelingJob(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of a DataLabelingJob.
+     * Format:
+     * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+     * If this field is set, all of the search will be done in the context of
+     * this DataLabelingJob.
+     * 
+ * + * string data_labeling_job = 3; + * + * @param value The bytes for dataLabelingJob to set. + * @return This builder for chaining. + */ + public Builder setDataLabelingJobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataLabelingJob_ = value; + onChanged(); + return this; + } + + private java.lang.Object dataItemFilter_ = ""; + /** + * + * + *
+     * An expression for filtering the DataItem that will be returned.
+     *   * `data_item_id` - for = or !=.
+     *   * `labeled` - for = or !=.
+     *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+     *     have at least one annotation with annotation_spec_id =
+     *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+     * For example:
+     * * `data_item=1`
+     * * `has_annotation(5)`
+     * 
+ * + * string data_item_filter = 4; + * + * @return The dataItemFilter. + */ + public java.lang.String getDataItemFilter() { + java.lang.Object ref = dataItemFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataItemFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An expression for filtering the DataItem that will be returned.
+     *   * `data_item_id` - for = or !=.
+     *   * `labeled` - for = or !=.
+     *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+     *     have at least one annotation with annotation_spec_id =
+     *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+     * For example:
+     * * `data_item=1`
+     * * `has_annotation(5)`
+     * 
+ * + * string data_item_filter = 4; + * + * @return The bytes for dataItemFilter. + */ + public com.google.protobuf.ByteString getDataItemFilterBytes() { + java.lang.Object ref = dataItemFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataItemFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An expression for filtering the DataItem that will be returned.
+     *   * `data_item_id` - for = or !=.
+     *   * `labeled` - for = or !=.
+     *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+     *     have at least one annotation with annotation_spec_id =
+     *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+     * For example:
+     * * `data_item=1`
+     * * `has_annotation(5)`
+     * 
+ * + * string data_item_filter = 4; + * + * @param value The dataItemFilter to set. + * @return This builder for chaining. + */ + public Builder setDataItemFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataItemFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An expression for filtering the DataItem that will be returned.
+     *   * `data_item_id` - for = or !=.
+     *   * `labeled` - for = or !=.
+     *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+     *     have at least one annotation with annotation_spec_id =
+     *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+     * For example:
+     * * `data_item=1`
+     * * `has_annotation(5)`
+     * 
+ * + * string data_item_filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearDataItemFilter() { + + dataItemFilter_ = getDefaultInstance().getDataItemFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression for filtering the DataItem that will be returned.
+     *   * `data_item_id` - for = or !=.
+     *   * `labeled` - for = or !=.
+     *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+     *     have at least one annotation with annotation_spec_id =
+     *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+     * For example:
+     * * `data_item=1`
+     * * `has_annotation(5)`
+     * 
+ * + * string data_item_filter = 4; + * + * @param value The bytes for dataItemFilter to set. + * @return This builder for chaining. + */ + public Builder setDataItemFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataItemFilter_ = value; + onChanged(); + return this; + } + + private java.lang.Object annotationsFilter_ = ""; + /** + * + * + *
+     * An expression for filtering the Annotations that will be returned per
+     * DataItem.
+     *   * `annotation_spec_id` - for = or !=.
+     * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=445 + * @return The annotationsFilter. + */ + @java.lang.Deprecated + public java.lang.String getAnnotationsFilter() { + java.lang.Object ref = annotationsFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + annotationsFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An expression for filtering the Annotations that will be returned per
+     * DataItem.
+     *   * `annotation_spec_id` - for = or !=.
+     * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=445 + * @return The bytes for annotationsFilter. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getAnnotationsFilterBytes() { + java.lang.Object ref = annotationsFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + annotationsFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An expression for filtering the Annotations that will be returned per
+     * DataItem.
+     *   * `annotation_spec_id` - for = or !=.
+     * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=445 + * @param value The annotationsFilter to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setAnnotationsFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + annotationsFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An expression for filtering the Annotations that will be returned per
+     * DataItem.
+     *   * `annotation_spec_id` - for = or !=.
+     * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=445 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearAnnotationsFilter() { + + annotationsFilter_ = getDefaultInstance().getAnnotationsFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression for filtering the Annotations that will be returned per
+     * DataItem.
+     *   * `annotation_spec_id` - for = or !=.
+     * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=445 + * @param value The bytes for annotationsFilter to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setAnnotationsFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + annotationsFilter_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList annotationFilters_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAnnotationFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + annotationFilters_ = new com.google.protobuf.LazyStringArrayList(annotationFilters_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @return A list containing the annotationFilters. + */ + public com.google.protobuf.ProtocolStringList getAnnotationFiltersList() { + return annotationFilters_.getUnmodifiableView(); + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @return The count of annotationFilters. + */ + public int getAnnotationFiltersCount() { + return annotationFilters_.size(); + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index of the element to return. + * @return The annotationFilters at the given index. + */ + public java.lang.String getAnnotationFilters(int index) { + return annotationFilters_.get(index); + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index of the value to return. + * @return The bytes of the annotationFilters at the given index. + */ + public com.google.protobuf.ByteString getAnnotationFiltersBytes(int index) { + return annotationFilters_.getByteString(index); + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index to set the value at. + * @param value The annotationFilters to set. + * @return This builder for chaining. + */ + public Builder setAnnotationFilters(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationFiltersIsMutable(); + annotationFilters_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @param value The annotationFilters to add. + * @return This builder for chaining. + */ + public Builder addAnnotationFilters(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationFiltersIsMutable(); + annotationFilters_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @param values The annotationFilters to add. + * @return This builder for chaining. + */ + public Builder addAllAnnotationFilters(java.lang.Iterable values) { + ensureAnnotationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationFilters_); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @return This builder for chaining. + */ + public Builder clearAnnotationFilters() { + annotationFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @param value The bytes of the annotationFilters to add. + * @return This builder for chaining. + */ + public Builder addAnnotationFiltersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAnnotationFiltersIsMutable(); + annotationFilters_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask fieldMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + * + * @return Whether the fieldMask field is set. + */ + public boolean hasFieldMask() { + return fieldMaskBuilder_ != null || fieldMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + * + * @return The fieldMask. + */ + public com.google.protobuf.FieldMask getFieldMask() { + if (fieldMaskBuilder_ == null) { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } else { + return fieldMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldMask_ = value; + onChanged(); + } else { + fieldMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (fieldMaskBuilder_ == null) { + fieldMask_ = builderForValue.build(); + onChanged(); + } else { + fieldMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (fieldMask_ != null) { + fieldMask_ = + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + } else { + fieldMask_ = value; + } + onChanged(); + } else { + fieldMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + public Builder clearFieldMask() { + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + onChanged(); + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + + onChanged(); + return getFieldMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + if (fieldMaskBuilder_ != null) { + return fieldMaskBuilder_.getMessageOrBuilder(); + } else { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getFieldMaskFieldBuilder() { + if (fieldMaskBuilder_ == null) { + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); + fieldMask_ = null; + } + return fieldMaskBuilder_; + } + + private int annotationsLimit_; + /** + * + * + *
+     * If set, only up to this many of Annotations will be returned per
+     * DataItemView. The maximum value is 1000. If not set, the maximum value will
+     * be used.
+     * 
+ * + * int32 annotations_limit = 7; + * + * @return The annotationsLimit. + */ + @java.lang.Override + public int getAnnotationsLimit() { + return annotationsLimit_; + } + /** + * + * + *
+     * If set, only up to this many of Annotations will be returned per
+     * DataItemView. The maximum value is 1000. If not set, the maximum value will
+     * be used.
+     * 
+ * + * int32 annotations_limit = 7; + * + * @param value The annotationsLimit to set. + * @return This builder for chaining. + */ + public Builder setAnnotationsLimit(int value) { + + annotationsLimit_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set, only up to this many of Annotations will be returned per
+     * DataItemView. The maximum value is 1000. If not set, the maximum value will
+     * be used.
+     * 
+ * + * int32 annotations_limit = 7; + * + * @return This builder for chaining. + */ + public Builder clearAnnotationsLimit() { + + annotationsLimit_ = 0; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Requested page size. Server may return fewer results than requested.
+     * Default and maximum page size is 100.
+     * 
+ * + * int32 page_size = 8; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Requested page size. Server may return fewer results than requested.
+     * Default and maximum page size is 100.
+     * 
+ * + * int32 page_size = 8; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested page size. Server may return fewer results than requested.
+     * Default and maximum page size is 100.
+     * 
+ * + * int32 page_size = 8; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=468 + * @return The orderBy. + */ + @java.lang.Deprecated + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=468 + * @return The bytes for orderBy. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=468 + * @param value The orderBy to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=468 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=468 + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results for the server to return
+     * Typically obtained via
+     * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token] of the previous
+     * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems] call.
+     * 
+ * + * string page_token = 10; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results for the server to return
+     * Typically obtained via
+     * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token] of the previous
+     * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems] call.
+     * 
+ * + * string page_token = 10; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results for the server to return
+     * Typically obtained via
+     * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token] of the previous
+     * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems] call.
+     * 
+ * + * string page_token = 10; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results for the server to return
+     * Typically obtained via
+     * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token] of the previous
+     * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems] call.
+     * 
+ * + * string page_token = 10; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results for the server to return
+     * Typically obtained via
+     * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token] of the previous
+     * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems] call.
+     * 
+ * + * string page_token = 10; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.SearchDataItemsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SearchDataItemsRequest) + private static final com.google.cloud.aiplatform.v1.SearchDataItemsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SearchDataItemsRequest(); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchDataItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java new file mode 100644 index 000000000000..1a28a549a389 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java @@ -0,0 +1,485 @@ +/* + * 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/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface SearchDataItemsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SearchDataItemsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A comma-separated list of data item fields to order by, sorted in
+   * ascending order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by_data_item = 12; + * + * @return Whether the orderByDataItem field is set. + */ + boolean hasOrderByDataItem(); + /** + * + * + *
+   * A comma-separated list of data item fields to order by, sorted in
+   * ascending order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by_data_item = 12; + * + * @return The orderByDataItem. + */ + java.lang.String getOrderByDataItem(); + /** + * + * + *
+   * A comma-separated list of data item fields to order by, sorted in
+   * ascending order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by_data_item = 12; + * + * @return The bytes for orderByDataItem. + */ + com.google.protobuf.ByteString getOrderByDataItemBytes(); + + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + * + * @return Whether the orderByAnnotation field is set. + */ + boolean hasOrderByAnnotation(); + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + * + * @return The orderByAnnotation. + */ + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation getOrderByAnnotation(); + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotationOrBuilder + getOrderByAnnotationOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the Dataset from which to search DataItems.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataset. + */ + java.lang.String getDataset(); + /** + * + * + *
+   * Required. The resource name of the Dataset from which to search DataItems.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataset. + */ + com.google.protobuf.ByteString getDatasetBytes(); + + /** + * + * + *
+   * The resource name of a SavedQuery(annotation set in UI).
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+   * All of the search will be done in the context of this SavedQuery.
+   * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=414 + * @return The savedQuery. + */ + @java.lang.Deprecated + java.lang.String getSavedQuery(); + /** + * + * + *
+   * The resource name of a SavedQuery(annotation set in UI).
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+   * All of the search will be done in the context of this SavedQuery.
+   * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=414 + * @return The bytes for savedQuery. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getSavedQueryBytes(); + + /** + * + * + *
+   * The resource name of a DataLabelingJob.
+   * Format:
+   * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+   * If this field is set, all of the search will be done in the context of
+   * this DataLabelingJob.
+   * 
+ * + * string data_labeling_job = 3; + * + * @return The dataLabelingJob. + */ + java.lang.String getDataLabelingJob(); + /** + * + * + *
+   * The resource name of a DataLabelingJob.
+   * Format:
+   * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+   * If this field is set, all of the search will be done in the context of
+   * this DataLabelingJob.
+   * 
+ * + * string data_labeling_job = 3; + * + * @return The bytes for dataLabelingJob. + */ + com.google.protobuf.ByteString getDataLabelingJobBytes(); + + /** + * + * + *
+   * An expression for filtering the DataItem that will be returned.
+   *   * `data_item_id` - for = or !=.
+   *   * `labeled` - for = or !=.
+   *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+   *     have at least one annotation with annotation_spec_id =
+   *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+   * For example:
+   * * `data_item=1`
+   * * `has_annotation(5)`
+   * 
+ * + * string data_item_filter = 4; + * + * @return The dataItemFilter. + */ + java.lang.String getDataItemFilter(); + /** + * + * + *
+   * An expression for filtering the DataItem that will be returned.
+   *   * `data_item_id` - for = or !=.
+   *   * `labeled` - for = or !=.
+   *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+   *     have at least one annotation with annotation_spec_id =
+   *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+   * For example:
+   * * `data_item=1`
+   * * `has_annotation(5)`
+   * 
+ * + * string data_item_filter = 4; + * + * @return The bytes for dataItemFilter. + */ + com.google.protobuf.ByteString getDataItemFilterBytes(); + + /** + * + * + *
+   * An expression for filtering the Annotations that will be returned per
+   * DataItem.
+   *   * `annotation_spec_id` - for = or !=.
+   * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. + * See google/cloud/aiplatform/v1/dataset_service.proto;l=445 + * @return The annotationsFilter. + */ + @java.lang.Deprecated + java.lang.String getAnnotationsFilter(); + /** + * + * + *
+   * An expression for filtering the Annotations that will be returned per
+   * DataItem.
+   *   * `annotation_spec_id` - for = or !=.
+   * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. + * See google/cloud/aiplatform/v1/dataset_service.proto;l=445 + * @return The bytes for annotationsFilter. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getAnnotationsFilterBytes(); + + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @return A list containing the annotationFilters. + */ + java.util.List getAnnotationFiltersList(); + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @return The count of annotationFilters. + */ + int getAnnotationFiltersCount(); + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index of the element to return. + * @return The annotationFilters at the given index. + */ + java.lang.String getAnnotationFilters(int index); + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index of the value to return. + * @return The bytes of the annotationFilters at the given index. + */ + com.google.protobuf.ByteString getAnnotationFiltersBytes(int index); + + /** + * + * + *
+   * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + * + * @return Whether the fieldMask field is set. + */ + boolean hasFieldMask(); + /** + * + * + *
+   * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + * + * @return The fieldMask. + */ + com.google.protobuf.FieldMask getFieldMask(); + /** + * + * + *
+   * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); + + /** + * + * + *
+   * If set, only up to this many of Annotations will be returned per
+   * DataItemView. The maximum value is 1000. If not set, the maximum value will
+   * be used.
+   * 
+ * + * int32 annotations_limit = 7; + * + * @return The annotationsLimit. + */ + int getAnnotationsLimit(); + + /** + * + * + *
+   * Requested page size. Server may return fewer results than requested.
+   * Default and maximum page size is 100.
+   * 
+ * + * int32 page_size = 8; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=468 + * @return The orderBy. + */ + @java.lang.Deprecated + java.lang.String getOrderBy(); + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1/dataset_service.proto;l=468 + * @return The bytes for orderBy. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * A token identifying a page of results for the server to return
+   * Typically obtained via
+   * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token] of the previous
+   * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems] call.
+   * 
+ * + * string page_token = 10; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A token identifying a page of results for the server to return
+   * Typically obtained via
+   * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token] of the previous
+   * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems] call.
+   * 
+ * + * string page_token = 10; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + public com.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderCase getOrderCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsResponse.java new file mode 100644 index 000000000000..9b9a63b1e660 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsResponse.java @@ -0,0 +1,1118 @@ +/* + * 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/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SearchDataItemsResponse} + */ +public final class SearchDataItemsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SearchDataItemsResponse) + SearchDataItemsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchDataItemsResponse.newBuilder() to construct. + private SearchDataItemsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchDataItemsResponse() { + dataItemViews_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchDataItemsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SearchDataItemsResponse.class, + com.google.cloud.aiplatform.v1.SearchDataItemsResponse.Builder.class); + } + + public static final int DATA_ITEM_VIEWS_FIELD_NUMBER = 1; + private java.util.List dataItemViews_; + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + @java.lang.Override + public java.util.List getDataItemViewsList() { + return dataItemViews_; + } + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + @java.lang.Override + public java.util.List + getDataItemViewsOrBuilderList() { + return dataItemViews_; + } + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + @java.lang.Override + public int getDataItemViewsCount() { + return dataItemViews_.size(); + } + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DataItemView getDataItemViews(int index) { + return dataItemViews_.get(index); + } + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DataItemViewOrBuilder getDataItemViewsOrBuilder(int index) { + return dataItemViews_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dataItemViews_.size(); i++) { + output.writeMessage(1, dataItemViews_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dataItemViews_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataItemViews_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.SearchDataItemsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SearchDataItemsResponse other = + (com.google.cloud.aiplatform.v1.SearchDataItemsResponse) obj; + + if (!getDataItemViewsList().equals(other.getDataItemViewsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDataItemViewsCount() > 0) { + hash = (37 * hash) + DATA_ITEM_VIEWS_FIELD_NUMBER; + hash = (53 * hash) + getDataItemViewsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.SearchDataItemsResponse 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 [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SearchDataItemsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SearchDataItemsResponse) + com.google.cloud.aiplatform.v1.SearchDataItemsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SearchDataItemsResponse.class, + com.google.cloud.aiplatform.v1.SearchDataItemsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.SearchDataItemsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataItemViewsBuilder_ == null) { + dataItemViews_ = java.util.Collections.emptyList(); + } else { + dataItemViews_ = null; + dataItemViewsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SearchDataItemsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsResponse build() { + com.google.cloud.aiplatform.v1.SearchDataItemsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsResponse buildPartial() { + com.google.cloud.aiplatform.v1.SearchDataItemsResponse result = + new com.google.cloud.aiplatform.v1.SearchDataItemsResponse(this); + int from_bitField0_ = bitField0_; + if (dataItemViewsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataItemViews_ = java.util.Collections.unmodifiableList(dataItemViews_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataItemViews_ = dataItemViews_; + } else { + result.dataItemViews_ = dataItemViewsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.SearchDataItemsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.SearchDataItemsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.SearchDataItemsResponse other) { + if (other == com.google.cloud.aiplatform.v1.SearchDataItemsResponse.getDefaultInstance()) + return this; + if (dataItemViewsBuilder_ == null) { + if (!other.dataItemViews_.isEmpty()) { + if (dataItemViews_.isEmpty()) { + dataItemViews_ = other.dataItemViews_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataItemViewsIsMutable(); + dataItemViews_.addAll(other.dataItemViews_); + } + onChanged(); + } + } else { + if (!other.dataItemViews_.isEmpty()) { + if (dataItemViewsBuilder_.isEmpty()) { + dataItemViewsBuilder_.dispose(); + dataItemViewsBuilder_ = null; + dataItemViews_ = other.dataItemViews_; + bitField0_ = (bitField0_ & ~0x00000001); + dataItemViewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataItemViewsFieldBuilder() + : null; + } else { + dataItemViewsBuilder_.addAllMessages(other.dataItemViews_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1.DataItemView m = + input.readMessage( + com.google.cloud.aiplatform.v1.DataItemView.parser(), extensionRegistry); + if (dataItemViewsBuilder_ == null) { + ensureDataItemViewsIsMutable(); + dataItemViews_.add(m); + } else { + dataItemViewsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List dataItemViews_ = + java.util.Collections.emptyList(); + + private void ensureDataItemViewsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataItemViews_ = + new java.util.ArrayList(dataItemViews_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.DataItemView, + com.google.cloud.aiplatform.v1.DataItemView.Builder, + com.google.cloud.aiplatform.v1.DataItemViewOrBuilder> + dataItemViewsBuilder_; + + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public java.util.List getDataItemViewsList() { + if (dataItemViewsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataItemViews_); + } else { + return dataItemViewsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public int getDataItemViewsCount() { + if (dataItemViewsBuilder_ == null) { + return dataItemViews_.size(); + } else { + return dataItemViewsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public com.google.cloud.aiplatform.v1.DataItemView getDataItemViews(int index) { + if (dataItemViewsBuilder_ == null) { + return dataItemViews_.get(index); + } else { + return dataItemViewsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public Builder setDataItemViews(int index, com.google.cloud.aiplatform.v1.DataItemView value) { + if (dataItemViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataItemViewsIsMutable(); + dataItemViews_.set(index, value); + onChanged(); + } else { + dataItemViewsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public Builder setDataItemViews( + int index, com.google.cloud.aiplatform.v1.DataItemView.Builder builderForValue) { + if (dataItemViewsBuilder_ == null) { + ensureDataItemViewsIsMutable(); + dataItemViews_.set(index, builderForValue.build()); + onChanged(); + } else { + dataItemViewsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public Builder addDataItemViews(com.google.cloud.aiplatform.v1.DataItemView value) { + if (dataItemViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataItemViewsIsMutable(); + dataItemViews_.add(value); + onChanged(); + } else { + dataItemViewsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public Builder addDataItemViews(int index, com.google.cloud.aiplatform.v1.DataItemView value) { + if (dataItemViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataItemViewsIsMutable(); + dataItemViews_.add(index, value); + onChanged(); + } else { + dataItemViewsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public Builder addDataItemViews( + com.google.cloud.aiplatform.v1.DataItemView.Builder builderForValue) { + if (dataItemViewsBuilder_ == null) { + ensureDataItemViewsIsMutable(); + dataItemViews_.add(builderForValue.build()); + onChanged(); + } else { + dataItemViewsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public Builder addDataItemViews( + int index, com.google.cloud.aiplatform.v1.DataItemView.Builder builderForValue) { + if (dataItemViewsBuilder_ == null) { + ensureDataItemViewsIsMutable(); + dataItemViews_.add(index, builderForValue.build()); + onChanged(); + } else { + dataItemViewsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public Builder addAllDataItemViews( + java.lang.Iterable values) { + if (dataItemViewsBuilder_ == null) { + ensureDataItemViewsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataItemViews_); + onChanged(); + } else { + dataItemViewsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public Builder clearDataItemViews() { + if (dataItemViewsBuilder_ == null) { + dataItemViews_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataItemViewsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public Builder removeDataItemViews(int index) { + if (dataItemViewsBuilder_ == null) { + ensureDataItemViewsIsMutable(); + dataItemViews_.remove(index); + onChanged(); + } else { + dataItemViewsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public com.google.cloud.aiplatform.v1.DataItemView.Builder getDataItemViewsBuilder(int index) { + return getDataItemViewsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public com.google.cloud.aiplatform.v1.DataItemViewOrBuilder getDataItemViewsOrBuilder( + int index) { + if (dataItemViewsBuilder_ == null) { + return dataItemViews_.get(index); + } else { + return dataItemViewsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public java.util.List + getDataItemViewsOrBuilderList() { + if (dataItemViewsBuilder_ != null) { + return dataItemViewsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataItemViews_); + } + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public com.google.cloud.aiplatform.v1.DataItemView.Builder addDataItemViewsBuilder() { + return getDataItemViewsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.DataItemView.getDefaultInstance()); + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public com.google.cloud.aiplatform.v1.DataItemView.Builder addDataItemViewsBuilder(int index) { + return getDataItemViewsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.DataItemView.getDefaultInstance()); + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + public java.util.List + getDataItemViewsBuilderList() { + return getDataItemViewsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.DataItemView, + com.google.cloud.aiplatform.v1.DataItemView.Builder, + com.google.cloud.aiplatform.v1.DataItemViewOrBuilder> + getDataItemViewsFieldBuilder() { + if (dataItemViewsBuilder_ == null) { + dataItemViewsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.DataItemView, + com.google.cloud.aiplatform.v1.DataItemView.Builder, + com.google.cloud.aiplatform.v1.DataItemViewOrBuilder>( + dataItemViews_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dataItemViews_ = null; + } + return dataItemViewsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.SearchDataItemsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SearchDataItemsResponse) + private static final com.google.cloud.aiplatform.v1.SearchDataItemsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SearchDataItemsResponse(); + } + + public static com.google.cloud.aiplatform.v1.SearchDataItemsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchDataItemsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SearchDataItemsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsResponseOrBuilder.java new file mode 100644 index 000000000000..c8b3b37617db --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface SearchDataItemsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SearchDataItemsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + java.util.List getDataItemViewsList(); + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + com.google.cloud.aiplatform.v1.DataItemView getDataItemViews(int index); + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + int getDataItemViewsCount(); + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + java.util.List + getDataItemViewsOrBuilderList(); + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DataItemView data_item_views = 1; + */ + com.google.cloud.aiplatform.v1.DataItemViewOrBuilder getDataItemViewsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java index d31202e60497..e4f0193a6a19 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java @@ -102,7 +102,7 @@ public interface StatsAnomaliesObjectiveOrBuilder * If set, all attribution scores between * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - * fetched, and page token doesn't take affect in this case. + * fetched, and page token doesn't take effect in this case. * Only used to retrieve attribution score for the top Features which has * the highest attribution score in the latest monitoring run. * @@ -200,7 +200,7 @@ public com.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType get * If set, all attribution scores between * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - * fetched, and page token doesn't take affect in this case. + * fetched, and page token doesn't take effect in this case. * Only used to retrieve attribution score for the top Features which has * the highest attribution score in the latest monitoring run. * @@ -702,7 +702,7 @@ public Builder clearType() { * If set, all attribution scores between * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - * fetched, and page token doesn't take affect in this case. + * fetched, and page token doesn't take effect in this case. * Only used to retrieve attribution score for the top Features which has * the highest attribution score in the latest monitoring run. * @@ -722,7 +722,7 @@ public int getTopFeatureCount() { * If set, all attribution scores between * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - * fetched, and page token doesn't take affect in this case. + * fetched, and page token doesn't take effect in this case. * Only used to retrieve attribution score for the top Features which has * the highest attribution score in the latest monitoring run. * @@ -745,7 +745,7 @@ public Builder setTopFeatureCount(int value) { * If set, all attribution scores between * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - * fetched, and page token doesn't take affect in this case. + * fetched, and page token doesn't take effect in this case. * Only used to retrieve attribution score for the top Features which has * the highest attribution score in the latest monitoring run. * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPool.java index c64c4bd832d7..e445c1d898ec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPool.java @@ -132,7 +132,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The user-defined name of the SpecialistPool.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * This field should be unique on project-level.
    * 
@@ -158,7 +158,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The user-defined name of the SpecialistPool.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * This field should be unique on project-level.
    * 
@@ -1007,7 +1007,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The user-defined name of the SpecialistPool.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * This field should be unique on project-level.
      * 
@@ -1032,7 +1032,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The user-defined name of the SpecialistPool.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * This field should be unique on project-level.
      * 
@@ -1057,7 +1057,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The user-defined name of the SpecialistPool.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * This field should be unique on project-level.
      * 
@@ -1081,7 +1081,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The user-defined name of the SpecialistPool.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * This field should be unique on project-level.
      * 
@@ -1101,7 +1101,7 @@ public Builder clearDisplayName() { * *
      * Required. The user-defined name of the SpecialistPool.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * This field should be unique on project-level.
      * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolOrBuilder.java index c9f5d5373371..7eb583ef704d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpecialistPoolOrBuilder.java @@ -53,7 +53,7 @@ public interface SpecialistPoolOrBuilder * *
    * Required. The user-defined name of the SpecialistPool.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * This field should be unique on project-level.
    * 
@@ -68,7 +68,7 @@ public interface SpecialistPoolOrBuilder * *
    * Required. The user-defined name of the SpecialistPool.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * This field should be unique on project-level.
    * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tensorboard.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tensorboard.java index c203da98eba3..5df03be67023 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tensorboard.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tensorboard.java @@ -23,7 +23,7 @@ * *
  * Tensorboard is a physical database that stores users' training metrics.
- * A default Tensorboard is provided in each region of a GCP project.
+ * A default Tensorboard is provided in each region of a Google Cloud project.
  * If needed users can also create extra Tensorboards in their projects.
  * 
* @@ -905,7 +905,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Tensorboard is a physical database that stores users' training metrics.
-   * A default Tensorboard is provided in each region of a GCP project.
+   * A default Tensorboard is provided in each region of a Google Cloud project.
    * If needed users can also create extra Tensorboards in their projects.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayload.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayload.java new file mode 100644 index 000000000000..c8ba0bc8fbbe --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayload.java @@ -0,0 +1,1024 @@ +/* + * 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/v1/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Contains Feature values to be written for a specific entity.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.WriteFeatureValuesPayload} + */ +public final class WriteFeatureValuesPayload extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.WriteFeatureValuesPayload) + WriteFeatureValuesPayloadOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteFeatureValuesPayload.newBuilder() to construct. + private WriteFeatureValuesPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WriteFeatureValuesPayload() { + entityId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WriteFeatureValuesPayload(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetFeatureValues(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.class, + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder.class); + } + + public static final int ENTITY_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object entityId_; + /** + * + * + *
+   * Required. The ID of the entity.
+   * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityId. + */ + @java.lang.Override + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + 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(); + entityId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ID of the entity.
+   * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEATURE_VALUES_FIELD_NUMBER = 2; + + private static final class FeatureValuesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1.FeatureValue> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_FeatureValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1.FeatureValue.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.FeatureValue> + featureValues_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.FeatureValue> + internalGetFeatureValues() { + if (featureValues_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FeatureValuesDefaultEntryHolder.defaultEntry); + } + return featureValues_; + } + + public int getFeatureValuesCount() { + return internalGetFeatureValues().getMap().size(); + } + /** + * + * + *
+   * Required. Feature values to be written, mapping from Feature ID to value. Up to
+   * 100,000 `feature_values` entries may be written across all payloads.  The
+   * feature generation time, aligned by days, must be no older than five
+   * years (1825 days) and no later than one year (366 days) in the future.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsFeatureValues(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFeatureValues().getMap().containsKey(key); + } + /** Use {@link #getFeatureValuesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getFeatureValues() { + return getFeatureValuesMap(); + } + /** + * + * + *
+   * Required. Feature values to be written, mapping from Feature ID to value. Up to
+   * 100,000 `feature_values` entries may be written across all payloads.  The
+   * feature generation time, aligned by days, must be no older than five
+   * years (1825 days) and no later than one year (366 days) in the future.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map + getFeatureValuesMap() { + return internalGetFeatureValues().getMap(); + } + /** + * + * + *
+   * Required. Feature values to be written, mapping from Feature ID to value. Up to
+   * 100,000 `feature_values` entries may be written across all payloads.  The
+   * feature generation time, aligned by days, must be no older than five
+   * years (1825 days) and no later than one year (366 days) in the future.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureValue getFeatureValuesOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1.FeatureValue defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetFeatureValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Required. Feature values to be written, mapping from Feature ID to value. Up to
+   * 100,000 `feature_values` entries may be written across all payloads.  The
+   * feature generation time, aligned by days, must be no older than five
+   * years (1825 days) and no later than one year (366 days) in the future.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureValue getFeatureValuesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetFeatureValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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(entityId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetFeatureValues(), FeatureValuesDefaultEntryHolder.defaultEntry, 2); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); + } + for (java.util.Map.Entry entry : + internalGetFeatureValues().getMap().entrySet()) { + com.google.protobuf.MapEntry + featureValues__ = + FeatureValuesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, featureValues__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload other = + (com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload) obj; + + if (!getEntityId().equals(other.getEntityId())) return false; + if (!internalGetFeatureValues().equals(other.internalGetFeatureValues())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + if (!internalGetFeatureValues().getMap().isEmpty()) { + hash = (37 * hash) + FEATURE_VALUES_FIELD_NUMBER; + hash = (53 * hash) + internalGetFeatureValues().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload 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; + } + /** + * + * + *
+   * Contains Feature values to be written for a specific entity.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.WriteFeatureValuesPayload} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.WriteFeatureValuesPayload) + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayloadOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetFeatureValues(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 2: + return internalGetMutableFeatureValues(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.class, + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + entityId_ = ""; + + internalGetMutableFeatureValues().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesPayload_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload build() { + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload buildPartial() { + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload result = + new com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload(this); + int from_bitField0_ = bitField0_; + result.entityId_ = entityId_; + result.featureValues_ = internalGetFeatureValues(); + result.featureValues_.makeImmutable(); + 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.v1.WriteFeatureValuesPayload) { + return mergeFrom((com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload other) { + if (other == com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.getDefaultInstance()) + return this; + if (!other.getEntityId().isEmpty()) { + entityId_ = other.entityId_; + onChanged(); + } + internalGetMutableFeatureValues().mergeFrom(other.internalGetFeatureValues()); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + entityId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1.FeatureValue> + featureValues__ = + input.readMessage( + FeatureValuesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFeatureValues() + .getMutableMap() + .put(featureValues__.getKey(), featureValues__.getValue()); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object entityId_ = ""; + /** + * + * + *
+     * Required. The ID of the entity.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityId. + */ + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ID of the entity.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityId. + */ + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ID of the entity.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entityId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the entity.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = getDefaultInstance().getEntityId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ID of the entity.
+     * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entityId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.FeatureValue> + featureValues_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.FeatureValue> + internalGetFeatureValues() { + if (featureValues_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FeatureValuesDefaultEntryHolder.defaultEntry); + } + return featureValues_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1.FeatureValue> + internalGetMutableFeatureValues() { + onChanged(); + ; + if (featureValues_ == null) { + featureValues_ = + com.google.protobuf.MapField.newMapField(FeatureValuesDefaultEntryHolder.defaultEntry); + } + if (!featureValues_.isMutable()) { + featureValues_ = featureValues_.copy(); + } + return featureValues_; + } + + public int getFeatureValuesCount() { + return internalGetFeatureValues().getMap().size(); + } + /** + * + * + *
+     * Required. Feature values to be written, mapping from Feature ID to value. Up to
+     * 100,000 `feature_values` entries may be written across all payloads.  The
+     * feature generation time, aligned by days, must be no older than five
+     * years (1825 days) and no later than one year (366 days) in the future.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsFeatureValues(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFeatureValues().getMap().containsKey(key); + } + /** Use {@link #getFeatureValuesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getFeatureValues() { + return getFeatureValuesMap(); + } + /** + * + * + *
+     * Required. Feature values to be written, mapping from Feature ID to value. Up to
+     * 100,000 `feature_values` entries may be written across all payloads.  The
+     * feature generation time, aligned by days, must be no older than five
+     * years (1825 days) and no later than one year (366 days) in the future.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map + getFeatureValuesMap() { + return internalGetFeatureValues().getMap(); + } + /** + * + * + *
+     * Required. Feature values to be written, mapping from Feature ID to value. Up to
+     * 100,000 `feature_values` entries may be written across all payloads.  The
+     * feature generation time, aligned by days, must be no older than five
+     * years (1825 days) and no later than one year (366 days) in the future.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureValue getFeatureValuesOrDefault( + java.lang.String key, com.google.cloud.aiplatform.v1.FeatureValue defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetFeatureValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Required. Feature values to be written, mapping from Feature ID to value. Up to
+     * 100,000 `feature_values` entries may be written across all payloads.  The
+     * feature generation time, aligned by days, must be no older than five
+     * years (1825 days) and no later than one year (366 days) in the future.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureValue getFeatureValuesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetFeatureValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFeatureValues() { + internalGetMutableFeatureValues().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Required. Feature values to be written, mapping from Feature ID to value. Up to
+     * 100,000 `feature_values` entries may be written across all payloads.  The
+     * feature generation time, aligned by days, must be no older than five
+     * years (1825 days) and no later than one year (366 days) in the future.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeFeatureValues(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFeatureValues().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableFeatureValues() { + return internalGetMutableFeatureValues().getMutableMap(); + } + /** + * + * + *
+     * Required. Feature values to be written, mapping from Feature ID to value. Up to
+     * 100,000 `feature_values` entries may be written across all payloads.  The
+     * feature generation time, aligned by days, must be no older than five
+     * years (1825 days) and no later than one year (366 days) in the future.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putFeatureValues( + java.lang.String key, com.google.cloud.aiplatform.v1.FeatureValue value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + + internalGetMutableFeatureValues().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Required. Feature values to be written, mapping from Feature ID to value. Up to
+     * 100,000 `feature_values` entries may be written across all payloads.  The
+     * feature generation time, aligned by days, must be no older than five
+     * years (1825 days) and no later than one year (366 days) in the future.
+     * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAllFeatureValues( + java.util.Map values) { + internalGetMutableFeatureValues().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.WriteFeatureValuesPayload) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.WriteFeatureValuesPayload) + private static final com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload(); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteFeatureValuesPayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayloadOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayloadOrBuilder.java new file mode 100644 index 000000000000..36d7151926b6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesPayloadOrBuilder.java @@ -0,0 +1,135 @@ +/* + * 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/v1/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface WriteFeatureValuesPayloadOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.WriteFeatureValuesPayload) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ID of the entity.
+   * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The entityId. + */ + java.lang.String getEntityId(); + /** + * + * + *
+   * Required. The ID of the entity.
+   * 
+ * + * string entity_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for entityId. + */ + com.google.protobuf.ByteString getEntityIdBytes(); + + /** + * + * + *
+   * Required. Feature values to be written, mapping from Feature ID to value. Up to
+   * 100,000 `feature_values` entries may be written across all payloads.  The
+   * feature generation time, aligned by days, must be no older than five
+   * years (1825 days) and no later than one year (366 days) in the future.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getFeatureValuesCount(); + /** + * + * + *
+   * Required. Feature values to be written, mapping from Feature ID to value. Up to
+   * 100,000 `feature_values` entries may be written across all payloads.  The
+   * feature generation time, aligned by days, must be no older than five
+   * years (1825 days) and no later than one year (366 days) in the future.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + boolean containsFeatureValues(java.lang.String key); + /** Use {@link #getFeatureValuesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getFeatureValues(); + /** + * + * + *
+   * Required. Feature values to be written, mapping from Feature ID to value. Up to
+   * 100,000 `feature_values` entries may be written across all payloads.  The
+   * feature generation time, aligned by days, must be no older than five
+   * years (1825 days) and no later than one year (366 days) in the future.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.Map + getFeatureValuesMap(); + /** + * + * + *
+   * Required. Feature values to be written, mapping from Feature ID to value. Up to
+   * 100,000 `feature_values` entries may be written across all payloads.  The
+   * feature generation time, aligned by days, must be no older than five
+   * years (1825 days) and no later than one year (366 days) in the future.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + + /* nullable */ + com.google.cloud.aiplatform.v1.FeatureValue getFeatureValuesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1.FeatureValue defaultValue); + /** + * + * + *
+   * Required. Feature values to be written, mapping from Feature ID to value. Up to
+   * 100,000 `feature_values` entries may be written across all payloads.  The
+   * feature generation time, aligned by days, must be no older than five
+   * years (1825 days) and no later than one year (366 days) in the future.
+   * 
+ * + * + * map<string, .google.cloud.aiplatform.v1.FeatureValue> feature_values = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.FeatureValue getFeatureValuesOrThrow(java.lang.String key); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesRequest.java new file mode 100644 index 000000000000..5e580ee1511e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesRequest.java @@ -0,0 +1,1234 @@ +/* + * 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/v1/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.WriteFeatureValuesRequest} + */ +public final class WriteFeatureValuesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.WriteFeatureValuesRequest) + WriteFeatureValuesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteFeatureValuesRequest.newBuilder() to construct. + private WriteFeatureValuesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WriteFeatureValuesRequest() { + entityType_ = ""; + payloads_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WriteFeatureValuesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest.Builder.class); + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object entityType_; + /** + * + * + *
+   * Required. The resource name of the EntityType for the entities being written.
+   * Value format: `projects/{project}/locations/{location}/featurestores/
+   * {featurestore}/entityTypes/{entityType}`. For example,
+   * for a machine learning model predicting user clicks on a website, an
+   * EntityType ID could be `user`.
+   * 
+ * + * + * 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 for the entities being written.
+   * Value format: `projects/{project}/locations/{location}/featurestores/
+   * {featurestore}/entityTypes/{entityType}`. For example,
+   * for a machine learning model predicting user clicks on a website, an
+   * EntityType ID could be `user`.
+   * 
+ * + * + * 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; + } + } + + public static final int PAYLOADS_FIELD_NUMBER = 2; + private java.util.List payloads_; + /** + * + * + *
+   * Required. The entities to be written. Up to 100,000 feature values can be written
+   * across all `payloads`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getPayloadsList() { + return payloads_; + } + /** + * + * + *
+   * Required. The entities to be written. Up to 100,000 feature values can be written
+   * across all `payloads`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getPayloadsOrBuilderList() { + return payloads_; + } + /** + * + * + *
+   * Required. The entities to be written. Up to 100,000 feature values can be written
+   * across all `payloads`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getPayloadsCount() { + return payloads_.size(); + } + /** + * + * + *
+   * Required. The entities to be written. Up to 100,000 feature values can be written
+   * across all `payloads`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload getPayloads(int index) { + return payloads_.get(index); + } + /** + * + * + *
+   * Required. The entities to be written. Up to 100,000 feature values can be written
+   * across all `payloads`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayloadOrBuilder getPayloadsOrBuilder( + int index) { + return payloads_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityType_); + } + for (int i = 0; i < payloads_.size(); i++) { + output.writeMessage(2, payloads_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityType_); + } + for (int i = 0; i < payloads_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, payloads_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest other = + (com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest) obj; + + if (!getEntityType().equals(other.getEntityType())) return false; + if (!getPayloadsList().equals(other.getPayloadsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getEntityType().hashCode(); + if (getPayloadsCount() > 0) { + hash = (37 * hash) + PAYLOADS_FIELD_NUMBER; + hash = (53 * hash) + getPayloadsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest 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 [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.WriteFeatureValuesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.WriteFeatureValuesRequest) + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest.class, + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + entityType_ = ""; + + if (payloadsBuilder_ == null) { + payloads_ = java.util.Collections.emptyList(); + } else { + payloads_ = null; + payloadsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest build() { + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest buildPartial() { + com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest result = + new com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest(this); + int from_bitField0_ = bitField0_; + result.entityType_ = entityType_; + if (payloadsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + payloads_ = java.util.Collections.unmodifiableList(payloads_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.payloads_ = payloads_; + } else { + result.payloads_ = payloadsBuilder_.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.v1.WriteFeatureValuesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest other) { + if (other == com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest.getDefaultInstance()) + return this; + if (!other.getEntityType().isEmpty()) { + entityType_ = other.entityType_; + onChanged(); + } + if (payloadsBuilder_ == null) { + if (!other.payloads_.isEmpty()) { + if (payloads_.isEmpty()) { + payloads_ = other.payloads_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePayloadsIsMutable(); + payloads_.addAll(other.payloads_); + } + onChanged(); + } + } else { + if (!other.payloads_.isEmpty()) { + if (payloadsBuilder_.isEmpty()) { + payloadsBuilder_.dispose(); + payloadsBuilder_ = null; + payloads_ = other.payloads_; + bitField0_ = (bitField0_ & ~0x00000001); + payloadsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPayloadsFieldBuilder() + : null; + } else { + payloadsBuilder_.addAllMessages(other.payloads_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + entityType_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload m = + input.readMessage( + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.parser(), + extensionRegistry); + if (payloadsBuilder_ == null) { + ensurePayloadsIsMutable(); + payloads_.add(m); + } else { + payloadsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object entityType_ = ""; + /** + * + * + *
+     * Required. The resource name of the EntityType for the entities being written.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be `user`.
+     * 
+ * + * + * 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 for the entities being written.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be `user`.
+     * 
+ * + * + * 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 for the entities being written.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be `user`.
+     * 
+ * + * + * 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 for the entities being written.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be `user`.
+     * 
+ * + * + * 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 for the entities being written.
+     * Value format: `projects/{project}/locations/{location}/featurestores/
+     * {featurestore}/entityTypes/{entityType}`. For example,
+     * for a machine learning model predicting user clicks on a website, an
+     * EntityType ID could be `user`.
+     * 
+ * + * + * 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; + } + + private java.util.List payloads_ = + java.util.Collections.emptyList(); + + private void ensurePayloadsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + payloads_ = + new java.util.ArrayList( + payloads_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload, + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder, + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayloadOrBuilder> + payloadsBuilder_; + + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getPayloadsList() { + if (payloadsBuilder_ == null) { + return java.util.Collections.unmodifiableList(payloads_); + } else { + return payloadsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getPayloadsCount() { + if (payloadsBuilder_ == null) { + return payloads_.size(); + } else { + return payloadsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload getPayloads(int index) { + if (payloadsBuilder_ == null) { + return payloads_.get(index); + } else { + return payloadsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPayloads( + int index, com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload value) { + if (payloadsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePayloadsIsMutable(); + payloads_.set(index, value); + onChanged(); + } else { + payloadsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPayloads( + int index, + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder builderForValue) { + if (payloadsBuilder_ == null) { + ensurePayloadsIsMutable(); + payloads_.set(index, builderForValue.build()); + onChanged(); + } else { + payloadsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addPayloads(com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload value) { + if (payloadsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePayloadsIsMutable(); + payloads_.add(value); + onChanged(); + } else { + payloadsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addPayloads( + int index, com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload value) { + if (payloadsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePayloadsIsMutable(); + payloads_.add(index, value); + onChanged(); + } else { + payloadsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addPayloads( + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder builderForValue) { + if (payloadsBuilder_ == null) { + ensurePayloadsIsMutable(); + payloads_.add(builderForValue.build()); + onChanged(); + } else { + payloadsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addPayloads( + int index, + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder builderForValue) { + if (payloadsBuilder_ == null) { + ensurePayloadsIsMutable(); + payloads_.add(index, builderForValue.build()); + onChanged(); + } else { + payloadsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllPayloads( + java.lang.Iterable + values) { + if (payloadsBuilder_ == null) { + ensurePayloadsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, payloads_); + onChanged(); + } else { + payloadsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPayloads() { + if (payloadsBuilder_ == null) { + payloads_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + payloadsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removePayloads(int index) { + if (payloadsBuilder_ == null) { + ensurePayloadsIsMutable(); + payloads_.remove(index); + onChanged(); + } else { + payloadsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder getPayloadsBuilder( + int index) { + return getPayloadsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayloadOrBuilder getPayloadsOrBuilder( + int index) { + if (payloadsBuilder_ == null) { + return payloads_.get(index); + } else { + return payloadsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1.WriteFeatureValuesPayloadOrBuilder> + getPayloadsOrBuilderList() { + if (payloadsBuilder_ != null) { + return payloadsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(payloads_); + } + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder addPayloadsBuilder() { + return getPayloadsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder addPayloadsBuilder( + int index) { + return getPayloadsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The entities to be written. Up to 100,000 feature values can be written
+     * across all `payloads`.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getPayloadsBuilderList() { + return getPayloadsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload, + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder, + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayloadOrBuilder> + getPayloadsFieldBuilder() { + if (payloadsBuilder_ == null) { + payloadsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload, + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload.Builder, + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayloadOrBuilder>( + payloads_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + payloads_ = null; + } + return payloadsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.WriteFeatureValuesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.WriteFeatureValuesRequest) + private static final com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest(); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteFeatureValuesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesRequestOrBuilder.java new file mode 100644 index 000000000000..baa42adb2800 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * 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/v1/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface WriteFeatureValuesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.WriteFeatureValuesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the EntityType for the entities being written.
+   * Value format: `projects/{project}/locations/{location}/featurestores/
+   * {featurestore}/entityTypes/{entityType}`. For example,
+   * for a machine learning model predicting user clicks on a website, an
+   * EntityType ID could be `user`.
+   * 
+ * + * + * 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 for the entities being written.
+   * Value format: `projects/{project}/locations/{location}/featurestores/
+   * {featurestore}/entityTypes/{entityType}`. For example,
+   * for a machine learning model predicting user clicks on a website, an
+   * EntityType ID could be `user`.
+   * 
+ * + * + * string entity_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entityType. + */ + com.google.protobuf.ByteString getEntityTypeBytes(); + + /** + * + * + *
+   * Required. The entities to be written. Up to 100,000 feature values can be written
+   * across all `payloads`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getPayloadsList(); + /** + * + * + *
+   * Required. The entities to be written. Up to 100,000 feature values can be written
+   * across all `payloads`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayload getPayloads(int index); + /** + * + * + *
+   * Required. The entities to be written. Up to 100,000 feature values can be written
+   * across all `payloads`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getPayloadsCount(); + /** + * + * + *
+   * Required. The entities to be written. Up to 100,000 feature values can be written
+   * across all `payloads`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getPayloadsOrBuilderList(); + /** + * + * + *
+   * Required. The entities to be written. Up to 100,000 feature values can be written
+   * across all `payloads`.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.WriteFeatureValuesPayload payloads = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.WriteFeatureValuesPayloadOrBuilder getPayloadsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesResponse.java new file mode 100644 index 000000000000..3c582edca82f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesResponse.java @@ -0,0 +1,437 @@ +/* + * 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/v1/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.WriteFeatureValuesResponse} + */ +public final class WriteFeatureValuesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.WriteFeatureValuesResponse) + WriteFeatureValuesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WriteFeatureValuesResponse.newBuilder() to construct. + private WriteFeatureValuesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WriteFeatureValuesResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WriteFeatureValuesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse.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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse other = + (com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse 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 [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.WriteFeatureValuesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.WriteFeatureValuesResponse) + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse.class, + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @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.v1.FeaturestoreOnlineServiceProto + .internal_static_google_cloud_aiplatform_v1_WriteFeatureValuesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse build() { + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse buildPartial() { + com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse result = + new com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse(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.v1.WriteFeatureValuesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse other) { + if (other == com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.WriteFeatureValuesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.WriteFeatureValuesResponse) + private static final com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse(); + } + + public static com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteFeatureValuesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.WriteFeatureValuesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesResponseOrBuilder.java new file mode 100644 index 000000000000..9efaba9e700c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/WriteFeatureValuesResponseOrBuilder.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/v1/featurestore_online_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface WriteFeatureValuesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.WriteFeatureValuesResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/annotation_spec.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/annotation_spec.proto index 3082e3ee94a5..582eb109b8c3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/annotation_spec.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/annotation_spec.proto @@ -39,7 +39,7 @@ message AnnotationSpec { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The user-defined name of the AnnotationSpec. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto index 40f49fbb9186..4673b09fd5cf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/batch_prediction_job.proto @@ -207,7 +207,7 @@ message BatchPredictionJob { // The service account that the DeployedModel's container runs as. If not // specified, a system generated one will be used, which // has minimal permissions and the custom container, if used, may not have - // enough permission to access other GCP resources. + // enough permission to access other Google Cloud resources. // // Users deploying the Model must have the `iam.serviceAccounts.actAs` // permission on this service account. @@ -257,7 +257,7 @@ message BatchPredictionJob { // Output only. Partial failures encountered. // For example, single files that can't be read. // This field never exceeds 20 entries. - // Status details fields contain standard GCP error details. + // Status details fields contain standard Google Cloud error details. repeated google.rpc.Status partial_failures = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Information about resources that had been consumed by this job. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto index af3de68b773a..31ed742fc37c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/custom_job.proto @@ -49,7 +49,7 @@ message CustomJob { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the CustomJob. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/data_labeling_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/data_labeling_job.proto index f136190ba3e4..45d176e9bd09 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/data_labeling_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/data_labeling_job.proto @@ -45,7 +45,7 @@ message DataLabelingJob { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The user-defined name of the DataLabelingJob. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. // Display name of a DataLabelingJob. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto index c2771f8a997d..ae14e7bf67c6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset.proto @@ -42,12 +42,12 @@ message Dataset { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The user-defined name of the Dataset. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. The description of the Dataset. - string description = 16 [(google.api.field_behavior) = OPTIONAL]; + // The description of the Dataset. + string description = 16; // Required. Points to a YAML file stored on Google Cloud Storage describing additional // information about the Dataset. @@ -88,6 +88,11 @@ message Dataset { // Customer-managed encryption key spec for a Dataset. If set, this Dataset // and all sub-resources of this Dataset will be secured by this key. EncryptionSpec encryption_spec = 11; + + // Output only. The resource name of the Artifact that was created in MetadataStore when + // creating the Dataset. The Artifact resource name pattern is + // `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + string metadata_artifact = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Describes the location from where we import data into a Dataset, together diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto index c26f60e331e2..4a59848d9248 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto @@ -127,6 +127,13 @@ service DatasetService { option (google.api.method_signature) = "parent"; } + // Searches DataItems in a Dataset. + rpc SearchDataItems(SearchDataItemsRequest) returns (SearchDataItemsResponse) { + option (google.api.http) = { + get: "/v1/{dataset=projects/*/locations/*/datasets/*}:searchDataItems" + }; + } + // Lists SavedQueries in a Dataset. rpc ListSavedQueries(ListSavedQueriesRequest) returns (ListSavedQueriesResponse) { option (google.api.http) = { @@ -368,6 +375,135 @@ message ListDataItemsResponse { string next_page_token = 2; } +// Request message for [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems]. +message SearchDataItemsRequest { + // Expression that allows ranking results based on annotation's property. + message OrderByAnnotation { + // Required. Saved query of the Annotation. Only Annotations belong to this saved + // query will be considered for ordering. + string saved_query = 1 [(google.api.field_behavior) = REQUIRED]; + + // A comma-separated list of annotation fields to order by, sorted in + // ascending order. Use "desc" after a field name for descending. Must also + // specify saved_query. + string order_by = 2; + } + + oneof order { + // A comma-separated list of data item fields to order by, sorted in + // ascending order. Use "desc" after a field name for descending. + string order_by_data_item = 12; + + // Expression that allows ranking results based on annotation's property. + OrderByAnnotation order_by_annotation = 13; + } + + // Required. The resource name of the Dataset from which to search DataItems. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string dataset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // The resource name of a SavedQuery(annotation set in UI). + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + // All of the search will be done in the context of this SavedQuery. + string saved_query = 2 [ + deprecated = true, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/SavedQuery" + } + ]; + + // The resource name of a DataLabelingJob. + // Format: + // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + // If this field is set, all of the search will be done in the context of + // this DataLabelingJob. + string data_labeling_job = 3; + + // An expression for filtering the DataItem that will be returned. + // + // * `data_item_id` - for = or !=. + // * `labeled` - for = or !=. + // * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that + // have at least one annotation with annotation_spec_id = + // `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. + // + // For example: + // + // * `data_item=1` + // * `has_annotation(5)` + string data_item_filter = 4; + + // An expression for filtering the Annotations that will be returned per + // DataItem. + // * `annotation_spec_id` - for = or !=. + string annotations_filter = 5 [deprecated = true]; + + // An expression that specifies what Annotations will be returned per + // DataItem. Annotations satisfied either of the conditions will be returned. + // * `annotation_spec_id` - for = or !=. + // Must specify `saved_query_id=` - saved query id that annotations should + // belong to. + repeated string annotation_filters = 11; + + // Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read. + google.protobuf.FieldMask field_mask = 6; + + // If set, only up to this many of Annotations will be returned per + // DataItemView. The maximum value is 1000. If not set, the maximum value will + // be used. + int32 annotations_limit = 7; + + // Requested page size. Server may return fewer results than requested. + // Default and maximum page size is 100. + int32 page_size = 8; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + string order_by = 9 [deprecated = true]; + + // A token identifying a page of results for the server to return + // Typically obtained via + // [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token] of the previous + // [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems] call. + string page_token = 10; +} + +// Response message for [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems]. +message SearchDataItemsResponse { + // The DataItemViews read. + repeated DataItemView data_item_views = 1; + + // A token to retrieve next page of results. + // Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// A container for a single DataItem and Annotations on it. +message DataItemView { + // The DataItem. + DataItem data_item = 1; + + // The Annotations on the DataItem. If too many Annotations should be returned + // for the DataItem, this field will be truncated per annotations_limit in + // request. If it was, then the has_truncated_annotations will be set to true. + repeated Annotation annotations = 2; + + // True if and only if the Annotations field has been truncated. It happens if + // more Annotations for this DataItem met the request's annotation_filter than + // are allowed to be returned by annotations_limit. + // Note that if Annotations field is not being returned due to field mask, + // then this field will not be set to true no matter how many Annotations are + // there. + bool has_truncated_annotations = 3; +} + // Request message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries]. message ListSavedQueriesRequest { // Required. The resource name of the Dataset to list SavedQueries from. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto index 6d48f8f220ce..39a3f50074af 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto @@ -44,7 +44,7 @@ message Endpoint { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the Endpoint. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_online_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_online_service.proto index 915c4c3fb978..bf9fa7190a09 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_online_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_online_service.proto @@ -58,6 +58,55 @@ service FeaturestoreOnlineServingService { }; option (google.api.method_signature) = "entity_type"; } + + // Writes Feature values of one or more entities of an EntityType. + // + // The Feature values are merged into existing entities if any. The Feature + // values to be written must have timestamp within the online storage + // retention. + rpc WriteFeatureValues(WriteFeatureValuesRequest) returns (WriteFeatureValuesResponse) { + option (google.api.http) = { + post: "/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:writeFeatureValues" + body: "*" + }; + option (google.api.method_signature) = "entity_type,payloads"; + } +} + +// Request message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues]. +message WriteFeatureValuesRequest { + // Required. The resource name of the EntityType for the entities being written. + // Value format: `projects/{project}/locations/{location}/featurestores/ + // {featurestore}/entityTypes/{entityType}`. For example, + // for a machine learning model predicting user clicks on a website, an + // EntityType ID could be `user`. + string entity_type = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/EntityType" + } + ]; + + // Required. The entities to be written. Up to 100,000 feature values can be written + // across all `payloads`. + repeated WriteFeatureValuesPayload payloads = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Contains Feature values to be written for a specific entity. +message WriteFeatureValuesPayload { + // Required. The ID of the entity. + string entity_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Feature values to be written, mapping from Feature ID to value. Up to + // 100,000 `feature_values` entries may be written across all payloads. The + // feature generation time, aligned by days, must be no older than five + // years (1825 days) and no later than one year (366 days) in the future. + map feature_values = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues]. +message WriteFeatureValuesResponse { + } // Request message for [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValues]. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_service.proto index 96d8400eaf18..930d45c19c37 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/featurestore_service.proto @@ -1196,6 +1196,9 @@ message ImportFeatureValuesOperationMetadata { // Number of Feature values that have been imported by the operation. int64 imported_feature_value_count = 3; + // The source URI from where Feature values are imported. + repeated string source_uris = 4; + // The number of rows in input source that weren't imported due to either // * Not having any featureValues. // * Having a null entityId. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto index dfe173dcc7ae..77dc1ec534bf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto @@ -46,7 +46,7 @@ message HyperparameterTuningJob { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the HyperparameterTuningJob. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index.proto index 69fde66a7098..28022afce46b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index.proto @@ -57,7 +57,7 @@ message Index { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the Index. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto index 7e987dfde5b1..cf9e9abd21a7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/job_service.proto @@ -816,7 +816,7 @@ message SearchModelDeploymentMonitoringStatsAnomaliesRequest { // If set, all attribution scores between // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - // fetched, and page token doesn't take affect in this case. + // fetched, and page token doesn't take effect in this case. // Only used to retrieve attribution score for the top Features which has // the highest attribution score in the latest monitoring run. int32 top_feature_count = 4; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto index 960a987db21b..7675701874d4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto @@ -134,7 +134,7 @@ message Model { google.protobuf.Timestamp version_update_time = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the Model. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto index 87252239df43..25983312e251 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto @@ -96,7 +96,7 @@ message ModelDeploymentMonitoringJob { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The user-defined name of the ModelDeploymentMonitoringJob. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. // Display name of a ModelDeploymentMonitoringJob. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/operation.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/operation.proto index da7c5dcc23ea..cd27fcc56488 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/operation.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/operation.proto @@ -33,7 +33,7 @@ message GenericOperationMetadata { // Output only. Partial failures encountered. // E.g. single files that couldn't be read. // This field should never exceed 20 entries. - // Status details field will contain standard GCP error details. + // Status details field will contain standard Google Cloud error details. repeated google.rpc.Status partial_failures = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when the operation was created. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto index ca3415bfa431..d424f09edbaf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto @@ -103,7 +103,7 @@ message PipelineJob { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // The display name of the Pipeline. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2; @@ -168,8 +168,8 @@ message PipelineJob { // network name. // // Private services access must already be configured for the network. - // Pipeline job will apply the network configuration to the GCP resources - // being launched, if applied, such as Vertex AI + // Pipeline job will apply the network configuration to the Google Cloud + // resources being launched, if applied, such as Vertex AI // Training or Dataflow job. If left unspecified, the workload is not peered // with any network. string network = 18 [(google.api.resource_reference) = { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/specialist_pool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/specialist_pool.proto index 0e620e6a1db0..4428747165e3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/specialist_pool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/specialist_pool.proto @@ -43,7 +43,7 @@ message SpecialistPool { string name = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The user-defined name of the SpecialistPool. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. // This field should be unique on project-level. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tensorboard.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tensorboard.proto index 84a245d9028f..8a19066ace65 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tensorboard.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tensorboard.proto @@ -30,7 +30,7 @@ option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; option ruby_package = "Google::Cloud::AIPlatform::V1"; // Tensorboard is a physical database that stores users' training metrics. -// A default Tensorboard is provided in each region of a GCP project. +// A default Tensorboard is provided in each region of a Google Cloud project. // If needed users can also create extra Tensorboards in their projects. message Tensorboard { option (google.api.resource) = { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpec.java index 8b818d54727b..a5709b97fd30 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpec.java @@ -125,7 +125,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The user-defined name of the AnnotationSpec.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -150,7 +150,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The user-defined name of the AnnotationSpec.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -874,7 +874,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The user-defined name of the AnnotationSpec.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -898,7 +898,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The user-defined name of the AnnotationSpec.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -922,7 +922,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The user-defined name of the AnnotationSpec.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -945,7 +945,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The user-defined name of the AnnotationSpec.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -964,7 +964,7 @@ public Builder clearDisplayName() { * *
      * Required. The user-defined name of the AnnotationSpec.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecOrBuilder.java index 3370fef74eb2..bc5487031656 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AnnotationSpecOrBuilder.java @@ -53,7 +53,7 @@ public interface AnnotationSpecOrBuilder * *
    * Required. The user-defined name of the AnnotationSpec.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface AnnotationSpecOrBuilder * *
    * Required. The user-defined name of the AnnotationSpec.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java index 4fdac5056bc3..44f1edcc78a5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJob.java @@ -7545,7 +7545,7 @@ public com.google.cloud.aiplatform.v1beta1.BatchDedicatedResources getDedicatedR * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -7573,7 +7573,7 @@ public java.lang.String getServiceAccount() { * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -7904,7 +7904,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -7922,7 +7922,7 @@ public java.util.List getPartialFailuresList() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -7941,7 +7941,7 @@ public java.util.List getPartialFailuresList() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -7959,7 +7959,7 @@ public int getPartialFailuresCount() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -7977,7 +7977,7 @@ public com.google.rpc.Status getPartialFailures(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -11877,7 +11877,7 @@ public Builder clearDedicatedResources() { * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -11904,7 +11904,7 @@ public java.lang.String getServiceAccount() { * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -11931,7 +11931,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -11957,7 +11957,7 @@ public Builder setServiceAccount(java.lang.String value) { * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -11979,7 +11979,7 @@ public Builder clearServiceAccount() { * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -13059,7 +13059,7 @@ private void ensurePartialFailuresIsMutable() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13080,7 +13080,7 @@ public java.util.List getPartialFailuresList() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13101,7 +13101,7 @@ public int getPartialFailuresCount() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13122,7 +13122,7 @@ public com.google.rpc.Status getPartialFailures(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13149,7 +13149,7 @@ public Builder setPartialFailures(int index, com.google.rpc.Status value) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13173,7 +13173,7 @@ public Builder setPartialFailures(int index, com.google.rpc.Status.Builder build * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13200,7 +13200,7 @@ public Builder addPartialFailures(com.google.rpc.Status value) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13227,7 +13227,7 @@ public Builder addPartialFailures(int index, com.google.rpc.Status value) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13251,7 +13251,7 @@ public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue) * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13275,7 +13275,7 @@ public Builder addPartialFailures(int index, com.google.rpc.Status.Builder build * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13300,7 +13300,7 @@ public Builder addAllPartialFailures( * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13324,7 +13324,7 @@ public Builder clearPartialFailures() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13348,7 +13348,7 @@ public Builder removePartialFailures(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13365,7 +13365,7 @@ public com.google.rpc.Status.Builder getPartialFailuresBuilder(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13386,7 +13386,7 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13408,7 +13408,7 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13426,7 +13426,7 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder() { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -13444,7 +13444,7 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder(int index) { * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java index b44967c7b38d..263fcef4f4b2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchPredictionJobOrBuilder.java @@ -438,7 +438,7 @@ public interface BatchPredictionJobOrBuilder * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -455,7 +455,7 @@ public interface BatchPredictionJobOrBuilder * The service account that the DeployedModel's container runs as. If not * specified, a system generated one will be used, which * has minimal permissions and the custom container, if used, may not have - * enough permission to access other GCP resources. + * enough permission to access other Google Cloud resources. * Users deploying the Model must have the `iam.serviceAccounts.actAs` * permission on this service account. * @@ -704,7 +704,7 @@ public interface BatchPredictionJobOrBuilder * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -719,7 +719,7 @@ public interface BatchPredictionJobOrBuilder * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -734,7 +734,7 @@ public interface BatchPredictionJobOrBuilder * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -749,7 +749,7 @@ public interface BatchPredictionJobOrBuilder * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * @@ -764,7 +764,7 @@ public interface BatchPredictionJobOrBuilder * Output only. Partial failures encountered. * For example, single files that can't be read. * This field never exceeds 20 entries. - * Status details fields contain standard GCP error details. + * Status details fields contain standard Google Cloud error details. * * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java index 990279057d74..a0071c54852c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJob.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The display name of the CustomJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -166,7 +166,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The display name of the CustomJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -1657,7 +1657,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The display name of the CustomJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1681,7 +1681,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The display name of the CustomJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1705,7 +1705,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The display name of the CustomJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1728,7 +1728,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The display name of the CustomJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1747,7 +1747,7 @@ public Builder clearDisplayName() { * *
      * Required. The display name of the CustomJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java index 752f1e8eecfe..7d5d1b149207 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomJobOrBuilder.java @@ -53,7 +53,7 @@ public interface CustomJobOrBuilder * *
    * Required. The display name of the CustomJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface CustomJobOrBuilder * *
    * Required. The display name of the CustomJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemView.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemView.java new file mode 100644 index 000000000000..94ca47e12a03 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemView.java @@ -0,0 +1,1355 @@ +/* + * 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/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A container for a single DataItem and Annotations on it.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DataItemView} + */ +public final class DataItemView extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DataItemView) + DataItemViewOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataItemView.newBuilder() to construct. + private DataItemView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataItemView() { + annotations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataItemView(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DataItemView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DataItemView.class, + com.google.cloud.aiplatform.v1beta1.DataItemView.Builder.class); + } + + public static final int DATA_ITEM_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.DataItem dataItem_; + /** + * + * + *
+   * The DataItem.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + * + * @return Whether the dataItem field is set. + */ + @java.lang.Override + public boolean hasDataItem() { + return dataItem_ != null; + } + /** + * + * + *
+   * The DataItem.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + * + * @return The dataItem. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DataItem getDataItem() { + return dataItem_ == null + ? com.google.cloud.aiplatform.v1beta1.DataItem.getDefaultInstance() + : dataItem_; + } + /** + * + * + *
+   * The DataItem.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder getDataItemOrBuilder() { + return getDataItem(); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 2; + private java.util.List annotations_; + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + @java.lang.Override + public java.util.List getAnnotationsList() { + return annotations_; + } + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + @java.lang.Override + public java.util.List + getAnnotationsOrBuilderList() { + return annotations_; + } + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + @java.lang.Override + public int getAnnotationsCount() { + return annotations_.size(); + } + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Annotation getAnnotations(int index) { + return annotations_.get(index); + } + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder getAnnotationsOrBuilder( + int index) { + return annotations_.get(index); + } + + public static final int HAS_TRUNCATED_ANNOTATIONS_FIELD_NUMBER = 3; + private boolean hasTruncatedAnnotations_; + /** + * + * + *
+   * True if and only if the Annotations field has been truncated. It happens if
+   * more Annotations for this DataItem met the request's annotation_filter than
+   * are allowed to be returned by annotations_limit.
+   * Note that if Annotations field is not being returned due to field mask,
+   * then this field will not be set to true no matter how many Annotations are
+   * there.
+   * 
+ * + * bool has_truncated_annotations = 3; + * + * @return The hasTruncatedAnnotations. + */ + @java.lang.Override + public boolean getHasTruncatedAnnotations() { + return hasTruncatedAnnotations_; + } + + 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 (dataItem_ != null) { + output.writeMessage(1, getDataItem()); + } + for (int i = 0; i < annotations_.size(); i++) { + output.writeMessage(2, annotations_.get(i)); + } + if (hasTruncatedAnnotations_ != false) { + output.writeBool(3, hasTruncatedAnnotations_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataItem_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataItem()); + } + for (int i = 0; i < annotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, annotations_.get(i)); + } + if (hasTruncatedAnnotations_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, hasTruncatedAnnotations_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DataItemView)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DataItemView other = + (com.google.cloud.aiplatform.v1beta1.DataItemView) obj; + + if (hasDataItem() != other.hasDataItem()) return false; + if (hasDataItem()) { + if (!getDataItem().equals(other.getDataItem())) return false; + } + if (!getAnnotationsList().equals(other.getAnnotationsList())) return false; + if (getHasTruncatedAnnotations() != other.getHasTruncatedAnnotations()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataItem()) { + hash = (37 * hash) + DATA_ITEM_FIELD_NUMBER; + hash = (53 * hash) + getDataItem().hashCode(); + } + if (getAnnotationsCount() > 0) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationsList().hashCode(); + } + hash = (37 * hash) + HAS_TRUNCATED_ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasTruncatedAnnotations()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DataItemView parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DataItemView 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.DataItemView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DataItemView 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.DataItemView parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DataItemView 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.DataItemView parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DataItemView 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.DataItemView parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DataItemView 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.DataItemView 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.DataItemView 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.DataItemView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A container for a single DataItem and Annotations on it.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DataItemView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DataItemView) + com.google.cloud.aiplatform.v1beta1.DataItemViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DataItemView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DataItemView.class, + com.google.cloud.aiplatform.v1beta1.DataItemView.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DataItemView.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataItemBuilder_ == null) { + dataItem_ = null; + } else { + dataItem_ = null; + dataItemBuilder_ = null; + } + if (annotationsBuilder_ == null) { + annotations_ = java.util.Collections.emptyList(); + } else { + annotations_ = null; + annotationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + hasTruncatedAnnotations_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DataItemView getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DataItemView.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DataItemView build() { + com.google.cloud.aiplatform.v1beta1.DataItemView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DataItemView buildPartial() { + com.google.cloud.aiplatform.v1beta1.DataItemView result = + new com.google.cloud.aiplatform.v1beta1.DataItemView(this); + int from_bitField0_ = bitField0_; + if (dataItemBuilder_ == null) { + result.dataItem_ = dataItem_; + } else { + result.dataItem_ = dataItemBuilder_.build(); + } + if (annotationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + annotations_ = java.util.Collections.unmodifiableList(annotations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + result.hasTruncatedAnnotations_ = hasTruncatedAnnotations_; + 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.DataItemView) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DataItemView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DataItemView other) { + if (other == com.google.cloud.aiplatform.v1beta1.DataItemView.getDefaultInstance()) + return this; + if (other.hasDataItem()) { + mergeDataItem(other.getDataItem()); + } + if (annotationsBuilder_ == null) { + if (!other.annotations_.isEmpty()) { + if (annotations_.isEmpty()) { + annotations_ = other.annotations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAnnotationsIsMutable(); + annotations_.addAll(other.annotations_); + } + onChanged(); + } + } else { + if (!other.annotations_.isEmpty()) { + if (annotationsBuilder_.isEmpty()) { + annotationsBuilder_.dispose(); + annotationsBuilder_ = null; + annotations_ = other.annotations_; + bitField0_ = (bitField0_ & ~0x00000001); + annotationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAnnotationsFieldBuilder() + : null; + } else { + annotationsBuilder_.addAllMessages(other.annotations_); + } + } + } + if (other.getHasTruncatedAnnotations() != false) { + setHasTruncatedAnnotations(other.getHasTruncatedAnnotations()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getDataItemFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.Annotation m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Annotation.parser(), extensionRegistry); + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.add(m); + } else { + annotationsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + hasTruncatedAnnotations_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.DataItem dataItem_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DataItem, + com.google.cloud.aiplatform.v1beta1.DataItem.Builder, + com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder> + dataItemBuilder_; + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + * + * @return Whether the dataItem field is set. + */ + public boolean hasDataItem() { + return dataItemBuilder_ != null || dataItem_ != null; + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + * + * @return The dataItem. + */ + public com.google.cloud.aiplatform.v1beta1.DataItem getDataItem() { + if (dataItemBuilder_ == null) { + return dataItem_ == null + ? com.google.cloud.aiplatform.v1beta1.DataItem.getDefaultInstance() + : dataItem_; + } else { + return dataItemBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + */ + public Builder setDataItem(com.google.cloud.aiplatform.v1beta1.DataItem value) { + if (dataItemBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataItem_ = value; + onChanged(); + } else { + dataItemBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + */ + public Builder setDataItem( + com.google.cloud.aiplatform.v1beta1.DataItem.Builder builderForValue) { + if (dataItemBuilder_ == null) { + dataItem_ = builderForValue.build(); + onChanged(); + } else { + dataItemBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + */ + public Builder mergeDataItem(com.google.cloud.aiplatform.v1beta1.DataItem value) { + if (dataItemBuilder_ == null) { + if (dataItem_ != null) { + dataItem_ = + com.google.cloud.aiplatform.v1beta1.DataItem.newBuilder(dataItem_) + .mergeFrom(value) + .buildPartial(); + } else { + dataItem_ = value; + } + onChanged(); + } else { + dataItemBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + */ + public Builder clearDataItem() { + if (dataItemBuilder_ == null) { + dataItem_ = null; + onChanged(); + } else { + dataItem_ = null; + dataItemBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DataItem.Builder getDataItemBuilder() { + + onChanged(); + return getDataItemFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder getDataItemOrBuilder() { + if (dataItemBuilder_ != null) { + return dataItemBuilder_.getMessageOrBuilder(); + } else { + return dataItem_ == null + ? com.google.cloud.aiplatform.v1beta1.DataItem.getDefaultInstance() + : dataItem_; + } + } + /** + * + * + *
+     * The DataItem.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DataItem, + com.google.cloud.aiplatform.v1beta1.DataItem.Builder, + com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder> + getDataItemFieldBuilder() { + if (dataItemBuilder_ == null) { + dataItemBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DataItem, + com.google.cloud.aiplatform.v1beta1.DataItem.Builder, + com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder>( + getDataItem(), getParentForChildren(), isClean()); + dataItem_ = null; + } + return dataItemBuilder_; + } + + private java.util.List annotations_ = + java.util.Collections.emptyList(); + + private void ensureAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + annotations_ = + new java.util.ArrayList(annotations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Annotation, + com.google.cloud.aiplatform.v1beta1.Annotation.Builder, + com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder> + annotationsBuilder_; + + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public java.util.List getAnnotationsList() { + if (annotationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(annotations_); + } else { + return annotationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public int getAnnotationsCount() { + if (annotationsBuilder_ == null) { + return annotations_.size(); + } else { + return annotationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Annotation getAnnotations(int index) { + if (annotationsBuilder_ == null) { + return annotations_.get(index); + } else { + return annotationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public Builder setAnnotations(int index, com.google.cloud.aiplatform.v1beta1.Annotation value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.set(index, value); + onChanged(); + } else { + annotationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public Builder setAnnotations( + int index, com.google.cloud.aiplatform.v1beta1.Annotation.Builder builderForValue) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.set(index, builderForValue.build()); + onChanged(); + } else { + annotationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public Builder addAnnotations(com.google.cloud.aiplatform.v1beta1.Annotation value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.add(value); + onChanged(); + } else { + annotationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public Builder addAnnotations(int index, com.google.cloud.aiplatform.v1beta1.Annotation value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.add(index, value); + onChanged(); + } else { + annotationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public Builder addAnnotations( + com.google.cloud.aiplatform.v1beta1.Annotation.Builder builderForValue) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.add(builderForValue.build()); + onChanged(); + } else { + annotationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public Builder addAnnotations( + int index, com.google.cloud.aiplatform.v1beta1.Annotation.Builder builderForValue) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.add(index, builderForValue.build()); + onChanged(); + } else { + annotationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public Builder addAllAnnotations( + java.lang.Iterable values) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotations_); + onChanged(); + } else { + annotationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + annotationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public Builder removeAnnotations(int index) { + if (annotationsBuilder_ == null) { + ensureAnnotationsIsMutable(); + annotations_.remove(index); + onChanged(); + } else { + annotationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Annotation.Builder getAnnotationsBuilder(int index) { + return getAnnotationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder getAnnotationsOrBuilder( + int index) { + if (annotationsBuilder_ == null) { + return annotations_.get(index); + } else { + return annotationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public java.util.List + getAnnotationsOrBuilderList() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(annotations_); + } + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Annotation.Builder addAnnotationsBuilder() { + return getAnnotationsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Annotation.getDefaultInstance()); + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Annotation.Builder addAnnotationsBuilder(int index) { + return getAnnotationsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Annotation.getDefaultInstance()); + } + /** + * + * + *
+     * The Annotations on the DataItem. If too many Annotations should be returned
+     * for the DataItem, this field will be truncated per annotations_limit in
+     * request. If it was, then the has_truncated_annotations will be set to true.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + public java.util.List + getAnnotationsBuilderList() { + return getAnnotationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Annotation, + com.google.cloud.aiplatform.v1beta1.Annotation.Builder, + com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder> + getAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Annotation, + com.google.cloud.aiplatform.v1beta1.Annotation.Builder, + com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder>( + annotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + private boolean hasTruncatedAnnotations_; + /** + * + * + *
+     * True if and only if the Annotations field has been truncated. It happens if
+     * more Annotations for this DataItem met the request's annotation_filter than
+     * are allowed to be returned by annotations_limit.
+     * Note that if Annotations field is not being returned due to field mask,
+     * then this field will not be set to true no matter how many Annotations are
+     * there.
+     * 
+ * + * bool has_truncated_annotations = 3; + * + * @return The hasTruncatedAnnotations. + */ + @java.lang.Override + public boolean getHasTruncatedAnnotations() { + return hasTruncatedAnnotations_; + } + /** + * + * + *
+     * True if and only if the Annotations field has been truncated. It happens if
+     * more Annotations for this DataItem met the request's annotation_filter than
+     * are allowed to be returned by annotations_limit.
+     * Note that if Annotations field is not being returned due to field mask,
+     * then this field will not be set to true no matter how many Annotations are
+     * there.
+     * 
+ * + * bool has_truncated_annotations = 3; + * + * @param value The hasTruncatedAnnotations to set. + * @return This builder for chaining. + */ + public Builder setHasTruncatedAnnotations(boolean value) { + + hasTruncatedAnnotations_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * True if and only if the Annotations field has been truncated. It happens if
+     * more Annotations for this DataItem met the request's annotation_filter than
+     * are allowed to be returned by annotations_limit.
+     * Note that if Annotations field is not being returned due to field mask,
+     * then this field will not be set to true no matter how many Annotations are
+     * there.
+     * 
+ * + * bool has_truncated_annotations = 3; + * + * @return This builder for chaining. + */ + public Builder clearHasTruncatedAnnotations() { + + hasTruncatedAnnotations_ = false; + 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.DataItemView) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DataItemView) + private static final com.google.cloud.aiplatform.v1beta1.DataItemView DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DataItemView(); + } + + public static com.google.cloud.aiplatform.v1beta1.DataItemView getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataItemView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DataItemView getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemViewOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemViewOrBuilder.java new file mode 100644 index 000000000000..27ff29d5b3b6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataItemViewOrBuilder.java @@ -0,0 +1,140 @@ +/* + * 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/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DataItemViewOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DataItemView) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DataItem.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + * + * @return Whether the dataItem field is set. + */ + boolean hasDataItem(); + /** + * + * + *
+   * The DataItem.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + * + * @return The dataItem. + */ + com.google.cloud.aiplatform.v1beta1.DataItem getDataItem(); + /** + * + * + *
+   * The DataItem.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.DataItem data_item = 1; + */ + com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder getDataItemOrBuilder(); + + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + java.util.List getAnnotationsList(); + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + com.google.cloud.aiplatform.v1beta1.Annotation getAnnotations(int index); + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + int getAnnotationsCount(); + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + java.util.List + getAnnotationsOrBuilderList(); + /** + * + * + *
+   * The Annotations on the DataItem. If too many Annotations should be returned
+   * for the DataItem, this field will be truncated per annotations_limit in
+   * request. If it was, then the has_truncated_annotations will be set to true.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2; + */ + com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder getAnnotationsOrBuilder(int index); + + /** + * + * + *
+   * True if and only if the Annotations field has been truncated. It happens if
+   * more Annotations for this DataItem met the request's annotation_filter than
+   * are allowed to be returned by annotations_limit.
+   * Note that if Annotations field is not being returned due to field mask,
+   * then this field will not be set to true no matter how many Annotations are
+   * there.
+   * 
+ * + * bool has_truncated_annotations = 3; + * + * @return The hasTruncatedAnnotations. + */ + boolean getHasTruncatedAnnotations(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJob.java index f5f8672e6faa..983e38ac9d62 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJob.java @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The user-defined name of the DataLabelingJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a DataLabelingJob.
    * 
@@ -169,7 +169,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The user-defined name of the DataLabelingJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a DataLabelingJob.
    * 
@@ -2116,7 +2116,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The user-defined name of the DataLabelingJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a DataLabelingJob.
      * 
@@ -2141,7 +2141,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The user-defined name of the DataLabelingJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a DataLabelingJob.
      * 
@@ -2166,7 +2166,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The user-defined name of the DataLabelingJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a DataLabelingJob.
      * 
@@ -2190,7 +2190,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The user-defined name of the DataLabelingJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a DataLabelingJob.
      * 
@@ -2210,7 +2210,7 @@ public Builder clearDisplayName() { * *
      * Required. The user-defined name of the DataLabelingJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a DataLabelingJob.
      * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobOrBuilder.java index bd7ca7f6049d..60d0b62d57b4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DataLabelingJobOrBuilder.java @@ -53,7 +53,7 @@ public interface DataLabelingJobOrBuilder * *
    * Required. The user-defined name of the DataLabelingJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a DataLabelingJob.
    * 
@@ -68,7 +68,7 @@ public interface DataLabelingJobOrBuilder * *
    * Required. The user-defined name of the DataLabelingJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a DataLabelingJob.
    * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java index b43c30469162..2a38c08a4253 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Dataset.java @@ -43,6 +43,7 @@ private Dataset() { description_ = ""; metadataSchemaUri_ = ""; etag_ = ""; + metadataArtifact_ = ""; } @java.lang.Override @@ -138,7 +139,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The user-defined name of the Dataset.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -163,7 +164,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The user-defined name of the Dataset.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -190,10 +191,10 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Optional. The description of the Dataset.
+   * The description of the Dataset.
    * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return The description. */ @@ -213,10 +214,10 @@ public java.lang.String getDescription() { * * *
-   * Optional. The description of the Dataset.
+   * The description of the Dataset.
    * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return The bytes for description. */ @@ -674,6 +675,59 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryption return getEncryptionSpec(); } + public static final int METADATA_ARTIFACT_FIELD_NUMBER = 17; + private volatile java.lang.Object metadataArtifact_; + /** + * + * + *
+   * Output only. The resource name of the Artifact that was created in MetadataStore when
+   * creating the Dataset. The Artifact resource name pattern is
+   * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+   * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metadataArtifact. + */ + @java.lang.Override + public java.lang.String getMetadataArtifact() { + java.lang.Object ref = metadataArtifact_; + 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(); + metadataArtifact_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the Artifact that was created in MetadataStore when
+   * creating the Dataset. The Artifact resource name pattern is
+   * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+   * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metadataArtifact. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadataArtifactBytes() { + java.lang.Object ref = metadataArtifact_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataArtifact_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -717,6 +771,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, description_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataArtifact_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, metadataArtifact_); + } getUnknownFields().writeTo(output); } @@ -763,6 +820,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, description_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataArtifact_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, metadataArtifact_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -801,6 +861,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEncryptionSpec()) { if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; } + if (!getMetadataArtifact().equals(other.getMetadataArtifact())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -842,6 +903,8 @@ public int hashCode() { hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getEncryptionSpec().hashCode(); } + hash = (37 * hash) + METADATA_ARTIFACT_FIELD_NUMBER; + hash = (53 * hash) + getMetadataArtifact().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1035,6 +1098,8 @@ public Builder clear() { encryptionSpec_ = null; encryptionSpecBuilder_ = null; } + metadataArtifact_ = ""; + return this; } @@ -1090,6 +1155,7 @@ public com.google.cloud.aiplatform.v1beta1.Dataset buildPartial() { } else { result.encryptionSpec_ = encryptionSpecBuilder_.build(); } + result.metadataArtifact_ = metadataArtifact_; onBuilt(); return result; } @@ -1172,6 +1238,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Dataset other) { if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } + if (!other.getMetadataArtifact().isEmpty()) { + metadataArtifact_ = other.metadataArtifact_; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1263,6 +1333,12 @@ public Builder mergeFrom( break; } // case 130 + case 138: + { + metadataArtifact_ = input.readStringRequireUtf8(); + + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1394,7 +1470,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The user-defined name of the Dataset.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1418,7 +1494,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The user-defined name of the Dataset.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1442,7 +1518,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The user-defined name of the Dataset.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1465,7 +1541,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The user-defined name of the Dataset.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1484,7 +1560,7 @@ public Builder clearDisplayName() { * *
      * Required. The user-defined name of the Dataset.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1509,10 +1585,10 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The description of the Dataset.
+     * The description of the Dataset.
      * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return The description. */ @@ -1531,10 +1607,10 @@ public java.lang.String getDescription() { * * *
-     * Optional. The description of the Dataset.
+     * The description of the Dataset.
      * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return The bytes for description. */ @@ -1553,10 +1629,10 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-     * Optional. The description of the Dataset.
+     * The description of the Dataset.
      * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @param value The description to set. * @return This builder for chaining. @@ -1574,10 +1650,10 @@ public Builder setDescription(java.lang.String value) { * * *
-     * Optional. The description of the Dataset.
+     * The description of the Dataset.
      * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return This builder for chaining. */ @@ -1591,10 +1667,10 @@ public Builder clearDescription() { * * *
-     * Optional. The description of the Dataset.
+     * The description of the Dataset.
      * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @param value The bytes for description to set. * @return This builder for chaining. @@ -2852,6 +2928,122 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS return encryptionSpecBuilder_; } + private java.lang.Object metadataArtifact_ = ""; + /** + * + * + *
+     * Output only. The resource name of the Artifact that was created in MetadataStore when
+     * creating the Dataset. The Artifact resource name pattern is
+     * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+     * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metadataArtifact. + */ + public java.lang.String getMetadataArtifact() { + java.lang.Object ref = metadataArtifact_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataArtifact_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the Artifact that was created in MetadataStore when
+     * creating the Dataset. The Artifact resource name pattern is
+     * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+     * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metadataArtifact. + */ + public com.google.protobuf.ByteString getMetadataArtifactBytes() { + java.lang.Object ref = metadataArtifact_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataArtifact_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the Artifact that was created in MetadataStore when
+     * creating the Dataset. The Artifact resource name pattern is
+     * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+     * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The metadataArtifact to set. + * @return This builder for chaining. + */ + public Builder setMetadataArtifact(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metadataArtifact_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the Artifact that was created in MetadataStore when
+     * creating the Dataset. The Artifact resource name pattern is
+     * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+     * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMetadataArtifact() { + + metadataArtifact_ = getDefaultInstance().getMetadataArtifact(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the Artifact that was created in MetadataStore when
+     * creating the Dataset. The Artifact resource name pattern is
+     * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+     * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for metadataArtifact to set. + * @return This builder for chaining. + */ + public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metadataArtifact_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java index 23528e09b194..b297c348ddbf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetOrBuilder.java @@ -53,7 +53,7 @@ public interface DatasetOrBuilder * *
    * Required. The user-defined name of the Dataset.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface DatasetOrBuilder * *
    * Required. The user-defined name of the Dataset.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -81,10 +81,10 @@ public interface DatasetOrBuilder * * *
-   * Optional. The description of the Dataset.
+   * The description of the Dataset.
    * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return The description. */ @@ -93,10 +93,10 @@ public interface DatasetOrBuilder * * *
-   * Optional. The description of the Dataset.
+   * The description of the Dataset.
    * 
* - * string description = 16 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 16; * * @return The bytes for description. */ @@ -419,4 +419,33 @@ java.lang.String getLabelsOrDefault( * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 11; */ com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); + + /** + * + * + *
+   * Output only. The resource name of the Artifact that was created in MetadataStore when
+   * creating the Dataset. The Artifact resource name pattern is
+   * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+   * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The metadataArtifact. + */ + java.lang.String getMetadataArtifact(); + /** + * + * + *
+   * Output only. The resource name of the Artifact that was created in MetadataStore when
+   * creating the Dataset. The Artifact resource name pattern is
+   * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
+   * 
+ * + * string metadata_artifact = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for metadataArtifact. + */ + com.google.protobuf.ByteString getMetadataArtifactBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java index 02eef4700c1f..563084118817 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetProto.java @@ -67,42 +67,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tform/v1beta1/encryption_spec.proto\032(goo" + "gle/cloud/aiplatform/v1beta1/io.proto\032\034g" + "oogle/protobuf/struct.proto\032\037google/prot" - + "obuf/timestamp.proto\"\277\004\n\007Dataset\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\030" - + "\n\013description\030\020 \001(\tB\003\340A\001\022 \n\023metadata_sch" - + "ema_uri\030\003 \001(\tB\003\340A\002\022-\n\010metadata\030\010 \001(\0132\026.g" - + "oogle.protobuf.ValueB\003\340A\002\0224\n\013create_time" - + "\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "4\n\013update_time\030\005 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022\014\n\004etag\030\006 \001(\t\022D\n\006labels\030\007 " - + "\003(\01324.google.cloud.aiplatform.v1beta1.Da" - + "taset.LabelsEntry\022H\n\017encryption_spec\030\013 \001" - + "(\0132/.google.cloud.aiplatform.v1beta1.Enc" - + "ryptionSpec\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001:b\352A_\n!aiplatform.goog" - + "leapis.com/Dataset\022:projects/{project}/l" - + "ocations/{location}/datasets/{dataset}\"\263" - + "\003\n\020ImportDataConfig\022@\n\ngcs_source\030\001 \001(\0132" - + "*.google.cloud.aiplatform.v1beta1.GcsSou" - + "rceH\000\022_\n\020data_item_labels\030\002 \003(\0132E.google" - + ".cloud.aiplatform.v1beta1.ImportDataConf" - + "ig.DataItemLabelsEntry\022b\n\021annotation_lab" - + "els\030\003 \003(\0132G.google.cloud.aiplatform.v1be" - + "ta1.ImportDataConfig.AnnotationLabelsEnt" - + "ry\022\036\n\021import_schema_uri\030\004 \001(\tB\003\340A\002\0325\n\023Da" - + "taItemLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\0327\n\025AnnotationLabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006source\"\211\001\n" - + "\020ExportDataConfig\022J\n\017gcs_destination\030\001 \001" - + "(\0132/.google.cloud.aiplatform.v1beta1.Gcs" - + "DestinationH\000\022\032\n\022annotations_filter\030\002 \001(" - + "\tB\r\n\013destinationB\351\001\n#com.google.cloud.ai" - + "platform.v1beta1B\014DatasetProtoP\001ZIgoogle" - + ".golang.org/genproto/googleapis/cloud/ai" - + "platform/v1beta1;aiplatform\252\002\037Google.Clo" - + "ud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIP" - + "latform\\V1beta1\352\002\"Google::Cloud::AIPlatf" - + "orm::V1beta1b\006proto3" + + "obuf/timestamp.proto\"\332\004\n\007Dataset\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023" + + "\n\013description\030\020 \001(\t\022 \n\023metadata_schema_u" + + "ri\030\003 \001(\tB\003\340A\002\022-\n\010metadata\030\010 \001(\0132\026.google" + + ".protobuf.ValueB\003\340A\002\0224\n\013create_time\030\004 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\005 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022\014\n\004etag\030\006 \001(\t\022D\n\006labels\030\007 \003(\01324" + + ".google.cloud.aiplatform.v1beta1.Dataset" + + ".LabelsEntry\022H\n\017encryption_spec\030\013 \001(\0132/." + + "google.cloud.aiplatform.v1beta1.Encrypti" + + "onSpec\022\036\n\021metadata_artifact\030\021 \001(\tB\003\340A\003\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001:b\352A_\n!aiplatform.googleapis.com/Da" + + "taset\022:projects/{project}/locations/{loc" + + "ation}/datasets/{dataset}\"\263\003\n\020ImportData" + + "Config\022@\n\ngcs_source\030\001 \001(\0132*.google.clou" + + "d.aiplatform.v1beta1.GcsSourceH\000\022_\n\020data" + + "_item_labels\030\002 \003(\0132E.google.cloud.aiplat" + + "form.v1beta1.ImportDataConfig.DataItemLa" + + "belsEntry\022b\n\021annotation_labels\030\003 \003(\0132G.g" + + "oogle.cloud.aiplatform.v1beta1.ImportDat" + + "aConfig.AnnotationLabelsEntry\022\036\n\021import_" + + "schema_uri\030\004 \001(\tB\003\340A\002\0325\n\023DataItemLabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0327\n\025" + + "AnnotationLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001B\010\n\006source\"\211\001\n\020ExportDataCo" + + "nfig\022J\n\017gcs_destination\030\001 \001(\0132/.google.c" + + "loud.aiplatform.v1beta1.GcsDestinationH\000" + + "\022\032\n\022annotations_filter\030\002 \001(\tB\r\n\013destinat" + + "ionB\351\001\n#com.google.cloud.aiplatform.v1be" + + "ta1B\014DatasetProtoP\001ZIgoogle.golang.org/g" + + "enproto/googleapis/cloud/aiplatform/v1be" + + "ta1;aiplatform\252\002\037Google.Cloud.AIPlatform" + + ".V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1bet" + + "a1\352\002\"Google::Cloud::AIPlatform::V1beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -131,6 +132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Etag", "Labels", "EncryptionSpec", + "MetadataArtifact", }); internal_static_google_cloud_aiplatform_v1beta1_Dataset_LabelsEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_Dataset_descriptor.getNestedTypes().get(0); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java index 307cff845ca6..ef9e2e28f3c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java @@ -87,6 +87,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_OrderByAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_OrderByAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DataItemView_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -177,96 +193,124 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rotobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"o\n\025L" + "istDataItemsResponse\022=\n\ndata_items\030\001 \003(\013" + "2).google.cloud.aiplatform.v1beta1.DataI" - + "tem\022\027\n\017next_page_token\030\002 \001(\t\"\314\001\n\027ListSav" - + "edQueriesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" - + "\n!aiplatform.googleapis.com/Dataset\022\016\n\006f" - + "ilter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_t" - + "oken\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.p" - + "rotobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"w\n\030L" - + "istSavedQueriesResponse\022B\n\rsaved_queries" - + "\030\001 \003(\0132+.google.cloud.aiplatform.v1beta1" - + ".SavedQuery\022\027\n\017next_page_token\030\002 \001(\t\"\211\001\n" - + "\030GetAnnotationSpecRequest\022>\n\004name\030\001 \001(\tB" - + "0\340A\002\372A*\n(aiplatform.googleapis.com/Annot" - + "ationSpec\022-\n\tread_mask\030\002 \001(\0132\032.google.pr" - + "otobuf.FieldMask\"\314\001\n\026ListAnnotationsRequ" - + "est\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform." - + "googleapis.com/DataItem\022\016\n\006filter\030\002 \001(\t\022" - + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-" - + "\n\tread_mask\030\005 \001(\0132\032.google.protobuf.Fiel" - + "dMask\022\020\n\010order_by\030\006 \001(\t\"t\n\027ListAnnotatio" - + "nsResponse\022@\n\013annotations\030\001 \003(\0132+.google" - + ".cloud.aiplatform.v1beta1.Annotation\022\027\n\017" - + "next_page_token\030\002 \001(\t2\267\023\n\016DatasetService" - + "\022\346\001\n\rCreateDataset\0225.google.cloud.aiplat" - + "form.v1beta1.CreateDatasetRequest\032\035.goog" - + "le.longrunning.Operation\"\177\202\323\344\223\002<\"1/v1bet" - + "a1/{parent=projects/*/locations/*}/datas" - + "ets:\007dataset\332A\016parent,dataset\312A)\n\007Datase" - + "t\022\036CreateDatasetOperationMetadata\022\254\001\n\nGe" - + "tDataset\0222.google.cloud.aiplatform.v1bet" - + "a1.GetDatasetRequest\032(.google.cloud.aipl" - + "atform.v1beta1.Dataset\"@\202\323\344\223\0023\0221/v1beta1" - + "/{name=projects/*/locations/*/datasets/*" - + "}\332A\004name\022\322\001\n\rUpdateDataset\0225.google.clou" - + "d.aiplatform.v1beta1.UpdateDatasetReques" - + "t\032(.google.cloud.aiplatform.v1beta1.Data" - + "set\"`\202\323\344\223\002D29/v1beta1/{dataset.name=proj" - + "ects/*/locations/*/datasets/*}:\007dataset\332" - + "A\023dataset,update_mask\022\277\001\n\014ListDatasets\0224" - + ".google.cloud.aiplatform.v1beta1.ListDat" - + "asetsRequest\0325.google.cloud.aiplatform.v" - + "1beta1.ListDatasetsResponse\"B\202\323\344\223\0023\0221/v1" - + "beta1/{parent=projects/*/locations/*}/da" - + "tasets\332A\006parent\022\332\001\n\rDeleteDataset\0225.goog" - + "le.cloud.aiplatform.v1beta1.DeleteDatase" - + "tRequest\032\035.google.longrunning.Operation\"" - + "s\202\323\344\223\0023*1/v1beta1/{name=projects/*/locat" - + "ions/*/datasets/*}\332A\004name\312A0\n\025google.pro" - + "tobuf.Empty\022\027DeleteOperationMetadata\022\357\001\n" - + "\nImportData\0222.google.cloud.aiplatform.v1" - + "beta1.ImportDataRequest\032\035.google.longrun" - + "ning.Operation\"\215\001\202\323\344\223\002=\"8/v1beta1/{name=" - + "projects/*/locations/*/datasets/*}:impor" - + "t:\001*\332A\023name,import_configs\312A1\n\022ImportDat" - + "aResponse\022\033ImportDataOperationMetadata\022\356" - + "\001\n\nExportData\0222.google.cloud.aiplatform." - + "v1beta1.ExportDataRequest\032\035.google.longr" - + "unning.Operation\"\214\001\202\323\344\223\002=\"8/v1beta1/{nam" - + "e=projects/*/locations/*/datasets/*}:exp" - + "ort:\001*\332A\022name,export_config\312A1\n\022ExportDa" - + "taResponse\022\033ExportDataOperationMetadata\022" - + "\316\001\n\rListDataItems\0225.google.cloud.aiplatf" - + "orm.v1beta1.ListDataItemsRequest\0326.googl" - + "e.cloud.aiplatform.v1beta1.ListDataItems" - + "Response\"N\202\323\344\223\002?\022=/v1beta1/{parent=proje" - + "cts/*/locations/*/datasets/*}/dataItems\332" - + "A\006parent\022\332\001\n\020ListSavedQueries\0228.google.c" - + "loud.aiplatform.v1beta1.ListSavedQueries" - + "Request\0329.google.cloud.aiplatform.v1beta" - + "1.ListSavedQueriesResponse\"Q\202\323\344\223\002B\022@/v1b" - + "eta1/{parent=projects/*/locations/*/data" - + "sets/*}/savedQueries\332A\006parent\022\323\001\n\021GetAnn" - + "otationSpec\0229.google.cloud.aiplatform.v1" - + "beta1.GetAnnotationSpecRequest\032/.google." - + "cloud.aiplatform.v1beta1.AnnotationSpec\"" - + "R\202\323\344\223\002E\022C/v1beta1/{name=projects/*/locat" - + "ions/*/datasets/*/annotationSpecs/*}\332A\004n" - + "ame\022\342\001\n\017ListAnnotations\0227.google.cloud.a" - + "iplatform.v1beta1.ListAnnotationsRequest" - + "\0328.google.cloud.aiplatform.v1beta1.ListA" - + "nnotationsResponse\"\\\202\323\344\223\002M\022K/v1beta1/{pa" - + "rent=projects/*/locations/*/datasets/*/d" - + "ataItems/*}/annotations\332A\006parent\032M\312A\031aip" - + "latform.googleapis.com\322A.https://www.goo" - + "gleapis.com/auth/cloud-platformB\360\001\n#com." - + "google.cloud.aiplatform.v1beta1B\023Dataset" - + "ServiceProtoP\001ZIgoogle.golang.org/genpro" - + "to/googleapis/cloud/aiplatform/v1beta1;a" - + "iplatform\252\002\037Google.Cloud.AIPlatform.V1Be" - + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" - + "Google::Cloud::AIPlatform::V1beta1b\006prot" - + "o3" + + "tem\022\027\n\017next_page_token\030\002 \001(\t\"\341\004\n\026SearchD" + + "ataItemsRequest\022\034\n\022order_by_data_item\030\014 " + + "\001(\tH\000\022h\n\023order_by_annotation\030\r \001(\0132I.goo" + + "gle.cloud.aiplatform.v1beta1.SearchDataI" + + "temsRequest.OrderByAnnotationH\000\022:\n\007datas" + + "et\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis." + + "com/Dataset\022@\n\013saved_query\030\002 \001(\tB+\030\001\372A&\n" + + "$aiplatform.googleapis.com/SavedQuery\022\031\n" + + "\021data_labeling_job\030\003 \001(\t\022\030\n\020data_item_fi" + + "lter\030\004 \001(\t\022\036\n\022annotations_filter\030\005 \001(\tB\002" + + "\030\001\022\032\n\022annotation_filters\030\013 \003(\t\022.\n\nfield_" + + "mask\030\006 \001(\0132\032.google.protobuf.FieldMask\022\031" + + "\n\021annotations_limit\030\007 \001(\005\022\021\n\tpage_size\030\010" + + " \001(\005\022\024\n\010order_by\030\t \001(\tB\002\030\001\022\022\n\npage_token" + + "\030\n \001(\t\032?\n\021OrderByAnnotation\022\030\n\013saved_que" + + "ry\030\001 \001(\tB\003\340A\002\022\020\n\010order_by\030\002 \001(\tB\007\n\005order" + + "\"z\n\027SearchDataItemsResponse\022F\n\017data_item" + + "_views\030\001 \003(\0132-.google.cloud.aiplatform.v" + + "1beta1.DataItemView\022\027\n\017next_page_token\030\002" + + " \001(\t\"\261\001\n\014DataItemView\022<\n\tdata_item\030\001 \001(\013" + + "2).google.cloud.aiplatform.v1beta1.DataI" + + "tem\022@\n\013annotations\030\002 \003(\0132+.google.cloud." + + "aiplatform.v1beta1.Annotation\022!\n\031has_tru" + + "ncated_annotations\030\003 \001(\010\"\314\001\n\027ListSavedQu" + + "eriesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!ai" + + "platform.googleapis.com/Dataset\022\016\n\006filte" + + "r\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token" + + "\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.proto" + + "buf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"w\n\030ListS" + + "avedQueriesResponse\022B\n\rsaved_queries\030\001 \003" + + "(\0132+.google.cloud.aiplatform.v1beta1.Sav" + + "edQuery\022\027\n\017next_page_token\030\002 \001(\t\"\211\001\n\030Get" + + "AnnotationSpecRequest\022>\n\004name\030\001 \001(\tB0\340A\002" + + "\372A*\n(aiplatform.googleapis.com/Annotatio" + + "nSpec\022-\n\tread_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMask\"\314\001\n\026ListAnnotationsRequest\022" + + ":\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.goog" + + "leapis.com/DataItem\022\016\n\006filter\030\002 \001(\t\022\021\n\tp" + + "age_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tre" + + "ad_mask\030\005 \001(\0132\032.google.protobuf.FieldMas" + + "k\022\020\n\010order_by\030\006 \001(\t\"t\n\027ListAnnotationsRe" + + "sponse\022@\n\013annotations\030\001 \003(\0132+.google.clo" + + "ud.aiplatform.v1beta1.Annotation\022\027\n\017next" + + "_page_token\030\002 \001(\t2\214\025\n\016DatasetService\022\346\001\n" + + "\rCreateDataset\0225.google.cloud.aiplatform" + + ".v1beta1.CreateDatasetRequest\032\035.google.l" + + "ongrunning.Operation\"\177\202\323\344\223\002<\"1/v1beta1/{" + + "parent=projects/*/locations/*}/datasets:" + + "\007dataset\332A\016parent,dataset\312A)\n\007Dataset\022\036C" + + "reateDatasetOperationMetadata\022\254\001\n\nGetDat" + + "aset\0222.google.cloud.aiplatform.v1beta1.G" + + "etDatasetRequest\032(.google.cloud.aiplatfo" + + "rm.v1beta1.Dataset\"@\202\323\344\223\0023\0221/v1beta1/{na" + + "me=projects/*/locations/*/datasets/*}\332A\004" + + "name\022\322\001\n\rUpdateDataset\0225.google.cloud.ai" + + "platform.v1beta1.UpdateDatasetRequest\032(." + + "google.cloud.aiplatform.v1beta1.Dataset\"" + + "`\202\323\344\223\002D29/v1beta1/{dataset.name=projects" + + "/*/locations/*/datasets/*}:\007dataset\332A\023da" + + "taset,update_mask\022\277\001\n\014ListDatasets\0224.goo" + + "gle.cloud.aiplatform.v1beta1.ListDataset" + + "sRequest\0325.google.cloud.aiplatform.v1bet" + + "a1.ListDatasetsResponse\"B\202\323\344\223\0023\0221/v1beta" + + "1/{parent=projects/*/locations/*}/datase" + + "ts\332A\006parent\022\332\001\n\rDeleteDataset\0225.google.c" + + "loud.aiplatform.v1beta1.DeleteDatasetReq" + + "uest\032\035.google.longrunning.Operation\"s\202\323\344" + + "\223\0023*1/v1beta1/{name=projects/*/locations" + + "/*/datasets/*}\332A\004name\312A0\n\025google.protobu" + + "f.Empty\022\027DeleteOperationMetadata\022\357\001\n\nImp" + + "ortData\0222.google.cloud.aiplatform.v1beta" + + "1.ImportDataRequest\032\035.google.longrunning" + + ".Operation\"\215\001\202\323\344\223\002=\"8/v1beta1/{name=proj" + + "ects/*/locations/*/datasets/*}:import:\001*" + + "\332A\023name,import_configs\312A1\n\022ImportDataRes" + + "ponse\022\033ImportDataOperationMetadata\022\356\001\n\nE" + + "xportData\0222.google.cloud.aiplatform.v1be" + + "ta1.ExportDataRequest\032\035.google.longrunni" + + "ng.Operation\"\214\001\202\323\344\223\002=\"8/v1beta1/{name=pr" + + "ojects/*/locations/*/datasets/*}:export:" + + "\001*\332A\022name,export_config\312A1\n\022ExportDataRe" + + "sponse\022\033ExportDataOperationMetadata\022\316\001\n\r" + + "ListDataItems\0225.google.cloud.aiplatform." + + "v1beta1.ListDataItemsRequest\0326.google.cl" + + "oud.aiplatform.v1beta1.ListDataItemsResp" + + "onse\"N\202\323\344\223\002?\022=/v1beta1/{parent=projects/" + + "*/locations/*/datasets/*}/dataItems\332A\006pa" + + "rent\022\322\001\n\017SearchDataItems\0227.google.cloud." + + "aiplatform.v1beta1.SearchDataItemsReques" + + "t\0328.google.cloud.aiplatform.v1beta1.Sear" + + "chDataItemsResponse\"L\202\323\344\223\002F\022D/v1beta1/{d" + + "ataset=projects/*/locations/*/datasets/*" + + "}:searchDataItems\022\332\001\n\020ListSavedQueries\0228" + + ".google.cloud.aiplatform.v1beta1.ListSav" + + "edQueriesRequest\0329.google.cloud.aiplatfo" + + "rm.v1beta1.ListSavedQueriesResponse\"Q\202\323\344" + + "\223\002B\022@/v1beta1/{parent=projects/*/locatio" + + "ns/*/datasets/*}/savedQueries\332A\006parent\022\323" + + "\001\n\021GetAnnotationSpec\0229.google.cloud.aipl" + + "atform.v1beta1.GetAnnotationSpecRequest\032" + + "/.google.cloud.aiplatform.v1beta1.Annota" + + "tionSpec\"R\202\323\344\223\002E\022C/v1beta1/{name=project" + + "s/*/locations/*/datasets/*/annotationSpe" + + "cs/*}\332A\004name\022\342\001\n\017ListAnnotations\0227.googl" + + "e.cloud.aiplatform.v1beta1.ListAnnotatio" + + "nsRequest\0328.google.cloud.aiplatform.v1be" + + "ta1.ListAnnotationsResponse\"\\\202\323\344\223\002M\022K/v1" + + "beta1/{parent=projects/*/locations/*/dat" + + "asets/*/dataItems/*}/annotations\332A\006paren" + + "t\032M\312A\031aiplatform.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\360\001\n#com.google.cloud.aiplatform.v1beta1" + + "B\023DatasetServiceProtoP\001ZIgoogle.golang.o" + + "rg/genproto/googleapis/cloud/aiplatform/" + + "v1beta1;aiplatform\252\002\037Google.Cloud.AIPlat" + + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" + + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be" + + "ta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -403,8 +447,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DataItems", "NextPageToken", }); - internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_descriptor, + new java.lang.String[] { + "OrderByDataItem", + "OrderByAnnotation", + "Dataset", + "SavedQuery", + "DataLabelingJob", + "DataItemFilter", + "AnnotationsFilter", + "AnnotationFilters", + "FieldMask", + "AnnotationsLimit", + "PageSize", + "OrderBy", + "PageToken", + "Order", + }); + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_OrderByAnnotation_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_OrderByAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_OrderByAnnotation_descriptor, + new java.lang.String[] { + "SavedQuery", "OrderBy", + }); + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_descriptor, + new java.lang.String[] { + "DataItemViews", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_aiplatform_v1beta1_DataItemView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor, + new java.lang.String[] { + "DataItem", "Annotations", "HasTruncatedAnnotations", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_descriptor = + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_descriptor, @@ -412,7 +503,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_descriptor, @@ -420,7 +511,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SavedQueries", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_descriptor, @@ -428,7 +519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ReadMask", }); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsRequest_descriptor, @@ -436,7 +527,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsResponse_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java index cb34ba5cc834..bb1b3979db18 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Endpoint.java @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The display name of the Endpoint.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -168,7 +168,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The display name of the Endpoint.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -1856,7 +1856,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The display name of the Endpoint.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1880,7 +1880,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The display name of the Endpoint.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1904,7 +1904,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The display name of the Endpoint.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1927,7 +1927,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The display name of the Endpoint.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1946,7 +1946,7 @@ public Builder clearDisplayName() { * *
      * Required. The display name of the Endpoint.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java index 4077e9c00829..3504092c3410 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointOrBuilder.java @@ -53,7 +53,7 @@ public interface EndpointOrBuilder * *
    * Required. The display name of the Endpoint.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface EndpointOrBuilder * *
    * Required. The display name of the Endpoint.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityType.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityType.java index a9406be413e5..8b5dd5952147 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityType.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityType.java @@ -544,6 +544,28 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig getMonit return getMonitoringConfig(); } + public static final int OFFLINE_STORAGE_TTL_DAYS_FIELD_NUMBER = 10; + private int offlineStorageTtlDays_; + /** + * + * + *
+   * Optional. Config for data retention policy in offline storage.
+   * TTL in days for feature values that will be stored in offline storage.
+   * The Feature Store offline storage periodically removes obsolete feature
+   * values older than `offline_storage_ttl_days` since the feature generation
+   * time. If unset (or explicitly set to 0), default to 4000 days TTL.
+   * 
+ * + * int32 offline_storage_ttl_days = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offlineStorageTtlDays. + */ + @java.lang.Override + public int getOfflineStorageTtlDays() { + return offlineStorageTtlDays_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -578,6 +600,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (monitoringConfig_ != null) { output.writeMessage(8, getMonitoringConfig()); } + if (offlineStorageTtlDays_ != 0) { + output.writeInt32(10, offlineStorageTtlDays_); + } getUnknownFields().writeTo(output); } @@ -615,6 +640,9 @@ public int getSerializedSize() { if (monitoringConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getMonitoringConfig()); } + if (offlineStorageTtlDays_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, offlineStorageTtlDays_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -647,6 +675,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMonitoringConfig()) { if (!getMonitoringConfig().equals(other.getMonitoringConfig())) return false; } + if (getOfflineStorageTtlDays() != other.getOfflineStorageTtlDays()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -680,6 +709,8 @@ public int hashCode() { hash = (37 * hash) + MONITORING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getMonitoringConfig().hashCode(); } + hash = (37 * hash) + OFFLINE_STORAGE_TTL_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getOfflineStorageTtlDays(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -865,6 +896,8 @@ public Builder clear() { monitoringConfig_ = null; monitoringConfigBuilder_ = null; } + offlineStorageTtlDays_ = 0; + return this; } @@ -913,6 +946,7 @@ public com.google.cloud.aiplatform.v1beta1.EntityType buildPartial() { } else { result.monitoringConfig_ = monitoringConfigBuilder_.build(); } + result.offlineStorageTtlDays_ = offlineStorageTtlDays_; onBuilt(); return result; } @@ -984,6 +1018,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EntityType other) { if (other.hasMonitoringConfig()) { mergeMonitoringConfig(other.getMonitoringConfig()); } + if (other.getOfflineStorageTtlDays() != 0) { + setOfflineStorageTtlDays(other.getOfflineStorageTtlDays()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1058,6 +1095,12 @@ public Builder mergeFrom( break; } // case 66 + case 80: + { + offlineStorageTtlDays_ = input.readInt32(); + + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2309,6 +2352,70 @@ public Builder clearMonitoringConfig() { return monitoringConfigBuilder_; } + private int offlineStorageTtlDays_; + /** + * + * + *
+     * Optional. Config for data retention policy in offline storage.
+     * TTL in days for feature values that will be stored in offline storage.
+     * The Feature Store offline storage periodically removes obsolete feature
+     * values older than `offline_storage_ttl_days` since the feature generation
+     * time. If unset (or explicitly set to 0), default to 4000 days TTL.
+     * 
+ * + * int32 offline_storage_ttl_days = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offlineStorageTtlDays. + */ + @java.lang.Override + public int getOfflineStorageTtlDays() { + return offlineStorageTtlDays_; + } + /** + * + * + *
+     * Optional. Config for data retention policy in offline storage.
+     * TTL in days for feature values that will be stored in offline storage.
+     * The Feature Store offline storage periodically removes obsolete feature
+     * values older than `offline_storage_ttl_days` since the feature generation
+     * time. If unset (or explicitly set to 0), default to 4000 days TTL.
+     * 
+ * + * int32 offline_storage_ttl_days = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The offlineStorageTtlDays to set. + * @return This builder for chaining. + */ + public Builder setOfflineStorageTtlDays(int value) { + + offlineStorageTtlDays_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Config for data retention policy in offline storage.
+     * TTL in days for feature values that will be stored in offline storage.
+     * The Feature Store offline storage periodically removes obsolete feature
+     * values older than `offline_storage_ttl_days` since the feature generation
+     * time. If unset (or explicitly set to 0), default to 4000 days TTL.
+     * 
+ * + * int32 offline_storage_ttl_days = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOfflineStorageTtlDays() { + + offlineStorageTtlDays_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java index dba539b74583..83dfde906346 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeOrBuilder.java @@ -346,4 +346,21 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfigOrBuilder getMonitoringConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Config for data retention policy in offline storage.
+   * TTL in days for feature values that will be stored in offline storage.
+   * The Feature Store offline storage periodically removes obsolete feature
+   * values older than `offline_storage_ttl_days` since the feature generation
+   * time. If unset (or explicitly set to 0), default to 4000 days TTL.
+   * 
+ * + * int32 offline_storage_ttl_days = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offlineStorageTtlDays. + */ + int getOfflineStorageTtlDays(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeProto.java index c21d06411afc..d38f69469f12 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EntityTypeProto.java @@ -50,7 +50,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/api/resource.proto\032=google/cloud/a" + "iplatform/v1beta1/featurestore_monitorin" + "g.proto\032\037google/protobuf/timestamp.proto" - + "\"\241\004\n\nEntityType\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\030\n\013de" + + "\"\310\004\n\nEntityType\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\030\n\013de" + "scription\030\002 \001(\tB\003\340A\001\0224\n\013create_time\030\003 \001(" + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + "date_time\030\004 \001(\0132\032.google.protobuf.Timest" @@ -59,17 +59,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "yB\003\340A\001\022\021\n\004etag\030\007 \001(\tB\003\340A\001\022]\n\021monitoring_" + "config\030\010 \001(\0132=.google.cloud.aiplatform.v" + "1beta1.FeaturestoreMonitoringConfigB\003\340A\001" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001:\212\001\352A\206\001\n$aiplatform.googleapis.co" - + "m/EntityType\022^projects/{project}/locatio" - + "ns/{location}/featurestores/{featurestor" - + "e}/entityTypes/{entity_type}B\354\001\n#com.goo" - + "gle.cloud.aiplatform.v1beta1B\017EntityType" - + "ProtoP\001ZIgoogle.golang.org/genproto/goog" - + "leapis/cloud/aiplatform/v1beta1;aiplatfo" - + "rm\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" - + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:" - + ":Cloud::AIPlatform::V1beta1b\006proto3" + + "\022%\n\030offline_storage_ttl_days\030\n \001(\005B\003\340A\001\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001:\212\001\352A\206\001\n$aiplatform.googleapis.com" + + "/EntityType\022^projects/{project}/location" + + "s/{location}/featurestores/{featurestore" + + "}/entityTypes/{entity_type}B\354\001\n#com.goog" + + "le.cloud.aiplatform.v1beta1B\017EntityTypeP" + + "rotoP\001ZIgoogle.golang.org/genproto/googl" + + "eapis/cloud/aiplatform/v1beta1;aiplatfor" + + "m\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Go" + + "ogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::" + + "Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -93,6 +94,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Labels", "Etag", "MonitoringConfig", + "OfflineStorageTtlDays", }); internal_static_google_cloud_aiplatform_v1beta1_EntityType_LabelsEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_EntityType_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java index f56a3ba2b737..a90dded58abd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Featurestore.java @@ -2314,6 +2314,30 @@ public com.google.cloud.aiplatform.v1beta1.Featurestore.State getState() { : result; } + public static final int ONLINE_STORAGE_TTL_DAYS_FIELD_NUMBER = 13; + private int onlineStorageTtlDays_; + /** + * + * + *
+   * Optional. TTL in days for feature values that will be stored in online serving
+   * storage. The Feature Store online storage periodically removes obsolete
+   * feature values older than `online_storage_ttl_days` since the feature
+   * generation time.
+   * Note that `online_storage_ttl_days` should be less than or equal to
+   * `offline_storage_ttl_days` for each EntityType under a featurestore.
+   * If not set, default to 4000 days
+   * 
+ * + * int32 online_storage_ttl_days = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The onlineStorageTtlDays. + */ + @java.lang.Override + public int getOnlineStorageTtlDays() { + return onlineStorageTtlDays_; + } + public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 10; private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; /** @@ -2409,6 +2433,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (encryptionSpec_ != null) { output.writeMessage(10, getEncryptionSpec()); } + if (onlineStorageTtlDays_ != 0) { + output.writeInt32(13, onlineStorageTtlDays_); + } getUnknownFields().writeTo(output); } @@ -2450,6 +2477,9 @@ public int getSerializedSize() { if (encryptionSpec_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEncryptionSpec()); } + if (onlineStorageTtlDays_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, onlineStorageTtlDays_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2482,6 +2512,7 @@ public boolean equals(final java.lang.Object obj) { if (!getOnlineServingConfig().equals(other.getOnlineServingConfig())) return false; } if (state_ != other.state_) return false; + if (getOnlineStorageTtlDays() != other.getOnlineStorageTtlDays()) return false; if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; if (hasEncryptionSpec()) { if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; @@ -2519,6 +2550,8 @@ public int hashCode() { } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + hash = (37 * hash) + ONLINE_STORAGE_TTL_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getOnlineStorageTtlDays(); if (hasEncryptionSpec()) { hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getEncryptionSpec().hashCode(); @@ -2708,6 +2741,8 @@ public Builder clear() { } state_ = 0; + onlineStorageTtlDays_ = 0; + if (encryptionSpecBuilder_ == null) { encryptionSpec_ = null; } else { @@ -2762,6 +2797,7 @@ public com.google.cloud.aiplatform.v1beta1.Featurestore buildPartial() { result.onlineServingConfig_ = onlineServingConfigBuilder_.build(); } result.state_ = state_; + result.onlineStorageTtlDays_ = onlineStorageTtlDays_; if (encryptionSpecBuilder_ == null) { result.encryptionSpec_ = encryptionSpec_; } else { @@ -2838,6 +2874,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Featurestore other) if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (other.getOnlineStorageTtlDays() != 0) { + setOnlineStorageTtlDays(other.getOnlineStorageTtlDays()); + } if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -2921,6 +2960,12 @@ public Builder mergeFrom( break; } // case 82 + case 104: + { + onlineStorageTtlDays_ = input.readInt32(); + + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4122,6 +4167,76 @@ public Builder clearState() { return this; } + private int onlineStorageTtlDays_; + /** + * + * + *
+     * Optional. TTL in days for feature values that will be stored in online serving
+     * storage. The Feature Store online storage periodically removes obsolete
+     * feature values older than `online_storage_ttl_days` since the feature
+     * generation time.
+     * Note that `online_storage_ttl_days` should be less than or equal to
+     * `offline_storage_ttl_days` for each EntityType under a featurestore.
+     * If not set, default to 4000 days
+     * 
+ * + * int32 online_storage_ttl_days = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The onlineStorageTtlDays. + */ + @java.lang.Override + public int getOnlineStorageTtlDays() { + return onlineStorageTtlDays_; + } + /** + * + * + *
+     * Optional. TTL in days for feature values that will be stored in online serving
+     * storage. The Feature Store online storage periodically removes obsolete
+     * feature values older than `online_storage_ttl_days` since the feature
+     * generation time.
+     * Note that `online_storage_ttl_days` should be less than or equal to
+     * `offline_storage_ttl_days` for each EntityType under a featurestore.
+     * If not set, default to 4000 days
+     * 
+ * + * int32 online_storage_ttl_days = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The onlineStorageTtlDays to set. + * @return This builder for chaining. + */ + public Builder setOnlineStorageTtlDays(int value) { + + onlineStorageTtlDays_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. TTL in days for feature values that will be stored in online serving
+     * storage. The Feature Store online storage periodically removes obsolete
+     * feature values older than `online_storage_ttl_days` since the feature
+     * generation time.
+     * Note that `online_storage_ttl_days` should be less than or equal to
+     * `offline_storage_ttl_days` for each EntityType under a featurestore.
+     * If not set, default to 4000 days
+     * 
+ * + * int32 online_storage_ttl_days = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOnlineStorageTtlDays() { + + onlineStorageTtlDays_ = 0; + onChanged(); + return this; + } + private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.EncryptionSpec, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java index 6d19140ee42e..cb842aff3f5a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreOrBuilder.java @@ -332,6 +332,25 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.aiplatform.v1beta1.Featurestore.State getState(); + /** + * + * + *
+   * Optional. TTL in days for feature values that will be stored in online serving
+   * storage. The Feature Store online storage periodically removes obsolete
+   * feature values older than `online_storage_ttl_days` since the feature
+   * generation time.
+   * Note that `online_storage_ttl_days` should be less than or equal to
+   * `offline_storage_ttl_days` for each EntityType under a featurestore.
+   * If not set, default to 4000 days
+   * 
+ * + * int32 online_storage_ttl_days = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The onlineStorageTtlDays. + */ + int getOnlineStorageTtlDays(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java index 32fe73ceaa06..f87ccd2f6ba0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreProto.java @@ -57,7 +57,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "beta1\032\037google/api/field_behavior.proto\032\031" + "google/api/resource.proto\0325google/cloud/" + "aiplatform/v1beta1/encryption_spec.proto" - + "\032\037google/protobuf/timestamp.proto\"\231\007\n\014Fe" + + "\032\037google/protobuf/timestamp.proto\"\277\007\n\014Fe" + "aturestore\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_" + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\003" + "\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.protob" @@ -68,26 +68,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ud.aiplatform.v1beta1.Featurestore.Onlin" + "eServingConfigB\003\340A\001\022G\n\005state\030\010 \001(\01623.goo" + "gle.cloud.aiplatform.v1beta1.Featurestor" - + "e.StateB\003\340A\003\022M\n\017encryption_spec\030\n \001(\0132/." - + "google.cloud.aiplatform.v1beta1.Encrypti" - + "onSpecB\003\340A\001\032\313\001\n\023OnlineServingConfig\022\030\n\020f" - + "ixed_node_count\030\002 \001(\005\022Z\n\007scaling\030\004 \001(\0132I" - + ".google.cloud.aiplatform.v1beta1.Feature" - + "store.OnlineServingConfig.Scaling\032>\n\007Sca" - + "ling\022\033\n\016min_node_count\030\001 \001(\005B\003\340A\002\022\026\n\016max" - + "_node_count\030\002 \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\n\n\006STABLE\020\001\022\014\n\010UPDATING" - + "\020\002:q\352An\n&aiplatform.googleapis.com/Featu" - + "restore\022Dprojects/{project}/locations/{l" - + "ocation}/featurestores/{featurestore}B\356\001" - + "\n#com.google.cloud.aiplatform.v1beta1B\021F" - + "eaturestoreProtoP\001ZIgoogle.golang.org/ge" - + "nproto/googleapis/cloud/aiplatform/v1bet" - + "a1;aiplatform\252\002\037Google.Cloud.AIPlatform." - + "V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta" - + "1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006" - + "proto3" + + "e.StateB\003\340A\003\022$\n\027online_storage_ttl_days\030" + + "\r \001(\005B\003\340A\001\022M\n\017encryption_spec\030\n \001(\0132/.go" + + "ogle.cloud.aiplatform.v1beta1.Encryption" + + "SpecB\003\340A\001\032\313\001\n\023OnlineServingConfig\022\030\n\020fix" + + "ed_node_count\030\002 \001(\005\022Z\n\007scaling\030\004 \001(\0132I.g" + + "oogle.cloud.aiplatform.v1beta1.Featurest" + + "ore.OnlineServingConfig.Scaling\032>\n\007Scali" + + "ng\022\033\n\016min_node_count\030\001 \001(\005B\003\340A\002\022\026\n\016max_n" + + "ode_count\030\002 \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\n\n\006STABLE\020\001\022\014\n\010UPDATING\020\002" + + ":q\352An\n&aiplatform.googleapis.com/Feature" + + "store\022Dprojects/{project}/locations/{loc" + + "ation}/featurestores/{featurestore}B\356\001\n#" + + "com.google.cloud.aiplatform.v1beta1B\021Fea" + + "turestoreProtoP\001ZIgoogle.golang.org/genp" + + "roto/googleapis/cloud/aiplatform/v1beta1" + + ";aiplatform\252\002\037Google.Cloud.AIPlatform.V1" + + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" + + "\002\"Google::Cloud::AIPlatform::V1beta1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -111,6 +112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Labels", "OnlineServingConfig", "State", + "OnlineStorageTtlDays", "EncryptionSpec", }); internal_static_google_cloud_aiplatform_v1beta1_Featurestore_OnlineServingConfig_descriptor = 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 b2013d1b350a..312f5a547097 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 @@ -404,199 +404,200 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "GenericOperationMetadata\"z\n#UpdateFeatur" + "estoreOperationMetadata\022S\n\020generic_metad" + "ata\030\001 \001(\01329.google.cloud.aiplatform.v1be" - + "ta1.GenericOperationMetadata\"\213\002\n$ImportF" + + "ta1.GenericOperationMetadata\"\240\002\n$ImportF" + "eatureValuesOperationMetadata\022S\n\020generic" + "_metadata\030\001 \001(\01329.google.cloud.aiplatfor" + "m.v1beta1.GenericOperationMetadata\022\035\n\025im" + "ported_entity_count\030\002 \001(\003\022$\n\034imported_fe" - + "ature_value_count\030\003 \001(\003\022\031\n\021invalid_row_c" - + "ount\030\006 \001(\003\022.\n×tamp_outside_retentio" - + "n_rows_count\030\007 \001(\003\"{\n$ExportFeatureValue" + + "ature_value_count\030\003 \001(\003\022\023\n\013source_uris\030\004" + + " \003(\t\022\031\n\021invalid_row_count\030\006 \001(\003\022.\n×" + + "tamp_outside_retention_rows_count\030\007 \001(\003\"" + + "{\n$ExportFeatureValuesOperationMetadata\022" + + "S\n\020generic_metadata\030\001 \001(\01329.google.cloud" + + ".aiplatform.v1beta1.GenericOperationMeta" + + "data\"~\n\'BatchReadFeatureValuesOperationM" + + "etadata\022S\n\020generic_metadata\030\001 \001(\01329.goog" + + "le.cloud.aiplatform.v1beta1.GenericOpera" + + "tionMetadata\"{\n$DeleteFeatureValuesOpera" + + "tionMetadata\022S\n\020generic_metadata\030\001 \001(\01329" + + ".google.cloud.aiplatform.v1beta1.Generic" + + "OperationMetadata\"x\n!CreateEntityTypeOpe" + + "rationMetadata\022S\n\020generic_metadata\030\001 \001(\013" + + "29.google.cloud.aiplatform.v1beta1.Gener" + + "icOperationMetadata\"u\n\036CreateFeatureOper" + + "ationMetadata\022S\n\020generic_metadata\030\001 \001(\0132" + + "9.google.cloud.aiplatform.v1beta1.Generi" + + "cOperationMetadata\"{\n$BatchCreateFeature" + "sOperationMetadata\022S\n\020generic_metadata\030\001" + " \001(\01329.google.cloud.aiplatform.v1beta1.G" - + "enericOperationMetadata\"~\n\'BatchReadFeat" - + "ureValuesOperationMetadata\022S\n\020generic_me" - + "tadata\030\001 \001(\01329.google.cloud.aiplatform.v" - + "1beta1.GenericOperationMetadata\"{\n$Delet" - + "eFeatureValuesOperationMetadata\022S\n\020gener" - + "ic_metadata\030\001 \001(\01329.google.cloud.aiplatf" - + "orm.v1beta1.GenericOperationMetadata\"x\n!" - + "CreateEntityTypeOperationMetadata\022S\n\020gen" - + "eric_metadata\030\001 \001(\01329.google.cloud.aipla" - + "tform.v1beta1.GenericOperationMetadata\"u" - + "\n\036CreateFeatureOperationMetadata\022S\n\020gene" - + "ric_metadata\030\001 \001(\01329.google.cloud.aiplat" - + "form.v1beta1.GenericOperationMetadata\"{\n" - + "$BatchCreateFeaturesOperationMetadata\022S\n" - + "\020generic_metadata\030\001 \001(\01329.google.cloud.a" - + "iplatform.v1beta1.GenericOperationMetada" - + "ta\"\371\004\n\032DeleteFeatureValuesRequest\022a\n\rsel" - + "ect_entity\030\002 \001(\0132H.google.cloud.aiplatfo" - + "rm.v1beta1.DeleteFeatureValuesRequest.Se" - + "lectEntityH\000\022~\n\035select_time_range_and_fe" - + "ature\030\003 \001(\0132U.google.cloud.aiplatform.v1" - + "beta1.DeleteFeatureValuesRequest.SelectT" - + "imeRangeAndFeatureH\000\022A\n\013entity_type\030\001 \001(" - + "\tB,\340A\002\372A&\n$aiplatform.googleapis.com/Ent" - + "ityType\032b\n\014SelectEntity\022R\n\022entity_id_sel" - + "ector\030\001 \001(\01321.google.cloud.aiplatform.v1" - + "beta1.EntityIdSelectorB\003\340A\002\032\300\001\n\031SelectTi" - + "meRangeAndFeature\022.\n\ntime_range\030\001 \001(\0132\025." - + "google.type.IntervalB\003\340A\002\022O\n\020feature_sel" - + "ector\030\002 \001(\01320.google.cloud.aiplatform.v1" - + "beta1.FeatureSelectorB\003\340A\002\022\"\n\032skip_onlin" - + "e_storage_delete\030\003 \001(\010B\016\n\014DeleteOption\"\035" - + "\n\033DeleteFeatureValuesResponse\"\200\001\n\020Entity" - + "IdSelector\022@\n\ncsv_source\030\003 \001(\0132*.google." - + "cloud.aiplatform.v1beta1.CsvSourceH\000\022\027\n\017" - + "entity_id_field\030\005 \001(\tB\021\n\017EntityIdsSource" - + "2\345+\n\023FeaturestoreService\022\260\002\n\022CreateFeatu" - + "restore\022:.google.cloud.aiplatform.v1beta" - + "1.CreateFeaturestoreRequest\032\035.google.lon" - + "grunning.Operation\"\276\001\202\323\344\223\002F\"6/v1beta1/{p" - + "arent=projects/*/locations/*}/featuresto" - + "res:\014featurestore\332A\023parent,featurestore\332" - + "A#parent,featurestore,featurestore_id\312A3" - + "\n\014Featurestore\022#CreateFeaturestoreOperat" - + "ionMetadata\022\300\001\n\017GetFeaturestore\0227.google" - + ".cloud.aiplatform.v1beta1.GetFeaturestor" - + "eRequest\032-.google.cloud.aiplatform.v1bet" - + "a1.Featurestore\"E\202\323\344\223\0028\0226/v1beta1/{name=" - + "projects/*/locations/*/featurestores/*}\332" - + "A\004name\022\323\001\n\021ListFeaturestores\0229.google.cl" + + "enericOperationMetadata\"\371\004\n\032DeleteFeatur" + + "eValuesRequest\022a\n\rselect_entity\030\002 \001(\0132H." + + "google.cloud.aiplatform.v1beta1.DeleteFe" + + "atureValuesRequest.SelectEntityH\000\022~\n\035sel" + + "ect_time_range_and_feature\030\003 \001(\0132U.googl" + + "e.cloud.aiplatform.v1beta1.DeleteFeature" + + "ValuesRequest.SelectTimeRangeAndFeatureH" + + "\000\022A\n\013entity_type\030\001 \001(\tB,\340A\002\372A&\n$aiplatfo" + + "rm.googleapis.com/EntityType\032b\n\014SelectEn" + + "tity\022R\n\022entity_id_selector\030\001 \001(\01321.googl" + + "e.cloud.aiplatform.v1beta1.EntityIdSelec" + + "torB\003\340A\002\032\300\001\n\031SelectTimeRangeAndFeature\022." + + "\n\ntime_range\030\001 \001(\0132\025.google.type.Interva" + + "lB\003\340A\002\022O\n\020feature_selector\030\002 \001(\01320.googl" + + "e.cloud.aiplatform.v1beta1.FeatureSelect" + + "orB\003\340A\002\022\"\n\032skip_online_storage_delete\030\003 " + + "\001(\010B\016\n\014DeleteOption\"\035\n\033DeleteFeatureValu" + + "esResponse\"\200\001\n\020EntityIdSelector\022@\n\ncsv_s" + + "ource\030\003 \001(\0132*.google.cloud.aiplatform.v1" + + "beta1.CsvSourceH\000\022\027\n\017entity_id_field\030\005 \001" + + "(\tB\021\n\017EntityIdsSource2\345+\n\023FeaturestoreSe" + + "rvice\022\260\002\n\022CreateFeaturestore\022:.google.cl" + + "oud.aiplatform.v1beta1.CreateFeaturestor" + + "eRequest\032\035.google.longrunning.Operation\"" + + "\276\001\202\323\344\223\002F\"6/v1beta1/{parent=projects/*/lo" + + "cations/*}/featurestores:\014featurestore\332A" + + "\023parent,featurestore\332A#parent,featuresto" + + "re,featurestore_id\312A3\n\014Featurestore\022#Cre" + + "ateFeaturestoreOperationMetadata\022\300\001\n\017Get" + + "Featurestore\0227.google.cloud.aiplatform.v" + + "1beta1.GetFeaturestoreRequest\032-.google.c" + + "loud.aiplatform.v1beta1.Featurestore\"E\202\323" + + "\344\223\0028\0226/v1beta1/{name=projects/*/location" + + "s/*/featurestores/*}\332A\004name\022\323\001\n\021ListFeat" + + "urestores\0229.google.cloud.aiplatform.v1be" + + "ta1.ListFeaturestoresRequest\032:.google.cl" + "oud.aiplatform.v1beta1.ListFeaturestores" - + "Request\032:.google.cloud.aiplatform.v1beta" - + "1.ListFeaturestoresResponse\"G\202\323\344\223\0028\0226/v1" - + "beta1/{parent=projects/*/locations/*}/fe" - + "aturestores\332A\006parent\022\234\002\n\022UpdateFeaturest" - + "ore\022:.google.cloud.aiplatform.v1beta1.Up" - + "dateFeaturestoreRequest\032\035.google.longrun" - + "ning.Operation\"\252\001\202\323\344\223\002S2C/v1beta1/{featu" - + "restore.name=projects/*/locations/*/feat" - + "urestores/*}:\014featurestore\332A\030featurestor" - + "e,update_mask\312A3\n\014Featurestore\022#UpdateFe" - + "aturestoreOperationMetadata\022\367\001\n\022DeleteFe" - + "aturestore\022:.google.cloud.aiplatform.v1b" - + "eta1.DeleteFeaturestoreRequest\032\035.google." - + "longrunning.Operation\"\205\001\202\323\344\223\0028*6/v1beta1" - + "/{name=projects/*/locations/*/featuresto" - + "res/*}\332A\004name\332A\nname,force\312A0\n\025google.pr" - + "otobuf.Empty\022\027DeleteOperationMetadata\022\262\002" - + "\n\020CreateEntityType\0228.google.cloud.aiplat" - + "form.v1beta1.CreateEntityTypeRequest\032\035.g" - + "oogle.longrunning.Operation\"\304\001\202\323\344\223\002S\"D/v" - + "1beta1/{parent=projects/*/locations/*/fe" - + "aturestores/*}/entityTypes:\013entity_type\332" - + "A\022parent,entity_type\332A!parent,entity_typ" - + "e,entity_type_id\312A/\n\nEntityType\022!CreateE" - + "ntityTypeOperationMetadata\022\310\001\n\rGetEntity" - + "Type\0225.google.cloud.aiplatform.v1beta1.G" - + "etEntityTypeRequest\032+.google.cloud.aipla" - + "tform.v1beta1.EntityType\"S\202\323\344\223\002F\022D/v1bet" - + "a1/{name=projects/*/locations/*/features" - + "tores/*/entityTypes/*}\332A\004name\022\333\001\n\017ListEn" - + "tityTypes\0227.google.cloud.aiplatform.v1be" - + "ta1.ListEntityTypesRequest\0328.google.clou" - + "d.aiplatform.v1beta1.ListEntityTypesResp" - + "onse\"U\202\323\344\223\002F\022D/v1beta1/{parent=projects/" - + "*/locations/*/featurestores/*}/entityTyp" - + "es\332A\006parent\022\372\001\n\020UpdateEntityType\0228.googl" - + "e.cloud.aiplatform.v1beta1.UpdateEntityT" - + "ypeRequest\032+.google.cloud.aiplatform.v1b" - + "eta1.EntityType\"\177\202\323\344\223\002_2P/v1beta1/{entit" - + "y_type.name=projects/*/locations/*/featu" - + "restores/*/entityTypes/*}:\013entity_type\332A" - + "\027entity_type,update_mask\022\201\002\n\020DeleteEntit" - + "yType\0228.google.cloud.aiplatform.v1beta1." - + "DeleteEntityTypeRequest\032\035.google.longrun" - + "ning.Operation\"\223\001\202\323\344\223\002F*D/v1beta1/{name=" + + "Response\"G\202\323\344\223\0028\0226/v1beta1/{parent=proje" + + "cts/*/locations/*}/featurestores\332A\006paren" + + "t\022\234\002\n\022UpdateFeaturestore\022:.google.cloud." + + "aiplatform.v1beta1.UpdateFeaturestoreReq" + + "uest\032\035.google.longrunning.Operation\"\252\001\202\323" + + "\344\223\002S2C/v1beta1/{featurestore.name=projec" + + "ts/*/locations/*/featurestores/*}:\014featu" + + "restore\332A\030featurestore,update_mask\312A3\n\014F" + + "eaturestore\022#UpdateFeaturestoreOperation" + + "Metadata\022\367\001\n\022DeleteFeaturestore\022:.google" + + ".cloud.aiplatform.v1beta1.DeleteFeatures" + + "toreRequest\032\035.google.longrunning.Operati" + + "on\"\205\001\202\323\344\223\0028*6/v1beta1/{name=projects/*/l" + + "ocations/*/featurestores/*}\332A\004name\332A\nnam" + + "e,force\312A0\n\025google.protobuf.Empty\022\027Delet" + + "eOperationMetadata\022\262\002\n\020CreateEntityType\022" + + "8.google.cloud.aiplatform.v1beta1.Create" + + "EntityTypeRequest\032\035.google.longrunning.O" + + "peration\"\304\001\202\323\344\223\002S\"D/v1beta1/{parent=proj" + + "ects/*/locations/*/featurestores/*}/enti" + + "tyTypes:\013entity_type\332A\022parent,entity_typ" + + "e\332A!parent,entity_type,entity_type_id\312A/" + + "\n\nEntityType\022!CreateEntityTypeOperationM" + + "etadata\022\310\001\n\rGetEntityType\0225.google.cloud" + + ".aiplatform.v1beta1.GetEntityTypeRequest" + + "\032+.google.cloud.aiplatform.v1beta1.Entit" + + "yType\"S\202\323\344\223\002F\022D/v1beta1/{name=projects/*" + + "/locations/*/featurestores/*/entityTypes" + + "/*}\332A\004name\022\333\001\n\017ListEntityTypes\0227.google." + + "cloud.aiplatform.v1beta1.ListEntityTypes" + + "Request\0328.google.cloud.aiplatform.v1beta" + + "1.ListEntityTypesResponse\"U\202\323\344\223\002F\022D/v1be" + + "ta1/{parent=projects/*/locations/*/featu" + + "restores/*}/entityTypes\332A\006parent\022\372\001\n\020Upd" + + "ateEntityType\0228.google.cloud.aiplatform." + + "v1beta1.UpdateEntityTypeRequest\032+.google" + + ".cloud.aiplatform.v1beta1.EntityType\"\177\202\323" + + "\344\223\002_2P/v1beta1/{entity_type.name=project" + + "s/*/locations/*/featurestores/*/entityTy" + + "pes/*}:\013entity_type\332A\027entity_type,update" + + "_mask\022\201\002\n\020DeleteEntityType\0228.google.clou" + + "d.aiplatform.v1beta1.DeleteEntityTypeReq" + + "uest\032\035.google.longrunning.Operation\"\223\001\202\323" + + "\344\223\002F*D/v1beta1/{name=projects/*/location" + + "s/*/featurestores/*/entityTypes/*}\332A\004nam" + + "e\332A\nname,force\312A0\n\025google.protobuf.Empty" + + "\022\027DeleteOperationMetadata\022\241\002\n\rCreateFeat" + + "ure\0225.google.cloud.aiplatform.v1beta1.Cr" + + "eateFeatureRequest\032\035.google.longrunning." + + "Operation\"\271\001\202\323\344\223\002Z\"O/v1beta1/{parent=pro" + + "jects/*/locations/*/featurestores/*/enti" + + "tyTypes/*}/features:\007feature\332A\016parent,fe" + + "ature\332A\031parent,feature,feature_id\312A)\n\007Fe" + + "ature\022\036CreateFeatureOperationMetadata\022\262\002" + + "\n\023BatchCreateFeatures\022;.google.cloud.aip" + + "latform.v1beta1.BatchCreateFeaturesReque" + + "st\032\035.google.longrunning.Operation\"\276\001\202\323\344\223" + + "\002`\"[/v1beta1/{parent=projects/*/location" + + "s/*/featurestores/*/entityTypes/*}/featu" + + "res:batchCreate:\001*\332A\017parent,requests\312AC\n" + + "\033BatchCreateFeaturesResponse\022$BatchCreat" + + "eFeaturesOperationMetadata\022\312\001\n\nGetFeatur" + + "e\0222.google.cloud.aiplatform.v1beta1.GetF" + + "eatureRequest\032(.google.cloud.aiplatform." + + "v1beta1.Feature\"^\202\323\344\223\002Q\022O/v1beta1/{name=" + "projects/*/locations/*/featurestores/*/e" - + "ntityTypes/*}\332A\004name\332A\nname,force\312A0\n\025go" - + "ogle.protobuf.Empty\022\027DeleteOperationMeta" - + "data\022\241\002\n\rCreateFeature\0225.google.cloud.ai" - + "platform.v1beta1.CreateFeatureRequest\032\035." - + "google.longrunning.Operation\"\271\001\202\323\344\223\002Z\"O/" - + "v1beta1/{parent=projects/*/locations/*/f" - + "eaturestores/*/entityTypes/*}/features:\007" - + "feature\332A\016parent,feature\332A\031parent,featur" - + "e,feature_id\312A)\n\007Feature\022\036CreateFeatureO" - + "perationMetadata\022\262\002\n\023BatchCreateFeatures" - + "\022;.google.cloud.aiplatform.v1beta1.Batch" - + "CreateFeaturesRequest\032\035.google.longrunni" - + "ng.Operation\"\276\001\202\323\344\223\002`\"[/v1beta1/{parent=" - + "projects/*/locations/*/featurestores/*/e" - + "ntityTypes/*}/features:batchCreate:\001*\332A\017" - + "parent,requests\312AC\n\033BatchCreateFeaturesR" - + "esponse\022$BatchCreateFeaturesOperationMet" - + "adata\022\312\001\n\nGetFeature\0222.google.cloud.aipl" - + "atform.v1beta1.GetFeatureRequest\032(.googl" - + "e.cloud.aiplatform.v1beta1.Feature\"^\202\323\344\223" - + "\002Q\022O/v1beta1/{name=projects/*/locations/" - + "*/featurestores/*/entityTypes/*/features" - + "/*}\332A\004name\022\335\001\n\014ListFeatures\0224.google.clo" - + "ud.aiplatform.v1beta1.ListFeaturesReques" - + "t\0325.google.cloud.aiplatform.v1beta1.List" - + "FeaturesResponse\"`\202\323\344\223\002Q\022O/v1beta1/{pare" - + "nt=projects/*/locations/*/featurestores/" - + "*/entityTypes/*}/features\332A\006parent\022\360\001\n\rU" - + "pdateFeature\0225.google.cloud.aiplatform.v" - + "1beta1.UpdateFeatureRequest\032(.google.clo" - + "ud.aiplatform.v1beta1.Feature\"~\202\323\344\223\002b2W/" - + "v1beta1/{feature.name=projects/*/locatio" - + "ns/*/featurestores/*/entityTypes/*/featu" - + "res/*}:\007feature\332A\023feature,update_mask\022\371\001" - + "\n\rDeleteFeature\0225.google.cloud.aiplatfor" - + "m.v1beta1.DeleteFeatureRequest\032\035.google." - + "longrunning.Operation\"\221\001\202\323\344\223\002Q*O/v1beta1" - + "/{name=projects/*/locations/*/featuresto" - + "res/*/entityTypes/*/features/*}\332A\004name\312A" - + "0\n\025google.protobuf.Empty\022\027DeleteOperatio" - + "nMetadata\022\262\002\n\023ImportFeatureValues\022;.goog" - + "le.cloud.aiplatform.v1beta1.ImportFeatur" - + "eValuesRequest\032\035.google.longrunning.Oper" - + "ation\"\276\001\202\323\344\223\002d\"_/v1beta1/{entity_type=pr" - + "ojects/*/locations/*/featurestores/*/ent" - + "ityTypes/*}:importFeatureValues:\001*\332A\013ent" - + "ity_type\312AC\n\033ImportFeatureValuesResponse" - + "\022$ImportFeatureValuesOperationMetadata\022\265" - + "\002\n\026BatchReadFeatureValues\022>.google.cloud" - + ".aiplatform.v1beta1.BatchReadFeatureValu" - + "esRequest\032\035.google.longrunning.Operation" - + "\"\273\001\202\323\344\223\002Z\"U/v1beta1/{featurestore=projec" - + "ts/*/locations/*/featurestores/*}:batchR" - + "eadFeatureValues:\001*\332A\014featurestore\312AI\n\036B" - + "atchReadFeatureValuesResponse\022\'BatchRead" - + "FeatureValuesOperationMetadata\022\262\002\n\023Expor" + + "ntityTypes/*/features/*}\332A\004name\022\335\001\n\014List" + + "Features\0224.google.cloud.aiplatform.v1bet" + + "a1.ListFeaturesRequest\0325.google.cloud.ai" + + "platform.v1beta1.ListFeaturesResponse\"`\202" + + "\323\344\223\002Q\022O/v1beta1/{parent=projects/*/locat" + + "ions/*/featurestores/*/entityTypes/*}/fe" + + "atures\332A\006parent\022\360\001\n\rUpdateFeature\0225.goog" + + "le.cloud.aiplatform.v1beta1.UpdateFeatur" + + "eRequest\032(.google.cloud.aiplatform.v1bet" + + "a1.Feature\"~\202\323\344\223\002b2W/v1beta1/{feature.na" + + "me=projects/*/locations/*/featurestores/" + + "*/entityTypes/*/features/*}:\007feature\332A\023f" + + "eature,update_mask\022\371\001\n\rDeleteFeature\0225.g" + + "oogle.cloud.aiplatform.v1beta1.DeleteFea" + + "tureRequest\032\035.google.longrunning.Operati" + + "on\"\221\001\202\323\344\223\002Q*O/v1beta1/{name=projects/*/l" + + "ocations/*/featurestores/*/entityTypes/*" + + "/features/*}\332A\004name\312A0\n\025google.protobuf." + + "Empty\022\027DeleteOperationMetadata\022\262\002\n\023Impor" + "tFeatureValues\022;.google.cloud.aiplatform" - + ".v1beta1.ExportFeatureValuesRequest\032\035.go" + + ".v1beta1.ImportFeatureValuesRequest\032\035.go" + "ogle.longrunning.Operation\"\276\001\202\323\344\223\002d\"_/v1" + "beta1/{entity_type=projects/*/locations/" - + "*/featurestores/*/entityTypes/*}:exportF" - + "eatureValues:\001*\332A\013entity_type\312AC\n\033Export" - + "FeatureValuesResponse\022$ExportFeatureValu" - + "esOperationMetadata\022\262\002\n\023DeleteFeatureVal" - + "ues\022;.google.cloud.aiplatform.v1beta1.De" - + "leteFeatureValuesRequest\032\035.google.longru" - + "nning.Operation\"\276\001\202\323\344\223\002d\"_/v1beta1/{enti" - + "ty_type=projects/*/locations/*/featurest" - + "ores/*/entityTypes/*}:deleteFeatureValue" - + "s:\001*\332A\013entity_type\312AC\n\033DeleteFeatureValu" - + "esResponse\022$DeleteFeatureValuesOperation" - + "Metadata\022\356\001\n\016SearchFeatures\0226.google.clo" - + "ud.aiplatform.v1beta1.SearchFeaturesRequ" - + "est\0327.google.cloud.aiplatform.v1beta1.Se" - + "archFeaturesResponse\"k\202\323\344\223\002I\022G/v1beta1/{" - + "location=projects/*/locations/*}/feature" - + "stores:searchFeatures\332A\010location\332A\016locat" - + "ion,query\032M\312A\031aiplatform.googleapis.com\322" - + "A.https://www.googleapis.com/auth/cloud-" - + "platformB\365\001\n#com.google.cloud.aiplatform" - + ".v1beta1B\030FeaturestoreServiceProtoP\001ZIgo" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/aiplatform/v1beta1;aiplatform\252\002\037Google" - + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" - + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIP" - + "latform::V1beta1b\006proto3" + + "*/featurestores/*/entityTypes/*}:importF" + + "eatureValues:\001*\332A\013entity_type\312AC\n\033Import" + + "FeatureValuesResponse\022$ImportFeatureValu" + + "esOperationMetadata\022\265\002\n\026BatchReadFeature" + + "Values\022>.google.cloud.aiplatform.v1beta1" + + ".BatchReadFeatureValuesRequest\032\035.google." + + "longrunning.Operation\"\273\001\202\323\344\223\002Z\"U/v1beta1" + + "/{featurestore=projects/*/locations/*/fe" + + "aturestores/*}:batchReadFeatureValues:\001*" + + "\332A\014featurestore\312AI\n\036BatchReadFeatureValu" + + "esResponse\022\'BatchReadFeatureValuesOperat" + + "ionMetadata\022\262\002\n\023ExportFeatureValues\022;.go" + + "ogle.cloud.aiplatform.v1beta1.ExportFeat" + + "ureValuesRequest\032\035.google.longrunning.Op" + + "eration\"\276\001\202\323\344\223\002d\"_/v1beta1/{entity_type=" + + "projects/*/locations/*/featurestores/*/e" + + "ntityTypes/*}:exportFeatureValues:\001*\332A\013e" + + "ntity_type\312AC\n\033ExportFeatureValuesRespon" + + "se\022$ExportFeatureValuesOperationMetadata" + + "\022\262\002\n\023DeleteFeatureValues\022;.google.cloud." + + "aiplatform.v1beta1.DeleteFeatureValuesRe" + + "quest\032\035.google.longrunning.Operation\"\276\001\202" + + "\323\344\223\002d\"_/v1beta1/{entity_type=projects/*/" + + "locations/*/featurestores/*/entityTypes/" + + "*}:deleteFeatureValues:\001*\332A\013entity_type\312" + + "AC\n\033DeleteFeatureValuesResponse\022$DeleteF" + + "eatureValuesOperationMetadata\022\356\001\n\016Search" + + "Features\0226.google.cloud.aiplatform.v1bet" + + "a1.SearchFeaturesRequest\0327.google.cloud." + + "aiplatform.v1beta1.SearchFeaturesRespons" + + "e\"k\202\323\344\223\002I\022G/v1beta1/{location=projects/*" + + "/locations/*}/featurestores:searchFeatur" + + "es\332A\010location\332A\016location,query\032M\312A\031aipla" + + "tform.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\365\001\n#com.go" + + "ogle.cloud.aiplatform.v1beta1B\030Featurest" + + "oreServiceProtoP\001ZIgoogle.golang.org/gen" + + "proto/googleapis/cloud/aiplatform/v1beta" + + "1;aiplatform\252\002\037Google.Cloud.AIPlatform.V" + + "1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1" + + "\352\002\"Google::Cloud::AIPlatform::V1beta1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -962,6 +963,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", "ImportedEntityCount", "ImportedFeatureValueCount", + "SourceUris", "InvalidRowCount", "TimestampOutsideRetentionRowsCount", }); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadata.java index 47126c00936c..ea26bd03cb1b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadata.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -94,7 +94,7 @@ public java.util.List getPartialFailuresList() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -113,7 +113,7 @@ public java.util.List getPartialFailuresList() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -131,7 +131,7 @@ public int getPartialFailuresCount() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -149,7 +149,7 @@ public com.google.rpc.Status getPartialFailures(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -734,7 +734,7 @@ private void ensurePartialFailuresIsMutable() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -755,7 +755,7 @@ public java.util.List getPartialFailuresList() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -776,7 +776,7 @@ public int getPartialFailuresCount() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -797,7 +797,7 @@ public com.google.rpc.Status getPartialFailures(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -824,7 +824,7 @@ public Builder setPartialFailures(int index, com.google.rpc.Status value) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -848,7 +848,7 @@ public Builder setPartialFailures(int index, com.google.rpc.Status.Builder build * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -875,7 +875,7 @@ public Builder addPartialFailures(com.google.rpc.Status value) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -902,7 +902,7 @@ public Builder addPartialFailures(int index, com.google.rpc.Status value) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -926,7 +926,7 @@ public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue) * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -950,7 +950,7 @@ public Builder addPartialFailures(int index, com.google.rpc.Status.Builder build * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -975,7 +975,7 @@ public Builder addAllPartialFailures( * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -999,7 +999,7 @@ public Builder clearPartialFailures() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -1023,7 +1023,7 @@ public Builder removePartialFailures(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -1040,7 +1040,7 @@ public com.google.rpc.Status.Builder getPartialFailuresBuilder(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -1061,7 +1061,7 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -1083,7 +1083,7 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -1101,7 +1101,7 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder() { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -1119,7 +1119,7 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder(int index) { * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadataOrBuilder.java index 5ec91bf069a7..345f95b454b8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenericOperationMetadataOrBuilder.java @@ -30,7 +30,7 @@ public interface GenericOperationMetadataOrBuilder * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -45,7 +45,7 @@ public interface GenericOperationMetadataOrBuilder * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -60,7 +60,7 @@ public interface GenericOperationMetadataOrBuilder * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -75,7 +75,7 @@ public interface GenericOperationMetadataOrBuilder * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * @@ -90,7 +90,7 @@ public interface GenericOperationMetadataOrBuilder * Output only. Partial failures encountered. * E.g. single files that couldn't be read. * This field should never exceed 20 entries. - * Status details field will contain standard GCP error details. + * Status details field will contain standard Google Cloud error details. * * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java index b6f31d0a2bdb..71b2e0bb5175 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJob.java @@ -139,7 +139,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The display name of the HyperparameterTuningJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -164,7 +164,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The display name of the HyperparameterTuningJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -1836,7 +1836,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The display name of the HyperparameterTuningJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1860,7 +1860,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The display name of the HyperparameterTuningJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1884,7 +1884,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The display name of the HyperparameterTuningJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1907,7 +1907,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The display name of the HyperparameterTuningJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1926,7 +1926,7 @@ public Builder clearDisplayName() { * *
      * Required. The display name of the HyperparameterTuningJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java index c3a23c969dd9..48830e8a0a13 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/HyperparameterTuningJobOrBuilder.java @@ -53,7 +53,7 @@ public interface HyperparameterTuningJobOrBuilder * *
    * Required. The display name of the HyperparameterTuningJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface HyperparameterTuningJobOrBuilder * *
    * Required. The display name of the HyperparameterTuningJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java index 3fe2ab485e9a..81f7d0a1365f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadata.java @@ -39,7 +39,9 @@ private ImportFeatureValuesOperationMetadata( super(builder); } - private ImportFeatureValuesOperationMetadata() {} + private ImportFeatureValuesOperationMetadata() { + sourceUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -152,6 +154,67 @@ public long getImportedFeatureValueCount() { return importedFeatureValueCount_; } + public static final int SOURCE_URIS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList sourceUris_; + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @return A list containing the sourceUris. + */ + public com.google.protobuf.ProtocolStringList getSourceUrisList() { + return sourceUris_; + } + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @return The count of sourceUris. + */ + public int getSourceUrisCount() { + return sourceUris_.size(); + } + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @param index The index of the element to return. + * @return The sourceUris at the given index. + */ + public java.lang.String getSourceUris(int index) { + return sourceUris_.get(index); + } + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @param index The index of the value to return. + * @return The bytes of the sourceUris at the given index. + */ + public com.google.protobuf.ByteString getSourceUrisBytes(int index) { + return sourceUris_.getByteString(index); + } + public static final int INVALID_ROW_COUNT_FIELD_NUMBER = 6; private long invalidRowCount_; /** @@ -216,6 +279,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (importedFeatureValueCount_ != 0L) { output.writeInt64(3, importedFeatureValueCount_); } + for (int i = 0; i < sourceUris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceUris_.getRaw(i)); + } if (invalidRowCount_ != 0L) { output.writeInt64(6, invalidRowCount_); } @@ -240,6 +306,14 @@ public int getSerializedSize() { if (importedFeatureValueCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, importedFeatureValueCount_); } + { + int dataSize = 0; + for (int i = 0; i < sourceUris_.size(); i++) { + dataSize += computeStringSizeNoTag(sourceUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getSourceUrisList().size(); + } if (invalidRowCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, invalidRowCount_); } @@ -271,6 +345,7 @@ public boolean equals(final java.lang.Object obj) { } if (getImportedEntityCount() != other.getImportedEntityCount()) return false; if (getImportedFeatureValueCount() != other.getImportedFeatureValueCount()) return false; + if (!getSourceUrisList().equals(other.getSourceUrisList())) return false; if (getInvalidRowCount() != other.getInvalidRowCount()) return false; if (getTimestampOutsideRetentionRowsCount() != other.getTimestampOutsideRetentionRowsCount()) return false; @@ -293,6 +368,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImportedEntityCount()); hash = (37 * hash) + IMPORTED_FEATURE_VALUE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImportedFeatureValueCount()); + if (getSourceUrisCount() > 0) { + hash = (37 * hash) + SOURCE_URIS_FIELD_NUMBER; + hash = (53 * hash) + getSourceUrisList().hashCode(); + } hash = (37 * hash) + INVALID_ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInvalidRowCount()); hash = (37 * hash) + TIMESTAMP_OUTSIDE_RETENTION_ROWS_COUNT_FIELD_NUMBER; @@ -451,6 +530,8 @@ public Builder clear() { importedFeatureValueCount_ = 0L; + sourceUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); invalidRowCount_ = 0L; timestampOutsideRetentionRowsCount_ = 0L; @@ -485,6 +566,7 @@ public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata result = new com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata(this); + int from_bitField0_ = bitField0_; if (genericMetadataBuilder_ == null) { result.genericMetadata_ = genericMetadata_; } else { @@ -492,6 +574,11 @@ public com.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata } result.importedEntityCount_ = importedEntityCount_; result.importedFeatureValueCount_ = importedFeatureValueCount_; + if (((bitField0_ & 0x00000001) != 0)) { + sourceUris_ = sourceUris_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sourceUris_ = sourceUris_; result.invalidRowCount_ = invalidRowCount_; result.timestampOutsideRetentionRowsCount_ = timestampOutsideRetentionRowsCount_; onBuilt(); @@ -557,6 +644,16 @@ public Builder mergeFrom( if (other.getImportedFeatureValueCount() != 0L) { setImportedFeatureValueCount(other.getImportedFeatureValueCount()); } + if (!other.sourceUris_.isEmpty()) { + if (sourceUris_.isEmpty()) { + sourceUris_ = other.sourceUris_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSourceUrisIsMutable(); + sourceUris_.addAll(other.sourceUris_); + } + onChanged(); + } if (other.getInvalidRowCount() != 0L) { setInvalidRowCount(other.getInvalidRowCount()); } @@ -607,6 +704,13 @@ public Builder mergeFrom( break; } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSourceUrisIsMutable(); + sourceUris_.add(s); + break; + } // case 34 case 48: { invalidRowCount_ = input.readInt64(); @@ -636,6 +740,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, @@ -931,6 +1037,174 @@ public Builder clearImportedFeatureValueCount() { return this; } + private com.google.protobuf.LazyStringList sourceUris_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSourceUrisIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sourceUris_ = new com.google.protobuf.LazyStringArrayList(sourceUris_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @return A list containing the sourceUris. + */ + public com.google.protobuf.ProtocolStringList getSourceUrisList() { + return sourceUris_.getUnmodifiableView(); + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @return The count of sourceUris. + */ + public int getSourceUrisCount() { + return sourceUris_.size(); + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @param index The index of the element to return. + * @return The sourceUris at the given index. + */ + public java.lang.String getSourceUris(int index) { + return sourceUris_.get(index); + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @param index The index of the value to return. + * @return The bytes of the sourceUris at the given index. + */ + public com.google.protobuf.ByteString getSourceUrisBytes(int index) { + return sourceUris_.getByteString(index); + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @param index The index to set the value at. + * @param value The sourceUris to set. + * @return This builder for chaining. + */ + public Builder setSourceUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceUrisIsMutable(); + sourceUris_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @param value The sourceUris to add. + * @return This builder for chaining. + */ + public Builder addSourceUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceUrisIsMutable(); + sourceUris_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @param values The sourceUris to add. + * @return This builder for chaining. + */ + public Builder addAllSourceUris(java.lang.Iterable values) { + ensureSourceUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceUris_); + onChanged(); + return this; + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @return This builder for chaining. + */ + public Builder clearSourceUris() { + sourceUris_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The source URI from where Feature values are imported.
+     * 
+ * + * repeated string source_uris = 4; + * + * @param value The bytes of the sourceUris to add. + * @return This builder for chaining. + */ + public Builder addSourceUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSourceUrisIsMutable(); + sourceUris_.add(value); + onChanged(); + return this; + } + private long invalidRowCount_; /** * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadataOrBuilder.java index a1539413d1fb..3df45e06d1a7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportFeatureValuesOperationMetadataOrBuilder.java @@ -85,6 +85,57 @@ public interface ImportFeatureValuesOperationMetadataOrBuilder */ long getImportedFeatureValueCount(); + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @return A list containing the sourceUris. + */ + java.util.List getSourceUrisList(); + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @return The count of sourceUris. + */ + int getSourceUrisCount(); + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @param index The index of the element to return. + * @return The sourceUris at the given index. + */ + java.lang.String getSourceUris(int index); + /** + * + * + *
+   * The source URI from where Feature values are imported.
+   * 
+ * + * repeated string source_uris = 4; + * + * @param index The index of the value to return. + * @return The bytes of the sourceUris at the given index. + */ + com.google.protobuf.ByteString getSourceUrisBytes(int index); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java index aeb3b296d407..5d198a2f7393 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java @@ -307,7 +307,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The display name of the Index.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -332,7 +332,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The display name of the Index.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -1803,7 +1803,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The display name of the Index.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1827,7 +1827,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The display name of the Index.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1851,7 +1851,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The display name of the Index.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1874,7 +1874,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The display name of the Index.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -1893,7 +1893,7 @@ public Builder clearDisplayName() { * *
      * Required. The display name of the Index.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java index 001bfbdeca46..3876c8944c16 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexOrBuilder.java @@ -53,7 +53,7 @@ public interface IndexOrBuilder * *
    * Required. The display name of the Index.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface IndexOrBuilder * *
    * Required. The display name of the Index.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java index bec84efac456..062eb797dd8e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java @@ -2043,7 +2043,7 @@ public com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder() { * *
    * Required. The display name of the Model.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -2068,7 +2068,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The display name of the Model.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -5894,7 +5894,7 @@ public com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder() { * *
      * Required. The display name of the Model.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5918,7 +5918,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The display name of the Model.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5942,7 +5942,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The display name of the Model.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5965,7 +5965,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The display name of the Model.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5984,7 +5984,7 @@ public Builder clearDisplayName() { * *
      * Required. The display name of the Model.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java index f4e1c7195a2e..27ae152cdf4c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJob.java @@ -1422,7 +1422,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a ModelDeploymentMonitoringJob.
    * 
@@ -1448,7 +1448,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a ModelDeploymentMonitoringJob.
    * 
@@ -3974,7 +3974,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a ModelDeploymentMonitoringJob.
      * 
@@ -3999,7 +3999,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a ModelDeploymentMonitoringJob.
      * 
@@ -4024,7 +4024,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a ModelDeploymentMonitoringJob.
      * 
@@ -4048,7 +4048,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a ModelDeploymentMonitoringJob.
      * 
@@ -4068,7 +4068,7 @@ public Builder clearDisplayName() { * *
      * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * Display name of a ModelDeploymentMonitoringJob.
      * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java index bba0f8a9eae7..b3d6cf61a382 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelDeploymentMonitoringJobOrBuilder.java @@ -53,7 +53,7 @@ public interface ModelDeploymentMonitoringJobOrBuilder * *
    * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a ModelDeploymentMonitoringJob.
    * 
@@ -68,7 +68,7 @@ public interface ModelDeploymentMonitoringJobOrBuilder * *
    * Required. The user-defined name of the ModelDeploymentMonitoringJob.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * Display name of a ModelDeploymentMonitoringJob.
    * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java index a5fdb8d05897..02ec708edb5d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java @@ -253,7 +253,7 @@ public interface ModelOrBuilder * *
    * Required. The display name of the Model.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -267,7 +267,7 @@ public interface ModelOrBuilder * *
    * Required. The display name of the Model.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java index b056eca42b2d..325a1e776122 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java @@ -3381,7 +3381,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * The display name of the Pipeline.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -3406,7 +3406,7 @@ public java.lang.String getDisplayName() { * *
    * The display name of the Pipeline.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -4102,8 +4102,8 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -4137,8 +4137,8 @@ public java.lang.String getNetwork() { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -5220,7 +5220,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * The display name of the Pipeline.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5244,7 +5244,7 @@ public java.lang.String getDisplayName() { * *
      * The display name of the Pipeline.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5268,7 +5268,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * The display name of the Pipeline.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5291,7 +5291,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * The display name of the Pipeline.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -5310,7 +5310,7 @@ public Builder clearDisplayName() { * *
      * The display name of the Pipeline.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * 
* @@ -7503,8 +7503,8 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -7537,8 +7537,8 @@ public java.lang.String getNetwork() { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -7571,8 +7571,8 @@ public com.google.protobuf.ByteString getNetworkBytes() { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -7604,8 +7604,8 @@ public Builder setNetwork(java.lang.String value) { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -7633,8 +7633,8 @@ public Builder clearNetwork() { * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java index 1427eeb515a7..12790de914a1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java @@ -53,7 +53,7 @@ public interface PipelineJobOrBuilder * *
    * The display name of the Pipeline.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -67,7 +67,7 @@ public interface PipelineJobOrBuilder * *
    * The display name of the Pipeline.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * 
* @@ -575,8 +575,8 @@ java.lang.String getLabelsOrDefault( * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * @@ -599,8 +599,8 @@ java.lang.String getLabelsOrDefault( * Where {project} is a project number, as in `12345`, and {network} is a * network name. * Private services access must already be configured for the network. - * Pipeline job will apply the network configuration to the GCP resources - * being launched, if applied, such as Vertex AI + * Pipeline job will apply the network configuration to the Google Cloud + * resources being launched, if applied, such as Vertex AI * Training or Dataflow job. If left unspecified, the workload is not peered * with any network. * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryName.java new file mode 100644 index 000000000000..dd311018c276 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryName.java @@ -0,0 +1,261 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SavedQueryName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATASET_SAVED_QUERY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dataset; + private final String savedQuery; + + @Deprecated + protected SavedQueryName() { + project = null; + location = null; + dataset = null; + savedQuery = null; + } + + private SavedQueryName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataset = Preconditions.checkNotNull(builder.getDataset()); + savedQuery = Preconditions.checkNotNull(builder.getSavedQuery()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataset() { + return dataset; + } + + public String getSavedQuery() { + return savedQuery; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SavedQueryName of( + String project, String location, String dataset, String savedQuery) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataset(dataset) + .setSavedQuery(savedQuery) + .build(); + } + + public static String format(String project, String location, String dataset, String savedQuery) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataset(dataset) + .setSavedQuery(savedQuery) + .build() + .toString(); + } + + public static SavedQueryName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DATASET_SAVED_QUERY.validatedMatch( + formattedString, "SavedQueryName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("dataset"), + matchMap.get("saved_query")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SavedQueryName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATASET_SAVED_QUERY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataset != null) { + fieldMapBuilder.put("dataset", dataset); + } + if (savedQuery != null) { + fieldMapBuilder.put("saved_query", savedQuery); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DATASET_SAVED_QUERY.instantiate( + "project", project, "location", location, "dataset", dataset, "saved_query", savedQuery); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SavedQueryName that = ((SavedQueryName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataset, that.dataset) + && Objects.equals(this.savedQuery, that.savedQuery); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataset); + h *= 1000003; + h ^= Objects.hashCode(savedQuery); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}. + */ + public static class Builder { + private String project; + private String location; + private String dataset; + private String savedQuery; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataset() { + return dataset; + } + + public String getSavedQuery() { + return savedQuery; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataset(String dataset) { + this.dataset = dataset; + return this; + } + + public Builder setSavedQuery(String savedQuery) { + this.savedQuery = savedQuery; + return this; + } + + private Builder(SavedQueryName savedQueryName) { + this.project = savedQueryName.project; + this.location = savedQueryName.location; + this.dataset = savedQueryName.dataset; + this.savedQuery = savedQueryName.savedQuery; + } + + public SavedQueryName build() { + return new SavedQueryName(this); + } + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java new file mode 100644 index 000000000000..9e51195b97ed --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java @@ -0,0 +1,4268 @@ +/* + * 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/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SearchDataItemsRequest} + */ +public final class SearchDataItemsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SearchDataItemsRequest) + SearchDataItemsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchDataItemsRequest.newBuilder() to construct. + private SearchDataItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchDataItemsRequest() { + dataset_ = ""; + savedQuery_ = ""; + dataLabelingJob_ = ""; + dataItemFilter_ = ""; + annotationsFilter_ = ""; + annotationFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; + orderBy_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchDataItemsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.class, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.Builder.class); + } + + public interface OrderByAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Saved query of the Annotation. Only Annotations belong to this saved
+     * query will be considered for ordering.
+     * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The savedQuery. + */ + java.lang.String getSavedQuery(); + /** + * + * + *
+     * Required. Saved query of the Annotation. Only Annotations belong to this saved
+     * query will be considered for ordering.
+     * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for savedQuery. + */ + com.google.protobuf.ByteString getSavedQueryBytes(); + + /** + * + * + *
+     * A comma-separated list of annotation fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending. Must also
+     * specify saved_query.
+     * 
+ * + * string order_by = 2; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+     * A comma-separated list of annotation fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending. Must also
+     * specify saved_query.
+     * 
+ * + * string order_by = 2; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + } + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation} + */ + public static final class OrderByAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) + OrderByAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use OrderByAnnotation.newBuilder() to construct. + private OrderByAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OrderByAnnotation() { + savedQuery_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OrderByAnnotation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_OrderByAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_OrderByAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.class, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.Builder + .class); + } + + public static final int SAVED_QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object savedQuery_; + /** + * + * + *
+     * Required. Saved query of the Annotation. Only Annotations belong to this saved
+     * query will be considered for ordering.
+     * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The savedQuery. + */ + @java.lang.Override + public java.lang.String getSavedQuery() { + java.lang.Object ref = savedQuery_; + 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(); + savedQuery_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Saved query of the Annotation. Only Annotations belong to this saved
+     * query will be considered for ordering.
+     * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for savedQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSavedQueryBytes() { + java.lang.Object ref = savedQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + savedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 2; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+     * A comma-separated list of annotation fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending. Must also
+     * specify saved_query.
+     * 
+ * + * string order_by = 2; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+     * A comma-separated list of annotation fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending. Must also
+     * specify saved_query.
+     * 
+ * + * string order_by = 2; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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(savedQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, savedQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, savedQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation other = + (com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) obj; + + if (!getSavedQuery().equals(other.getSavedQuery())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SAVED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSavedQuery().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + 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.SearchDataItemsRequest.OrderByAnnotation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + 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.SearchDataItemsRequest.OrderByAnnotation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + 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.SearchDataItemsRequest.OrderByAnnotation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + 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.SearchDataItemsRequest.OrderByAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + 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.SearchDataItemsRequest.OrderByAnnotation + 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.SearchDataItemsRequest.OrderByAnnotation + 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.SearchDataItemsRequest.OrderByAnnotation 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; + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_OrderByAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_OrderByAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.class, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + savedQuery_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_OrderByAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation build() { + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + buildPartial() { + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation result = + new com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation(this); + result.savedQuery_ = savedQuery_; + result.orderBy_ = orderBy_; + 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.SearchDataItemsRequest.OrderByAnnotation) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation other) { + if (other + == com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance()) return this; + if (!other.getSavedQuery().isEmpty()) { + savedQuery_ = other.savedQuery_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + savedQuery_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object savedQuery_ = ""; + /** + * + * + *
+       * Required. Saved query of the Annotation. Only Annotations belong to this saved
+       * query will be considered for ordering.
+       * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The savedQuery. + */ + public java.lang.String getSavedQuery() { + java.lang.Object ref = savedQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + savedQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Saved query of the Annotation. Only Annotations belong to this saved
+       * query will be considered for ordering.
+       * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for savedQuery. + */ + public com.google.protobuf.ByteString getSavedQueryBytes() { + java.lang.Object ref = savedQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + savedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Saved query of the Annotation. Only Annotations belong to this saved
+       * query will be considered for ordering.
+       * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The savedQuery to set. + * @return This builder for chaining. + */ + public Builder setSavedQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + savedQuery_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Saved query of the Annotation. Only Annotations belong to this saved
+       * query will be considered for ordering.
+       * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSavedQuery() { + + savedQuery_ = getDefaultInstance().getSavedQuery(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Saved query of the Annotation. Only Annotations belong to this saved
+       * query will be considered for ordering.
+       * 
+ * + * string saved_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for savedQuery to set. + * @return This builder for chaining. + */ + public Builder setSavedQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + savedQuery_ = value; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+       * A comma-separated list of annotation fields to order by, sorted in
+       * ascending order. Use "desc" after a field name for descending. Must also
+       * specify saved_query.
+       * 
+ * + * string order_by = 2; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A comma-separated list of annotation fields to order by, sorted in
+       * ascending order. Use "desc" after a field name for descending. Must also
+       * specify saved_query.
+       * 
+ * + * string order_by = 2; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A comma-separated list of annotation fields to order by, sorted in
+       * ascending order. Use "desc" after a field name for descending. Must also
+       * specify saved_query.
+       * 
+ * + * string order_by = 2; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * A comma-separated list of annotation fields to order by, sorted in
+       * ascending order. Use "desc" after a field name for descending. Must also
+       * specify saved_query.
+       * 
+ * + * string order_by = 2; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+       * A comma-separated list of annotation fields to order by, sorted in
+       * ascending order. Use "desc" after a field name for descending. Must also
+       * specify saved_query.
+       * 
+ * + * string order_by = 2; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = 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.SearchDataItemsRequest.OrderByAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) + private static final com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest + .OrderByAnnotation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation(); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrderByAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int orderCase_ = 0; + private java.lang.Object order_; + + public enum OrderCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ORDER_BY_DATA_ITEM(12), + ORDER_BY_ANNOTATION(13), + ORDER_NOT_SET(0); + private final int value; + + private OrderCase(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 OrderCase valueOf(int value) { + return forNumber(value); + } + + public static OrderCase forNumber(int value) { + switch (value) { + case 12: + return ORDER_BY_DATA_ITEM; + case 13: + return ORDER_BY_ANNOTATION; + case 0: + return ORDER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OrderCase getOrderCase() { + return OrderCase.forNumber(orderCase_); + } + + public static final int ORDER_BY_DATA_ITEM_FIELD_NUMBER = 12; + /** + * + * + *
+   * A comma-separated list of data item fields to order by, sorted in
+   * ascending order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by_data_item = 12; + * + * @return Whether the orderByDataItem field is set. + */ + public boolean hasOrderByDataItem() { + return orderCase_ == 12; + } + /** + * + * + *
+   * A comma-separated list of data item fields to order by, sorted in
+   * ascending order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by_data_item = 12; + * + * @return The orderByDataItem. + */ + public java.lang.String getOrderByDataItem() { + java.lang.Object ref = ""; + if (orderCase_ == 12) { + ref = order_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (orderCase_ == 12) { + order_ = s; + } + return s; + } + } + /** + * + * + *
+   * A comma-separated list of data item fields to order by, sorted in
+   * ascending order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by_data_item = 12; + * + * @return The bytes for orderByDataItem. + */ + public com.google.protobuf.ByteString getOrderByDataItemBytes() { + java.lang.Object ref = ""; + if (orderCase_ == 12) { + ref = order_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (orderCase_ == 12) { + order_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_ANNOTATION_FIELD_NUMBER = 13; + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + * + * @return Whether the orderByAnnotation field is set. + */ + @java.lang.Override + public boolean hasOrderByAnnotation() { + return orderCase_ == 13; + } + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + * + * @return The orderByAnnotation. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + getOrderByAnnotation() { + if (orderCase_ == 13) { + return (com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) order_; + } + return com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotationOrBuilder + getOrderByAnnotationOrBuilder() { + if (orderCase_ == 13) { + return (com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) order_; + } + return com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private volatile java.lang.Object dataset_; + /** + * + * + *
+   * Required. The resource name of the Dataset from which to search DataItems.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataset. + */ + @java.lang.Override + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + 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(); + dataset_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Dataset from which to search DataItems.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAVED_QUERY_FIELD_NUMBER = 2; + private volatile java.lang.Object savedQuery_; + /** + * + * + *
+   * The resource name of a SavedQuery(annotation set in UI).
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+   * All of the search will be done in the context of this SavedQuery.
+   * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=414 + * @return The savedQuery. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getSavedQuery() { + java.lang.Object ref = savedQuery_; + 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(); + savedQuery_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of a SavedQuery(annotation set in UI).
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+   * All of the search will be done in the context of this SavedQuery.
+   * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=414 + * @return The bytes for savedQuery. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getSavedQueryBytes() { + java.lang.Object ref = savedQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + savedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_LABELING_JOB_FIELD_NUMBER = 3; + private volatile java.lang.Object dataLabelingJob_; + /** + * + * + *
+   * The resource name of a DataLabelingJob.
+   * Format:
+   * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+   * If this field is set, all of the search will be done in the context of
+   * this DataLabelingJob.
+   * 
+ * + * string data_labeling_job = 3; + * + * @return The dataLabelingJob. + */ + @java.lang.Override + public java.lang.String getDataLabelingJob() { + java.lang.Object ref = dataLabelingJob_; + 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(); + dataLabelingJob_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of a DataLabelingJob.
+   * Format:
+   * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+   * If this field is set, all of the search will be done in the context of
+   * this DataLabelingJob.
+   * 
+ * + * string data_labeling_job = 3; + * + * @return The bytes for dataLabelingJob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataLabelingJobBytes() { + java.lang.Object ref = dataLabelingJob_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataLabelingJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_ITEM_FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object dataItemFilter_; + /** + * + * + *
+   * An expression for filtering the DataItem that will be returned.
+   *   * `data_item_id` - for = or !=.
+   *   * `labeled` - for = or !=.
+   *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+   *     have at least one annotation with annotation_spec_id =
+   *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+   * For example:
+   * * `data_item=1`
+   * * `has_annotation(5)`
+   * 
+ * + * string data_item_filter = 4; + * + * @return The dataItemFilter. + */ + @java.lang.Override + public java.lang.String getDataItemFilter() { + java.lang.Object ref = dataItemFilter_; + 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(); + dataItemFilter_ = s; + return s; + } + } + /** + * + * + *
+   * An expression for filtering the DataItem that will be returned.
+   *   * `data_item_id` - for = or !=.
+   *   * `labeled` - for = or !=.
+   *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+   *     have at least one annotation with annotation_spec_id =
+   *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+   * For example:
+   * * `data_item=1`
+   * * `has_annotation(5)`
+   * 
+ * + * string data_item_filter = 4; + * + * @return The bytes for dataItemFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataItemFilterBytes() { + java.lang.Object ref = dataItemFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataItemFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FILTER_FIELD_NUMBER = 5; + private volatile java.lang.Object annotationsFilter_; + /** + * + * + *
+   * An expression for filtering the Annotations that will be returned per
+   * DataItem.
+   *   * `annotation_spec_id` - for = or !=.
+   * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=445 + * @return The annotationsFilter. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getAnnotationsFilter() { + java.lang.Object ref = annotationsFilter_; + 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(); + annotationsFilter_ = s; + return s; + } + } + /** + * + * + *
+   * An expression for filtering the Annotations that will be returned per
+   * DataItem.
+   *   * `annotation_spec_id` - for = or !=.
+   * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=445 + * @return The bytes for annotationsFilter. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getAnnotationsFilterBytes() { + java.lang.Object ref = annotationsFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + annotationsFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATION_FILTERS_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList annotationFilters_; + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @return A list containing the annotationFilters. + */ + public com.google.protobuf.ProtocolStringList getAnnotationFiltersList() { + return annotationFilters_; + } + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @return The count of annotationFilters. + */ + public int getAnnotationFiltersCount() { + return annotationFilters_.size(); + } + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index of the element to return. + * @return The annotationFilters at the given index. + */ + public java.lang.String getAnnotationFilters(int index) { + return annotationFilters_.get(index); + } + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index of the value to return. + * @return The bytes of the annotationFilters at the given index. + */ + public com.google.protobuf.ByteString getAnnotationFiltersBytes(int index) { + return annotationFilters_.getByteString(index); + } + + public static final int FIELD_MASK_FIELD_NUMBER = 6; + private com.google.protobuf.FieldMask fieldMask_; + /** + * + * + *
+   * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + * + * @return Whether the fieldMask field is set. + */ + @java.lang.Override + public boolean hasFieldMask() { + return fieldMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + * + * @return The fieldMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getFieldMask() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + /** + * + * + *
+   * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + return getFieldMask(); + } + + public static final int ANNOTATIONS_LIMIT_FIELD_NUMBER = 7; + private int annotationsLimit_; + /** + * + * + *
+   * If set, only up to this many of Annotations will be returned per
+   * DataItemView. The maximum value is 1000. If not set, the maximum value will
+   * be used.
+   * 
+ * + * int32 annotations_limit = 7; + * + * @return The annotationsLimit. + */ + @java.lang.Override + public int getAnnotationsLimit() { + return annotationsLimit_; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 8; + private int pageSize_; + /** + * + * + *
+   * Requested page size. Server may return fewer results than requested.
+   * Default and maximum page size is 100.
+   * 
+ * + * int32 page_size = 8; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 9; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=468 + * @return The orderBy. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=468 + * @return The bytes for orderBy. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 10; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A token identifying a page of results for the server to return
+   * Typically obtained via
+   * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.next_page_token] of the previous
+   * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems] call.
+   * 
+ * + * string page_token = 10; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results for the server to return
+   * Typically obtained via
+   * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.next_page_token] of the previous
+   * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems] call.
+   * 
+ * + * string page_token = 10; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, savedQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataLabelingJob_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dataLabelingJob_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataItemFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dataItemFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationsFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, annotationsFilter_); + } + if (fieldMask_ != null) { + output.writeMessage(6, getFieldMask()); + } + if (annotationsLimit_ != 0) { + output.writeInt32(7, annotationsLimit_); + } + if (pageSize_ != 0) { + output.writeInt32(8, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pageToken_); + } + for (int i = 0; i < annotationFilters_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, annotationFilters_.getRaw(i)); + } + if (orderCase_ == 12) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, order_); + } + if (orderCase_ == 13) { + output.writeMessage( + 13, + (com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) order_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataset_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, savedQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataLabelingJob_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dataLabelingJob_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataItemFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dataItemFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationsFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, annotationsFilter_); + } + if (fieldMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getFieldMask()); + } + if (annotationsLimit_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, annotationsLimit_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < annotationFilters_.size(); i++) { + dataSize += computeStringSizeNoTag(annotationFilters_.getRaw(i)); + } + size += dataSize; + size += 1 * getAnnotationFiltersList().size(); + } + if (orderCase_ == 12) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, order_); + } + if (orderCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, + (com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) + order_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest other = + (com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest) obj; + + if (!getDataset().equals(other.getDataset())) return false; + if (!getSavedQuery().equals(other.getSavedQuery())) return false; + if (!getDataLabelingJob().equals(other.getDataLabelingJob())) return false; + if (!getDataItemFilter().equals(other.getDataItemFilter())) return false; + if (!getAnnotationsFilter().equals(other.getAnnotationsFilter())) return false; + if (!getAnnotationFiltersList().equals(other.getAnnotationFiltersList())) return false; + if (hasFieldMask() != other.hasFieldMask()) return false; + if (hasFieldMask()) { + if (!getFieldMask().equals(other.getFieldMask())) return false; + } + if (getAnnotationsLimit() != other.getAnnotationsLimit()) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderCase().equals(other.getOrderCase())) return false; + switch (orderCase_) { + case 12: + if (!getOrderByDataItem().equals(other.getOrderByDataItem())) return false; + break; + case 13: + if (!getOrderByAnnotation().equals(other.getOrderByAnnotation())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + hash = (37 * hash) + SAVED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSavedQuery().hashCode(); + hash = (37 * hash) + DATA_LABELING_JOB_FIELD_NUMBER; + hash = (53 * hash) + getDataLabelingJob().hashCode(); + hash = (37 * hash) + DATA_ITEM_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDataItemFilter().hashCode(); + hash = (37 * hash) + ANNOTATIONS_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationsFilter().hashCode(); + if (getAnnotationFiltersCount() > 0) { + hash = (37 * hash) + ANNOTATION_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationFiltersList().hashCode(); + } + if (hasFieldMask()) { + hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getFieldMask().hashCode(); + } + hash = (37 * hash) + ANNOTATIONS_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationsLimit(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + switch (orderCase_) { + case 12: + hash = (37 * hash) + ORDER_BY_DATA_ITEM_FIELD_NUMBER; + hash = (53 * hash) + getOrderByDataItem().hashCode(); + break; + case 13: + hash = (37 * hash) + ORDER_BY_ANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + getOrderByAnnotation().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest 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.SearchDataItemsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest 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.SearchDataItemsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest 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.SearchDataItemsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest 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.SearchDataItemsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest 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.SearchDataItemsRequest 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.SearchDataItemsRequest 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.SearchDataItemsRequest 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 [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SearchDataItemsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SearchDataItemsRequest) + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.class, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (orderByAnnotationBuilder_ != null) { + orderByAnnotationBuilder_.clear(); + } + dataset_ = ""; + + savedQuery_ = ""; + + dataLabelingJob_ = ""; + + dataItemFilter_ = ""; + + annotationsFilter_ = ""; + + annotationFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + annotationsLimit_ = 0; + + pageSize_ = 0; + + orderBy_ = ""; + + pageToken_ = ""; + + orderCase_ = 0; + order_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest build() { + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest result = + new com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest(this); + int from_bitField0_ = bitField0_; + if (orderCase_ == 12) { + result.order_ = order_; + } + if (orderCase_ == 13) { + if (orderByAnnotationBuilder_ == null) { + result.order_ = order_; + } else { + result.order_ = orderByAnnotationBuilder_.build(); + } + } + result.dataset_ = dataset_; + result.savedQuery_ = savedQuery_; + result.dataLabelingJob_ = dataLabelingJob_; + result.dataItemFilter_ = dataItemFilter_; + result.annotationsFilter_ = annotationsFilter_; + if (((bitField0_ & 0x00000001) != 0)) { + annotationFilters_ = annotationFilters_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.annotationFilters_ = annotationFilters_; + if (fieldMaskBuilder_ == null) { + result.fieldMask_ = fieldMask_; + } else { + result.fieldMask_ = fieldMaskBuilder_.build(); + } + result.annotationsLimit_ = annotationsLimit_; + result.pageSize_ = pageSize_; + result.orderBy_ = orderBy_; + result.pageToken_ = pageToken_; + result.orderCase_ = orderCase_; + 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.SearchDataItemsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.getDefaultInstance()) + return this; + if (!other.getDataset().isEmpty()) { + dataset_ = other.dataset_; + onChanged(); + } + if (!other.getSavedQuery().isEmpty()) { + savedQuery_ = other.savedQuery_; + onChanged(); + } + if (!other.getDataLabelingJob().isEmpty()) { + dataLabelingJob_ = other.dataLabelingJob_; + onChanged(); + } + if (!other.getDataItemFilter().isEmpty()) { + dataItemFilter_ = other.dataItemFilter_; + onChanged(); + } + if (!other.getAnnotationsFilter().isEmpty()) { + annotationsFilter_ = other.annotationsFilter_; + onChanged(); + } + if (!other.annotationFilters_.isEmpty()) { + if (annotationFilters_.isEmpty()) { + annotationFilters_ = other.annotationFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAnnotationFiltersIsMutable(); + annotationFilters_.addAll(other.annotationFilters_); + } + onChanged(); + } + if (other.hasFieldMask()) { + mergeFieldMask(other.getFieldMask()); + } + if (other.getAnnotationsLimit() != 0) { + setAnnotationsLimit(other.getAnnotationsLimit()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + switch (other.getOrderCase()) { + case ORDER_BY_DATA_ITEM: + { + orderCase_ = 12; + order_ = other.order_; + onChanged(); + break; + } + case ORDER_BY_ANNOTATION: + { + mergeOrderByAnnotation(other.getOrderByAnnotation()); + break; + } + case ORDER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dataset_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + savedQuery_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + dataLabelingJob_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + dataItemFilter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + annotationsFilter_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + input.readMessage(getFieldMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 56: + { + annotationsLimit_ = input.readInt32(); + + break; + } // case 56 + case 64: + { + pageSize_ = input.readInt32(); + + break; + } // case 64 + case 74: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 82: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAnnotationFiltersIsMutable(); + annotationFilters_.add(s); + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + orderCase_ = 12; + order_ = s; + break; + } // case 98 + case 106: + { + input.readMessage( + getOrderByAnnotationFieldBuilder().getBuilder(), extensionRegistry); + orderCase_ = 13; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int orderCase_ = 0; + private java.lang.Object order_; + + public OrderCase getOrderCase() { + return OrderCase.forNumber(orderCase_); + } + + public Builder clearOrder() { + orderCase_ = 0; + order_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * A comma-separated list of data item fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by_data_item = 12; + * + * @return Whether the orderByDataItem field is set. + */ + @java.lang.Override + public boolean hasOrderByDataItem() { + return orderCase_ == 12; + } + /** + * + * + *
+     * A comma-separated list of data item fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by_data_item = 12; + * + * @return The orderByDataItem. + */ + @java.lang.Override + public java.lang.String getOrderByDataItem() { + java.lang.Object ref = ""; + if (orderCase_ == 12) { + ref = order_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (orderCase_ == 12) { + order_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A comma-separated list of data item fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by_data_item = 12; + * + * @return The bytes for orderByDataItem. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByDataItemBytes() { + java.lang.Object ref = ""; + if (orderCase_ == 12) { + ref = order_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (orderCase_ == 12) { + order_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A comma-separated list of data item fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by_data_item = 12; + * + * @param value The orderByDataItem to set. + * @return This builder for chaining. + */ + public Builder setOrderByDataItem(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderCase_ = 12; + order_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A comma-separated list of data item fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by_data_item = 12; + * + * @return This builder for chaining. + */ + public Builder clearOrderByDataItem() { + if (orderCase_ == 12) { + orderCase_ = 0; + order_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * A comma-separated list of data item fields to order by, sorted in
+     * ascending order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by_data_item = 12; + * + * @param value The bytes for orderByDataItem to set. + * @return This builder for chaining. + */ + public Builder setOrderByDataItemBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderCase_ = 12; + order_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.Builder, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotationOrBuilder> + orderByAnnotationBuilder_; + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + * + * @return Whether the orderByAnnotation field is set. + */ + @java.lang.Override + public boolean hasOrderByAnnotation() { + return orderCase_ == 13; + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + * + * @return The orderByAnnotation. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + getOrderByAnnotation() { + if (orderByAnnotationBuilder_ == null) { + if (orderCase_ == 13) { + return (com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) + order_; + } + return com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } else { + if (orderCase_ == 13) { + return orderByAnnotationBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + public Builder setOrderByAnnotation( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation value) { + if (orderByAnnotationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + order_ = value; + onChanged(); + } else { + orderByAnnotationBuilder_.setMessage(value); + } + orderCase_ = 13; + return this; + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + public Builder setOrderByAnnotation( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.Builder + builderForValue) { + if (orderByAnnotationBuilder_ == null) { + order_ = builderForValue.build(); + onChanged(); + } else { + orderByAnnotationBuilder_.setMessage(builderForValue.build()); + } + orderCase_ = 13; + return this; + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + public Builder mergeOrderByAnnotation( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation value) { + if (orderByAnnotationBuilder_ == null) { + if (orderCase_ == 13 + && order_ + != com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance()) { + order_ = + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) + order_) + .mergeFrom(value) + .buildPartial(); + } else { + order_ = value; + } + onChanged(); + } else { + if (orderCase_ == 13) { + orderByAnnotationBuilder_.mergeFrom(value); + } else { + orderByAnnotationBuilder_.setMessage(value); + } + } + orderCase_ = 13; + return this; + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + public Builder clearOrderByAnnotation() { + if (orderByAnnotationBuilder_ == null) { + if (orderCase_ == 13) { + orderCase_ = 0; + order_ = null; + onChanged(); + } + } else { + if (orderCase_ == 13) { + orderCase_ = 0; + order_ = null; + } + orderByAnnotationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.Builder + getOrderByAnnotationBuilder() { + return getOrderByAnnotationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotationOrBuilder + getOrderByAnnotationOrBuilder() { + if ((orderCase_ == 13) && (orderByAnnotationBuilder_ != null)) { + return orderByAnnotationBuilder_.getMessageOrBuilder(); + } else { + if (orderCase_ == 13) { + return (com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) + order_; + } + return com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Expression that allows ranking results based on annotation's property.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.Builder, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotationOrBuilder> + getOrderByAnnotationFieldBuilder() { + if (orderByAnnotationBuilder_ == null) { + if (!(orderCase_ == 13)) { + order_ = + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + .getDefaultInstance(); + } + orderByAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + .Builder, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest + .OrderByAnnotationOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation) + order_, + getParentForChildren(), + isClean()); + order_ = null; + } + orderCase_ = 13; + onChanged(); + ; + return orderByAnnotationBuilder_; + } + + private java.lang.Object dataset_ = ""; + /** + * + * + *
+     * Required. The resource name of the Dataset from which to search DataItems.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataset. + */ + public java.lang.String getDataset() { + java.lang.Object ref = dataset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset from which to search DataItems.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataset. + */ + public com.google.protobuf.ByteString getDatasetBytes() { + java.lang.Object ref = dataset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset from which to search DataItems.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataset to set. + * @return This builder for chaining. + */ + public Builder setDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset from which to search DataItems.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataset() { + + dataset_ = getDefaultInstance().getDataset(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset from which to search DataItems.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataset to set. + * @return This builder for chaining. + */ + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataset_ = value; + onChanged(); + return this; + } + + private java.lang.Object savedQuery_ = ""; + /** + * + * + *
+     * The resource name of a SavedQuery(annotation set in UI).
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+     * All of the search will be done in the context of this SavedQuery.
+     * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=414 + * @return The savedQuery. + */ + @java.lang.Deprecated + public java.lang.String getSavedQuery() { + java.lang.Object ref = savedQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + savedQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of a SavedQuery(annotation set in UI).
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+     * All of the search will be done in the context of this SavedQuery.
+     * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=414 + * @return The bytes for savedQuery. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getSavedQueryBytes() { + java.lang.Object ref = savedQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + savedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of a SavedQuery(annotation set in UI).
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+     * All of the search will be done in the context of this SavedQuery.
+     * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=414 + * @param value The savedQuery to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSavedQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + savedQuery_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of a SavedQuery(annotation set in UI).
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+     * All of the search will be done in the context of this SavedQuery.
+     * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=414 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearSavedQuery() { + + savedQuery_ = getDefaultInstance().getSavedQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of a SavedQuery(annotation set in UI).
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+     * All of the search will be done in the context of this SavedQuery.
+     * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=414 + * @param value The bytes for savedQuery to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSavedQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + savedQuery_ = value; + onChanged(); + return this; + } + + private java.lang.Object dataLabelingJob_ = ""; + /** + * + * + *
+     * The resource name of a DataLabelingJob.
+     * Format:
+     * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+     * If this field is set, all of the search will be done in the context of
+     * this DataLabelingJob.
+     * 
+ * + * string data_labeling_job = 3; + * + * @return The dataLabelingJob. + */ + public java.lang.String getDataLabelingJob() { + java.lang.Object ref = dataLabelingJob_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataLabelingJob_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of a DataLabelingJob.
+     * Format:
+     * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+     * If this field is set, all of the search will be done in the context of
+     * this DataLabelingJob.
+     * 
+ * + * string data_labeling_job = 3; + * + * @return The bytes for dataLabelingJob. + */ + public com.google.protobuf.ByteString getDataLabelingJobBytes() { + java.lang.Object ref = dataLabelingJob_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataLabelingJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of a DataLabelingJob.
+     * Format:
+     * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+     * If this field is set, all of the search will be done in the context of
+     * this DataLabelingJob.
+     * 
+ * + * string data_labeling_job = 3; + * + * @param value The dataLabelingJob to set. + * @return This builder for chaining. + */ + public Builder setDataLabelingJob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataLabelingJob_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of a DataLabelingJob.
+     * Format:
+     * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+     * If this field is set, all of the search will be done in the context of
+     * this DataLabelingJob.
+     * 
+ * + * string data_labeling_job = 3; + * + * @return This builder for chaining. + */ + public Builder clearDataLabelingJob() { + + dataLabelingJob_ = getDefaultInstance().getDataLabelingJob(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of a DataLabelingJob.
+     * Format:
+     * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+     * If this field is set, all of the search will be done in the context of
+     * this DataLabelingJob.
+     * 
+ * + * string data_labeling_job = 3; + * + * @param value The bytes for dataLabelingJob to set. + * @return This builder for chaining. + */ + public Builder setDataLabelingJobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataLabelingJob_ = value; + onChanged(); + return this; + } + + private java.lang.Object dataItemFilter_ = ""; + /** + * + * + *
+     * An expression for filtering the DataItem that will be returned.
+     *   * `data_item_id` - for = or !=.
+     *   * `labeled` - for = or !=.
+     *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+     *     have at least one annotation with annotation_spec_id =
+     *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+     * For example:
+     * * `data_item=1`
+     * * `has_annotation(5)`
+     * 
+ * + * string data_item_filter = 4; + * + * @return The dataItemFilter. + */ + public java.lang.String getDataItemFilter() { + java.lang.Object ref = dataItemFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataItemFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An expression for filtering the DataItem that will be returned.
+     *   * `data_item_id` - for = or !=.
+     *   * `labeled` - for = or !=.
+     *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+     *     have at least one annotation with annotation_spec_id =
+     *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+     * For example:
+     * * `data_item=1`
+     * * `has_annotation(5)`
+     * 
+ * + * string data_item_filter = 4; + * + * @return The bytes for dataItemFilter. + */ + public com.google.protobuf.ByteString getDataItemFilterBytes() { + java.lang.Object ref = dataItemFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataItemFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An expression for filtering the DataItem that will be returned.
+     *   * `data_item_id` - for = or !=.
+     *   * `labeled` - for = or !=.
+     *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+     *     have at least one annotation with annotation_spec_id =
+     *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+     * For example:
+     * * `data_item=1`
+     * * `has_annotation(5)`
+     * 
+ * + * string data_item_filter = 4; + * + * @param value The dataItemFilter to set. + * @return This builder for chaining. + */ + public Builder setDataItemFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataItemFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An expression for filtering the DataItem that will be returned.
+     *   * `data_item_id` - for = or !=.
+     *   * `labeled` - for = or !=.
+     *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+     *     have at least one annotation with annotation_spec_id =
+     *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+     * For example:
+     * * `data_item=1`
+     * * `has_annotation(5)`
+     * 
+ * + * string data_item_filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearDataItemFilter() { + + dataItemFilter_ = getDefaultInstance().getDataItemFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression for filtering the DataItem that will be returned.
+     *   * `data_item_id` - for = or !=.
+     *   * `labeled` - for = or !=.
+     *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+     *     have at least one annotation with annotation_spec_id =
+     *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+     * For example:
+     * * `data_item=1`
+     * * `has_annotation(5)`
+     * 
+ * + * string data_item_filter = 4; + * + * @param value The bytes for dataItemFilter to set. + * @return This builder for chaining. + */ + public Builder setDataItemFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataItemFilter_ = value; + onChanged(); + return this; + } + + private java.lang.Object annotationsFilter_ = ""; + /** + * + * + *
+     * An expression for filtering the Annotations that will be returned per
+     * DataItem.
+     *   * `annotation_spec_id` - for = or !=.
+     * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=445 + * @return The annotationsFilter. + */ + @java.lang.Deprecated + public java.lang.String getAnnotationsFilter() { + java.lang.Object ref = annotationsFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + annotationsFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An expression for filtering the Annotations that will be returned per
+     * DataItem.
+     *   * `annotation_spec_id` - for = or !=.
+     * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=445 + * @return The bytes for annotationsFilter. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getAnnotationsFilterBytes() { + java.lang.Object ref = annotationsFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + annotationsFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An expression for filtering the Annotations that will be returned per
+     * DataItem.
+     *   * `annotation_spec_id` - for = or !=.
+     * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=445 + * @param value The annotationsFilter to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setAnnotationsFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + annotationsFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An expression for filtering the Annotations that will be returned per
+     * DataItem.
+     *   * `annotation_spec_id` - for = or !=.
+     * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=445 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearAnnotationsFilter() { + + annotationsFilter_ = getDefaultInstance().getAnnotationsFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression for filtering the Annotations that will be returned per
+     * DataItem.
+     *   * `annotation_spec_id` - for = or !=.
+     * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=445 + * @param value The bytes for annotationsFilter to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setAnnotationsFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + annotationsFilter_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList annotationFilters_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAnnotationFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + annotationFilters_ = new com.google.protobuf.LazyStringArrayList(annotationFilters_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @return A list containing the annotationFilters. + */ + public com.google.protobuf.ProtocolStringList getAnnotationFiltersList() { + return annotationFilters_.getUnmodifiableView(); + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @return The count of annotationFilters. + */ + public int getAnnotationFiltersCount() { + return annotationFilters_.size(); + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index of the element to return. + * @return The annotationFilters at the given index. + */ + public java.lang.String getAnnotationFilters(int index) { + return annotationFilters_.get(index); + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index of the value to return. + * @return The bytes of the annotationFilters at the given index. + */ + public com.google.protobuf.ByteString getAnnotationFiltersBytes(int index) { + return annotationFilters_.getByteString(index); + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index to set the value at. + * @param value The annotationFilters to set. + * @return This builder for chaining. + */ + public Builder setAnnotationFilters(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationFiltersIsMutable(); + annotationFilters_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @param value The annotationFilters to add. + * @return This builder for chaining. + */ + public Builder addAnnotationFilters(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationFiltersIsMutable(); + annotationFilters_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @param values The annotationFilters to add. + * @return This builder for chaining. + */ + public Builder addAllAnnotationFilters(java.lang.Iterable values) { + ensureAnnotationFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationFilters_); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @return This builder for chaining. + */ + public Builder clearAnnotationFilters() { + annotationFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * An expression that specifies what Annotations will be returned per
+     * DataItem. Annotations satisfied either of the conditions will be returned.
+     *   * `annotation_spec_id` - for = or !=.
+     * Must specify `saved_query_id=` - saved query id that annotations should
+     * belong to.
+     * 
+ * + * repeated string annotation_filters = 11; + * + * @param value The bytes of the annotationFilters to add. + * @return This builder for chaining. + */ + public Builder addAnnotationFiltersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAnnotationFiltersIsMutable(); + annotationFilters_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask fieldMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + * + * @return Whether the fieldMask field is set. + */ + public boolean hasFieldMask() { + return fieldMaskBuilder_ != null || fieldMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + * + * @return The fieldMask. + */ + public com.google.protobuf.FieldMask getFieldMask() { + if (fieldMaskBuilder_ == null) { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } else { + return fieldMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldMask_ = value; + onChanged(); + } else { + fieldMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (fieldMaskBuilder_ == null) { + fieldMask_ = builderForValue.build(); + onChanged(); + } else { + fieldMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (fieldMask_ != null) { + fieldMask_ = + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + } else { + fieldMask_ = value; + } + onChanged(); + } else { + fieldMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + public Builder clearFieldMask() { + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + onChanged(); + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + + onChanged(); + return getFieldMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + if (fieldMaskBuilder_ != null) { + return fieldMaskBuilder_.getMessageOrBuilder(); + } else { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getFieldMaskFieldBuilder() { + if (fieldMaskBuilder_ == null) { + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); + fieldMask_ = null; + } + return fieldMaskBuilder_; + } + + private int annotationsLimit_; + /** + * + * + *
+     * If set, only up to this many of Annotations will be returned per
+     * DataItemView. The maximum value is 1000. If not set, the maximum value will
+     * be used.
+     * 
+ * + * int32 annotations_limit = 7; + * + * @return The annotationsLimit. + */ + @java.lang.Override + public int getAnnotationsLimit() { + return annotationsLimit_; + } + /** + * + * + *
+     * If set, only up to this many of Annotations will be returned per
+     * DataItemView. The maximum value is 1000. If not set, the maximum value will
+     * be used.
+     * 
+ * + * int32 annotations_limit = 7; + * + * @param value The annotationsLimit to set. + * @return This builder for chaining. + */ + public Builder setAnnotationsLimit(int value) { + + annotationsLimit_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set, only up to this many of Annotations will be returned per
+     * DataItemView. The maximum value is 1000. If not set, the maximum value will
+     * be used.
+     * 
+ * + * int32 annotations_limit = 7; + * + * @return This builder for chaining. + */ + public Builder clearAnnotationsLimit() { + + annotationsLimit_ = 0; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Requested page size. Server may return fewer results than requested.
+     * Default and maximum page size is 100.
+     * 
+ * + * int32 page_size = 8; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Requested page size. Server may return fewer results than requested.
+     * Default and maximum page size is 100.
+     * 
+ * + * int32 page_size = 8; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested page size. Server may return fewer results than requested.
+     * Default and maximum page size is 100.
+     * 
+ * + * int32 page_size = 8; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=468 + * @return The orderBy. + */ + @java.lang.Deprecated + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=468 + * @return The bytes for orderBy. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=468 + * @param value The orderBy to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=468 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * A comma-separated list of fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=468 + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results for the server to return
+     * Typically obtained via
+     * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.next_page_token] of the previous
+     * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems] call.
+     * 
+ * + * string page_token = 10; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results for the server to return
+     * Typically obtained via
+     * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.next_page_token] of the previous
+     * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems] call.
+     * 
+ * + * string page_token = 10; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results for the server to return
+     * Typically obtained via
+     * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.next_page_token] of the previous
+     * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems] call.
+     * 
+ * + * string page_token = 10; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results for the server to return
+     * Typically obtained via
+     * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.next_page_token] of the previous
+     * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems] call.
+     * 
+ * + * string page_token = 10; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results for the server to return
+     * Typically obtained via
+     * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.next_page_token] of the previous
+     * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems] call.
+     * 
+ * + * string page_token = 10; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.SearchDataItemsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SearchDataItemsRequest) + private static final com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchDataItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequestOrBuilder.java new file mode 100644 index 000000000000..9f5eb96192d1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequestOrBuilder.java @@ -0,0 +1,486 @@ +/* + * 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/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface SearchDataItemsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SearchDataItemsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A comma-separated list of data item fields to order by, sorted in
+   * ascending order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by_data_item = 12; + * + * @return Whether the orderByDataItem field is set. + */ + boolean hasOrderByDataItem(); + /** + * + * + *
+   * A comma-separated list of data item fields to order by, sorted in
+   * ascending order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by_data_item = 12; + * + * @return The orderByDataItem. + */ + java.lang.String getOrderByDataItem(); + /** + * + * + *
+   * A comma-separated list of data item fields to order by, sorted in
+   * ascending order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by_data_item = 12; + * + * @return The bytes for orderByDataItem. + */ + com.google.protobuf.ByteString getOrderByDataItemBytes(); + + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + * + * @return Whether the orderByAnnotation field is set. + */ + boolean hasOrderByAnnotation(); + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + * + * @return The orderByAnnotation. + */ + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation + getOrderByAnnotation(); + /** + * + * + *
+   * Expression that allows ranking results based on annotation's property.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation order_by_annotation = 13; + * + */ + com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotationOrBuilder + getOrderByAnnotationOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the Dataset from which to search DataItems.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataset. + */ + java.lang.String getDataset(); + /** + * + * + *
+   * Required. The resource name of the Dataset from which to search DataItems.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string dataset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataset. + */ + com.google.protobuf.ByteString getDatasetBytes(); + + /** + * + * + *
+   * The resource name of a SavedQuery(annotation set in UI).
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+   * All of the search will be done in the context of this SavedQuery.
+   * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=414 + * @return The savedQuery. + */ + @java.lang.Deprecated + java.lang.String getSavedQuery(); + /** + * + * + *
+   * The resource name of a SavedQuery(annotation set in UI).
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
+   * All of the search will be done in the context of this SavedQuery.
+   * 
+ * + * string saved_query = 2 [deprecated = true, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=414 + * @return The bytes for savedQuery. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getSavedQueryBytes(); + + /** + * + * + *
+   * The resource name of a DataLabelingJob.
+   * Format:
+   * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+   * If this field is set, all of the search will be done in the context of
+   * this DataLabelingJob.
+   * 
+ * + * string data_labeling_job = 3; + * + * @return The dataLabelingJob. + */ + java.lang.String getDataLabelingJob(); + /** + * + * + *
+   * The resource name of a DataLabelingJob.
+   * Format:
+   * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
+   * If this field is set, all of the search will be done in the context of
+   * this DataLabelingJob.
+   * 
+ * + * string data_labeling_job = 3; + * + * @return The bytes for dataLabelingJob. + */ + com.google.protobuf.ByteString getDataLabelingJobBytes(); + + /** + * + * + *
+   * An expression for filtering the DataItem that will be returned.
+   *   * `data_item_id` - for = or !=.
+   *   * `labeled` - for = or !=.
+   *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+   *     have at least one annotation with annotation_spec_id =
+   *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+   * For example:
+   * * `data_item=1`
+   * * `has_annotation(5)`
+   * 
+ * + * string data_item_filter = 4; + * + * @return The dataItemFilter. + */ + java.lang.String getDataItemFilter(); + /** + * + * + *
+   * An expression for filtering the DataItem that will be returned.
+   *   * `data_item_id` - for = or !=.
+   *   * `labeled` - for = or !=.
+   *   * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
+   *     have at least one annotation with annotation_spec_id =
+   *     `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
+   * For example:
+   * * `data_item=1`
+   * * `has_annotation(5)`
+   * 
+ * + * string data_item_filter = 4; + * + * @return The bytes for dataItemFilter. + */ + com.google.protobuf.ByteString getDataItemFilterBytes(); + + /** + * + * + *
+   * An expression for filtering the Annotations that will be returned per
+   * DataItem.
+   *   * `annotation_spec_id` - for = or !=.
+   * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=445 + * @return The annotationsFilter. + */ + @java.lang.Deprecated + java.lang.String getAnnotationsFilter(); + /** + * + * + *
+   * An expression for filtering the Annotations that will be returned per
+   * DataItem.
+   *   * `annotation_spec_id` - for = or !=.
+   * 
+ * + * string annotations_filter = 5 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=445 + * @return The bytes for annotationsFilter. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getAnnotationsFilterBytes(); + + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @return A list containing the annotationFilters. + */ + java.util.List getAnnotationFiltersList(); + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @return The count of annotationFilters. + */ + int getAnnotationFiltersCount(); + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index of the element to return. + * @return The annotationFilters at the given index. + */ + java.lang.String getAnnotationFilters(int index); + /** + * + * + *
+   * An expression that specifies what Annotations will be returned per
+   * DataItem. Annotations satisfied either of the conditions will be returned.
+   *   * `annotation_spec_id` - for = or !=.
+   * Must specify `saved_query_id=` - saved query id that annotations should
+   * belong to.
+   * 
+ * + * repeated string annotation_filters = 11; + * + * @param index The index of the value to return. + * @return The bytes of the annotationFilters at the given index. + */ + com.google.protobuf.ByteString getAnnotationFiltersBytes(int index); + + /** + * + * + *
+   * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + * + * @return Whether the fieldMask field is set. + */ + boolean hasFieldMask(); + /** + * + * + *
+   * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + * + * @return The fieldMask. + */ + com.google.protobuf.FieldMask getFieldMask(); + /** + * + * + *
+   * Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 6; + */ + com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); + + /** + * + * + *
+   * If set, only up to this many of Annotations will be returned per
+   * DataItemView. The maximum value is 1000. If not set, the maximum value will
+   * be used.
+   * 
+ * + * int32 annotations_limit = 7; + * + * @return The annotationsLimit. + */ + int getAnnotationsLimit(); + + /** + * + * + *
+   * Requested page size. Server may return fewer results than requested.
+   * Default and maximum page size is 100.
+   * 
+ * + * int32 page_size = 8; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=468 + * @return The orderBy. + */ + @java.lang.Deprecated + java.lang.String getOrderBy(); + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 9 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. See + * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=468 + * @return The bytes for orderBy. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * A token identifying a page of results for the server to return
+   * Typically obtained via
+   * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.next_page_token] of the previous
+   * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems] call.
+   * 
+ * + * string page_token = 10; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A token identifying a page of results for the server to return
+   * Typically obtained via
+   * [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.next_page_token] of the previous
+   * [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems] call.
+   * 
+ * + * string page_token = 10; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderCase getOrderCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsResponse.java new file mode 100644 index 000000000000..e44faa4f0456 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsResponse.java @@ -0,0 +1,1125 @@ +/* + * 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/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SearchDataItemsResponse} + */ +public final class SearchDataItemsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SearchDataItemsResponse) + SearchDataItemsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchDataItemsResponse.newBuilder() to construct. + private SearchDataItemsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchDataItemsResponse() { + dataItemViews_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchDataItemsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.class, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.Builder.class); + } + + public static final int DATA_ITEM_VIEWS_FIELD_NUMBER = 1; + private java.util.List dataItemViews_; + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + @java.lang.Override + public java.util.List getDataItemViewsList() { + return dataItemViews_; + } + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + @java.lang.Override + public java.util.List + getDataItemViewsOrBuilderList() { + return dataItemViews_; + } + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + @java.lang.Override + public int getDataItemViewsCount() { + return dataItemViews_.size(); + } + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DataItemView getDataItemViews(int index) { + return dataItemViews_.get(index); + } + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DataItemViewOrBuilder getDataItemViewsOrBuilder( + int index) { + return dataItemViews_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dataItemViews_.size(); i++) { + output.writeMessage(1, dataItemViews_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dataItemViews_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataItemViews_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse other = + (com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse) obj; + + if (!getDataItemViewsList().equals(other.getDataItemViewsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDataItemViewsCount() > 0) { + hash = (37 * hash) + DATA_ITEM_VIEWS_FIELD_NUMBER; + hash = (53 * hash) + getDataItemViewsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse 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.SearchDataItemsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse 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.SearchDataItemsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse 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.SearchDataItemsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse 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.SearchDataItemsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse 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.SearchDataItemsResponse 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.SearchDataItemsResponse 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.SearchDataItemsResponse 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 [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SearchDataItemsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SearchDataItemsResponse) + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.class, + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataItemViewsBuilder_ == null) { + dataItemViews_ = java.util.Collections.emptyList(); + } else { + dataItemViews_ = null; + dataItemViewsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse build() { + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse result = + new com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse(this); + int from_bitField0_ = bitField0_; + if (dataItemViewsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataItemViews_ = java.util.Collections.unmodifiableList(dataItemViews_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataItemViews_ = dataItemViews_; + } else { + result.dataItemViews_ = dataItemViewsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse other) { + if (other == com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.getDefaultInstance()) + return this; + if (dataItemViewsBuilder_ == null) { + if (!other.dataItemViews_.isEmpty()) { + if (dataItemViews_.isEmpty()) { + dataItemViews_ = other.dataItemViews_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataItemViewsIsMutable(); + dataItemViews_.addAll(other.dataItemViews_); + } + onChanged(); + } + } else { + if (!other.dataItemViews_.isEmpty()) { + if (dataItemViewsBuilder_.isEmpty()) { + dataItemViewsBuilder_.dispose(); + dataItemViewsBuilder_ = null; + dataItemViews_ = other.dataItemViews_; + bitField0_ = (bitField0_ & ~0x00000001); + dataItemViewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataItemViewsFieldBuilder() + : null; + } else { + dataItemViewsBuilder_.addAllMessages(other.dataItemViews_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.DataItemView m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DataItemView.parser(), + extensionRegistry); + if (dataItemViewsBuilder_ == null) { + ensureDataItemViewsIsMutable(); + dataItemViews_.add(m); + } else { + dataItemViewsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List dataItemViews_ = + java.util.Collections.emptyList(); + + private void ensureDataItemViewsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataItemViews_ = + new java.util.ArrayList( + dataItemViews_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DataItemView, + com.google.cloud.aiplatform.v1beta1.DataItemView.Builder, + com.google.cloud.aiplatform.v1beta1.DataItemViewOrBuilder> + dataItemViewsBuilder_; + + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public java.util.List getDataItemViewsList() { + if (dataItemViewsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataItemViews_); + } else { + return dataItemViewsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public int getDataItemViewsCount() { + if (dataItemViewsBuilder_ == null) { + return dataItemViews_.size(); + } else { + return dataItemViewsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DataItemView getDataItemViews(int index) { + if (dataItemViewsBuilder_ == null) { + return dataItemViews_.get(index); + } else { + return dataItemViewsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public Builder setDataItemViews( + int index, com.google.cloud.aiplatform.v1beta1.DataItemView value) { + if (dataItemViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataItemViewsIsMutable(); + dataItemViews_.set(index, value); + onChanged(); + } else { + dataItemViewsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public Builder setDataItemViews( + int index, com.google.cloud.aiplatform.v1beta1.DataItemView.Builder builderForValue) { + if (dataItemViewsBuilder_ == null) { + ensureDataItemViewsIsMutable(); + dataItemViews_.set(index, builderForValue.build()); + onChanged(); + } else { + dataItemViewsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public Builder addDataItemViews(com.google.cloud.aiplatform.v1beta1.DataItemView value) { + if (dataItemViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataItemViewsIsMutable(); + dataItemViews_.add(value); + onChanged(); + } else { + dataItemViewsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public Builder addDataItemViews( + int index, com.google.cloud.aiplatform.v1beta1.DataItemView value) { + if (dataItemViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataItemViewsIsMutable(); + dataItemViews_.add(index, value); + onChanged(); + } else { + dataItemViewsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public Builder addDataItemViews( + com.google.cloud.aiplatform.v1beta1.DataItemView.Builder builderForValue) { + if (dataItemViewsBuilder_ == null) { + ensureDataItemViewsIsMutable(); + dataItemViews_.add(builderForValue.build()); + onChanged(); + } else { + dataItemViewsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public Builder addDataItemViews( + int index, com.google.cloud.aiplatform.v1beta1.DataItemView.Builder builderForValue) { + if (dataItemViewsBuilder_ == null) { + ensureDataItemViewsIsMutable(); + dataItemViews_.add(index, builderForValue.build()); + onChanged(); + } else { + dataItemViewsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public Builder addAllDataItemViews( + java.lang.Iterable values) { + if (dataItemViewsBuilder_ == null) { + ensureDataItemViewsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataItemViews_); + onChanged(); + } else { + dataItemViewsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public Builder clearDataItemViews() { + if (dataItemViewsBuilder_ == null) { + dataItemViews_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataItemViewsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public Builder removeDataItemViews(int index) { + if (dataItemViewsBuilder_ == null) { + ensureDataItemViewsIsMutable(); + dataItemViews_.remove(index); + onChanged(); + } else { + dataItemViewsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DataItemView.Builder getDataItemViewsBuilder( + int index) { + return getDataItemViewsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DataItemViewOrBuilder getDataItemViewsOrBuilder( + int index) { + if (dataItemViewsBuilder_ == null) { + return dataItemViews_.get(index); + } else { + return dataItemViewsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public java.util.List + getDataItemViewsOrBuilderList() { + if (dataItemViewsBuilder_ != null) { + return dataItemViewsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataItemViews_); + } + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DataItemView.Builder addDataItemViewsBuilder() { + return getDataItemViewsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.DataItemView.getDefaultInstance()); + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DataItemView.Builder addDataItemViewsBuilder( + int index) { + return getDataItemViewsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.DataItemView.getDefaultInstance()); + } + /** + * + * + *
+     * The DataItemViews read.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + public java.util.List + getDataItemViewsBuilderList() { + return getDataItemViewsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DataItemView, + com.google.cloud.aiplatform.v1beta1.DataItemView.Builder, + com.google.cloud.aiplatform.v1beta1.DataItemViewOrBuilder> + getDataItemViewsFieldBuilder() { + if (dataItemViewsBuilder_ == null) { + dataItemViewsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DataItemView, + com.google.cloud.aiplatform.v1beta1.DataItemView.Builder, + com.google.cloud.aiplatform.v1beta1.DataItemViewOrBuilder>( + dataItemViews_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dataItemViews_ = null; + } + return dataItemViewsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.SearchDataItemsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SearchDataItemsResponse) + private static final com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchDataItemsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsResponseOrBuilder.java new file mode 100644 index 000000000000..ac26d1a3149a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface SearchDataItemsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SearchDataItemsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + java.util.List getDataItemViewsList(); + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + com.google.cloud.aiplatform.v1beta1.DataItemView getDataItemViews(int index); + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + int getDataItemViewsCount(); + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + java.util.List + getDataItemViewsOrBuilderList(); + /** + * + * + *
+   * The DataItemViews read.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DataItemView data_item_views = 1; + */ + com.google.cloud.aiplatform.v1beta1.DataItemViewOrBuilder getDataItemViewsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java index e1d845d8c87d..ce0bb307cdc8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchModelDeploymentMonitoringStatsAnomaliesRequest.java @@ -104,7 +104,7 @@ public interface StatsAnomaliesObjectiveOrBuilder * If set, all attribution scores between * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - * fetched, and page token doesn't take affect in this case. + * fetched, and page token doesn't take effect in this case. * Only used to retrieve attribution score for the top Features which has * the highest attribution score in the latest monitoring run. * @@ -206,7 +206,7 @@ public com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveTyp * If set, all attribution scores between * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - * fetched, and page token doesn't take affect in this case. + * fetched, and page token doesn't take effect in this case. * Only used to retrieve attribution score for the top Features which has * the highest attribution score in the latest monitoring run. * @@ -719,7 +719,7 @@ public Builder clearType() { * If set, all attribution scores between * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - * fetched, and page token doesn't take affect in this case. + * fetched, and page token doesn't take effect in this case. * Only used to retrieve attribution score for the top Features which has * the highest attribution score in the latest monitoring run. * @@ -739,7 +739,7 @@ public int getTopFeatureCount() { * If set, all attribution scores between * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - * fetched, and page token doesn't take affect in this case. + * fetched, and page token doesn't take effect in this case. * Only used to retrieve attribution score for the top Features which has * the highest attribution score in the latest monitoring run. * @@ -762,7 +762,7 @@ public Builder setTopFeatureCount(int value) { * If set, all attribution scores between * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and * [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - * fetched, and page token doesn't take affect in this case. + * fetched, and page token doesn't take effect in this case. * Only used to retrieve attribution score for the top Features which has * the highest attribution score in the latest monitoring run. * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPool.java index 99e9394268c1..fe9a7e8a1cd7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPool.java @@ -132,7 +132,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The user-defined name of the SpecialistPool.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * This field should be unique on project-level.
    * 
@@ -158,7 +158,7 @@ public java.lang.String getDisplayName() { * *
    * Required. The user-defined name of the SpecialistPool.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * This field should be unique on project-level.
    * 
@@ -1008,7 +1008,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The user-defined name of the SpecialistPool.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * This field should be unique on project-level.
      * 
@@ -1033,7 +1033,7 @@ public java.lang.String getDisplayName() { * *
      * Required. The user-defined name of the SpecialistPool.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * This field should be unique on project-level.
      * 
@@ -1058,7 +1058,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The user-defined name of the SpecialistPool.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * This field should be unique on project-level.
      * 
@@ -1082,7 +1082,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The user-defined name of the SpecialistPool.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * This field should be unique on project-level.
      * 
@@ -1102,7 +1102,7 @@ public Builder clearDisplayName() { * *
      * Required. The user-defined name of the SpecialistPool.
-     * The name can be up to 128 characters long and can be consist of any UTF-8
+     * The name can be up to 128 characters long and can consist of any UTF-8
      * characters.
      * This field should be unique on project-level.
      * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolOrBuilder.java index b7142448240d..81f1ffd73b08 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpecialistPoolOrBuilder.java @@ -53,7 +53,7 @@ public interface SpecialistPoolOrBuilder * *
    * Required. The user-defined name of the SpecialistPool.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * This field should be unique on project-level.
    * 
@@ -68,7 +68,7 @@ public interface SpecialistPoolOrBuilder * *
    * Required. The user-defined name of the SpecialistPool.
-   * The name can be up to 128 characters long and can be consist of any UTF-8
+   * The name can be up to 128 characters long and can consist of any UTF-8
    * characters.
    * This field should be unique on project-level.
    * 
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java index 99f3fcab7e37..118ebf7f806d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tensorboard.java @@ -23,7 +23,7 @@ * *
  * Tensorboard is a physical database that stores users' training metrics.
- * A default Tensorboard is provided in each region of a GCP project.
+ * A default Tensorboard is provided in each region of a Google Cloud project.
  * If needed users can also create extra Tensorboards in their projects.
  * 
* @@ -905,7 +905,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Tensorboard is a physical database that stores users' training metrics.
-   * A default Tensorboard is provided in each region of a GCP project.
+   * A default Tensorboard is provided in each region of a Google Cloud project.
    * If needed users can also create extra Tensorboards in their projects.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java index b4e610806379..6ef7b74d2a57 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequest.java @@ -151,6 +151,7 @@ public com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypeOrBu * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -182,6 +183,7 @@ public boolean hasUpdateMask() { * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -213,6 +215,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -857,6 +860,7 @@ public com.google.cloud.aiplatform.v1beta1.EntityTypeOrBuilder getEntityTypeOrBu * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -887,6 +891,7 @@ public boolean hasUpdateMask() { * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -923,6 +928,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -961,6 +967,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -996,6 +1003,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1036,6 +1044,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1072,6 +1081,7 @@ public Builder clearUpdateMask() { * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1102,6 +1112,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1136,6 +1147,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequestOrBuilder.java index 9cf0cad29b5d..6d5f3ff8cbea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateEntityTypeRequestOrBuilder.java @@ -94,6 +94,7 @@ public interface UpdateEntityTypeRequestOrBuilder * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -122,6 +123,7 @@ public interface UpdateEntityTypeRequestOrBuilder * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -150,6 +152,7 @@ public interface UpdateEntityTypeRequestOrBuilder * * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * * `monitoring_config.numerical_threshold_config.value` * * `monitoring_config.categorical_threshold_config.value` + * * `offline_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java index 874b9c19c9e3..7aada477fca7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequest.java @@ -145,6 +145,7 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestore * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -170,6 +171,7 @@ public boolean hasUpdateMask() { * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -195,6 +197,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -835,6 +838,7 @@ public com.google.cloud.aiplatform.v1beta1.FeaturestoreOrBuilder getFeaturestore * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -859,6 +863,7 @@ public boolean hasUpdateMask() { * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -889,6 +894,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -921,6 +927,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -950,6 +957,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -984,6 +992,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1014,6 +1023,7 @@ public Builder clearUpdateMask() { * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1038,6 +1048,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -1066,6 +1077,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequestOrBuilder.java index 5ab57f635637..9440f28c6453 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeaturestoreRequestOrBuilder.java @@ -88,6 +88,7 @@ public interface UpdateFeaturestoreRequestOrBuilder * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -110,6 +111,7 @@ public interface UpdateFeaturestoreRequestOrBuilder * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; @@ -132,6 +134,7 @@ public interface UpdateFeaturestoreRequestOrBuilder * * `labels` * * `online_serving_config.fixed_node_count` * * `online_serving_config.scaling` + * * `online_storage_ttl_days` * * * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/annotation_spec.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/annotation_spec.proto index 5d4c5664ec72..bb5738ebcc4d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/annotation_spec.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/annotation_spec.proto @@ -39,7 +39,7 @@ message AnnotationSpec { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The user-defined name of the AnnotationSpec. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index fbb4163496b9..39b2af83183f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto @@ -298,7 +298,7 @@ message BatchPredictionJob { // The service account that the DeployedModel's container runs as. If not // specified, a system generated one will be used, which // has minimal permissions and the custom container, if used, may not have - // enough permission to access other GCP resources. + // enough permission to access other Google Cloud resources. // // Users deploying the Model must have the `iam.serviceAccounts.actAs` // permission on this service account. @@ -348,7 +348,7 @@ message BatchPredictionJob { // Output only. Partial failures encountered. // For example, single files that can't be read. // This field never exceeds 20 entries. - // Status details fields contain standard GCP error details. + // Status details fields contain standard Google Cloud error details. repeated google.rpc.Status partial_failures = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Information about resources that had been consumed by this job. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto index 24d384ff6034..d6cd91f71870 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -49,7 +49,7 @@ message CustomJob { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the CustomJob. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_labeling_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_labeling_job.proto index 3a7160a56440..0e65f1993b2a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_labeling_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/data_labeling_job.proto @@ -45,7 +45,7 @@ message DataLabelingJob { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The user-defined name of the DataLabelingJob. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. // Display name of a DataLabelingJob. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto index 4f8e875d7c91..04b3a67b7ea1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset.proto @@ -42,12 +42,12 @@ message Dataset { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The user-defined name of the Dataset. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. The description of the Dataset. - string description = 16 [(google.api.field_behavior) = OPTIONAL]; + // The description of the Dataset. + string description = 16; // Required. Points to a YAML file stored on Google Cloud Storage describing additional // information about the Dataset. @@ -88,6 +88,11 @@ message Dataset { // Customer-managed encryption key spec for a Dataset. If set, this Dataset // and all sub-resources of this Dataset will be secured by this key. EncryptionSpec encryption_spec = 11; + + // Output only. The resource name of the Artifact that was created in MetadataStore when + // creating the Dataset. The Artifact resource name pattern is + // `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + string metadata_artifact = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Describes the location from where we import data into a Dataset, together diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto index 3be59c059d86..a93ca39051e1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -127,6 +127,13 @@ service DatasetService { option (google.api.method_signature) = "parent"; } + // Searches DataItems in a Dataset. + rpc SearchDataItems(SearchDataItemsRequest) returns (SearchDataItemsResponse) { + option (google.api.http) = { + get: "/v1beta1/{dataset=projects/*/locations/*/datasets/*}:searchDataItems" + }; + } + // Lists SavedQueries in a Dataset. rpc ListSavedQueries(ListSavedQueriesRequest) returns (ListSavedQueriesResponse) { option (google.api.http) = { @@ -368,6 +375,135 @@ message ListDataItemsResponse { string next_page_token = 2; } +// Request message for [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems]. +message SearchDataItemsRequest { + // Expression that allows ranking results based on annotation's property. + message OrderByAnnotation { + // Required. Saved query of the Annotation. Only Annotations belong to this saved + // query will be considered for ordering. + string saved_query = 1 [(google.api.field_behavior) = REQUIRED]; + + // A comma-separated list of annotation fields to order by, sorted in + // ascending order. Use "desc" after a field name for descending. Must also + // specify saved_query. + string order_by = 2; + } + + oneof order { + // A comma-separated list of data item fields to order by, sorted in + // ascending order. Use "desc" after a field name for descending. + string order_by_data_item = 12; + + // Expression that allows ranking results based on annotation's property. + OrderByAnnotation order_by_annotation = 13; + } + + // Required. The resource name of the Dataset from which to search DataItems. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string dataset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // The resource name of a SavedQuery(annotation set in UI). + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + // All of the search will be done in the context of this SavedQuery. + string saved_query = 2 [ + deprecated = true, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/SavedQuery" + } + ]; + + // The resource name of a DataLabelingJob. + // Format: + // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + // If this field is set, all of the search will be done in the context of + // this DataLabelingJob. + string data_labeling_job = 3; + + // An expression for filtering the DataItem that will be returned. + // + // * `data_item_id` - for = or !=. + // * `labeled` - for = or !=. + // * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that + // have at least one annotation with annotation_spec_id = + // `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. + // + // For example: + // + // * `data_item=1` + // * `has_annotation(5)` + string data_item_filter = 4; + + // An expression for filtering the Annotations that will be returned per + // DataItem. + // * `annotation_spec_id` - for = or !=. + string annotations_filter = 5 [deprecated = true]; + + // An expression that specifies what Annotations will be returned per + // DataItem. Annotations satisfied either of the conditions will be returned. + // * `annotation_spec_id` - for = or !=. + // Must specify `saved_query_id=` - saved query id that annotations should + // belong to. + repeated string annotation_filters = 11; + + // Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read. + google.protobuf.FieldMask field_mask = 6; + + // If set, only up to this many of Annotations will be returned per + // DataItemView. The maximum value is 1000. If not set, the maximum value will + // be used. + int32 annotations_limit = 7; + + // Requested page size. Server may return fewer results than requested. + // Default and maximum page size is 100. + int32 page_size = 8; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + string order_by = 9 [deprecated = true]; + + // A token identifying a page of results for the server to return + // Typically obtained via + // [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.next_page_token] of the previous + // [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems] call. + string page_token = 10; +} + +// Response message for [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems]. +message SearchDataItemsResponse { + // The DataItemViews read. + repeated DataItemView data_item_views = 1; + + // A token to retrieve next page of results. + // Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// A container for a single DataItem and Annotations on it. +message DataItemView { + // The DataItem. + DataItem data_item = 1; + + // The Annotations on the DataItem. If too many Annotations should be returned + // for the DataItem, this field will be truncated per annotations_limit in + // request. If it was, then the has_truncated_annotations will be set to true. + repeated Annotation annotations = 2; + + // True if and only if the Annotations field has been truncated. It happens if + // more Annotations for this DataItem met the request's annotation_filter than + // are allowed to be returned by annotations_limit. + // Note that if Annotations field is not being returned due to field mask, + // then this field will not be set to true no matter how many Annotations are + // there. + bool has_truncated_annotations = 3; +} + // Request message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries]. message ListSavedQueriesRequest { // Required. The resource name of the Dataset to list SavedQueries from. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto index 2b0d796e0eb2..4ff0ebb8170d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -44,7 +44,7 @@ message Endpoint { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the Endpoint. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto index 14f762bacd01..9bb2cdf09c30 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/entity_type.proto @@ -83,4 +83,11 @@ message EntityType { // analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is // disabled. FeaturestoreMonitoringConfig monitoring_config = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Config for data retention policy in offline storage. + // TTL in days for feature values that will be stored in offline storage. + // The Feature Store offline storage periodically removes obsolete feature + // values older than `offline_storage_ttl_days` since the feature generation + // time. If unset (or explicitly set to 0), default to 4000 days TTL. + int32 offline_storage_ttl_days = 10 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto index 599fd1a1fe0c..3a3026e774c3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore.proto @@ -125,6 +125,15 @@ message Featurestore { // Output only. State of the featurestore. State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. TTL in days for feature values that will be stored in online serving + // storage. The Feature Store online storage periodically removes obsolete + // feature values older than `online_storage_ttl_days` since the feature + // generation time. + // Note that `online_storage_ttl_days` should be less than or equal to + // `offline_storage_ttl_days` for each EntityType under a featurestore. + // If not set, default to 4000 days + int32 online_storage_ttl_days = 13 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Customer-managed encryption key spec for data storage. If set, both of the // online and offline data storage will be secured by this key. EncryptionSpec encryption_spec = 10 [(google.api.field_behavior) = OPTIONAL]; 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 aed9139a2194..5db9e02bf915 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 @@ -442,6 +442,7 @@ message UpdateFeaturestoreRequest { // * `labels` // * `online_serving_config.fixed_node_count` // * `online_serving_config.scaling` + // * `online_storage_ttl_days` google.protobuf.FieldMask update_mask = 2; } @@ -888,6 +889,7 @@ message UpdateEntityTypeRequest { // * `monitoring_config.import_features_analysis.anomaly_detection_baseline` // * `monitoring_config.numerical_threshold_config.value` // * `monitoring_config.categorical_threshold_config.value` + // * `offline_storage_ttl_days` google.protobuf.FieldMask update_mask = 2; } @@ -1219,6 +1221,9 @@ message ImportFeatureValuesOperationMetadata { // Number of Feature values that have been imported by the operation. int64 imported_feature_value_count = 3; + // The source URI from where Feature values are imported. + repeated string source_uris = 4; + // The number of rows in input source that weren't imported due to either // * Not having any featureValues. // * Having a null entityId. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto index 4e994e1e7262..587680bc300f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto @@ -46,7 +46,7 @@ message HyperparameterTuningJob { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the HyperparameterTuningJob. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto index f0e3c67a05fb..9e010542e6a0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto @@ -57,7 +57,7 @@ message Index { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the Index. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_service.proto index 68492a64c1d0..9095e1e28937 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/job_service.proto @@ -816,7 +816,7 @@ message SearchModelDeploymentMonitoringStatsAnomaliesRequest { // If set, all attribution scores between // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - // fetched, and page token doesn't take affect in this case. + // fetched, and page token doesn't take effect in this case. // Only used to retrieve attribution score for the top Features which has // the highest attribution score in the latest monitoring run. int32 top_feature_count = 4; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto index 0e7e1c20a461..7b5f9f0a0c68 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto @@ -134,7 +134,7 @@ message Model { google.protobuf.Timestamp version_update_time = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The display name of the Model. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto index 0446c1cc2aeb..e8b94d1d1377 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto @@ -96,7 +96,7 @@ message ModelDeploymentMonitoringJob { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The user-defined name of the ModelDeploymentMonitoringJob. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. // Display name of a ModelDeploymentMonitoringJob. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/operation.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/operation.proto index 04e04b201083..4a6d0edf23ae 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/operation.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/operation.proto @@ -33,7 +33,7 @@ message GenericOperationMetadata { // Output only. Partial failures encountered. // E.g. single files that couldn't be read. // This field should never exceed 20 entries. - // Status details field will contain standard GCP error details. + // Status details field will contain standard Google Cloud error details. repeated google.rpc.Status partial_failures = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when the operation was created. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto index 84b40b2ac939..8ecf6084417d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -103,7 +103,7 @@ message PipelineJob { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // The display name of the Pipeline. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. string display_name = 2; @@ -168,8 +168,8 @@ message PipelineJob { // network name. // // Private services access must already be configured for the network. - // Pipeline job will apply the network configuration to the GCP resources - // being launched, if applied, such as Vertex AI + // Pipeline job will apply the network configuration to the Google Cloud + // resources being launched, if applied, such as Vertex AI // Training or Dataflow job. If left unspecified, the workload is not peered // with any network. string network = 18 [(google.api.resource_reference) = { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool.proto index 49be7b793f2f..cb35f9da2027 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/specialist_pool.proto @@ -43,7 +43,7 @@ message SpecialistPool { string name = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The user-defined name of the SpecialistPool. - // The name can be up to 128 characters long and can be consist of any UTF-8 + // The name can be up to 128 characters long and can consist of any UTF-8 // characters. // This field should be unique on project-level. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto index 640e636e5cf5..32f7adddb6e7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard.proto @@ -30,7 +30,7 @@ option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // Tensorboard is a physical database that stores users' training metrics. -// A default Tensorboard is provided in each region of a GCP project. +// A default Tensorboard is provided in each region of a Google Cloud project. // If needed users can also create extra Tensorboards in their projects. message Tensorboard { option (google.api.resource) = {