diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java index a8f2c8e72..fd783be91 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java @@ -1212,6 +1212,167 @@ public final UnaryCallable listData return stub.listDataItemsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SavedQueries in a Dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
+   *   for (SavedQuery element : datasetServiceClient.listSavedQueries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Dataset to list SavedQueries from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSavedQueriesPagedResponse listSavedQueries(DatasetName parent) { + ListSavedQueriesRequest request = + ListSavedQueriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSavedQueries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SavedQueries in a Dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   String parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
+   *   for (SavedQuery element : datasetServiceClient.listSavedQueries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Dataset to list SavedQueries from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSavedQueriesPagedResponse listSavedQueries(String parent) { + ListSavedQueriesRequest request = + ListSavedQueriesRequest.newBuilder().setParent(parent).build(); + return listSavedQueries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SavedQueries in a Dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListSavedQueriesRequest request =
+   *       ListSavedQueriesRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (SavedQuery element : datasetServiceClient.listSavedQueries(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 ListSavedQueriesPagedResponse listSavedQueries(ListSavedQueriesRequest request) { + return listSavedQueriesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SavedQueries in a Dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListSavedQueriesRequest request =
+   *       ListSavedQueriesRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.listSavedQueriesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (SavedQuery element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listSavedQueriesPagedCallable() { + return stub.listSavedQueriesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SavedQueries in a Dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListSavedQueriesRequest request =
+   *       ListSavedQueriesRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListSavedQueriesResponse response =
+   *         datasetServiceClient.listSavedQueriesCallable().call(request);
+   *     for (SavedQuery element : response.getSavedQueriesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listSavedQueriesCallable() { + return stub.listSavedQueriesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets an AnnotationSpec. @@ -1992,6 +2153,83 @@ protected ListDataItemsFixedSizeCollection createCollection( } } + public static class ListSavedQueriesPagedResponse + extends AbstractPagedListResponse< + ListSavedQueriesRequest, + ListSavedQueriesResponse, + SavedQuery, + ListSavedQueriesPage, + ListSavedQueriesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSavedQueriesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSavedQueriesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSavedQueriesPagedResponse(ListSavedQueriesPage page) { + super(page, ListSavedQueriesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSavedQueriesPage + extends AbstractPage< + ListSavedQueriesRequest, ListSavedQueriesResponse, SavedQuery, ListSavedQueriesPage> { + + private ListSavedQueriesPage( + PageContext context, + ListSavedQueriesResponse response) { + super(context, response); + } + + private static ListSavedQueriesPage createEmptyPage() { + return new ListSavedQueriesPage(null, null); + } + + @Override + protected ListSavedQueriesPage createPage( + PageContext context, + ListSavedQueriesResponse response) { + return new ListSavedQueriesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSavedQueriesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSavedQueriesRequest, + ListSavedQueriesResponse, + SavedQuery, + ListSavedQueriesPage, + ListSavedQueriesFixedSizeCollection> { + + private ListSavedQueriesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSavedQueriesFixedSizeCollection createEmptyCollection() { + return new ListSavedQueriesFixedSizeCollection(null, 0); + } + + @Override + protected ListSavedQueriesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSavedQueriesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListAnnotationsPagedResponse extends AbstractPagedListResponse< ListAnnotationsRequest, diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java index 6c5eb24b8..d24353a30 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java @@ -20,6 +20,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse; 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 com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -152,6 +153,13 @@ public UnaryCallSettings exportDataSettings() { return ((DatasetServiceStubSettings) getStubSettings()).listDataItemsSettings(); } + /** Returns the object with the settings used for calls to listSavedQueries. */ + public PagedCallSettings< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + listSavedQueriesSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).listSavedQueriesSettings(); + } + /** Returns the object with the settings used for calls to getAnnotationSpec. */ public UnaryCallSettings getAnnotationSpecSettings() { return ((DatasetServiceStubSettings) getStubSettings()).getAnnotationSpecSettings(); @@ -359,6 +367,13 @@ public UnaryCallSettings.Builder exportDataSetting return getStubSettingsBuilder().listDataItemsSettings(); } + /** Returns the builder for the settings used for calls to listSavedQueries. */ + public PagedCallSettings.Builder< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + listSavedQueriesSettings() { + return getStubSettingsBuilder().listSavedQueriesSettings(); + } + /** Returns the builder for the settings used for calls to getAnnotationSpec. */ public UnaryCallSettings.Builder getAnnotationSpecSettings() { diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json index ebaa23fb5..3f39baf58 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json @@ -46,6 +46,9 @@ "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, + "ListSavedQueries": { + "methods": ["listSavedQueries", "listSavedQueries", "listSavedQueries", "listSavedQueriesPagedCallable", "listSavedQueriesCallable"] + }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java index bcf8d819d..63b0806c2 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java @@ -20,6 +20,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse; 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 com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; @@ -44,6 +45,8 @@ import com.google.cloud.aiplatform.v1.ListDataItemsResponse; import com.google.cloud.aiplatform.v1.ListDatasetsRequest; 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.UpdateDatasetRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -133,6 +136,16 @@ public UnaryCallable listDataItemsC throw new UnsupportedOperationException("Not implemented: listDataItemsCallable()"); } + public UnaryCallable + listSavedQueriesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSavedQueriesPagedCallable()"); + } + + public UnaryCallable + listSavedQueriesCallable() { + throw new UnsupportedOperationException("Not implemented: listSavedQueriesCallable()"); + } + public UnaryCallable getAnnotationSpecCallable() { throw new UnsupportedOperationException("Not implemented: getAnnotationSpecCallable()"); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java index 66c9d9293..f3c92906c 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java @@ -20,6 +20,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse; 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 com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -69,6 +70,9 @@ import com.google.cloud.aiplatform.v1.ListDataItemsResponse; import com.google.cloud.aiplatform.v1.ListDatasetsRequest; 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.SavedQuery; import com.google.cloud.aiplatform.v1.UpdateDatasetRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -152,6 +156,9 @@ public class DatasetServiceStubSettings extends StubSettings listDataItemsSettings; + private final PagedCallSettings< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + listSavedQueriesSettings; private final UnaryCallSettings getAnnotationSpecSettings; private final PagedCallSettings< @@ -238,6 +245,45 @@ public Iterable extractResources(ListDataItemsResponse payload) { } }; + private static final PagedListDescriptor< + ListSavedQueriesRequest, ListSavedQueriesResponse, SavedQuery> + LIST_SAVED_QUERIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSavedQueriesRequest injectToken( + ListSavedQueriesRequest payload, String token) { + return ListSavedQueriesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSavedQueriesRequest injectPageSize( + ListSavedQueriesRequest payload, int pageSize) { + return ListSavedQueriesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSavedQueriesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSavedQueriesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSavedQueriesResponse payload) { + return payload.getSavedQueriesList() == null + ? ImmutableList.of() + : payload.getSavedQueriesList(); + } + }; + private static final PagedListDescriptor< ListAnnotationsRequest, ListAnnotationsResponse, Annotation> LIST_ANNOTATIONS_PAGE_STR_DESC = @@ -347,6 +393,25 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + LIST_SAVED_QUERIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSavedQueriesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SAVED_QUERIES_PAGE_STR_DESC, request, context); + return ListSavedQueriesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListAnnotationsRequest, ListAnnotationsResponse, ListAnnotationsPagedResponse> LIST_ANNOTATIONS_PAGE_STR_FACT = @@ -447,6 +512,13 @@ public UnaryCallSettings exportDataSettings() { return listDataItemsSettings; } + /** Returns the object with the settings used for calls to listSavedQueries. */ + public PagedCallSettings< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + listSavedQueriesSettings() { + return listSavedQueriesSettings; + } + /** Returns the object with the settings used for calls to getAnnotationSpec. */ public UnaryCallSettings getAnnotationSpecSettings() { return getAnnotationSpecSettings; @@ -573,6 +645,7 @@ protected DatasetServiceStubSettings(Builder settingsBuilder) throws IOException exportDataSettings = settingsBuilder.exportDataSettings().build(); exportDataOperationSettings = settingsBuilder.exportDataOperationSettings().build(); listDataItemsSettings = settingsBuilder.listDataItemsSettings().build(); + listSavedQueriesSettings = settingsBuilder.listSavedQueriesSettings().build(); getAnnotationSpecSettings = settingsBuilder.getAnnotationSpecSettings().build(); listAnnotationsSettings = settingsBuilder.listAnnotationsSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); @@ -609,6 +682,9 @@ public static class Builder extends StubSettings.Builder listDataItemsSettings; + private final PagedCallSettings.Builder< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + listSavedQueriesSettings; private final UnaryCallSettings.Builder getAnnotationSpecSettings; private final PagedCallSettings.Builder< @@ -661,6 +737,7 @@ protected Builder(ClientContext clientContext) { exportDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); exportDataOperationSettings = OperationCallSettings.newBuilder(); listDataItemsSettings = PagedCallSettings.newBuilder(LIST_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); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); @@ -679,6 +756,7 @@ protected Builder(ClientContext clientContext) { importDataSettings, exportDataSettings, listDataItemsSettings, + listSavedQueriesSettings, getAnnotationSpecSettings, listAnnotationsSettings, listLocationsSettings, @@ -704,6 +782,7 @@ protected Builder(DatasetServiceStubSettings settings) { exportDataSettings = settings.exportDataSettings.toBuilder(); exportDataOperationSettings = settings.exportDataOperationSettings.toBuilder(); listDataItemsSettings = settings.listDataItemsSettings.toBuilder(); + listSavedQueriesSettings = settings.listSavedQueriesSettings.toBuilder(); getAnnotationSpecSettings = settings.getAnnotationSpecSettings.toBuilder(); listAnnotationsSettings = settings.listAnnotationsSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); @@ -722,6 +801,7 @@ protected Builder(DatasetServiceStubSettings settings) { importDataSettings, exportDataSettings, listDataItemsSettings, + listSavedQueriesSettings, getAnnotationSpecSettings, listAnnotationsSettings, listLocationsSettings, @@ -785,6 +865,11 @@ private static Builder initDefaults(Builder builder) { .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")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .getAnnotationSpecSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1014,6 +1099,13 @@ public UnaryCallSettings.Builder exportDataSetting return listDataItemsSettings; } + /** Returns the builder for the settings used for calls to listSavedQueries. */ + public PagedCallSettings.Builder< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + listSavedQueriesSettings() { + return listSavedQueriesSettings; + } + /** Returns the builder for the settings used for calls to getAnnotationSpec. */ public UnaryCallSettings.Builder getAnnotationSpecSettings() { diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java index 2ee3e9432..a0c1613e5 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java @@ -20,6 +20,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse; 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 com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -48,6 +49,8 @@ import com.google.cloud.aiplatform.v1.ListDataItemsResponse; import com.google.cloud.aiplatform.v1.ListDatasetsRequest; 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.UpdateDatasetRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -151,6 +154,17 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub { ProtoUtils.marshaller(ListDataItemsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + listSavedQueriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.DatasetService/ListSavedQueries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSavedQueriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSavedQueriesResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor getAnnotationSpecMethodDescriptor = MethodDescriptor.newBuilder() @@ -240,6 +254,10 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub { private final UnaryCallable listDataItemsCallable; private final UnaryCallable listDataItemsPagedCallable; + private final UnaryCallable + listSavedQueriesCallable; + private final UnaryCallable + listSavedQueriesPagedCallable; private final UnaryCallable getAnnotationSpecCallable; private final UnaryCallable listAnnotationsCallable; @@ -378,6 +396,17 @@ protected GrpcDatasetServiceStub( return params.build(); }) .build(); + GrpcCallSettings + listSavedQueriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSavedQueriesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); GrpcCallSettings getAnnotationSpecTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAnnotationSpecMethodDescriptor) @@ -505,6 +534,12 @@ protected GrpcDatasetServiceStub( this.listDataItemsPagedCallable = callableFactory.createPagedCallable( listDataItemsTransportSettings, settings.listDataItemsSettings(), clientContext); + this.listSavedQueriesCallable = + callableFactory.createUnaryCallable( + listSavedQueriesTransportSettings, settings.listSavedQueriesSettings(), clientContext); + this.listSavedQueriesPagedCallable = + callableFactory.createPagedCallable( + listSavedQueriesTransportSettings, settings.listSavedQueriesSettings(), clientContext); this.getAnnotationSpecCallable = callableFactory.createUnaryCallable( getAnnotationSpecTransportSettings, @@ -620,6 +655,18 @@ public UnaryCallable listDataItemsC return listDataItemsPagedCallable; } + @Override + public UnaryCallable + listSavedQueriesCallable() { + return listSavedQueriesCallable; + } + + @Override + public UnaryCallable + listSavedQueriesPagedCallable() { + return listSavedQueriesPagedCallable; + } + @Override public UnaryCallable getAnnotationSpecCallable() { return getAnnotationSpecCallable; diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java index 7e61795a0..aa6530651 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java @@ -1214,6 +1214,167 @@ public final UnaryCallable listData return stub.listDataItemsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SavedQueries in a Dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
+   *   for (SavedQuery element : datasetServiceClient.listSavedQueries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Dataset to list SavedQueries from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSavedQueriesPagedResponse listSavedQueries(DatasetName parent) { + ListSavedQueriesRequest request = + ListSavedQueriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSavedQueries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SavedQueries in a Dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   String parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
+   *   for (SavedQuery element : datasetServiceClient.listSavedQueries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Dataset to list SavedQueries from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSavedQueriesPagedResponse listSavedQueries(String parent) { + ListSavedQueriesRequest request = + ListSavedQueriesRequest.newBuilder().setParent(parent).build(); + return listSavedQueries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SavedQueries in a Dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListSavedQueriesRequest request =
+   *       ListSavedQueriesRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (SavedQuery element : datasetServiceClient.listSavedQueries(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 ListSavedQueriesPagedResponse listSavedQueries(ListSavedQueriesRequest request) { + return listSavedQueriesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SavedQueries in a Dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListSavedQueriesRequest request =
+   *       ListSavedQueriesRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.listSavedQueriesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (SavedQuery element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listSavedQueriesPagedCallable() { + return stub.listSavedQueriesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SavedQueries in a Dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
+   *   ListSavedQueriesRequest request =
+   *       ListSavedQueriesRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListSavedQueriesResponse response =
+   *         datasetServiceClient.listSavedQueriesCallable().call(request);
+   *     for (SavedQuery element : response.getSavedQueriesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listSavedQueriesCallable() { + return stub.listSavedQueriesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets an AnnotationSpec. @@ -1994,6 +2155,83 @@ protected ListDataItemsFixedSizeCollection createCollection( } } + public static class ListSavedQueriesPagedResponse + extends AbstractPagedListResponse< + ListSavedQueriesRequest, + ListSavedQueriesResponse, + SavedQuery, + ListSavedQueriesPage, + ListSavedQueriesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSavedQueriesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSavedQueriesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSavedQueriesPagedResponse(ListSavedQueriesPage page) { + super(page, ListSavedQueriesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSavedQueriesPage + extends AbstractPage< + ListSavedQueriesRequest, ListSavedQueriesResponse, SavedQuery, ListSavedQueriesPage> { + + private ListSavedQueriesPage( + PageContext context, + ListSavedQueriesResponse response) { + super(context, response); + } + + private static ListSavedQueriesPage createEmptyPage() { + return new ListSavedQueriesPage(null, null); + } + + @Override + protected ListSavedQueriesPage createPage( + PageContext context, + ListSavedQueriesResponse response) { + return new ListSavedQueriesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSavedQueriesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSavedQueriesRequest, + ListSavedQueriesResponse, + SavedQuery, + ListSavedQueriesPage, + ListSavedQueriesFixedSizeCollection> { + + private ListSavedQueriesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSavedQueriesFixedSizeCollection createEmptyCollection() { + return new ListSavedQueriesFixedSizeCollection(null, 0); + } + + @Override + protected ListSavedQueriesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSavedQueriesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListAnnotationsPagedResponse extends AbstractPagedListResponse< ListAnnotationsRequest, diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java index 0acc9849f..9f252e87b 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java @@ -20,6 +20,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse; 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 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 listSavedQueries. */ + public PagedCallSettings< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + listSavedQueriesSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).listSavedQueriesSettings(); + } + /** Returns the object with the settings used for calls to getAnnotationSpec. */ public UnaryCallSettings getAnnotationSpecSettings() { return ((DatasetServiceStubSettings) getStubSettings()).getAnnotationSpecSettings(); @@ -360,6 +368,13 @@ public UnaryCallSettings.Builder exportDataSetting return getStubSettingsBuilder().listDataItemsSettings(); } + /** Returns the builder for the settings used for calls to listSavedQueries. */ + public PagedCallSettings.Builder< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + listSavedQueriesSettings() { + return getStubSettingsBuilder().listSavedQueriesSettings(); + } + /** Returns the builder for the settings used for calls to getAnnotationSpec. */ public UnaryCallSettings.Builder getAnnotationSpecSettings() { diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index 01466f0ac..92d1913cf 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -46,6 +46,9 @@ "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, + "ListSavedQueries": { + "methods": ["listSavedQueries", "listSavedQueries", "listSavedQueries", "listSavedQueriesPagedCallable", "listSavedQueriesCallable"] + }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java index 7b3109e28..ed2e04aea 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java @@ -20,6 +20,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse; 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 com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -45,6 +46,8 @@ import com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse; import com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest; 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.UpdateDatasetRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -135,6 +138,16 @@ public UnaryCallable listDataItemsC throw new UnsupportedOperationException("Not implemented: listDataItemsCallable()"); } + public UnaryCallable + listSavedQueriesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSavedQueriesPagedCallable()"); + } + + public UnaryCallable + listSavedQueriesCallable() { + throw new UnsupportedOperationException("Not implemented: listSavedQueriesCallable()"); + } + public UnaryCallable getAnnotationSpecCallable() { throw new UnsupportedOperationException("Not implemented: getAnnotationSpecCallable()"); } diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java index 804ff46f0..7426341c0 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java @@ -20,6 +20,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse; 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 com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -69,6 +70,9 @@ import com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse; import com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest; 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.SavedQuery; import com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -153,6 +157,9 @@ public class DatasetServiceStubSettings extends StubSettings listDataItemsSettings; + private final PagedCallSettings< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + listSavedQueriesSettings; private final UnaryCallSettings getAnnotationSpecSettings; private final PagedCallSettings< @@ -239,6 +246,45 @@ public Iterable extractResources(ListDataItemsResponse payload) { } }; + private static final PagedListDescriptor< + ListSavedQueriesRequest, ListSavedQueriesResponse, SavedQuery> + LIST_SAVED_QUERIES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSavedQueriesRequest injectToken( + ListSavedQueriesRequest payload, String token) { + return ListSavedQueriesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSavedQueriesRequest injectPageSize( + ListSavedQueriesRequest payload, int pageSize) { + return ListSavedQueriesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSavedQueriesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSavedQueriesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSavedQueriesResponse payload) { + return payload.getSavedQueriesList() == null + ? ImmutableList.of() + : payload.getSavedQueriesList(); + } + }; + private static final PagedListDescriptor< ListAnnotationsRequest, ListAnnotationsResponse, Annotation> LIST_ANNOTATIONS_PAGE_STR_DESC = @@ -348,6 +394,25 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + LIST_SAVED_QUERIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSavedQueriesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SAVED_QUERIES_PAGE_STR_DESC, request, context); + return ListSavedQueriesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListAnnotationsRequest, ListAnnotationsResponse, ListAnnotationsPagedResponse> LIST_ANNOTATIONS_PAGE_STR_FACT = @@ -448,6 +513,13 @@ public UnaryCallSettings exportDataSettings() { return listDataItemsSettings; } + /** Returns the object with the settings used for calls to listSavedQueries. */ + public PagedCallSettings< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + listSavedQueriesSettings() { + return listSavedQueriesSettings; + } + /** Returns the object with the settings used for calls to getAnnotationSpec. */ public UnaryCallSettings getAnnotationSpecSettings() { return getAnnotationSpecSettings; @@ -574,6 +646,7 @@ protected DatasetServiceStubSettings(Builder settingsBuilder) throws IOException exportDataSettings = settingsBuilder.exportDataSettings().build(); exportDataOperationSettings = settingsBuilder.exportDataOperationSettings().build(); listDataItemsSettings = settingsBuilder.listDataItemsSettings().build(); + listSavedQueriesSettings = settingsBuilder.listSavedQueriesSettings().build(); getAnnotationSpecSettings = settingsBuilder.getAnnotationSpecSettings().build(); listAnnotationsSettings = settingsBuilder.listAnnotationsSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); @@ -610,6 +683,9 @@ public static class Builder extends StubSettings.Builder listDataItemsSettings; + private final PagedCallSettings.Builder< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + listSavedQueriesSettings; private final UnaryCallSettings.Builder getAnnotationSpecSettings; private final PagedCallSettings.Builder< @@ -672,6 +748,7 @@ protected Builder(ClientContext clientContext) { exportDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); exportDataOperationSettings = OperationCallSettings.newBuilder(); listDataItemsSettings = PagedCallSettings.newBuilder(LIST_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); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); @@ -690,6 +767,7 @@ protected Builder(ClientContext clientContext) { importDataSettings, exportDataSettings, listDataItemsSettings, + listSavedQueriesSettings, getAnnotationSpecSettings, listAnnotationsSettings, listLocationsSettings, @@ -715,6 +793,7 @@ protected Builder(DatasetServiceStubSettings settings) { exportDataSettings = settings.exportDataSettings.toBuilder(); exportDataOperationSettings = settings.exportDataOperationSettings.toBuilder(); listDataItemsSettings = settings.listDataItemsSettings.toBuilder(); + listSavedQueriesSettings = settings.listSavedQueriesSettings.toBuilder(); getAnnotationSpecSettings = settings.getAnnotationSpecSettings.toBuilder(); listAnnotationsSettings = settings.listAnnotationsSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); @@ -733,6 +812,7 @@ protected Builder(DatasetServiceStubSettings settings) { importDataSettings, exportDataSettings, listDataItemsSettings, + listSavedQueriesSettings, getAnnotationSpecSettings, listAnnotationsSettings, listLocationsSettings, @@ -796,6 +876,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 + .listSavedQueriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .getAnnotationSpecSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1025,6 +1110,13 @@ public UnaryCallSettings.Builder exportDataSetting return listDataItemsSettings; } + /** Returns the builder for the settings used for calls to listSavedQueries. */ + public PagedCallSettings.Builder< + ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> + listSavedQueriesSettings() { + return listSavedQueriesSettings; + } + /** Returns the builder for the settings used for calls to getAnnotationSpec. */ public UnaryCallSettings.Builder getAnnotationSpecSettings() { diff --git a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java index c0e6847fc..c16b31fb1 100644 --- a/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java +++ b/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java @@ -20,6 +20,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse; 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 com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -49,6 +50,8 @@ import com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse; import com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest; 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.UpdateDatasetRequest; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -153,6 +156,17 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub { ProtoUtils.marshaller(ListDataItemsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + listSavedQueriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.DatasetService/ListSavedQueries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSavedQueriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSavedQueriesResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor getAnnotationSpecMethodDescriptor = MethodDescriptor.newBuilder() @@ -242,6 +256,10 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub { private final UnaryCallable listDataItemsCallable; private final UnaryCallable listDataItemsPagedCallable; + private final UnaryCallable + listSavedQueriesCallable; + private final UnaryCallable + listSavedQueriesPagedCallable; private final UnaryCallable getAnnotationSpecCallable; private final UnaryCallable listAnnotationsCallable; @@ -380,6 +398,17 @@ protected GrpcDatasetServiceStub( return params.build(); }) .build(); + GrpcCallSettings + listSavedQueriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSavedQueriesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); GrpcCallSettings getAnnotationSpecTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAnnotationSpecMethodDescriptor) @@ -507,6 +536,12 @@ protected GrpcDatasetServiceStub( this.listDataItemsPagedCallable = callableFactory.createPagedCallable( listDataItemsTransportSettings, settings.listDataItemsSettings(), clientContext); + this.listSavedQueriesCallable = + callableFactory.createUnaryCallable( + listSavedQueriesTransportSettings, settings.listSavedQueriesSettings(), clientContext); + this.listSavedQueriesPagedCallable = + callableFactory.createPagedCallable( + listSavedQueriesTransportSettings, settings.listSavedQueriesSettings(), clientContext); this.getAnnotationSpecCallable = callableFactory.createUnaryCallable( getAnnotationSpecTransportSettings, @@ -622,6 +657,18 @@ public UnaryCallable listDataItemsC return listDataItemsPagedCallable; } + @Override + public UnaryCallable + listSavedQueriesCallable() { + return listSavedQueriesCallable; + } + + @Override + public UnaryCallable + listSavedQueriesPagedCallable() { + return listSavedQueriesPagedCallable; + } + @Override public UnaryCallable getAnnotationSpecCallable() { return getAnnotationSpecCallable; diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java index f4aa922f5..0c9aaadf0 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java @@ -20,6 +20,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse; 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 com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -815,6 +816,94 @@ public void listDataItemsExceptionTest2() throws Exception { } } + @Test + public void listSavedQueriesTest() throws Exception { + SavedQuery responsesElement = SavedQuery.newBuilder().build(); + ListSavedQueriesResponse expectedResponse = + ListSavedQueriesResponse.newBuilder() + .setNextPageToken("") + .addAllSavedQueries(Arrays.asList(responsesElement)) + .build(); + mockDatasetService.addResponse(expectedResponse); + + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + + ListSavedQueriesPagedResponse pagedListResponse = client.listSavedQueries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSavedQueriesList().get(0), resources.get(0)); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSavedQueriesRequest actualRequest = ((ListSavedQueriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSavedQueriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + client.listSavedQueries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSavedQueriesTest2() throws Exception { + SavedQuery responsesElement = SavedQuery.newBuilder().build(); + ListSavedQueriesResponse expectedResponse = + ListSavedQueriesResponse.newBuilder() + .setNextPageToken("") + .addAllSavedQueries(Arrays.asList(responsesElement)) + .build(); + mockDatasetService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSavedQueriesPagedResponse pagedListResponse = client.listSavedQueries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSavedQueriesList().get(0), resources.get(0)); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSavedQueriesRequest actualRequest = ((ListSavedQueriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSavedQueriesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSavedQueries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getAnnotationSpecTest() throws Exception { AnnotationSpec expectedResponse = diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java index d9d33b8f1..a740c517c 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java @@ -224,6 +224,27 @@ public void listDataItems( } } + @Override + public void listSavedQueries( + ListSavedQueriesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSavedQueriesResponse) { + requests.add(request); + responseObserver.onNext(((ListSavedQueriesResponse) 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 ListSavedQueries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSavedQueriesResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getAnnotationSpec( GetAnnotationSpecRequest request, StreamObserver responseObserver) { diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java index 0f5641584..7d8ee74e6 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java @@ -20,6 +20,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse; 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 com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -817,6 +818,94 @@ public void listDataItemsExceptionTest2() throws Exception { } } + @Test + public void listSavedQueriesTest() throws Exception { + SavedQuery responsesElement = SavedQuery.newBuilder().build(); + ListSavedQueriesResponse expectedResponse = + ListSavedQueriesResponse.newBuilder() + .setNextPageToken("") + .addAllSavedQueries(Arrays.asList(responsesElement)) + .build(); + mockDatasetService.addResponse(expectedResponse); + + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + + ListSavedQueriesPagedResponse pagedListResponse = client.listSavedQueries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSavedQueriesList().get(0), resources.get(0)); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSavedQueriesRequest actualRequest = ((ListSavedQueriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSavedQueriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + client.listSavedQueries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSavedQueriesTest2() throws Exception { + SavedQuery responsesElement = SavedQuery.newBuilder().build(); + ListSavedQueriesResponse expectedResponse = + ListSavedQueriesResponse.newBuilder() + .setNextPageToken("") + .addAllSavedQueries(Arrays.asList(responsesElement)) + .build(); + mockDatasetService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSavedQueriesPagedResponse pagedListResponse = client.listSavedQueries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSavedQueriesList().get(0), resources.get(0)); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSavedQueriesRequest actualRequest = ((ListSavedQueriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSavedQueriesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSavedQueries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getAnnotationSpecTest() throws Exception { AnnotationSpec expectedResponse = diff --git a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java index eccc100fb..7cc84b185 100644 --- a/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java +++ b/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java @@ -224,6 +224,27 @@ public void listDataItems( } } + @Override + public void listSavedQueries( + ListSavedQueriesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSavedQueriesResponse) { + requests.add(request); + responseObserver.onNext(((ListSavedQueriesResponse) 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 ListSavedQueries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSavedQueriesResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getAnnotationSpec( GetAnnotationSpecRequest request, StreamObserver responseObserver) { diff --git a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java b/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java index ea4ca7962..c1f0596d5 100644 --- a/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java +++ b/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.ListSavedQueriesRequest, + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse> + getListSavedQueriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSavedQueries", + requestType = com.google.cloud.aiplatform.v1.ListSavedQueriesRequest.class, + responseType = com.google.cloud.aiplatform.v1.ListSavedQueriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest, + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse> + getListSavedQueriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest, + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse> + getListSavedQueriesMethod; + if ((getListSavedQueriesMethod = DatasetServiceGrpc.getListSavedQueriesMethod) == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getListSavedQueriesMethod = DatasetServiceGrpc.getListSavedQueriesMethod) == null) { + DatasetServiceGrpc.getListSavedQueriesMethod = + getListSavedQueriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSavedQueries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("ListSavedQueries")) + .build(); + } + } + } + return getListSavedQueriesMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest, com.google.cloud.aiplatform.v1.AnnotationSpec> @@ -644,6 +691,21 @@ public void listDataItems( getListDataItemsMethod(), responseObserver); } + /** + * + * + *
+     * Lists SavedQueries in a Dataset.
+     * 
+ */ + public void listSavedQueries( + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSavedQueriesMethod(), responseObserver); + } + /** * * @@ -727,6 +789,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( + getListSavedQueriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest, + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse>( + this, METHODID_LIST_SAVED_QUERIES))) .addMethod( getGetAnnotationSpecMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -888,6 +957,23 @@ public void listDataItems( responseObserver); } + /** + * + * + *
+     * Lists SavedQueries in a Dataset.
+     * 
+ */ + public void listSavedQueries( + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1047,6 +1133,19 @@ public com.google.cloud.aiplatform.v1.ListDataItemsResponse listDataItems( getChannel(), getListDataItemsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Lists SavedQueries in a Dataset.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.ListSavedQueriesResponse listSavedQueries( + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSavedQueriesMethod(), getCallOptions(), request); + } + /** * * @@ -1202,6 +1301,20 @@ protected DatasetServiceFutureStub build( getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Lists SavedQueries in a Dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse> + listSavedQueries(com.google.cloud.aiplatform.v1.ListSavedQueriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), request); + } + /** * * @@ -1239,8 +1352,9 @@ 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_GET_ANNOTATION_SPEC = 8; - private static final int METHODID_LIST_ANNOTATIONS = 9; + 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 class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1303,6 +1417,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_SAVED_QUERIES: + serviceImpl.listSavedQueries( + (com.google.cloud.aiplatform.v1.ListSavedQueriesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_GET_ANNOTATION_SPEC: serviceImpl.getAnnotationSpec( (com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest) request, @@ -1387,6 +1507,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getImportDataMethod()) .addMethod(getExportDataMethod()) .addMethod(getListDataItemsMethod()) + .addMethod(getListSavedQueriesMethod()) .addMethod(getGetAnnotationSpecMethod()) .addMethod(getListAnnotationsMethod()) .build(); diff --git a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java b/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java index cae10119f..bcc156c53 100644 --- a/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java +++ b/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.ListSavedQueriesRequest, + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse> + getListSavedQueriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSavedQueries", + requestType = com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest, + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse> + getListSavedQueriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest, + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse> + getListSavedQueriesMethod; + if ((getListSavedQueriesMethod = DatasetServiceGrpc.getListSavedQueriesMethod) == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getListSavedQueriesMethod = DatasetServiceGrpc.getListSavedQueriesMethod) == null) { + DatasetServiceGrpc.getListSavedQueriesMethod = + getListSavedQueriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSavedQueries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("ListSavedQueries")) + .build(); + } + } + } + return getListSavedQueriesMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest, com.google.cloud.aiplatform.v1beta1.AnnotationSpec> @@ -653,6 +700,21 @@ public void listDataItems( getListDataItemsMethod(), responseObserver); } + /** + * + * + *
+     * Lists SavedQueries in a Dataset.
+     * 
+ */ + public void listSavedQueries( + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSavedQueriesMethod(), responseObserver); + } + /** * * @@ -736,6 +798,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( + getListSavedQueriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest, + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse>( + this, METHODID_LIST_SAVED_QUERIES))) .addMethod( getGetAnnotationSpecMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -897,6 +966,23 @@ public void listDataItems( responseObserver); } + /** + * + * + *
+     * Lists SavedQueries in a Dataset.
+     * 
+ */ + public void listSavedQueries( + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1056,6 +1142,19 @@ public com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse listDataItems( getChannel(), getListDataItemsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Lists SavedQueries in a Dataset.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse listSavedQueries( + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSavedQueriesMethod(), getCallOptions(), request); + } + /** * * @@ -1211,6 +1310,20 @@ protected DatasetServiceFutureStub build( getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Lists SavedQueries in a Dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse> + listSavedQueries(com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSavedQueriesMethod(), getCallOptions()), request); + } + /** * * @@ -1248,8 +1361,9 @@ 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_GET_ANNOTATION_SPEC = 8; - private static final int METHODID_LIST_ANNOTATIONS = 9; + 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 class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1314,6 +1428,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse>) responseObserver); break; + case METHODID_LIST_SAVED_QUERIES: + serviceImpl.listSavedQueries( + (com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse>) + responseObserver); + break; case METHODID_GET_ANNOTATION_SPEC: serviceImpl.getAnnotationSpec( (com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest) request, @@ -1399,6 +1520,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getImportDataMethod()) .addMethod(getExportDataMethod()) .addMethod(getListDataItemsMethod()) + .addMethod(getListSavedQueriesMethod()) .addMethod(getGetAnnotationSpecMethod()) .addMethod(getListAnnotationsMethod()) .build(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java index 4fb2eb4e7..39009e3b9 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java @@ -87,6 +87,14 @@ 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_ListSavedQueriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -118,126 +126,140 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ec.proto\032*google/cloud/aiplatform/v1/dat" + "a_item.proto\032(google/cloud/aiplatform/v1" + "/dataset.proto\032*google/cloud/aiplatform/" - + "v1/operation.proto\032#google/longrunning/o" - + "perations.proto\032 google/protobuf/field_m" - + "ask.proto\"\214\001\n\024CreateDatasetRequest\0229\n\006pa" - + "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis" - + ".com/Location\0229\n\007dataset\030\002 \001(\0132#.google." - + "cloud.aiplatform.v1.DatasetB\003\340A\002\"p\n\036Crea" - + "teDatasetOperationMetadata\022N\n\020generic_me" - + "tadata\030\001 \001(\01324.google.cloud.aiplatform.v" - + "1.GenericOperationMetadata\"{\n\021GetDataset" - + "Request\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aiplatfor" - + "m.googleapis.com/Dataset\022-\n\tread_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMask\"\207\001\n\024Upda" - + "teDatasetRequest\0229\n\007dataset\030\001 \001(\0132#.goog" - + "le.cloud.aiplatform.v1.DatasetB\003\340A\002\0224\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\"\310\001\n\023ListDatasetsRequest\0229\n\006par" - + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." - + "com/Location\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_siz" - + "e\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask" - + "\030\005 \001(\0132\032.google.protobuf.FieldMask\022\020\n\010or" - + "der_by\030\006 \001(\t\"f\n\024ListDatasetsResponse\0225\n\010" - + "datasets\030\001 \003(\0132#.google.cloud.aiplatform" - + ".v1.Dataset\022\027\n\017next_page_token\030\002 \001(\t\"O\n\024" - + "DeleteDatasetRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372" - + "A#\n!aiplatform.googleapis.com/Dataset\"\227\001" - + "\n\021ImportDataRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" - + "#\n!aiplatform.googleapis.com/Dataset\022I\n\016" - + "import_configs\030\002 \003(\0132,.google.cloud.aipl" - + "atform.v1.ImportDataConfigB\003\340A\002\"\024\n\022Impor" - + "tDataResponse\"m\n\033ImportDataOperationMeta" - + "data\022N\n\020generic_metadata\030\001 \001(\01324.google." - + "cloud.aiplatform.v1.GenericOperationMeta" - + "data\"\226\001\n\021ExportDataRequest\0227\n\004name\030\001 \001(\t" + + "v1/operation.proto\032,google/cloud/aiplatf" + + "orm/v1/saved_query.proto\032#google/longrun" + + "ning/operations.proto\032 google/protobuf/f" + + "ield_mask.proto\"\214\001\n\024CreateDatasetRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\0229\n\007dataset\030\002 \001(\0132#.g" + + "oogle.cloud.aiplatform.v1.DatasetB\003\340A\002\"p" + + "\n\036CreateDatasetOperationMetadata\022N\n\020gene" + + "ric_metadata\030\001 \001(\01324.google.cloud.aiplat" + + "form.v1.GenericOperationMetadata\"{\n\021GetD" + + "atasetRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aip" + + "latform.googleapis.com/Dataset\022-\n\tread_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\207\001" + + "\n\024UpdateDatasetRequest\0229\n\007dataset\030\001 \001(\0132" + + "#.google.cloud.aiplatform.v1.DatasetB\003\340A" + + "\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\002\"\310\001\n\023ListDatasetsRequest\022" + + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" + + "eapis.com/Location\022\016\n\006filter\030\002 \001(\t\022\021\n\tpa" + + "ge_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\trea" + + "d_mask\030\005 \001(\0132\032.google.protobuf.FieldMask" + + "\022\020\n\010order_by\030\006 \001(\t\"f\n\024ListDatasetsRespon" + + "se\0225\n\010datasets\030\001 \003(\0132#.google.cloud.aipl" + + "atform.v1.Dataset\022\027\n\017next_page_token\030\002 \001" + + "(\t\"O\n\024DeleteDatasetRequest\0227\n\004name\030\001 \001(\t" + "B)\340A\002\372A#\n!aiplatform.googleapis.com/Data" - + "set\022H\n\rexport_config\030\002 \001(\0132,.google.clou" - + "d.aiplatform.v1.ExportDataConfigB\003\340A\002\",\n" - + "\022ExportDataResponse\022\026\n\016exported_files\030\001 " - + "\003(\t\"\213\001\n\033ExportDataOperationMetadata\022N\n\020g" - + "eneric_metadata\030\001 \001(\01324.google.cloud.aip" - + "latform.v1.GenericOperationMetadata\022\034\n\024g" - + "cs_output_directory\030\002 \001(\t\"\311\001\n\024ListDataIt" - + "emsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!aipl" - + "atform.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.protobu" - + "f.FieldMask\022\020\n\010order_by\030\006 \001(\t\"j\n\025ListDat" - + "aItemsResponse\0228\n\ndata_items\030\001 \003(\0132$.goo" - + "gle.cloud.aiplatform.v1.DataItem\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\211\001\n\030GetAnnotationSpecR" - + "equest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(aiplatform" - + ".googleapis.com/AnnotationSpec\022-\n\tread_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\314\001" - + "\n\026ListAnnotationsRequest\022:\n\006parent\030\001 \001(\t" - + "B*\340A\002\372A$\n\"aiplatform.googleapis.com/Data" - + "Item\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022" - + "\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032" - + ".google.protobuf.FieldMask\022\020\n\010order_by\030\006" - + " \001(\t\"o\n\027ListAnnotationsResponse\022;\n\013annot" - + "ations\030\001 \003(\0132&.google.cloud.aiplatform.v" - + "1.Annotation\022\027\n\017next_page_token\030\002 \001(\t2\330\020" - + "\n\016DatasetService\022\334\001\n\rCreateDataset\0220.goo" - + "gle.cloud.aiplatform.v1.CreateDatasetReq" - + "uest\032\035.google.longrunning.Operation\"z\202\323\344" - + "\223\0027\",/v1/{parent=projects/*/locations/*}" - + "/datasets:\007dataset\332A\016parent,dataset\312A)\n\007" - + "Dataset\022\036CreateDatasetOperationMetadata\022" - + "\235\001\n\nGetDataset\022-.google.cloud.aiplatform" - + ".v1.GetDatasetRequest\032#.google.cloud.aip" - + "latform.v1.Dataset\";\202\323\344\223\002.\022,/v1/{name=pr" - + "ojects/*/locations/*/datasets/*}\332A\004name\022" - + "\303\001\n\rUpdateDataset\0220.google.cloud.aiplatf" - + "orm.v1.UpdateDatasetRequest\032#.google.clo" - + "ud.aiplatform.v1.Dataset\"[\202\323\344\223\002?24/v1/{d" - + "ataset.name=projects/*/locations/*/datas" - + "ets/*}:\007dataset\332A\023dataset,update_mask\022\260\001" - + "\n\014ListDatasets\022/.google.cloud.aiplatform" - + ".v1.ListDatasetsRequest\0320.google.cloud.a" - + "iplatform.v1.ListDatasetsResponse\"=\202\323\344\223\002" - + ".\022,/v1/{parent=projects/*/locations/*}/d" - + "atasets\332A\006parent\022\320\001\n\rDeleteDataset\0220.goo" - + "gle.cloud.aiplatform.v1.DeleteDatasetReq" - + "uest\032\035.google.longrunning.Operation\"n\202\323\344" - + "\223\002.*,/v1/{name=projects/*/locations/*/da" - + "tasets/*}\332A\004name\312A0\n\025google.protobuf.Emp" - + "ty\022\027DeleteOperationMetadata\022\345\001\n\nImportDa" - + "ta\022-.google.cloud.aiplatform.v1.ImportDa" - + "taRequest\032\035.google.longrunning.Operation" - + "\"\210\001\202\323\344\223\0028\"3/v1/{name=projects/*/location" - + "s/*/datasets/*}:import:\001*\332A\023name,import_" - + "configs\312A1\n\022ImportDataResponse\022\033ImportDa" - + "taOperationMetadata\022\344\001\n\nExportData\022-.goo" - + "gle.cloud.aiplatform.v1.ExportDataReques" - + "t\032\035.google.longrunning.Operation\"\207\001\202\323\344\223\002" - + "8\"3/v1/{name=projects/*/locations/*/data" - + "sets/*}:export:\001*\332A\022name,export_config\312A" - + "1\n\022ExportDataResponse\022\033ExportDataOperati" - + "onMetadata\022\277\001\n\rListDataItems\0220.google.cl" - + "oud.aiplatform.v1.ListDataItemsRequest\0321" - + ".google.cloud.aiplatform.v1.ListDataItem" - + "sResponse\"I\202\323\344\223\002:\0228/v1/{parent=projects/" - + "*/locations/*/datasets/*}/dataItems\332A\006pa" - + "rent\022\304\001\n\021GetAnnotationSpec\0224.google.clou" - + "d.aiplatform.v1.GetAnnotationSpecRequest" - + "\032*.google.cloud.aiplatform.v1.Annotation" - + "Spec\"M\202\323\344\223\002@\022>/v1/{name=projects/*/locat" - + "ions/*/datasets/*/annotationSpecs/*}\332A\004n" - + "ame\022\323\001\n\017ListAnnotations\0222.google.cloud.a" - + "iplatform.v1.ListAnnotationsRequest\0323.go" - + "ogle.cloud.aiplatform.v1.ListAnnotations" - + "Response\"W\202\323\344\223\002H\022F/v1/{parent=projects/*" - + "/locations/*/datasets/*/dataItems/*}/ann" - + "otations\332A\006parent\032M\312A\031aiplatform.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformB\327\001\n\036com.google.cloud.ai" - + "platform.v1B\023DatasetServiceProtoP\001ZDgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "aiplatform/v1;aiplatform\252\002\032Google.Cloud." - + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\" - + "V1\352\002\035Google::Cloud::AIPlatform::V1b\006prot" - + "o3" + + "set\"\227\001\n\021ImportDataRequest\0227\n\004name\030\001 \001(\tB" + + ")\340A\002\372A#\n!aiplatform.googleapis.com/Datas" + + "et\022I\n\016import_configs\030\002 \003(\0132,.google.clou" + + "d.aiplatform.v1.ImportDataConfigB\003\340A\002\"\024\n" + + "\022ImportDataResponse\"m\n\033ImportDataOperati" + + "onMetadata\022N\n\020generic_metadata\030\001 \001(\01324.g" + + "oogle.cloud.aiplatform.v1.GenericOperati" + + "onMetadata\"\226\001\n\021ExportDataRequest\0227\n\004name" + + "\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis.co" + + "m/Dataset\022H\n\rexport_config\030\002 \001(\0132,.googl" + + "e.cloud.aiplatform.v1.ExportDataConfigB\003" + + "\340A\002\",\n\022ExportDataResponse\022\026\n\016exported_fi" + + "les\030\001 \003(\t\"\213\001\n\033ExportDataOperationMetadat" + + "a\022N\n\020generic_metadata\030\001 \001(\01324.google.clo" + + "ud.aiplatform.v1.GenericOperationMetadat" + + "a\022\034\n\024gcs_output_directory\030\002 \001(\t\"\311\001\n\024List" + + "DataItemsRequest\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\"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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -252,6 +274,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.DataItemProto.getDescriptor(), com.google.cloud.aiplatform.v1.DatasetProto.getDescriptor(), com.google.cloud.aiplatform.v1.OperationProto.getDescriptor(), + com.google.cloud.aiplatform.v1.SavedQueryProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), }); @@ -373,8 +396,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DataItems", "NextPageToken", }); - internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_descriptor = + internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", + }); + internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_descriptor, + new java.lang.String[] { + "SavedQueries", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_descriptor = + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_descriptor, @@ -382,7 +421,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ReadMask", }); internal_static_google_cloud_aiplatform_v1_ListAnnotationsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1_ListAnnotationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListAnnotationsRequest_descriptor, @@ -390,7 +429,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(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1_ListAnnotationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListAnnotationsResponse_descriptor, @@ -417,6 +456,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.DataItemProto.getDescriptor(); com.google.cloud.aiplatform.v1.DatasetProto.getDescriptor(); com.google.cloud.aiplatform.v1.OperationProto.getDescriptor(); + com.google.cloud.aiplatform.v1.SavedQueryProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java index 805449b9b..542f5d3e8 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfig.java @@ -42,6 +42,7 @@ private InputDataConfig() { datasetId_ = ""; annotationsFilter_ = ""; annotationSchemaUri_ = ""; + savedQueryId_ = ""; } @java.lang.Override @@ -151,6 +152,13 @@ private InputDataConfig( annotationsFilter_ = s; break; } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + savedQueryId_ = s; + break; + } case 66: { com.google.cloud.aiplatform.v1.GcsDestination.Builder subBuilder = null; @@ -1008,6 +1016,71 @@ public com.google.protobuf.ByteString getAnnotationSchemaUriBytes() { } } + public static final int SAVED_QUERY_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object savedQueryId_; + /** + * + * + *
+   * Only applicable to Datasets that have SavedQueries.
+   * The ID of a SavedQuery (annotation set) under the Dataset specified by
+   * [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+   * Only Annotations that are associated with this SavedQuery are used in
+   * respectively training. When used in conjunction with
+   * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+   * both [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter].
+   * Only one of [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] should be
+   * specified as both of them represent the same thing: problem type.
+   * 
+ * + * string saved_query_id = 7; + * + * @return The savedQueryId. + */ + @java.lang.Override + public java.lang.String getSavedQueryId() { + java.lang.Object ref = savedQueryId_; + 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(); + savedQueryId_ = s; + return s; + } + } + /** + * + * + *
+   * Only applicable to Datasets that have SavedQueries.
+   * The ID of a SavedQuery (annotation set) under the Dataset specified by
+   * [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+   * Only Annotations that are associated with this SavedQuery are used in
+   * respectively training. When used in conjunction with
+   * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+   * both [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter].
+   * Only one of [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] should be
+   * specified as both of them represent the same thing: problem type.
+   * 
+ * + * string saved_query_id = 7; + * + * @return The bytes for savedQueryId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSavedQueryIdBytes() { + java.lang.Object ref = savedQueryId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + savedQueryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1040,6 +1113,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationsFilter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, annotationsFilter_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQueryId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, savedQueryId_); + } if (destinationCase_ == 8) { output.writeMessage(8, (com.google.cloud.aiplatform.v1.GcsDestination) destination_); } @@ -1087,6 +1163,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationsFilter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, annotationsFilter_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQueryId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, savedQueryId_); + } if (destinationCase_ == 8) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1124,6 +1203,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDatasetId().equals(other.getDatasetId())) return false; if (!getAnnotationsFilter().equals(other.getAnnotationsFilter())) return false; if (!getAnnotationSchemaUri().equals(other.getAnnotationSchemaUri())) return false; + if (!getSavedQueryId().equals(other.getSavedQueryId())) return false; if (!getSplitCase().equals(other.getSplitCase())) return false; switch (splitCase_) { case 2: @@ -1172,6 +1252,8 @@ public int hashCode() { hash = (53 * hash) + getAnnotationsFilter().hashCode(); hash = (37 * hash) + ANNOTATION_SCHEMA_URI_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSchemaUri().hashCode(); + hash = (37 * hash) + SAVED_QUERY_ID_FIELD_NUMBER; + hash = (53 * hash) + getSavedQueryId().hashCode(); switch (splitCase_) { case 2: hash = (37 * hash) + FRACTION_SPLIT_FIELD_NUMBER; @@ -1360,6 +1442,8 @@ public Builder clear() { annotationSchemaUri_ = ""; + savedQueryId_ = ""; + splitCase_ = 0; split_ = null; destinationCase_ = 0; @@ -1443,6 +1527,7 @@ public com.google.cloud.aiplatform.v1.InputDataConfig buildPartial() { result.datasetId_ = datasetId_; result.annotationsFilter_ = annotationsFilter_; result.annotationSchemaUri_ = annotationSchemaUri_; + result.savedQueryId_ = savedQueryId_; result.splitCase_ = splitCase_; result.destinationCase_ = destinationCase_; onBuilt(); @@ -1506,6 +1591,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.InputDataConfig other) { annotationSchemaUri_ = other.annotationSchemaUri_; onChanged(); } + if (!other.getSavedQueryId().isEmpty()) { + savedQueryId_ = other.savedQueryId_; + onChanged(); + } switch (other.getSplitCase()) { case FRACTION_SPLIT: { @@ -3836,6 +3925,152 @@ public Builder setAnnotationSchemaUriBytes(com.google.protobuf.ByteString value) return this; } + private java.lang.Object savedQueryId_ = ""; + /** + * + * + *
+     * Only applicable to Datasets that have SavedQueries.
+     * The ID of a SavedQuery (annotation set) under the Dataset specified by
+     * [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+     * Only Annotations that are associated with this SavedQuery are used in
+     * respectively training. When used in conjunction with
+     * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+     * both [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter].
+     * Only one of [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] should be
+     * specified as both of them represent the same thing: problem type.
+     * 
+ * + * string saved_query_id = 7; + * + * @return The savedQueryId. + */ + public java.lang.String getSavedQueryId() { + java.lang.Object ref = savedQueryId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + savedQueryId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Only applicable to Datasets that have SavedQueries.
+     * The ID of a SavedQuery (annotation set) under the Dataset specified by
+     * [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+     * Only Annotations that are associated with this SavedQuery are used in
+     * respectively training. When used in conjunction with
+     * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+     * both [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter].
+     * Only one of [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] should be
+     * specified as both of them represent the same thing: problem type.
+     * 
+ * + * string saved_query_id = 7; + * + * @return The bytes for savedQueryId. + */ + public com.google.protobuf.ByteString getSavedQueryIdBytes() { + java.lang.Object ref = savedQueryId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + savedQueryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Only applicable to Datasets that have SavedQueries.
+     * The ID of a SavedQuery (annotation set) under the Dataset specified by
+     * [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+     * Only Annotations that are associated with this SavedQuery are used in
+     * respectively training. When used in conjunction with
+     * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+     * both [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter].
+     * Only one of [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] should be
+     * specified as both of them represent the same thing: problem type.
+     * 
+ * + * string saved_query_id = 7; + * + * @param value The savedQueryId to set. + * @return This builder for chaining. + */ + public Builder setSavedQueryId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + savedQueryId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Only applicable to Datasets that have SavedQueries.
+     * The ID of a SavedQuery (annotation set) under the Dataset specified by
+     * [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+     * Only Annotations that are associated with this SavedQuery are used in
+     * respectively training. When used in conjunction with
+     * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+     * both [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter].
+     * Only one of [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] should be
+     * specified as both of them represent the same thing: problem type.
+     * 
+ * + * string saved_query_id = 7; + * + * @return This builder for chaining. + */ + public Builder clearSavedQueryId() { + + savedQueryId_ = getDefaultInstance().getSavedQueryId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Only applicable to Datasets that have SavedQueries.
+     * The ID of a SavedQuery (annotation set) under the Dataset specified by
+     * [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+     * Only Annotations that are associated with this SavedQuery are used in
+     * respectively training. When used in conjunction with
+     * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+     * both [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter].
+     * Only one of [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] should be
+     * specified as both of them represent the same thing: problem type.
+     * 
+ * + * string saved_query_id = 7; + * + * @param value The bytes for savedQueryId to set. + * @return This builder for chaining. + */ + public Builder setSavedQueryIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + savedQueryId_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfigOrBuilder.java index f5d2f713e..e34f53b98 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/InputDataConfigOrBuilder.java @@ -497,6 +497,47 @@ public interface InputDataConfigOrBuilder */ com.google.protobuf.ByteString getAnnotationSchemaUriBytes(); + /** + * + * + *
+   * Only applicable to Datasets that have SavedQueries.
+   * The ID of a SavedQuery (annotation set) under the Dataset specified by
+   * [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+   * Only Annotations that are associated with this SavedQuery are used in
+   * respectively training. When used in conjunction with
+   * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+   * both [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter].
+   * Only one of [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] should be
+   * specified as both of them represent the same thing: problem type.
+   * 
+ * + * string saved_query_id = 7; + * + * @return The savedQueryId. + */ + java.lang.String getSavedQueryId(); + /** + * + * + *
+   * Only applicable to Datasets that have SavedQueries.
+   * The ID of a SavedQuery (annotation set) under the Dataset specified by
+   * [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+   * Only Annotations that are associated with this SavedQuery are used in
+   * respectively training. When used in conjunction with
+   * [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+   * both [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter].
+   * Only one of [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] should be
+   * specified as both of them represent the same thing: problem type.
+   * 
+ * + * string saved_query_id = 7; + * + * @return The bytes for savedQueryId. + */ + com.google.protobuf.ByteString getSavedQueryIdBytes(); + public com.google.cloud.aiplatform.v1.InputDataConfig.SplitCase getSplitCase(); public com.google.cloud.aiplatform.v1.InputDataConfig.DestinationCase getDestinationCase(); diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesRequest.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesRequest.java new file mode 100644 index 000000000..2a8c28ed1 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesRequest.java @@ -0,0 +1,1569 @@ +/* + * 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.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListSavedQueriesRequest} + */ +public final class ListSavedQueriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListSavedQueriesRequest) + ListSavedQueriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSavedQueriesRequest.newBuilder() to construct. + private ListSavedQueriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSavedQueriesRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSavedQueriesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListSavedQueriesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 42: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest.class, + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Dataset to list SavedQueries from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Dataset to list SavedQueries from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * The standard list filter.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * The standard list filter.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * The standard list page size.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The standard list page token.
+   * 
+ * + * string page_token = 4; + * + * @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; + } + } + /** + * + * + *
+   * The standard list page token.
+   * 
+ * + * string page_token = 4; + * + * @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; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 5; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + public static final int ORDER_BY_FIELD_NUMBER = 6; + 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 = 6; + * + * @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 fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6; + * + * @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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (readMask_ != null) { + output.writeMessage(5, getReadMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ListSavedQueriesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest other = + (com.google.cloud.aiplatform.v1.ListSavedQueriesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesRequest 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.ListSavedQueriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesRequest 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.ListSavedQueriesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesRequest 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.ListSavedQueriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesRequest 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.ListSavedQueriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesRequest 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.ListSavedQueriesRequest 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.ListSavedQueriesRequest 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.ListSavedQueriesRequest 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.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListSavedQueriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListSavedQueriesRequest) + com.google.cloud.aiplatform.v1.ListSavedQueriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest.class, + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListSavedQueriesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + 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_ListSavedQueriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListSavedQueriesRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListSavedQueriesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListSavedQueriesRequest build() { + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListSavedQueriesRequest buildPartial() { + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest result = + new com.google.cloud.aiplatform.v1.ListSavedQueriesRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + 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.ListSavedQueriesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListSavedQueriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListSavedQueriesRequest other) { + if (other == com.google.cloud.aiplatform.v1.ListSavedQueriesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.ListSavedQueriesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.ListSavedQueriesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Dataset to list SavedQueries from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list SavedQueries from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list SavedQueries from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list SavedQueries from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list SavedQueries from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * The standard list filter.
+     * 
+ * + * string filter = 2; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The standard list filter.
+     * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The standard list filter.
+     * 
+ * + * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list filter.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list filter.
+     * 
+ * + * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The standard list page token.
+     * 
+ * + * string page_token = 4; + * + * @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; + } + } + /** + * + * + *
+     * The standard list page token.
+     * 
+ * + * string page_token = 4; + * + * @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; + } + } + /** + * + * + *
+     * The standard list page token.
+     * 
+ * + * string page_token = 4; + * + * @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; + } + /** + * + * + *
+     * The standard list page token.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list page token.
+     * 
+ * + * string page_token = 4; + * + * @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; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + 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 = 6; + * + * @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 fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6; + * + * @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 fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6; + * + * @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 fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6; + * + * @return This builder for chaining. + */ + 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 = 6; + * + * @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.ListSavedQueriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListSavedQueriesRequest) + private static final com.google.cloud.aiplatform.v1.ListSavedQueriesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListSavedQueriesRequest(); + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSavedQueriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSavedQueriesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListSavedQueriesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesRequestOrBuilder.java new file mode 100644 index 000000000..2edaa4bf0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * 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 ListSavedQueriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListSavedQueriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Dataset to list SavedQueries from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the Dataset to list SavedQueries from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The standard list filter.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * The standard list filter.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The standard list page size.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The standard list page token.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The standard list page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); + + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6; + * + * @return The orderBy. + */ + 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 = 6; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java new file mode 100644 index 000000000..9648dd14e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponse.java @@ -0,0 +1,1134 @@ +/* + * 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.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListSavedQueriesResponse} + */ +public final class ListSavedQueriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListSavedQueriesResponse) + ListSavedQueriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSavedQueriesResponse.newBuilder() to construct. + private ListSavedQueriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSavedQueriesResponse() { + savedQueries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSavedQueriesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListSavedQueriesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + savedQueries_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + savedQueries_.add( + input.readMessage( + com.google.cloud.aiplatform.v1.SavedQuery.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + savedQueries_ = java.util.Collections.unmodifiableList(savedQueries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse.class, + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse.Builder.class); + } + + public static final int SAVED_QUERIES_FIELD_NUMBER = 1; + private java.util.List savedQueries_; + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + @java.lang.Override + public java.util.List getSavedQueriesList() { + return savedQueries_; + } + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + @java.lang.Override + public java.util.List + getSavedQueriesOrBuilderList() { + return savedQueries_; + } + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + @java.lang.Override + public int getSavedQueriesCount() { + return savedQueries_.size(); + } + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SavedQuery getSavedQueries(int index) { + return savedQueries_.get(index); + } + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder(int index) { + return savedQueries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * 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 < savedQueries_.size(); i++) { + output.writeMessage(1, savedQueries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < savedQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, savedQueries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ListSavedQueriesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse other = + (com.google.cloud.aiplatform.v1.ListSavedQueriesResponse) obj; + + if (!getSavedQueriesList().equals(other.getSavedQueriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSavedQueriesCount() > 0) { + hash = (37 * hash) + SAVED_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getSavedQueriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesResponse 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.ListSavedQueriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesResponse 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.ListSavedQueriesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesResponse 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.ListSavedQueriesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesResponse 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.ListSavedQueriesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesResponse 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.ListSavedQueriesResponse 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.ListSavedQueriesResponse 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.ListSavedQueriesResponse 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.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListSavedQueriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListSavedQueriesResponse) + com.google.cloud.aiplatform.v1.ListSavedQueriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse.class, + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListSavedQueriesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSavedQueriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (savedQueriesBuilder_ == null) { + savedQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + savedQueriesBuilder_.clear(); + } + 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_ListSavedQueriesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListSavedQueriesResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListSavedQueriesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListSavedQueriesResponse build() { + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListSavedQueriesResponse buildPartial() { + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse result = + new com.google.cloud.aiplatform.v1.ListSavedQueriesResponse(this); + int from_bitField0_ = bitField0_; + if (savedQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + savedQueries_ = java.util.Collections.unmodifiableList(savedQueries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.savedQueries_ = savedQueries_; + } else { + result.savedQueries_ = savedQueriesBuilder_.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.ListSavedQueriesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListSavedQueriesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListSavedQueriesResponse other) { + if (other == com.google.cloud.aiplatform.v1.ListSavedQueriesResponse.getDefaultInstance()) + return this; + if (savedQueriesBuilder_ == null) { + if (!other.savedQueries_.isEmpty()) { + if (savedQueries_.isEmpty()) { + savedQueries_ = other.savedQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSavedQueriesIsMutable(); + savedQueries_.addAll(other.savedQueries_); + } + onChanged(); + } + } else { + if (!other.savedQueries_.isEmpty()) { + if (savedQueriesBuilder_.isEmpty()) { + savedQueriesBuilder_.dispose(); + savedQueriesBuilder_ = null; + savedQueries_ = other.savedQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + savedQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSavedQueriesFieldBuilder() + : null; + } else { + savedQueriesBuilder_.addAllMessages(other.savedQueries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.ListSavedQueriesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1.ListSavedQueriesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List savedQueries_ = + java.util.Collections.emptyList(); + + private void ensureSavedQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + savedQueries_ = + new java.util.ArrayList(savedQueries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SavedQuery, + com.google.cloud.aiplatform.v1.SavedQuery.Builder, + com.google.cloud.aiplatform.v1.SavedQueryOrBuilder> + savedQueriesBuilder_; + + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public java.util.List getSavedQueriesList() { + if (savedQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(savedQueries_); + } else { + return savedQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public int getSavedQueriesCount() { + if (savedQueriesBuilder_ == null) { + return savedQueries_.size(); + } else { + return savedQueriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public com.google.cloud.aiplatform.v1.SavedQuery getSavedQueries(int index) { + if (savedQueriesBuilder_ == null) { + return savedQueries_.get(index); + } else { + return savedQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public Builder setSavedQueries(int index, com.google.cloud.aiplatform.v1.SavedQuery value) { + if (savedQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSavedQueriesIsMutable(); + savedQueries_.set(index, value); + onChanged(); + } else { + savedQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public Builder setSavedQueries( + int index, com.google.cloud.aiplatform.v1.SavedQuery.Builder builderForValue) { + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + savedQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + savedQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public Builder addSavedQueries(com.google.cloud.aiplatform.v1.SavedQuery value) { + if (savedQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSavedQueriesIsMutable(); + savedQueries_.add(value); + onChanged(); + } else { + savedQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public Builder addSavedQueries(int index, com.google.cloud.aiplatform.v1.SavedQuery value) { + if (savedQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSavedQueriesIsMutable(); + savedQueries_.add(index, value); + onChanged(); + } else { + savedQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public Builder addSavedQueries( + com.google.cloud.aiplatform.v1.SavedQuery.Builder builderForValue) { + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + savedQueries_.add(builderForValue.build()); + onChanged(); + } else { + savedQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public Builder addSavedQueries( + int index, com.google.cloud.aiplatform.v1.SavedQuery.Builder builderForValue) { + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + savedQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + savedQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public Builder addAllSavedQueries( + java.lang.Iterable values) { + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, savedQueries_); + onChanged(); + } else { + savedQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public Builder clearSavedQueries() { + if (savedQueriesBuilder_ == null) { + savedQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + savedQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public Builder removeSavedQueries(int index) { + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + savedQueries_.remove(index); + onChanged(); + } else { + savedQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public com.google.cloud.aiplatform.v1.SavedQuery.Builder getSavedQueriesBuilder(int index) { + return getSavedQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public com.google.cloud.aiplatform.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder(int index) { + if (savedQueriesBuilder_ == null) { + return savedQueries_.get(index); + } else { + return savedQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public java.util.List + getSavedQueriesOrBuilderList() { + if (savedQueriesBuilder_ != null) { + return savedQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(savedQueries_); + } + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public com.google.cloud.aiplatform.v1.SavedQuery.Builder addSavedQueriesBuilder() { + return getSavedQueriesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.SavedQuery.getDefaultInstance()); + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public com.google.cloud.aiplatform.v1.SavedQuery.Builder addSavedQueriesBuilder(int index) { + return getSavedQueriesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.SavedQuery.getDefaultInstance()); + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + public java.util.List + getSavedQueriesBuilderList() { + return getSavedQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SavedQuery, + com.google.cloud.aiplatform.v1.SavedQuery.Builder, + com.google.cloud.aiplatform.v1.SavedQueryOrBuilder> + getSavedQueriesFieldBuilder() { + if (savedQueriesBuilder_ == null) { + savedQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SavedQuery, + com.google.cloud.aiplatform.v1.SavedQuery.Builder, + com.google.cloud.aiplatform.v1.SavedQueryOrBuilder>( + savedQueries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + savedQueries_ = null; + } + return savedQueriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * 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.ListSavedQueriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListSavedQueriesResponse) + private static final com.google.cloud.aiplatform.v1.ListSavedQueriesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListSavedQueriesResponse(); + } + + public static com.google.cloud.aiplatform.v1.ListSavedQueriesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSavedQueriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSavedQueriesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListSavedQueriesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponseOrBuilder.java new file mode 100644 index 000000000..a78ca8315 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListSavedQueriesResponseOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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 ListSavedQueriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListSavedQueriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + java.util.List getSavedQueriesList(); + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + com.google.cloud.aiplatform.v1.SavedQuery getSavedQueries(int index); + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + int getSavedQueriesCount(); + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + java.util.List + getSavedQueriesOrBuilderList(); + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.SavedQuery saved_queries = 1; + */ + com.google.cloud.aiplatform.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder(int index); + + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineFailurePolicy.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineFailurePolicy.java index 3443dff2a..1a8f28e68 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineFailurePolicy.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineFailurePolicy.java @@ -22,7 +22,7 @@ * * *
- * Reperesents the failure policy of a pipeline. Currently, the default of a
+ * Represents the failure policy of a pipeline. Currently, the default of a
  * pipeline is that the pipeline will continue to run until no more tasks can be
  * executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a
  * pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling
diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQuery.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQuery.java
new file mode 100644
index 000000000..f8453feea
--- /dev/null
+++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQuery.java
@@ -0,0 +1,2489 @@
+/*
+ * 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/saved_query.proto
+
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ * 
+ * A SavedQuery is a view of the dataset. It references a subset of annotations
+ * by problem type and filters.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SavedQuery} + */ +public final class SavedQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SavedQuery) + SavedQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use SavedQuery.newBuilder() to construct. + private SavedQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SavedQuery() { + name_ = ""; + displayName_ = ""; + annotationFilter_ = ""; + problemType_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SavedQuery(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SavedQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + annotationFilter_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + problemType_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 72: + { + supportAutomlTraining_ = input.readBool(); + break; + } + case 80: + { + annotationSpecCount_ = input.readInt32(); + break; + } + case 98: + { + com.google.protobuf.Value.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.SavedQueryProto + .internal_static_google_cloud_aiplatform_v1_SavedQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.SavedQueryProto + .internal_static_google_cloud_aiplatform_v1_SavedQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SavedQuery.class, + com.google.cloud.aiplatform.v1.SavedQuery.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name of the SavedQuery.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of the SavedQuery.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required. The user-defined name of the SavedQuery.
+   * 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]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The user-defined name of the SavedQuery.
+   * 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]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 12; + private com.google.protobuf.Value metadata_; + /** + * + * + *
+   * Some additional information about the SavedQuery.
+   * 
+ * + * .google.protobuf.Value metadata = 12; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Some additional information about the SavedQuery.
+   * 
+ * + * .google.protobuf.Value metadata = 12; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Value getMetadata() { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } + /** + * + * + *
+   * Some additional information about the SavedQuery.
+   * 
+ * + * .google.protobuf.Value metadata = 12; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this SavedQuery was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this SavedQuery was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this SavedQuery was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when SavedQuery was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when SavedQuery was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when SavedQuery was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int ANNOTATION_FILTER_FIELD_NUMBER = 5; + private volatile java.lang.Object annotationFilter_; + /** + * + * + *
+   * Output only. Filters on the Annotations in the dataset.
+   * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The annotationFilter. + */ + @java.lang.Override + public java.lang.String getAnnotationFilter() { + java.lang.Object ref = annotationFilter_; + 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(); + annotationFilter_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Filters on the Annotations in the dataset.
+   * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for annotationFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnnotationFilterBytes() { + java.lang.Object ref = annotationFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + annotationFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROBLEM_TYPE_FIELD_NUMBER = 6; + private volatile java.lang.Object problemType_; + /** + * + * + *
+   * Required. Problem type of the SavedQuery.
+   * Allowed values:
+   * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+   * * IMAGE_CLASSIFICATION_MULTI_LABEL
+   * * IMAGE_BOUNDING_POLY
+   * * IMAGE_BOUNDING_BOX
+   * * TEXT_CLASSIFICATION_SINGLE_LABEL
+   * * TEXT_CLASSIFICATION_MULTI_LABEL
+   * * TEXT_EXTRACTION
+   * * TEXT_SENTIMENT
+   * * VIDEO_CLASSIFICATION
+   * * VIDEO_OBJECT_TRACKING
+   * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The problemType. + */ + @java.lang.Override + public java.lang.String getProblemType() { + java.lang.Object ref = problemType_; + 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(); + problemType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Problem type of the SavedQuery.
+   * Allowed values:
+   * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+   * * IMAGE_CLASSIFICATION_MULTI_LABEL
+   * * IMAGE_BOUNDING_POLY
+   * * IMAGE_BOUNDING_BOX
+   * * TEXT_CLASSIFICATION_SINGLE_LABEL
+   * * TEXT_CLASSIFICATION_MULTI_LABEL
+   * * TEXT_EXTRACTION
+   * * TEXT_SENTIMENT
+   * * VIDEO_CLASSIFICATION
+   * * VIDEO_OBJECT_TRACKING
+   * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for problemType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProblemTypeBytes() { + java.lang.Object ref = problemType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + problemType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATION_SPEC_COUNT_FIELD_NUMBER = 10; + private int annotationSpecCount_; + /** + * + * + *
+   * Output only. Number of AnnotationSpecs in the context of the SavedQuery.
+   * 
+ * + * int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The annotationSpecCount. + */ + @java.lang.Override + public int getAnnotationSpecCount() { + return annotationSpecCount_; + } + + public static final int ETAG_FIELD_NUMBER = 8; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 8; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 8; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPPORT_AUTOML_TRAINING_FIELD_NUMBER = 9; + private boolean supportAutomlTraining_; + /** + * + * + *
+   * Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
+   * training.
+   * 
+ * + * bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The supportAutomlTraining. + */ + @java.lang.Override + public boolean getSupportAutomlTraining() { + return supportAutomlTraining_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, annotationFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(problemType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, problemType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, etag_); + } + if (supportAutomlTraining_ != false) { + output.writeBool(9, supportAutomlTraining_); + } + if (annotationSpecCount_ != 0) { + output.writeInt32(10, annotationSpecCount_); + } + if (metadata_ != null) { + output.writeMessage(12, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, annotationFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(problemType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, problemType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); + } + if (supportAutomlTraining_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, supportAutomlTraining_); + } + if (annotationSpecCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, annotationSpecCount_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.SavedQuery)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SavedQuery other = + (com.google.cloud.aiplatform.v1.SavedQuery) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getAnnotationFilter().equals(other.getAnnotationFilter())) return false; + if (!getProblemType().equals(other.getProblemType())) return false; + if (getAnnotationSpecCount() != other.getAnnotationSpecCount()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getSupportAutomlTraining() != other.getSupportAutomlTraining()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ANNOTATION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationFilter().hashCode(); + hash = (37 * hash) + PROBLEM_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getProblemType().hashCode(); + hash = (37 * hash) + ANNOTATION_SPEC_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationSpecCount(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + SUPPORT_AUTOML_TRAINING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportAutomlTraining()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SavedQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SavedQuery 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.SavedQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SavedQuery 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.SavedQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SavedQuery 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.SavedQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SavedQuery 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.SavedQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SavedQuery 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.SavedQuery 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.SavedQuery 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.SavedQuery 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 SavedQuery is a view of the dataset. It references a subset of annotations
+   * by problem type and filters.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SavedQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SavedQuery) + com.google.cloud.aiplatform.v1.SavedQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.SavedQueryProto + .internal_static_google_cloud_aiplatform_v1_SavedQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.SavedQueryProto + .internal_static_google_cloud_aiplatform_v1_SavedQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SavedQuery.class, + com.google.cloud.aiplatform.v1.SavedQuery.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.SavedQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + annotationFilter_ = ""; + + problemType_ = ""; + + annotationSpecCount_ = 0; + + etag_ = ""; + + supportAutomlTraining_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.SavedQueryProto + .internal_static_google_cloud_aiplatform_v1_SavedQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SavedQuery getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SavedQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SavedQuery build() { + com.google.cloud.aiplatform.v1.SavedQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SavedQuery buildPartial() { + com.google.cloud.aiplatform.v1.SavedQuery result = + new com.google.cloud.aiplatform.v1.SavedQuery(this); + result.name_ = name_; + result.displayName_ = displayName_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.annotationFilter_ = annotationFilter_; + result.problemType_ = problemType_; + result.annotationSpecCount_ = annotationSpecCount_; + result.etag_ = etag_; + result.supportAutomlTraining_ = supportAutomlTraining_; + 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.SavedQuery) { + return mergeFrom((com.google.cloud.aiplatform.v1.SavedQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.SavedQuery other) { + if (other == com.google.cloud.aiplatform.v1.SavedQuery.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getAnnotationFilter().isEmpty()) { + annotationFilter_ = other.annotationFilter_; + onChanged(); + } + if (!other.getProblemType().isEmpty()) { + problemType_ = other.problemType_; + onChanged(); + } + if (other.getAnnotationSpecCount() != 0) { + setAnnotationSpecCount(other.getAnnotationSpecCount()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (other.getSupportAutomlTraining() != false) { + setSupportAutomlTraining(other.getSupportAutomlTraining()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1.SavedQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1.SavedQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of the SavedQuery.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the SavedQuery.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the SavedQuery.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the SavedQuery.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the SavedQuery.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. The user-defined name of the SavedQuery.
+     * 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]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The user-defined name of the SavedQuery.
+     * 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]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The user-defined name of the SavedQuery.
+     * 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]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-defined name of the SavedQuery.
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-defined name of the SavedQuery.
+     * 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]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Value metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + * + * @return The metadata. + */ + public com.google.protobuf.Value getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + public Builder setMetadata(com.google.protobuf.Value value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + public Builder mergeMetadata(com.google.protobuf.Value value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + public com.google.protobuf.Value.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object annotationFilter_ = ""; + /** + * + * + *
+     * Output only. Filters on the Annotations in the dataset.
+     * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The annotationFilter. + */ + public java.lang.String getAnnotationFilter() { + java.lang.Object ref = annotationFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + annotationFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Filters on the Annotations in the dataset.
+     * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for annotationFilter. + */ + public com.google.protobuf.ByteString getAnnotationFilterBytes() { + java.lang.Object ref = annotationFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + annotationFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Filters on the Annotations in the dataset.
+     * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The annotationFilter to set. + * @return This builder for chaining. + */ + public Builder setAnnotationFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + annotationFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Filters on the Annotations in the dataset.
+     * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAnnotationFilter() { + + annotationFilter_ = getDefaultInstance().getAnnotationFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Filters on the Annotations in the dataset.
+     * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for annotationFilter to set. + * @return This builder for chaining. + */ + public Builder setAnnotationFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + annotationFilter_ = value; + onChanged(); + return this; + } + + private java.lang.Object problemType_ = ""; + /** + * + * + *
+     * Required. Problem type of the SavedQuery.
+     * Allowed values:
+     * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+     * * IMAGE_CLASSIFICATION_MULTI_LABEL
+     * * IMAGE_BOUNDING_POLY
+     * * IMAGE_BOUNDING_BOX
+     * * TEXT_CLASSIFICATION_SINGLE_LABEL
+     * * TEXT_CLASSIFICATION_MULTI_LABEL
+     * * TEXT_EXTRACTION
+     * * TEXT_SENTIMENT
+     * * VIDEO_CLASSIFICATION
+     * * VIDEO_OBJECT_TRACKING
+     * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The problemType. + */ + public java.lang.String getProblemType() { + java.lang.Object ref = problemType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + problemType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Problem type of the SavedQuery.
+     * Allowed values:
+     * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+     * * IMAGE_CLASSIFICATION_MULTI_LABEL
+     * * IMAGE_BOUNDING_POLY
+     * * IMAGE_BOUNDING_BOX
+     * * TEXT_CLASSIFICATION_SINGLE_LABEL
+     * * TEXT_CLASSIFICATION_MULTI_LABEL
+     * * TEXT_EXTRACTION
+     * * TEXT_SENTIMENT
+     * * VIDEO_CLASSIFICATION
+     * * VIDEO_OBJECT_TRACKING
+     * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for problemType. + */ + public com.google.protobuf.ByteString getProblemTypeBytes() { + java.lang.Object ref = problemType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + problemType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Problem type of the SavedQuery.
+     * Allowed values:
+     * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+     * * IMAGE_CLASSIFICATION_MULTI_LABEL
+     * * IMAGE_BOUNDING_POLY
+     * * IMAGE_BOUNDING_BOX
+     * * TEXT_CLASSIFICATION_SINGLE_LABEL
+     * * TEXT_CLASSIFICATION_MULTI_LABEL
+     * * TEXT_EXTRACTION
+     * * TEXT_SENTIMENT
+     * * VIDEO_CLASSIFICATION
+     * * VIDEO_OBJECT_TRACKING
+     * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The problemType to set. + * @return This builder for chaining. + */ + public Builder setProblemType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + problemType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Problem type of the SavedQuery.
+     * Allowed values:
+     * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+     * * IMAGE_CLASSIFICATION_MULTI_LABEL
+     * * IMAGE_BOUNDING_POLY
+     * * IMAGE_BOUNDING_BOX
+     * * TEXT_CLASSIFICATION_SINGLE_LABEL
+     * * TEXT_CLASSIFICATION_MULTI_LABEL
+     * * TEXT_EXTRACTION
+     * * TEXT_SENTIMENT
+     * * VIDEO_CLASSIFICATION
+     * * VIDEO_OBJECT_TRACKING
+     * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProblemType() { + + problemType_ = getDefaultInstance().getProblemType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Problem type of the SavedQuery.
+     * Allowed values:
+     * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+     * * IMAGE_CLASSIFICATION_MULTI_LABEL
+     * * IMAGE_BOUNDING_POLY
+     * * IMAGE_BOUNDING_BOX
+     * * TEXT_CLASSIFICATION_SINGLE_LABEL
+     * * TEXT_CLASSIFICATION_MULTI_LABEL
+     * * TEXT_EXTRACTION
+     * * TEXT_SENTIMENT
+     * * VIDEO_CLASSIFICATION
+     * * VIDEO_OBJECT_TRACKING
+     * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for problemType to set. + * @return This builder for chaining. + */ + public Builder setProblemTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + problemType_ = value; + onChanged(); + return this; + } + + private int annotationSpecCount_; + /** + * + * + *
+     * Output only. Number of AnnotationSpecs in the context of the SavedQuery.
+     * 
+ * + * int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The annotationSpecCount. + */ + @java.lang.Override + public int getAnnotationSpecCount() { + return annotationSpecCount_; + } + /** + * + * + *
+     * Output only. Number of AnnotationSpecs in the context of the SavedQuery.
+     * 
+ * + * int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The annotationSpecCount to set. + * @return This builder for chaining. + */ + public Builder setAnnotationSpecCount(int value) { + + annotationSpecCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Number of AnnotationSpecs in the context of the SavedQuery.
+     * 
+ * + * int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAnnotationSpecCount() { + + annotationSpecCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + private boolean supportAutomlTraining_; + /** + * + * + *
+     * Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
+     * training.
+     * 
+ * + * bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The supportAutomlTraining. + */ + @java.lang.Override + public boolean getSupportAutomlTraining() { + return supportAutomlTraining_; + } + /** + * + * + *
+     * Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
+     * training.
+     * 
+ * + * bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The supportAutomlTraining to set. + * @return This builder for chaining. + */ + public Builder setSupportAutomlTraining(boolean value) { + + supportAutomlTraining_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
+     * training.
+     * 
+ * + * bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSupportAutomlTraining() { + + supportAutomlTraining_ = 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.SavedQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SavedQuery) + private static final com.google.cloud.aiplatform.v1.SavedQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SavedQuery(); + } + + public static com.google.cloud.aiplatform.v1.SavedQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SavedQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SavedQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryOrBuilder.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryOrBuilder.java new file mode 100644 index 000000000..a1e62ee1e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryOrBuilder.java @@ -0,0 +1,316 @@ +/* + * 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/saved_query.proto + +package com.google.cloud.aiplatform.v1; + +public interface SavedQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SavedQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of the SavedQuery.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of the SavedQuery.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The user-defined name of the SavedQuery.
+   * 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]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. The user-defined name of the SavedQuery.
+   * 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]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Some additional information about the SavedQuery.
+   * 
+ * + * .google.protobuf.Value metadata = 12; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * Some additional information about the SavedQuery.
+   * 
+ * + * .google.protobuf.Value metadata = 12; + * + * @return The metadata. + */ + com.google.protobuf.Value getMetadata(); + /** + * + * + *
+   * Some additional information about the SavedQuery.
+   * 
+ * + * .google.protobuf.Value metadata = 12; + */ + com.google.protobuf.ValueOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this SavedQuery was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this SavedQuery was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this SavedQuery was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when SavedQuery was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when SavedQuery was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when SavedQuery was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Filters on the Annotations in the dataset.
+   * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The annotationFilter. + */ + java.lang.String getAnnotationFilter(); + /** + * + * + *
+   * Output only. Filters on the Annotations in the dataset.
+   * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for annotationFilter. + */ + com.google.protobuf.ByteString getAnnotationFilterBytes(); + + /** + * + * + *
+   * Required. Problem type of the SavedQuery.
+   * Allowed values:
+   * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+   * * IMAGE_CLASSIFICATION_MULTI_LABEL
+   * * IMAGE_BOUNDING_POLY
+   * * IMAGE_BOUNDING_BOX
+   * * TEXT_CLASSIFICATION_SINGLE_LABEL
+   * * TEXT_CLASSIFICATION_MULTI_LABEL
+   * * TEXT_EXTRACTION
+   * * TEXT_SENTIMENT
+   * * VIDEO_CLASSIFICATION
+   * * VIDEO_OBJECT_TRACKING
+   * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The problemType. + */ + java.lang.String getProblemType(); + /** + * + * + *
+   * Required. Problem type of the SavedQuery.
+   * Allowed values:
+   * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+   * * IMAGE_CLASSIFICATION_MULTI_LABEL
+   * * IMAGE_BOUNDING_POLY
+   * * IMAGE_BOUNDING_BOX
+   * * TEXT_CLASSIFICATION_SINGLE_LABEL
+   * * TEXT_CLASSIFICATION_MULTI_LABEL
+   * * TEXT_EXTRACTION
+   * * TEXT_SENTIMENT
+   * * VIDEO_CLASSIFICATION
+   * * VIDEO_OBJECT_TRACKING
+   * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for problemType. + */ + com.google.protobuf.ByteString getProblemTypeBytes(); + + /** + * + * + *
+   * Output only. Number of AnnotationSpecs in the context of the SavedQuery.
+   * 
+ * + * int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The annotationSpecCount. + */ + int getAnnotationSpecCount(); + + /** + * + * + *
+   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 8; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 8; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
+   * training.
+   * 
+ * + * bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The supportAutomlTraining. + */ + boolean getSupportAutomlTraining(); +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryProto.java new file mode 100644 index 000000000..160968d9d --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SavedQueryProto.java @@ -0,0 +1,106 @@ +/* + * 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/saved_query.proto + +package com.google.cloud.aiplatform.v1; + +public final class SavedQueryProto { + private SavedQueryProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SavedQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SavedQuery_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/aiplatform/v1/saved_query" + + ".proto\022\032google.cloud.aiplatform.v1\032\037goog" + + "le/api/field_behavior.proto\032\031google/api/" + + "resource.proto\032\034google/protobuf/struct.p" + + "roto\032\037google/protobuf/timestamp.proto\"\346\003" + + "\n\nSavedQuery\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(\n\010metadata\030\014 \001(\0132\026.g" + + "oogle.protobuf.Value\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" + + "ampB\003\340A\003\022\036\n\021annotation_filter\030\005 \001(\tB\003\340A\003" + + "\022\031\n\014problem_type\030\006 \001(\tB\003\340A\002\022\"\n\025annotatio" + + "n_spec_count\030\n \001(\005B\003\340A\003\022\014\n\004etag\030\010 \001(\t\022$\n" + + "\027support_automl_training\030\t \001(\010B\003\340A\003:\200\001\352A" + + "}\n$aiplatform.googleapis.com/SavedQuery\022" + + "Uprojects/{project}/locations/{location}" + + "/datasets/{dataset}/savedQueries/{saved_" + + "query}B\323\001\n\036com.google.cloud.aiplatform.v" + + "1B\017SavedQueryProtoP\001ZDgoogle.golang.org/" + + "genproto/googleapis/cloud/aiplatform/v1;" + + "aiplatform\252\002\032Google.Cloud.AIPlatform.V1\312" + + "\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::C" + + "loud::AIPlatform::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_SavedQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_SavedQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_SavedQuery_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Metadata", + "CreateTime", + "UpdateTime", + "AnnotationFilter", + "ProblemType", + "AnnotationSpecCount", + "Etag", + "SupportAutomlTraining", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineProto.java b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineProto.java index 6719b2a50..9478dc019 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineProto.java +++ b/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TrainingPipelineProto.java @@ -104,7 +104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "A{\n*aiplatform.googleapis.com/TrainingPi" + "peline\022Mprojects/{project}/locations/{lo" + "cation}/trainingPipelines/{training_pipe" - + "line}\"\364\004\n\017InputDataConfig\022C\n\016fraction_sp" + + "line}\"\214\005\n\017InputDataConfig\022C\n\016fraction_sp" + "lit\030\002 \001(\0132).google.cloud.aiplatform.v1.F" + "ractionSplitH\000\022?\n\014filter_split\030\003 \001(\0132\'.g" + "oogle.cloud.aiplatform.v1.FilterSplitH\000\022" @@ -119,25 +119,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google.cloud.aiplatform.v1.BigQueryDesti" + "nationH\001\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\002\022\032\n\022ann" + "otations_filter\030\006 \001(\t\022\035\n\025annotation_sche" - + "ma_uri\030\t \001(\tB\007\n\005splitB\r\n\013destination\"^\n\r" - + "FractionSplit\022\031\n\021training_fraction\030\001 \001(\001" - + "\022\033\n\023validation_fraction\030\002 \001(\001\022\025\n\rtest_fr" - + "action\030\003 \001(\001\"e\n\013FilterSplit\022\034\n\017training_" - + "filter\030\001 \001(\tB\003\340A\002\022\036\n\021validation_filter\030\002" - + " \001(\tB\003\340A\002\022\030\n\013test_filter\030\003 \001(\tB\003\340A\002\"#\n\017P" - + "redefinedSplit\022\020\n\003key\030\001 \001(\tB\003\340A\002\"q\n\016Time" - + "stampSplit\022\031\n\021training_fraction\030\001 \001(\001\022\033\n" - + "\023validation_fraction\030\002 \001(\001\022\025\n\rtest_fract" - + "ion\030\003 \001(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002\"r\n\017Stratifie" - + "dSplit\022\031\n\021training_fraction\030\001 \001(\001\022\033\n\023val" - + "idation_fraction\030\002 \001(\001\022\025\n\rtest_fraction\030" - + "\003 \001(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002B\331\001\n\036com.google.c" - + "loud.aiplatform.v1B\025TrainingPipelineProt" - + "oP\001ZDgoogle.golang.org/genproto/googleap" - + "is/cloud/aiplatform/v1;aiplatform\252\002\032Goog" - + "le.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AI" - + "Platform\\V1\352\002\035Google::Cloud::AIPlatform:" - + ":V1b\006proto3" + + "ma_uri\030\t \001(\t\022\026\n\016saved_query_id\030\007 \001(\tB\007\n\005" + + "splitB\r\n\013destination\"^\n\rFractionSplit\022\031\n" + + "\021training_fraction\030\001 \001(\001\022\033\n\023validation_f" + + "raction\030\002 \001(\001\022\025\n\rtest_fraction\030\003 \001(\001\"e\n\013" + + "FilterSplit\022\034\n\017training_filter\030\001 \001(\tB\003\340A" + + "\002\022\036\n\021validation_filter\030\002 \001(\tB\003\340A\002\022\030\n\013tes" + + "t_filter\030\003 \001(\tB\003\340A\002\"#\n\017PredefinedSplit\022\020" + + "\n\003key\030\001 \001(\tB\003\340A\002\"q\n\016TimestampSplit\022\031\n\021tr" + + "aining_fraction\030\001 \001(\001\022\033\n\023validation_frac" + + "tion\030\002 \001(\001\022\025\n\rtest_fraction\030\003 \001(\001\022\020\n\003key" + + "\030\004 \001(\tB\003\340A\002\"r\n\017StratifiedSplit\022\031\n\021traini" + + "ng_fraction\030\001 \001(\001\022\033\n\023validation_fraction" + + "\030\002 \001(\001\022\025\n\rtest_fraction\030\003 \001(\001\022\020\n\003key\030\004 \001" + + "(\tB\003\340A\002B\331\001\n\036com.google.cloud.aiplatform." + + "v1B\025TrainingPipelineProtoP\001ZDgoogle.gola" + + "ng.org/genproto/googleapis/cloud/aiplatf" + + "orm/v1;aiplatform\252\002\032Google.Cloud.AIPlatf" + + "orm.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Go" + + "ogle::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -203,6 +203,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatasetId", "AnnotationsFilter", "AnnotationSchemaUri", + "SavedQueryId", "Split", "Destination", }); diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto index f9f82845b..5425db5b0 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1/annotation_spec.proto"; import "google/cloud/aiplatform/v1/data_item.proto"; import "google/cloud/aiplatform/v1/dataset.proto"; import "google/cloud/aiplatform/v1/operation.proto"; +import "google/cloud/aiplatform/v1/saved_query.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; @@ -126,6 +127,14 @@ service DatasetService { option (google.api.method_signature) = "parent"; } + // Lists SavedQueries in a Dataset. + rpc ListSavedQueries(ListSavedQueriesRequest) returns (ListSavedQueriesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/datasets/*}/savedQueries" + }; + option (google.api.method_signature) = "parent"; + } + // Gets an AnnotationSpec. rpc GetAnnotationSpec(GetAnnotationSpecRequest) returns (AnnotationSpec) { option (google.api.http) = { @@ -357,6 +366,44 @@ message ListDataItemsResponse { string next_page_token = 2; } +// Request message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries]. +message ListSavedQueriesRequest { + // Required. The resource name of the Dataset to list SavedQueries from. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // The standard list filter. + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + string order_by = 6; +} + +// Response message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries]. +message ListSavedQueriesResponse { + // A list of SavedQueries that match the specified filter in the request. + repeated SavedQuery saved_queries = 1; + + // The standard List next-page token. + string next_page_token = 2; +} + // Request message for [DatasetService.GetAnnotationSpec][google.cloud.aiplatform.v1.DatasetService.GetAnnotationSpec]. message GetAnnotationSpecRequest { // Required. The name of the AnnotationSpec resource. diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_failure_policy.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_failure_policy.proto index f82b1befb..5ff3b78be 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_failure_policy.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_failure_policy.proto @@ -24,7 +24,7 @@ option java_package = "com.google.cloud.aiplatform.v1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; option ruby_package = "Google::Cloud::AIPlatform::V1"; -// Reperesents the failure policy of a pipeline. Currently, the default of a +// Represents the failure policy of a pipeline. Currently, the default of a // pipeline is that the pipeline will continue to run until no more tasks can be // executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a // pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/saved_query.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/saved_query.proto new file mode 100644 index 000000000..3018d51d6 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/saved_query.proto @@ -0,0 +1,84 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "SavedQueryProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// A SavedQuery is a view of the dataset. It references a subset of annotations +// by problem type and filters. +message SavedQuery { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/SavedQuery" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}" + }; + + // Output only. Resource name of the SavedQuery. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The user-defined name of the SavedQuery. + // 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]; + + // Some additional information about the SavedQuery. + google.protobuf.Value metadata = 12; + + // Output only. Timestamp when this SavedQuery was created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when SavedQuery was last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Filters on the Annotations in the dataset. + string annotation_filter = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Problem type of the SavedQuery. + // Allowed values: + // * IMAGE_CLASSIFICATION_SINGLE_LABEL + // * IMAGE_CLASSIFICATION_MULTI_LABEL + // * IMAGE_BOUNDING_POLY + // * IMAGE_BOUNDING_BOX + // * TEXT_CLASSIFICATION_SINGLE_LABEL + // * TEXT_CLASSIFICATION_MULTI_LABEL + // * TEXT_EXTRACTION + // * TEXT_SENTIMENT + // * VIDEO_CLASSIFICATION + // * VIDEO_OBJECT_TRACKING + string problem_type = 6 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Number of AnnotationSpecs in the context of the SavedQuery. + int32 annotation_spec_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Used to perform a consistent read-modify-write update. If not set, a blind + // "overwrite" update happens. + string etag = 8; + + // Output only. If the Annotations belonging to the SavedQuery can be used for AutoML + // training. + bool support_automl_training = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/training_pipeline.proto b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/training_pipeline.proto index 8d775b0ba..a0de8cf40 100644 --- a/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/training_pipeline.proto +++ b/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/training_pipeline.proto @@ -276,6 +276,20 @@ message InputDataConfig { // for training are filtered by both [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter] and // [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri]. string annotation_schema_uri = 9; + + // Only applicable to Datasets that have SavedQueries. + // + // The ID of a SavedQuery (annotation set) under the Dataset specified by + // [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used for filtering Annotations for training. + // + // Only Annotations that are associated with this SavedQuery are used in + // respectively training. When used in conjunction with + // [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by + // both [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter]. + // + // Only one of [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] should be + // specified as both of them represent the same thing: problem type. + string saved_query_id = 7; } // Assigns the input data to training, validation, and test sets as per the diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java index c8ca462a9..307cff845 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java @@ -87,6 +87,14 @@ 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_ListSavedQueriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -119,111 +127,126 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ud/aiplatform/v1beta1/data_item.proto\032-g" + "oogle/cloud/aiplatform/v1beta1/dataset.p" + "roto\032/google/cloud/aiplatform/v1beta1/op" - + "eration.proto\032#google/longrunning/operat" - + "ions.proto\032 google/protobuf/field_mask.p" - + "roto\"\221\001\n\024CreateDatasetRequest\0229\n\006parent\030" - + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" - + "Location\022>\n\007dataset\030\002 \001(\0132(.google.cloud" - + ".aiplatform.v1beta1.DatasetB\003\340A\002\"u\n\036Crea" - + "teDatasetOperationMetadata\022S\n\020generic_me" - + "tadata\030\001 \001(\01329.google.cloud.aiplatform.v" - + "1beta1.GenericOperationMetadata\"{\n\021GetDa" - + "tasetRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aipl" - + "atform.googleapis.com/Dataset\022-\n\tread_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"\214\001\n" - + "\024UpdateDatasetRequest\022>\n\007dataset\030\001 \001(\0132(" - + ".google.cloud.aiplatform.v1beta1.Dataset" - + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\002\"\310\001\n\023ListDatasetsRequ" - + "est\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.g" - + "oogleapis.com/Location\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.Field" - + "Mask\022\020\n\010order_by\030\006 \001(\t\"k\n\024ListDatasetsRe" - + "sponse\022:\n\010datasets\030\001 \003(\0132(.google.cloud." - + "aiplatform.v1beta1.Dataset\022\027\n\017next_page_" - + "token\030\002 \001(\t\"O\n\024DeleteDatasetRequest\0227\n\004n" - + "ame\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis" - + ".com/Dataset\"\234\001\n\021ImportDataRequest\0227\n\004na" - + "me\030\001 \001(\tB)\340A\002\372A#\n!aiplatform.googleapis." - + "com/Dataset\022N\n\016import_configs\030\002 \003(\01321.go" - + "ogle.cloud.aiplatform.v1beta1.ImportData" - + "ConfigB\003\340A\002\"\024\n\022ImportDataResponse\"r\n\033Imp" - + "ortDataOperationMetadata\022S\n\020generic_meta" - + "data\030\001 \001(\01329.google.cloud.aiplatform.v1b" - + "eta1.GenericOperationMetadata\"\233\001\n\021Export" - + "DataRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aipla" - + "tform.googleapis.com/Dataset\022M\n\rexport_c" - + "onfig\030\002 \001(\01321.google.cloud.aiplatform.v1" - + "beta1.ExportDataConfigB\003\340A\002\",\n\022ExportDat" - + "aResponse\022\026\n\016exported_files\030\001 \003(\t\"\220\001\n\033Ex" - + "portDataOperationMetadata\022S\n\020generic_met" - + "adata\030\001 \001(\01329.google.cloud.aiplatform.v1" - + "beta1.GenericOperationMetadata\022\034\n\024gcs_ou" - + "tput_directory\030\002 \001(\t\"\311\001\n\024ListDataItemsRe" - + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!aiplatfor" - + "m.googleapis.com/Dataset\022\016\n\006filter\030\002 \001(\t" - + "\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022" - + "-\n\tread_mask\030\005 \001(\0132\032.google.protobuf.Fie" - + "ldMask\022\020\n\010order_by\030\006 \001(\t\"o\n\025ListDataItem" - + "sResponse\022=\n\ndata_items\030\001 \003(\0132).google.c" - + "loud.aiplatform.v1beta1.DataItem\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\211\001\n\030GetAnnotationSpecR" - + "equest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(aiplatform" - + ".googleapis.com/AnnotationSpec\022-\n\tread_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\314\001" - + "\n\026ListAnnotationsRequest\022:\n\006parent\030\001 \001(\t" - + "B*\340A\002\372A$\n\"aiplatform.googleapis.com/Data" - + "Item\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022" - + "\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032" - + ".google.protobuf.FieldMask\022\020\n\010order_by\030\006" - + " \001(\t\"t\n\027ListAnnotationsResponse\022@\n\013annot" - + "ations\030\001 \003(\0132+.google.cloud.aiplatform.v" - + "1beta1.Annotation\022\027\n\017next_page_token\030\002 \001" - + "(\t2\332\021\n\016DatasetService\022\346\001\n\rCreateDataset\022" - + "5.google.cloud.aiplatform.v1beta1.Create" - + "DatasetRequest\032\035.google.longrunning.Oper" - + "ation\"\177\202\323\344\223\002<\"1/v1beta1/{parent=projects" - + "/*/locations/*}/datasets:\007dataset\332A\016pare" - + "nt,dataset\312A)\n\007Dataset\022\036CreateDatasetOpe" - + "rationMetadata\022\254\001\n\nGetDataset\0222.google.c" - + "loud.aiplatform.v1beta1.GetDatasetReques" + + "eration.proto\0321google/cloud/aiplatform/v" + + "1beta1/saved_query.proto\032#google/longrun" + + "ning/operations.proto\032 google/protobuf/f" + + "ield_mask.proto\"\221\001\n\024CreateDatasetRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\022>\n\007dataset\030\002 \001(\0132(.g" + + "oogle.cloud.aiplatform.v1beta1.DatasetB\003" + + "\340A\002\"u\n\036CreateDatasetOperationMetadata\022S\n" + + "\020generic_metadata\030\001 \001(\01329.google.cloud.a" + + "iplatform.v1beta1.GenericOperationMetada" + + "ta\"{\n\021GetDatasetRequest\0227\n\004name\030\001 \001(\tB)\340" + + "A\002\372A#\n!aiplatform.googleapis.com/Dataset" + + "\022-\n\tread_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMask\"\214\001\n\024UpdateDatasetRequest\022>\n\007data" + + "set\030\001 \001(\0132(.google.cloud.aiplatform.v1be" + + "ta1.DatasetB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMaskB\003\340A\002\"\310\001\n\023ListD" + + "atasetsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!" + + "locations.googleapis.com/Location\022\016\n\006fil" + + "ter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_tok" + + "en\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.pro" + + "tobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"k\n\024Lis" + + "tDatasetsResponse\022:\n\010datasets\030\001 \003(\0132(.go" + + "ogle.cloud.aiplatform.v1beta1.Dataset\022\027\n" + + "\017next_page_token\030\002 \001(\t\"O\n\024DeleteDatasetR" + + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aiplatform" + + ".googleapis.com/Dataset\"\234\001\n\021ImportDataRe" + + "quest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!aiplatform." + + "googleapis.com/Dataset\022N\n\016import_configs" + + "\030\002 \003(\01321.google.cloud.aiplatform.v1beta1" + + ".ImportDataConfigB\003\340A\002\"\024\n\022ImportDataResp" + + "onse\"r\n\033ImportDataOperationMetadata\022S\n\020g" + + "eneric_metadata\030\001 \001(\01329.google.cloud.aip" + + "latform.v1beta1.GenericOperationMetadata" + + "\"\233\001\n\021ExportDataRequest\0227\n\004name\030\001 \001(\tB)\340A" + + "\002\372A#\n!aiplatform.googleapis.com/Dataset\022" + + "M\n\rexport_config\030\002 \001(\01321.google.cloud.ai" + + "platform.v1beta1.ExportDataConfigB\003\340A\002\"," + + "\n\022ExportDataResponse\022\026\n\016exported_files\030\001" + + " \003(\t\"\220\001\n\033ExportDataOperationMetadata\022S\n\020" + + "generic_metadata\030\001 \001(\01329.google.cloud.ai" + + "platform.v1beta1.GenericOperationMetadat" + + "a\022\034\n\024gcs_output_directory\030\002 \001(\t\"\311\001\n\024List" + + "DataItemsRequest\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\"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\0023\0221/v1beta1/{name=projects/*/l" - + "ocations/*/datasets/*}\332A\004name\022\322\001\n\rUpdate" - + "Dataset\0225.google.cloud.aiplatform.v1beta" - + "1.UpdateDatasetRequest\032(.google.cloud.ai" - + "platform.v1beta1.Dataset\"`\202\323\344\223\002D29/v1bet" - + "a1/{dataset.name=projects/*/locations/*/" - + "datasets/*}:\007dataset\332A\023dataset,update_ma" - + "sk\022\277\001\n\014ListDatasets\0224.google.cloud.aipla" - + "tform.v1beta1.ListDatasetsRequest\0325.goog" - + "le.cloud.aiplatform.v1beta1.ListDatasets" - + "Response\"B\202\323\344\223\0023\0221/v1beta1/{parent=proje" - + "cts/*/locations/*}/datasets\332A\006parent\022\332\001\n" - + "\rDeleteDataset\0225.google.cloud.aiplatform" - + ".v1beta1.DeleteDatasetRequest\032\035.google.l" - + "ongrunning.Operation\"s\202\323\344\223\0023*1/v1beta1/{" - + "name=projects/*/locations/*/datasets/*}\332" - + "A\004name\312A0\n\025google.protobuf.Empty\022\027Delete" - + "OperationMetadata\022\357\001\n\nImportData\0222.googl" - + "e.cloud.aiplatform.v1beta1.ImportDataReq" - + "uest\032\035.google.longrunning.Operation\"\215\001\202\323" - + "\344\223\002=\"8/v1beta1/{name=projects/*/location" - + "s/*/datasets/*}:import:\001*\332A\023name,import_" - + "configs\312A1\n\022ImportDataResponse\022\033ImportDa" - + "taOperationMetadata\022\356\001\n\nExportData\0222.goo" - + "gle.cloud.aiplatform.v1beta1.ExportDataR" - + "equest\032\035.google.longrunning.Operation\"\214\001" - + "\202\323\344\223\002=\"8/v1beta1/{name=projects/*/locati" - + "ons/*/datasets/*}:export:\001*\332A\022name,expor" - + "t_config\312A1\n\022ExportDataResponse\022\033ExportD" - + "ataOperationMetadata\022\316\001\n\rListDataItems\0225" + + "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" - + "aItemsRequest\0326.google.cloud.aiplatform." - + "v1beta1.ListDataItemsResponse\"N\202\323\344\223\002?\022=/" - + "v1beta1/{parent=projects/*/locations/*/d" - + "atasets/*}/dataItems\332A\006parent\022\323\001\n\021GetAnn" + + "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\"" @@ -258,6 +281,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.DataItemProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.DatasetProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.SavedQueryProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), }); @@ -379,8 +403,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DataItems", "NextPageToken", }); - internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_descriptor, + new java.lang.String[] { + "SavedQueries", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_descriptor = + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_descriptor, @@ -388,7 +428,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ReadMask", }); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsRequest_descriptor, @@ -396,7 +436,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(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsResponse_descriptor, @@ -423,6 +463,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.DataItemProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.DatasetProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.SavedQueryProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); } diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java index 5afef068c..7ab5d4660 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfig.java @@ -42,6 +42,7 @@ private InputDataConfig() { datasetId_ = ""; annotationsFilter_ = ""; annotationSchemaUri_ = ""; + savedQueryId_ = ""; } @java.lang.Override @@ -157,6 +158,13 @@ private InputDataConfig( annotationsFilter_ = s; break; } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + savedQueryId_ = s; + break; + } case 66: { com.google.cloud.aiplatform.v1beta1.GcsDestination.Builder subBuilder = null; @@ -1021,6 +1029,71 @@ public com.google.protobuf.ByteString getAnnotationSchemaUriBytes() { } } + public static final int SAVED_QUERY_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object savedQueryId_; + /** + * + * + *
+   * Only applicable to Datasets that have SavedQueries.
+   * The ID of a SavedQuery (annotation set) under the Dataset specified by
+   * [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+   * Only Annotations that are associated with this SavedQuery are used in
+   * respectively training. When used in conjunction with
+   * [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+   * both [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter].
+   * Only one of [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] should be
+   * specified as both of them represent the same thing: problem type.
+   * 
+ * + * string saved_query_id = 7; + * + * @return The savedQueryId. + */ + @java.lang.Override + public java.lang.String getSavedQueryId() { + java.lang.Object ref = savedQueryId_; + 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(); + savedQueryId_ = s; + return s; + } + } + /** + * + * + *
+   * Only applicable to Datasets that have SavedQueries.
+   * The ID of a SavedQuery (annotation set) under the Dataset specified by
+   * [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+   * Only Annotations that are associated with this SavedQuery are used in
+   * respectively training. When used in conjunction with
+   * [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+   * both [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter].
+   * Only one of [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] should be
+   * specified as both of them represent the same thing: problem type.
+   * 
+ * + * string saved_query_id = 7; + * + * @return The bytes for savedQueryId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSavedQueryIdBytes() { + java.lang.Object ref = savedQueryId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + savedQueryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1053,6 +1126,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationsFilter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, annotationsFilter_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQueryId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, savedQueryId_); + } if (destinationCase_ == 8) { output.writeMessage(8, (com.google.cloud.aiplatform.v1beta1.GcsDestination) destination_); } @@ -1101,6 +1177,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationsFilter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, annotationsFilter_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(savedQueryId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, savedQueryId_); + } if (destinationCase_ == 8) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1138,6 +1217,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDatasetId().equals(other.getDatasetId())) return false; if (!getAnnotationsFilter().equals(other.getAnnotationsFilter())) return false; if (!getAnnotationSchemaUri().equals(other.getAnnotationSchemaUri())) return false; + if (!getSavedQueryId().equals(other.getSavedQueryId())) return false; if (!getSplitCase().equals(other.getSplitCase())) return false; switch (splitCase_) { case 2: @@ -1186,6 +1266,8 @@ public int hashCode() { hash = (53 * hash) + getAnnotationsFilter().hashCode(); hash = (37 * hash) + ANNOTATION_SCHEMA_URI_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSchemaUri().hashCode(); + hash = (37 * hash) + SAVED_QUERY_ID_FIELD_NUMBER; + hash = (53 * hash) + getSavedQueryId().hashCode(); switch (splitCase_) { case 2: hash = (37 * hash) + FRACTION_SPLIT_FIELD_NUMBER; @@ -1374,6 +1456,8 @@ public Builder clear() { annotationSchemaUri_ = ""; + savedQueryId_ = ""; + splitCase_ = 0; split_ = null; destinationCase_ = 0; @@ -1457,6 +1541,7 @@ public com.google.cloud.aiplatform.v1beta1.InputDataConfig buildPartial() { result.datasetId_ = datasetId_; result.annotationsFilter_ = annotationsFilter_; result.annotationSchemaUri_ = annotationSchemaUri_; + result.savedQueryId_ = savedQueryId_; result.splitCase_ = splitCase_; result.destinationCase_ = destinationCase_; onBuilt(); @@ -1521,6 +1606,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.InputDataConfig oth annotationSchemaUri_ = other.annotationSchemaUri_; onChanged(); } + if (!other.getSavedQueryId().isEmpty()) { + savedQueryId_ = other.savedQueryId_; + onChanged(); + } switch (other.getSplitCase()) { case FRACTION_SPLIT: { @@ -3858,6 +3947,152 @@ public Builder setAnnotationSchemaUriBytes(com.google.protobuf.ByteString value) return this; } + private java.lang.Object savedQueryId_ = ""; + /** + * + * + *
+     * Only applicable to Datasets that have SavedQueries.
+     * The ID of a SavedQuery (annotation set) under the Dataset specified by
+     * [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+     * Only Annotations that are associated with this SavedQuery are used in
+     * respectively training. When used in conjunction with
+     * [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+     * both [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter].
+     * Only one of [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] should be
+     * specified as both of them represent the same thing: problem type.
+     * 
+ * + * string saved_query_id = 7; + * + * @return The savedQueryId. + */ + public java.lang.String getSavedQueryId() { + java.lang.Object ref = savedQueryId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + savedQueryId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Only applicable to Datasets that have SavedQueries.
+     * The ID of a SavedQuery (annotation set) under the Dataset specified by
+     * [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+     * Only Annotations that are associated with this SavedQuery are used in
+     * respectively training. When used in conjunction with
+     * [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+     * both [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter].
+     * Only one of [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] should be
+     * specified as both of them represent the same thing: problem type.
+     * 
+ * + * string saved_query_id = 7; + * + * @return The bytes for savedQueryId. + */ + public com.google.protobuf.ByteString getSavedQueryIdBytes() { + java.lang.Object ref = savedQueryId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + savedQueryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Only applicable to Datasets that have SavedQueries.
+     * The ID of a SavedQuery (annotation set) under the Dataset specified by
+     * [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+     * Only Annotations that are associated with this SavedQuery are used in
+     * respectively training. When used in conjunction with
+     * [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+     * both [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter].
+     * Only one of [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] should be
+     * specified as both of them represent the same thing: problem type.
+     * 
+ * + * string saved_query_id = 7; + * + * @param value The savedQueryId to set. + * @return This builder for chaining. + */ + public Builder setSavedQueryId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + savedQueryId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Only applicable to Datasets that have SavedQueries.
+     * The ID of a SavedQuery (annotation set) under the Dataset specified by
+     * [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+     * Only Annotations that are associated with this SavedQuery are used in
+     * respectively training. When used in conjunction with
+     * [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+     * both [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter].
+     * Only one of [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] should be
+     * specified as both of them represent the same thing: problem type.
+     * 
+ * + * string saved_query_id = 7; + * + * @return This builder for chaining. + */ + public Builder clearSavedQueryId() { + + savedQueryId_ = getDefaultInstance().getSavedQueryId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Only applicable to Datasets that have SavedQueries.
+     * The ID of a SavedQuery (annotation set) under the Dataset specified by
+     * [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+     * Only Annotations that are associated with this SavedQuery are used in
+     * respectively training. When used in conjunction with
+     * [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+     * both [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter].
+     * Only one of [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] should be
+     * specified as both of them represent the same thing: problem type.
+     * 
+ * + * string saved_query_id = 7; + * + * @param value The bytes for savedQueryId to set. + * @return This builder for chaining. + */ + public Builder setSavedQueryIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + savedQueryId_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfigOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfigOrBuilder.java index 7c14ddbb6..e7fe2e531 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfigOrBuilder.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/InputDataConfigOrBuilder.java @@ -498,6 +498,47 @@ public interface InputDataConfigOrBuilder */ com.google.protobuf.ByteString getAnnotationSchemaUriBytes(); + /** + * + * + *
+   * Only applicable to Datasets that have SavedQueries.
+   * The ID of a SavedQuery (annotation set) under the Dataset specified by
+   * [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+   * Only Annotations that are associated with this SavedQuery are used in
+   * respectively training. When used in conjunction with
+   * [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+   * both [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter].
+   * Only one of [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] should be
+   * specified as both of them represent the same thing: problem type.
+   * 
+ * + * string saved_query_id = 7; + * + * @return The savedQueryId. + */ + java.lang.String getSavedQueryId(); + /** + * + * + *
+   * Only applicable to Datasets that have SavedQueries.
+   * The ID of a SavedQuery (annotation set) under the Dataset specified by
+   * [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] used for filtering Annotations for training.
+   * Only Annotations that are associated with this SavedQuery are used in
+   * respectively training. When used in conjunction with
+   * [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by
+   * both [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter].
+   * Only one of [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] should be
+   * specified as both of them represent the same thing: problem type.
+   * 
+ * + * string saved_query_id = 7; + * + * @return The bytes for savedQueryId. + */ + com.google.protobuf.ByteString getSavedQueryIdBytes(); + public com.google.cloud.aiplatform.v1beta1.InputDataConfig.SplitCase getSplitCase(); public com.google.cloud.aiplatform.v1beta1.InputDataConfig.DestinationCase getDestinationCase(); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesRequest.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesRequest.java new file mode 100644 index 000000000..ef90db1a0 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesRequest.java @@ -0,0 +1,1569 @@ +/* + * 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.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest} + */ +public final class ListSavedQueriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest) + ListSavedQueriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSavedQueriesRequest.newBuilder() to construct. + private ListSavedQueriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSavedQueriesRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSavedQueriesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListSavedQueriesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 42: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); + } + readMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.class, + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the Dataset to list SavedQueries from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Dataset to list SavedQueries from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * The standard list filter.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * The standard list filter.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * The standard list page size.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The standard list page token.
+   * 
+ * + * string page_token = 4; + * + * @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; + } + } + /** + * + * + *
+   * The standard list page token.
+   * 
+ * + * string page_token = 4; + * + * @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; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 5; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); + } + + public static final int ORDER_BY_FIELD_NUMBER = 6; + 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 = 6; + * + * @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 fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6; + * + * @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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (readMask_ != null) { + output.writeMessage(5, getReadMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest other = + (com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest 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.ListSavedQueriesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest 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.ListSavedQueriesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest 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.ListSavedQueriesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest 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.ListSavedQueriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest 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.ListSavedQueriesRequest 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.ListSavedQueriesRequest 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.ListSavedQueriesRequest 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.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest) + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.class, + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + if (readMaskBuilder_ == null) { + readMask_ = null; + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + 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_ListSavedQueriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest build() { + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest result = + new com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; + } else { + result.readMask_ = readMaskBuilder_.build(); + } + 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.ListSavedQueriesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Dataset to list SavedQueries from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list SavedQueries from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list SavedQueries from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list SavedQueries from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list SavedQueries from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * The standard list filter.
+     * 
+ * + * string filter = 2; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The standard list filter.
+     * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The standard list filter.
+     * 
+ * + * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list filter.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list filter.
+     * 
+ * + * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list page size.
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The standard list page token.
+     * 
+ * + * string page_token = 4; + * + * @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; + } + } + /** + * + * + *
+     * The standard list page token.
+     * 
+ * + * string page_token = 4; + * + * @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; + } + } + /** + * + * + *
+     * The standard list page token.
+     * 
+ * + * string page_token = 4; + * + * @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; + } + /** + * + * + *
+     * The standard list page token.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard list page token.
+     * 
+ * + * string page_token = 4; + * + * @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; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + onChanged(); + } else { + readMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + onChanged(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (readMask_ != null) { + readMask_ = + com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); + } else { + readMask_ = value; + } + onChanged(); + } else { + readMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; + onChanged(); + } else { + readMask_ = null; + readMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + 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 = 6; + * + * @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 fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6; + * + * @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 fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6; + * + * @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 fields to order by, sorted in ascending order.
+     * Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6; + * + * @return This builder for chaining. + */ + 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 = 6; + * + * @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.ListSavedQueriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSavedQueriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSavedQueriesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesRequestOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesRequestOrBuilder.java new file mode 100644 index 000000000..b925a8f8e --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * 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 ListSavedQueriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Dataset to list SavedQueries from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the Dataset to list SavedQueries from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The standard list filter.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * The standard list filter.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The standard list page size.
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The standard list page token.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The standard list page token.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); + + /** + * + * + *
+   * A comma-separated list of fields to order by, sorted in ascending order.
+   * Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6; + * + * @return The orderBy. + */ + 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 = 6; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponse.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponse.java new file mode 100644 index 000000000..26e3f5f30 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponse.java @@ -0,0 +1,1143 @@ +/* + * 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.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse} + */ +public final class ListSavedQueriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) + ListSavedQueriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSavedQueriesResponse.newBuilder() to construct. + private ListSavedQueriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSavedQueriesResponse() { + savedQueries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSavedQueriesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListSavedQueriesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + savedQueries_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + savedQueries_.add( + input.readMessage( + com.google.cloud.aiplatform.v1beta1.SavedQuery.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + savedQueries_ = java.util.Collections.unmodifiableList(savedQueries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.class, + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.Builder.class); + } + + public static final int SAVED_QUERIES_FIELD_NUMBER = 1; + private java.util.List savedQueries_; + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + @java.lang.Override + public java.util.List getSavedQueriesList() { + return savedQueries_; + } + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + @java.lang.Override + public java.util.List + getSavedQueriesOrBuilderList() { + return savedQueries_; + } + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + @java.lang.Override + public int getSavedQueriesCount() { + return savedQueries_.size(); + } + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SavedQuery getSavedQueries(int index) { + return savedQueries_.get(index); + } + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SavedQueryOrBuilder getSavedQueriesOrBuilder( + int index) { + return savedQueries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * 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 < savedQueries_.size(); i++) { + output.writeMessage(1, savedQueries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < savedQueries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, savedQueries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse other = + (com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) obj; + + if (!getSavedQueriesList().equals(other.getSavedQueriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSavedQueriesCount() > 0) { + hash = (37 * hash) + SAVED_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getSavedQueriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse 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.ListSavedQueriesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse 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.ListSavedQueriesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse 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.ListSavedQueriesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse 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.ListSavedQueriesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse 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.ListSavedQueriesResponse 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.ListSavedQueriesResponse 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.ListSavedQueriesResponse 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.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.class, + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSavedQueriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (savedQueriesBuilder_ == null) { + savedQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + savedQueriesBuilder_.clear(); + } + 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_ListSavedQueriesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse build() { + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse result = + new com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse(this); + int from_bitField0_ = bitField0_; + if (savedQueriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + savedQueries_ = java.util.Collections.unmodifiableList(savedQueries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.savedQueries_ = savedQueries_; + } else { + result.savedQueries_ = savedQueriesBuilder_.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.ListSavedQueriesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.getDefaultInstance()) + return this; + if (savedQueriesBuilder_ == null) { + if (!other.savedQueries_.isEmpty()) { + if (savedQueries_.isEmpty()) { + savedQueries_ = other.savedQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSavedQueriesIsMutable(); + savedQueries_.addAll(other.savedQueries_); + } + onChanged(); + } + } else { + if (!other.savedQueries_.isEmpty()) { + if (savedQueriesBuilder_.isEmpty()) { + savedQueriesBuilder_.dispose(); + savedQueriesBuilder_ = null; + savedQueries_ = other.savedQueries_; + bitField0_ = (bitField0_ & ~0x00000001); + savedQueriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSavedQueriesFieldBuilder() + : null; + } else { + savedQueriesBuilder_.addAllMessages(other.savedQueries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List savedQueries_ = + java.util.Collections.emptyList(); + + private void ensureSavedQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + savedQueries_ = + new java.util.ArrayList(savedQueries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SavedQuery, + com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder, + com.google.cloud.aiplatform.v1beta1.SavedQueryOrBuilder> + savedQueriesBuilder_; + + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public java.util.List getSavedQueriesList() { + if (savedQueriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(savedQueries_); + } else { + return savedQueriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public int getSavedQueriesCount() { + if (savedQueriesBuilder_ == null) { + return savedQueries_.size(); + } else { + return savedQueriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public com.google.cloud.aiplatform.v1beta1.SavedQuery getSavedQueries(int index) { + if (savedQueriesBuilder_ == null) { + return savedQueries_.get(index); + } else { + return savedQueriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public Builder setSavedQueries( + int index, com.google.cloud.aiplatform.v1beta1.SavedQuery value) { + if (savedQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSavedQueriesIsMutable(); + savedQueries_.set(index, value); + onChanged(); + } else { + savedQueriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public Builder setSavedQueries( + int index, com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder builderForValue) { + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + savedQueries_.set(index, builderForValue.build()); + onChanged(); + } else { + savedQueriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public Builder addSavedQueries(com.google.cloud.aiplatform.v1beta1.SavedQuery value) { + if (savedQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSavedQueriesIsMutable(); + savedQueries_.add(value); + onChanged(); + } else { + savedQueriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public Builder addSavedQueries( + int index, com.google.cloud.aiplatform.v1beta1.SavedQuery value) { + if (savedQueriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSavedQueriesIsMutable(); + savedQueries_.add(index, value); + onChanged(); + } else { + savedQueriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public Builder addSavedQueries( + com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder builderForValue) { + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + savedQueries_.add(builderForValue.build()); + onChanged(); + } else { + savedQueriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public Builder addSavedQueries( + int index, com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder builderForValue) { + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + savedQueries_.add(index, builderForValue.build()); + onChanged(); + } else { + savedQueriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public Builder addAllSavedQueries( + java.lang.Iterable values) { + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, savedQueries_); + onChanged(); + } else { + savedQueriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public Builder clearSavedQueries() { + if (savedQueriesBuilder_ == null) { + savedQueries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + savedQueriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public Builder removeSavedQueries(int index) { + if (savedQueriesBuilder_ == null) { + ensureSavedQueriesIsMutable(); + savedQueries_.remove(index); + onChanged(); + } else { + savedQueriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder getSavedQueriesBuilder( + int index) { + return getSavedQueriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public com.google.cloud.aiplatform.v1beta1.SavedQueryOrBuilder getSavedQueriesOrBuilder( + int index) { + if (savedQueriesBuilder_ == null) { + return savedQueries_.get(index); + } else { + return savedQueriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public java.util.List + getSavedQueriesOrBuilderList() { + if (savedQueriesBuilder_ != null) { + return savedQueriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(savedQueries_); + } + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder addSavedQueriesBuilder() { + return getSavedQueriesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.SavedQuery.getDefaultInstance()); + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder addSavedQueriesBuilder( + int index) { + return getSavedQueriesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.SavedQuery.getDefaultInstance()); + } + /** + * + * + *
+     * A list of SavedQueries that match the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + public java.util.List + getSavedQueriesBuilderList() { + return getSavedQueriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SavedQuery, + com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder, + com.google.cloud.aiplatform.v1beta1.SavedQueryOrBuilder> + getSavedQueriesFieldBuilder() { + if (savedQueriesBuilder_ == null) { + savedQueriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SavedQuery, + com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder, + com.google.cloud.aiplatform.v1beta1.SavedQueryOrBuilder>( + savedQueries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + savedQueries_ = null; + } + return savedQueriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * 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.ListSavedQueriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSavedQueriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSavedQueriesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponseOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponseOrBuilder.java new file mode 100644 index 000000000..fa4ce94e3 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListSavedQueriesResponseOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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 ListSavedQueriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + java.util.List getSavedQueriesList(); + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + com.google.cloud.aiplatform.v1beta1.SavedQuery getSavedQueries(int index); + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + int getSavedQueriesCount(); + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + java.util.List + getSavedQueriesOrBuilderList(); + /** + * + * + *
+   * A list of SavedQueries that match the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.SavedQuery saved_queries = 1; + */ + com.google.cloud.aiplatform.v1beta1.SavedQueryOrBuilder getSavedQueriesOrBuilder(int index); + + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQuery.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQuery.java new file mode 100644 index 000000000..3c75cbc5c --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQuery.java @@ -0,0 +1,2489 @@ +/* + * 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/saved_query.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A SavedQuery is a view of the dataset. It references a subset of annotations
+ * by problem type and filters.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SavedQuery} + */ +public final class SavedQuery extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SavedQuery) + SavedQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use SavedQuery.newBuilder() to construct. + private SavedQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SavedQuery() { + name_ = ""; + displayName_ = ""; + annotationFilter_ = ""; + problemType_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SavedQuery(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SavedQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + annotationFilter_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + problemType_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 72: + { + supportAutomlTraining_ = input.readBool(); + break; + } + case 80: + { + annotationSpecCount_ = input.readInt32(); + break; + } + case 98: + { + com.google.protobuf.Value.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.SavedQueryProto + .internal_static_google_cloud_aiplatform_v1beta1_SavedQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.SavedQueryProto + .internal_static_google_cloud_aiplatform_v1beta1_SavedQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SavedQuery.class, + com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name of the SavedQuery.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of the SavedQuery.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required. The user-defined name of the SavedQuery.
+   * 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]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The user-defined name of the SavedQuery.
+   * 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]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 12; + private com.google.protobuf.Value metadata_; + /** + * + * + *
+   * Some additional information about the SavedQuery.
+   * 
+ * + * .google.protobuf.Value metadata = 12; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Some additional information about the SavedQuery.
+   * 
+ * + * .google.protobuf.Value metadata = 12; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Value getMetadata() { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } + /** + * + * + *
+   * Some additional information about the SavedQuery.
+   * 
+ * + * .google.protobuf.Value metadata = 12; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this SavedQuery was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this SavedQuery was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this SavedQuery was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when SavedQuery was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when SavedQuery was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when SavedQuery was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int ANNOTATION_FILTER_FIELD_NUMBER = 5; + private volatile java.lang.Object annotationFilter_; + /** + * + * + *
+   * Output only. Filters on the Annotations in the dataset.
+   * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The annotationFilter. + */ + @java.lang.Override + public java.lang.String getAnnotationFilter() { + java.lang.Object ref = annotationFilter_; + 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(); + annotationFilter_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Filters on the Annotations in the dataset.
+   * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for annotationFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnnotationFilterBytes() { + java.lang.Object ref = annotationFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + annotationFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROBLEM_TYPE_FIELD_NUMBER = 6; + private volatile java.lang.Object problemType_; + /** + * + * + *
+   * Required. Problem type of the SavedQuery.
+   * Allowed values:
+   * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+   * * IMAGE_CLASSIFICATION_MULTI_LABEL
+   * * IMAGE_BOUNDING_POLY
+   * * IMAGE_BOUNDING_BOX
+   * * TEXT_CLASSIFICATION_SINGLE_LABEL
+   * * TEXT_CLASSIFICATION_MULTI_LABEL
+   * * TEXT_EXTRACTION
+   * * TEXT_SENTIMENT
+   * * VIDEO_CLASSIFICATION
+   * * VIDEO_OBJECT_TRACKING
+   * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The problemType. + */ + @java.lang.Override + public java.lang.String getProblemType() { + java.lang.Object ref = problemType_; + 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(); + problemType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Problem type of the SavedQuery.
+   * Allowed values:
+   * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+   * * IMAGE_CLASSIFICATION_MULTI_LABEL
+   * * IMAGE_BOUNDING_POLY
+   * * IMAGE_BOUNDING_BOX
+   * * TEXT_CLASSIFICATION_SINGLE_LABEL
+   * * TEXT_CLASSIFICATION_MULTI_LABEL
+   * * TEXT_EXTRACTION
+   * * TEXT_SENTIMENT
+   * * VIDEO_CLASSIFICATION
+   * * VIDEO_OBJECT_TRACKING
+   * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for problemType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProblemTypeBytes() { + java.lang.Object ref = problemType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + problemType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATION_SPEC_COUNT_FIELD_NUMBER = 10; + private int annotationSpecCount_; + /** + * + * + *
+   * Output only. Number of AnnotationSpecs in the context of the SavedQuery.
+   * 
+ * + * int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The annotationSpecCount. + */ + @java.lang.Override + public int getAnnotationSpecCount() { + return annotationSpecCount_; + } + + public static final int ETAG_FIELD_NUMBER = 8; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 8; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 8; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPPORT_AUTOML_TRAINING_FIELD_NUMBER = 9; + private boolean supportAutomlTraining_; + /** + * + * + *
+   * Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
+   * training.
+   * 
+ * + * bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The supportAutomlTraining. + */ + @java.lang.Override + public boolean getSupportAutomlTraining() { + return supportAutomlTraining_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, annotationFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(problemType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, problemType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, etag_); + } + if (supportAutomlTraining_ != false) { + output.writeBool(9, supportAutomlTraining_); + } + if (annotationSpecCount_ != 0) { + output.writeInt32(10, annotationSpecCount_); + } + if (metadata_ != null) { + output.writeMessage(12, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, annotationFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(problemType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, problemType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_); + } + if (supportAutomlTraining_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, supportAutomlTraining_); + } + if (annotationSpecCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, annotationSpecCount_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.SavedQuery)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SavedQuery other = + (com.google.cloud.aiplatform.v1beta1.SavedQuery) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getAnnotationFilter().equals(other.getAnnotationFilter())) return false; + if (!getProblemType().equals(other.getProblemType())) return false; + if (getAnnotationSpecCount() != other.getAnnotationSpecCount()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getSupportAutomlTraining() != other.getSupportAutomlTraining()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ANNOTATION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationFilter().hashCode(); + hash = (37 * hash) + PROBLEM_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getProblemType().hashCode(); + hash = (37 * hash) + ANNOTATION_SPEC_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationSpecCount(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + SUPPORT_AUTOML_TRAINING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSupportAutomlTraining()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SavedQuery parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SavedQuery 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.SavedQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SavedQuery 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.SavedQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SavedQuery 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.SavedQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SavedQuery 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.SavedQuery parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SavedQuery 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.SavedQuery 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.SavedQuery 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.SavedQuery 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 SavedQuery is a view of the dataset. It references a subset of annotations
+   * by problem type and filters.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SavedQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SavedQuery) + com.google.cloud.aiplatform.v1beta1.SavedQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.SavedQueryProto + .internal_static_google_cloud_aiplatform_v1beta1_SavedQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.SavedQueryProto + .internal_static_google_cloud_aiplatform_v1beta1_SavedQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SavedQuery.class, + com.google.cloud.aiplatform.v1beta1.SavedQuery.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SavedQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + annotationFilter_ = ""; + + problemType_ = ""; + + annotationSpecCount_ = 0; + + etag_ = ""; + + supportAutomlTraining_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.SavedQueryProto + .internal_static_google_cloud_aiplatform_v1beta1_SavedQuery_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SavedQuery getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SavedQuery.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SavedQuery build() { + com.google.cloud.aiplatform.v1beta1.SavedQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SavedQuery buildPartial() { + com.google.cloud.aiplatform.v1beta1.SavedQuery result = + new com.google.cloud.aiplatform.v1beta1.SavedQuery(this); + result.name_ = name_; + result.displayName_ = displayName_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.annotationFilter_ = annotationFilter_; + result.problemType_ = problemType_; + result.annotationSpecCount_ = annotationSpecCount_; + result.etag_ = etag_; + result.supportAutomlTraining_ = supportAutomlTraining_; + 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.SavedQuery) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SavedQuery) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SavedQuery other) { + if (other == com.google.cloud.aiplatform.v1beta1.SavedQuery.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getAnnotationFilter().isEmpty()) { + annotationFilter_ = other.annotationFilter_; + onChanged(); + } + if (!other.getProblemType().isEmpty()) { + problemType_ = other.problemType_; + onChanged(); + } + if (other.getAnnotationSpecCount() != 0) { + setAnnotationSpecCount(other.getAnnotationSpecCount()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (other.getSupportAutomlTraining() != false) { + setSupportAutomlTraining(other.getSupportAutomlTraining()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.aiplatform.v1beta1.SavedQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.aiplatform.v1beta1.SavedQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of the SavedQuery.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the SavedQuery.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the SavedQuery.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the SavedQuery.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the SavedQuery.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. The user-defined name of the SavedQuery.
+     * 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]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The user-defined name of the SavedQuery.
+     * 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]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The user-defined name of the SavedQuery.
+     * 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]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-defined name of the SavedQuery.
+     * 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]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The user-defined name of the SavedQuery.
+     * 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]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Value metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + * + * @return The metadata. + */ + public com.google.protobuf.Value getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + public Builder setMetadata(com.google.protobuf.Value value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + public Builder mergeMetadata(com.google.protobuf.Value value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.protobuf.Value.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + public com.google.protobuf.Value.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; + } + } + /** + * + * + *
+     * Some additional information about the SavedQuery.
+     * 
+ * + * .google.protobuf.Value metadata = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this SavedQuery was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when SavedQuery was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object annotationFilter_ = ""; + /** + * + * + *
+     * Output only. Filters on the Annotations in the dataset.
+     * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The annotationFilter. + */ + public java.lang.String getAnnotationFilter() { + java.lang.Object ref = annotationFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + annotationFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Filters on the Annotations in the dataset.
+     * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for annotationFilter. + */ + public com.google.protobuf.ByteString getAnnotationFilterBytes() { + java.lang.Object ref = annotationFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + annotationFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Filters on the Annotations in the dataset.
+     * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The annotationFilter to set. + * @return This builder for chaining. + */ + public Builder setAnnotationFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + annotationFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Filters on the Annotations in the dataset.
+     * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAnnotationFilter() { + + annotationFilter_ = getDefaultInstance().getAnnotationFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Filters on the Annotations in the dataset.
+     * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for annotationFilter to set. + * @return This builder for chaining. + */ + public Builder setAnnotationFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + annotationFilter_ = value; + onChanged(); + return this; + } + + private java.lang.Object problemType_ = ""; + /** + * + * + *
+     * Required. Problem type of the SavedQuery.
+     * Allowed values:
+     * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+     * * IMAGE_CLASSIFICATION_MULTI_LABEL
+     * * IMAGE_BOUNDING_POLY
+     * * IMAGE_BOUNDING_BOX
+     * * TEXT_CLASSIFICATION_SINGLE_LABEL
+     * * TEXT_CLASSIFICATION_MULTI_LABEL
+     * * TEXT_EXTRACTION
+     * * TEXT_SENTIMENT
+     * * VIDEO_CLASSIFICATION
+     * * VIDEO_OBJECT_TRACKING
+     * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The problemType. + */ + public java.lang.String getProblemType() { + java.lang.Object ref = problemType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + problemType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Problem type of the SavedQuery.
+     * Allowed values:
+     * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+     * * IMAGE_CLASSIFICATION_MULTI_LABEL
+     * * IMAGE_BOUNDING_POLY
+     * * IMAGE_BOUNDING_BOX
+     * * TEXT_CLASSIFICATION_SINGLE_LABEL
+     * * TEXT_CLASSIFICATION_MULTI_LABEL
+     * * TEXT_EXTRACTION
+     * * TEXT_SENTIMENT
+     * * VIDEO_CLASSIFICATION
+     * * VIDEO_OBJECT_TRACKING
+     * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for problemType. + */ + public com.google.protobuf.ByteString getProblemTypeBytes() { + java.lang.Object ref = problemType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + problemType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Problem type of the SavedQuery.
+     * Allowed values:
+     * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+     * * IMAGE_CLASSIFICATION_MULTI_LABEL
+     * * IMAGE_BOUNDING_POLY
+     * * IMAGE_BOUNDING_BOX
+     * * TEXT_CLASSIFICATION_SINGLE_LABEL
+     * * TEXT_CLASSIFICATION_MULTI_LABEL
+     * * TEXT_EXTRACTION
+     * * TEXT_SENTIMENT
+     * * VIDEO_CLASSIFICATION
+     * * VIDEO_OBJECT_TRACKING
+     * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The problemType to set. + * @return This builder for chaining. + */ + public Builder setProblemType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + problemType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Problem type of the SavedQuery.
+     * Allowed values:
+     * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+     * * IMAGE_CLASSIFICATION_MULTI_LABEL
+     * * IMAGE_BOUNDING_POLY
+     * * IMAGE_BOUNDING_BOX
+     * * TEXT_CLASSIFICATION_SINGLE_LABEL
+     * * TEXT_CLASSIFICATION_MULTI_LABEL
+     * * TEXT_EXTRACTION
+     * * TEXT_SENTIMENT
+     * * VIDEO_CLASSIFICATION
+     * * VIDEO_OBJECT_TRACKING
+     * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProblemType() { + + problemType_ = getDefaultInstance().getProblemType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Problem type of the SavedQuery.
+     * Allowed values:
+     * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+     * * IMAGE_CLASSIFICATION_MULTI_LABEL
+     * * IMAGE_BOUNDING_POLY
+     * * IMAGE_BOUNDING_BOX
+     * * TEXT_CLASSIFICATION_SINGLE_LABEL
+     * * TEXT_CLASSIFICATION_MULTI_LABEL
+     * * TEXT_EXTRACTION
+     * * TEXT_SENTIMENT
+     * * VIDEO_CLASSIFICATION
+     * * VIDEO_OBJECT_TRACKING
+     * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for problemType to set. + * @return This builder for chaining. + */ + public Builder setProblemTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + problemType_ = value; + onChanged(); + return this; + } + + private int annotationSpecCount_; + /** + * + * + *
+     * Output only. Number of AnnotationSpecs in the context of the SavedQuery.
+     * 
+ * + * int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The annotationSpecCount. + */ + @java.lang.Override + public int getAnnotationSpecCount() { + return annotationSpecCount_; + } + /** + * + * + *
+     * Output only. Number of AnnotationSpecs in the context of the SavedQuery.
+     * 
+ * + * int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The annotationSpecCount to set. + * @return This builder for chaining. + */ + public Builder setAnnotationSpecCount(int value) { + + annotationSpecCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Number of AnnotationSpecs in the context of the SavedQuery.
+     * 
+ * + * int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAnnotationSpecCount() { + + annotationSpecCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform a consistent read-modify-write update. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 8; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + private boolean supportAutomlTraining_; + /** + * + * + *
+     * Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
+     * training.
+     * 
+ * + * bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The supportAutomlTraining. + */ + @java.lang.Override + public boolean getSupportAutomlTraining() { + return supportAutomlTraining_; + } + /** + * + * + *
+     * Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
+     * training.
+     * 
+ * + * bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The supportAutomlTraining to set. + * @return This builder for chaining. + */ + public Builder setSupportAutomlTraining(boolean value) { + + supportAutomlTraining_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
+     * training.
+     * 
+ * + * bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSupportAutomlTraining() { + + supportAutomlTraining_ = 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.SavedQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SavedQuery) + private static final com.google.cloud.aiplatform.v1beta1.SavedQuery DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SavedQuery(); + } + + public static com.google.cloud.aiplatform.v1beta1.SavedQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SavedQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SavedQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SavedQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryOrBuilder.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryOrBuilder.java new file mode 100644 index 000000000..4ccbace24 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryOrBuilder.java @@ -0,0 +1,316 @@ +/* + * 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/saved_query.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface SavedQueryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SavedQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of the SavedQuery.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of the SavedQuery.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The user-defined name of the SavedQuery.
+   * 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]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. The user-defined name of the SavedQuery.
+   * 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]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Some additional information about the SavedQuery.
+   * 
+ * + * .google.protobuf.Value metadata = 12; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * Some additional information about the SavedQuery.
+   * 
+ * + * .google.protobuf.Value metadata = 12; + * + * @return The metadata. + */ + com.google.protobuf.Value getMetadata(); + /** + * + * + *
+   * Some additional information about the SavedQuery.
+   * 
+ * + * .google.protobuf.Value metadata = 12; + */ + com.google.protobuf.ValueOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this SavedQuery was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this SavedQuery was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this SavedQuery was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when SavedQuery was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when SavedQuery was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when SavedQuery was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Filters on the Annotations in the dataset.
+   * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The annotationFilter. + */ + java.lang.String getAnnotationFilter(); + /** + * + * + *
+   * Output only. Filters on the Annotations in the dataset.
+   * 
+ * + * string annotation_filter = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for annotationFilter. + */ + com.google.protobuf.ByteString getAnnotationFilterBytes(); + + /** + * + * + *
+   * Required. Problem type of the SavedQuery.
+   * Allowed values:
+   * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+   * * IMAGE_CLASSIFICATION_MULTI_LABEL
+   * * IMAGE_BOUNDING_POLY
+   * * IMAGE_BOUNDING_BOX
+   * * TEXT_CLASSIFICATION_SINGLE_LABEL
+   * * TEXT_CLASSIFICATION_MULTI_LABEL
+   * * TEXT_EXTRACTION
+   * * TEXT_SENTIMENT
+   * * VIDEO_CLASSIFICATION
+   * * VIDEO_OBJECT_TRACKING
+   * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The problemType. + */ + java.lang.String getProblemType(); + /** + * + * + *
+   * Required. Problem type of the SavedQuery.
+   * Allowed values:
+   * * IMAGE_CLASSIFICATION_SINGLE_LABEL
+   * * IMAGE_CLASSIFICATION_MULTI_LABEL
+   * * IMAGE_BOUNDING_POLY
+   * * IMAGE_BOUNDING_BOX
+   * * TEXT_CLASSIFICATION_SINGLE_LABEL
+   * * TEXT_CLASSIFICATION_MULTI_LABEL
+   * * TEXT_EXTRACTION
+   * * TEXT_SENTIMENT
+   * * VIDEO_CLASSIFICATION
+   * * VIDEO_OBJECT_TRACKING
+   * 
+ * + * string problem_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for problemType. + */ + com.google.protobuf.ByteString getProblemTypeBytes(); + + /** + * + * + *
+   * Output only. Number of AnnotationSpecs in the context of the SavedQuery.
+   * 
+ * + * int32 annotation_spec_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The annotationSpecCount. + */ + int getAnnotationSpecCount(); + + /** + * + * + *
+   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 8; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform a consistent read-modify-write update. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 8; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
+   * training.
+   * 
+ * + * bool support_automl_training = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The supportAutomlTraining. + */ + boolean getSupportAutomlTraining(); +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryProto.java new file mode 100644 index 000000000..00841bc40 --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SavedQueryProto.java @@ -0,0 +1,107 @@ +/* + * 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/saved_query.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class SavedQueryProto { + private SavedQueryProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SavedQuery_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SavedQuery_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/aiplatform/v1beta1/saved_" + + "query.proto\022\037google.cloud.aiplatform.v1b" + + "eta1\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032\034google/protobu" + + "f/struct.proto\032\037google/protobuf/timestam" + + "p.proto\"\346\003\n\nSavedQuery\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022(\n\010metadata" + + "\030\014 \001(\0132\026.google.protobuf.Value\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.proto" + + "buf.TimestampB\003\340A\003\022\036\n\021annotation_filter\030" + + "\005 \001(\tB\003\340A\003\022\031\n\014problem_type\030\006 \001(\tB\003\340A\002\022\"\n" + + "\025annotation_spec_count\030\n \001(\005B\003\340A\003\022\014\n\004eta" + + "g\030\010 \001(\t\022$\n\027support_automl_training\030\t \001(\010" + + "B\003\340A\003:\200\001\352A}\n$aiplatform.googleapis.com/S" + + "avedQuery\022Uprojects/{project}/locations/" + + "{location}/datasets/{dataset}/savedQueri" + + "es/{saved_query}B\354\001\n#com.google.cloud.ai" + + "platform.v1beta1B\017SavedQueryProtoP\001ZIgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/aiplatform/v1beta1;aiplatform\252\002\037Google." + + "Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\" + + "AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPl" + + "atform::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_SavedQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_SavedQuery_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SavedQuery_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Metadata", + "CreateTime", + "UpdateTime", + "AnnotationFilter", + "ProblemType", + "AnnotationSpecCount", + "Etag", + "SupportAutomlTraining", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineProto.java b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineProto.java index 4b2868da2..68e701816 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineProto.java +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TrainingPipelineProto.java @@ -105,7 +105,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ue\030\002 \001(\t:\0028\001:~\352A{\n*aiplatform.googleapis" + ".com/TrainingPipeline\022Mprojects/{project" + "}/locations/{location}/trainingPipelines" - + "/{training_pipeline}\"\227\005\n\017InputDataConfig" + + "/{training_pipeline}\"\257\005\n\017InputDataConfig" + "\022H\n\016fraction_split\030\002 \001(\0132..google.cloud." + "aiplatform.v1beta1.FractionSplitH\000\022D\n\014fi" + "lter_split\030\003 \001(\0132,.google.cloud.aiplatfo" @@ -121,26 +121,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\01324.google.cloud.aiplatform.v1beta1.Big" + "QueryDestinationH\001\022\027\n\ndataset_id\030\001 \001(\tB\003" + "\340A\002\022\032\n\022annotations_filter\030\006 \001(\t\022\035\n\025annot" - + "ation_schema_uri\030\t \001(\tB\007\n\005splitB\r\n\013desti" - + "nation\"^\n\rFractionSplit\022\031\n\021training_frac" - + "tion\030\001 \001(\001\022\033\n\023validation_fraction\030\002 \001(\001\022" - + "\025\n\rtest_fraction\030\003 \001(\001\"e\n\013FilterSplit\022\034\n" - + "\017training_filter\030\001 \001(\tB\003\340A\002\022\036\n\021validatio" - + "n_filter\030\002 \001(\tB\003\340A\002\022\030\n\013test_filter\030\003 \001(\t" - + "B\003\340A\002\"#\n\017PredefinedSplit\022\020\n\003key\030\001 \001(\tB\003\340" - + "A\002\"q\n\016TimestampSplit\022\031\n\021training_fractio" - + "n\030\001 \001(\001\022\033\n\023validation_fraction\030\002 \001(\001\022\025\n\r" - + "test_fraction\030\003 \001(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002\"r\n" - + "\017StratifiedSplit\022\031\n\021training_fraction\030\001 " - + "\001(\001\022\033\n\023validation_fraction\030\002 \001(\001\022\025\n\rtest" - + "_fraction\030\003 \001(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002B\362\001\n#co" - + "m.google.cloud.aiplatform.v1beta1B\025Train" - + "ingPipelineProtoP\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" + + "ation_schema_uri\030\t \001(\t\022\026\n\016saved_query_id" + + "\030\007 \001(\tB\007\n\005splitB\r\n\013destination\"^\n\rFracti" + + "onSplit\022\031\n\021training_fraction\030\001 \001(\001\022\033\n\023va" + + "lidation_fraction\030\002 \001(\001\022\025\n\rtest_fraction" + + "\030\003 \001(\001\"e\n\013FilterSplit\022\034\n\017training_filter" + + "\030\001 \001(\tB\003\340A\002\022\036\n\021validation_filter\030\002 \001(\tB\003" + + "\340A\002\022\030\n\013test_filter\030\003 \001(\tB\003\340A\002\"#\n\017Predefi" + + "nedSplit\022\020\n\003key\030\001 \001(\tB\003\340A\002\"q\n\016TimestampS" + + "plit\022\031\n\021training_fraction\030\001 \001(\001\022\033\n\023valid" + + "ation_fraction\030\002 \001(\001\022\025\n\rtest_fraction\030\003 " + + "\001(\001\022\020\n\003key\030\004 \001(\tB\003\340A\002\"r\n\017StratifiedSplit" + + "\022\031\n\021training_fraction\030\001 \001(\001\022\033\n\023validatio" + + "n_fraction\030\002 \001(\001\022\025\n\rtest_fraction\030\003 \001(\001\022" + + "\020\n\003key\030\004 \001(\tB\003\340A\002B\362\001\n#com.google.cloud.a" + + "iplatform.v1beta1B\025TrainingPipelineProto" + + "P\001ZIgoogle.golang.org/genproto/googleapi" + + "s/cloud/aiplatform/v1beta1;aiplatform\252\002\037" + + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" + + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clou" + + "d::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -206,6 +206,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatasetId", "AnnotationsFilter", "AnnotationSchemaUri", + "SavedQueryId", "Split", "Destination", }); diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto index 92bb46287..096e3a86b 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1beta1/annotation_spec.proto"; import "google/cloud/aiplatform/v1beta1/data_item.proto"; import "google/cloud/aiplatform/v1beta1/dataset.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/cloud/aiplatform/v1beta1/saved_query.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; @@ -126,6 +127,14 @@ service DatasetService { option (google.api.method_signature) = "parent"; } + // Lists SavedQueries in a Dataset. + rpc ListSavedQueries(ListSavedQueriesRequest) returns (ListSavedQueriesResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/savedQueries" + }; + option (google.api.method_signature) = "parent"; + } + // Gets an AnnotationSpec. rpc GetAnnotationSpec(GetAnnotationSpecRequest) returns (AnnotationSpec) { option (google.api.http) = { @@ -357,6 +366,44 @@ message ListDataItemsResponse { string next_page_token = 2; } +// Request message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries]. +message ListSavedQueriesRequest { + // Required. The resource name of the Dataset to list SavedQueries from. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // The standard list filter. + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + string order_by = 6; +} + +// Response message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries]. +message ListSavedQueriesResponse { + // A list of SavedQueries that match the specified filter in the request. + repeated SavedQuery saved_queries = 1; + + // The standard List next-page token. + string next_page_token = 2; +} + // Request message for [DatasetService.GetAnnotationSpec][google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpec]. message GetAnnotationSpecRequest { // Required. The name of the AnnotationSpec resource. diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/saved_query.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/saved_query.proto new file mode 100644 index 000000000..a258efcdf --- /dev/null +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/saved_query.proto @@ -0,0 +1,84 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "SavedQueryProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// A SavedQuery is a view of the dataset. It references a subset of annotations +// by problem type and filters. +message SavedQuery { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/SavedQuery" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}" + }; + + // Output only. Resource name of the SavedQuery. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The user-defined name of the SavedQuery. + // 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]; + + // Some additional information about the SavedQuery. + google.protobuf.Value metadata = 12; + + // Output only. Timestamp when this SavedQuery was created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when SavedQuery was last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Filters on the Annotations in the dataset. + string annotation_filter = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Problem type of the SavedQuery. + // Allowed values: + // * IMAGE_CLASSIFICATION_SINGLE_LABEL + // * IMAGE_CLASSIFICATION_MULTI_LABEL + // * IMAGE_BOUNDING_POLY + // * IMAGE_BOUNDING_BOX + // * TEXT_CLASSIFICATION_SINGLE_LABEL + // * TEXT_CLASSIFICATION_MULTI_LABEL + // * TEXT_EXTRACTION + // * TEXT_SENTIMENT + // * VIDEO_CLASSIFICATION + // * VIDEO_OBJECT_TRACKING + string problem_type = 6 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Number of AnnotationSpecs in the context of the SavedQuery. + int32 annotation_spec_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Used to perform a consistent read-modify-write update. If not set, a blind + // "overwrite" update happens. + string etag = 8; + + // Output only. If the Annotations belonging to the SavedQuery can be used for AutoML + // training. + bool support_automl_training = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/training_pipeline.proto b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/training_pipeline.proto index c4c9225e2..138fbc3c8 100644 --- a/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/training_pipeline.proto +++ b/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/training_pipeline.proto @@ -276,6 +276,20 @@ message InputDataConfig { // for training are filtered by both [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter] and // [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri]. string annotation_schema_uri = 9; + + // Only applicable to Datasets that have SavedQueries. + // + // The ID of a SavedQuery (annotation set) under the Dataset specified by + // [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] used for filtering Annotations for training. + // + // Only Annotations that are associated with this SavedQuery are used in + // respectively training. When used in conjunction with + // [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by + // both [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter]. + // + // Only one of [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] should be + // specified as both of them represent the same thing: problem type. + string saved_query_id = 7; } // Assigns the input data to training, validation, and test sets as per the