diff --git a/java-dataplex/README.md b/java-dataplex/README.md index 5add93b8227b..b84a132814cb 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-dataplex - 1.4.0 + 1.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.4.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.5.0" ``` ## Authentication diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceClient.java new file mode 100644 index 000000000000..63d1f3ef0c6f --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceClient.java @@ -0,0 +1,1759 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataplex.v1.stub.DataScanServiceStub; +import com.google.cloud.dataplex.v1.stub.DataScanServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * This class provides the ability to make remote calls to the backing service through method calls + * that map to API methods. Sample code to get started: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+ *   DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]");
+ *   DataScan response = dataScanServiceClient.getDataScan(name);
+ * }
+ * }
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataScanServiceSettings dataScanServiceSettings =
+ *     DataScanServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DataScanServiceClient dataScanServiceClient =
+ *     DataScanServiceClient.create(dataScanServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataScanServiceSettings dataScanServiceSettings =
+ *     DataScanServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DataScanServiceClient dataScanServiceClient =
+ *     DataScanServiceClient.create(dataScanServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataScanServiceSettings dataScanServiceSettings =
+ *     DataScanServiceSettings.newHttpJsonBuilder().build();
+ * DataScanServiceClient dataScanServiceClient =
+ *     DataScanServiceClient.create(dataScanServiceSettings);
+ * }
+ * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   DataScan dataScan = DataScan.newBuilder().build();
+   *   String dataScanId = "dataScanId1260787906";
+   *   DataScan response =
+   *       dataScanServiceClient.createDataScanAsync(parent, dataScan, dataScanId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the parent location: + * projects/{project}/locations/{location_id} where `{project}` refers to a project_id or + * project_number and `location_id` refers to a GCP region. + * @param dataScan Required. DataScan resource. + * @param dataScanId Required. DataScan identifier. + * + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createDataScanAsync( + LocationName parent, DataScan dataScan, String dataScanId) { + CreateDataScanRequest request = + CreateDataScanRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDataScan(dataScan) + .setDataScanId(dataScanId) + .build(); + return createDataScanAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   DataScan dataScan = DataScan.newBuilder().build();
+   *   String dataScanId = "dataScanId1260787906";
+   *   DataScan response =
+   *       dataScanServiceClient.createDataScanAsync(parent, dataScan, dataScanId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the parent location: + * projects/{project}/locations/{location_id} where `{project}` refers to a project_id or + * project_number and `location_id` refers to a GCP region. + * @param dataScan Required. DataScan resource. + * @param dataScanId Required. DataScan identifier. + * + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createDataScanAsync( + String parent, DataScan dataScan, String dataScanId) { + CreateDataScanRequest request = + CreateDataScanRequest.newBuilder() + .setParent(parent) + .setDataScan(dataScan) + .setDataScanId(dataScanId) + .build(); + return createDataScanAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   CreateDataScanRequest request =
+   *       CreateDataScanRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDataScan(DataScan.newBuilder().build())
+   *           .setDataScanId("dataScanId1260787906")
+   *           .build();
+   *   DataScan response = dataScanServiceClient.createDataScanAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createDataScanAsync( + CreateDataScanRequest request) { + return createDataScanOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   CreateDataScanRequest request =
+   *       CreateDataScanRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDataScan(DataScan.newBuilder().build())
+   *           .setDataScanId("dataScanId1260787906")
+   *           .build();
+   *   OperationFuture future =
+   *       dataScanServiceClient.createDataScanOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DataScan response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createDataScanOperationCallable() { + return stub.createDataScanOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   CreateDataScanRequest request =
+   *       CreateDataScanRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setDataScan(DataScan.newBuilder().build())
+   *           .setDataScanId("dataScanId1260787906")
+   *           .build();
+   *   ApiFuture future =
+   *       dataScanServiceClient.createDataScanCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createDataScanCallable() { + return stub.createDataScanCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   DataScan dataScan = DataScan.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   DataScan response = dataScanServiceClient.updateDataScanAsync(dataScan, updateMask).get();
+   * }
+   * }
+ * + * @param dataScan Required. Update description. Only fields specified in `update_mask` are + * updated. + * @param updateMask Required. Mask of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateDataScanAsync( + DataScan dataScan, FieldMask updateMask) { + UpdateDataScanRequest request = + UpdateDataScanRequest.newBuilder().setDataScan(dataScan).setUpdateMask(updateMask).build(); + return updateDataScanAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   UpdateDataScanRequest request =
+   *       UpdateDataScanRequest.newBuilder()
+   *           .setDataScan(DataScan.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   DataScan response = dataScanServiceClient.updateDataScanAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateDataScanAsync( + UpdateDataScanRequest request) { + return updateDataScanOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the dataScan resource. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   UpdateDataScanRequest request =
+   *       UpdateDataScanRequest.newBuilder()
+   *           .setDataScan(DataScan.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       dataScanServiceClient.updateDataScanCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateDataScanCallable() { + return stub.updateDataScanCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete the dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]");
+   *   dataScanServiceClient.deleteDataScanAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the dataScan: + * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where `{project}` + * refers to a project_id or project_number and `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDataScanAsync(DataScanName name) { + DeleteDataScanRequest request = + DeleteDataScanRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteDataScanAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete the dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   String name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString();
+   *   dataScanServiceClient.deleteDataScanAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the dataScan: + * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where `{project}` + * refers to a project_id or project_number and `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDataScanAsync(String name) { + DeleteDataScanRequest request = DeleteDataScanRequest.newBuilder().setName(name).build(); + return deleteDataScanAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete the dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   DeleteDataScanRequest request =
+   *       DeleteDataScanRequest.newBuilder()
+   *           .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString())
+   *           .build();
+   *   dataScanServiceClient.deleteDataScanAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDataScanAsync( + DeleteDataScanRequest request) { + return deleteDataScanOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete the dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   DeleteDataScanRequest request =
+   *       DeleteDataScanRequest.newBuilder()
+   *           .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       dataScanServiceClient.deleteDataScanOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteDataScanOperationCallable() { + return stub.deleteDataScanOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete the dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   DeleteDataScanRequest request =
+   *       DeleteDataScanRequest.newBuilder()
+   *           .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataScanServiceClient.deleteDataScanCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteDataScanCallable() { + return stub.deleteDataScanCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]");
+   *   DataScan response = dataScanServiceClient.getDataScan(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the dataScan: + * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where `{project}` + * refers to a project_id or project_number and `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataScan getDataScan(DataScanName name) { + GetDataScanRequest request = + GetDataScanRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDataScan(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   String name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString();
+   *   DataScan response = dataScanServiceClient.getDataScan(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the dataScan: + * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where `{project}` + * refers to a project_id or project_number and `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataScan getDataScan(String name) { + GetDataScanRequest request = GetDataScanRequest.newBuilder().setName(name).build(); + return getDataScan(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   GetDataScanRequest request =
+   *       GetDataScanRequest.newBuilder()
+   *           .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString())
+   *           .build();
+   *   DataScan response = dataScanServiceClient.getDataScan(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataScan getDataScan(GetDataScanRequest request) { + return getDataScanCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get dataScan resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   GetDataScanRequest request =
+   *       GetDataScanRequest.newBuilder()
+   *           .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString())
+   *           .build();
+   *   ApiFuture future = dataScanServiceClient.getDataScanCallable().futureCall(request);
+   *   // Do something.
+   *   DataScan response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDataScanCallable() { + return stub.getDataScanCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists dataScans. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (DataScan element : dataScanServiceClient.listDataScans(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. projects/{project}/locations/{location_id} where `{project}` refers to + * a project_id or project_number and `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataScansPagedResponse listDataScans(LocationName parent) { + ListDataScansRequest request = + ListDataScansRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDataScans(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists dataScans. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (DataScan element : dataScanServiceClient.listDataScans(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. projects/{project}/locations/{location_id} where `{project}` refers to + * a project_id or project_number and `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataScansPagedResponse listDataScans(String parent) { + ListDataScansRequest request = ListDataScansRequest.newBuilder().setParent(parent).build(); + return listDataScans(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists dataScans. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   ListDataScansRequest request =
+   *       ListDataScansRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (DataScan element : dataScanServiceClient.listDataScans(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 ListDataScansPagedResponse listDataScans(ListDataScansRequest request) { + return listDataScansPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists dataScans. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   ListDataScansRequest request =
+   *       ListDataScansRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       dataScanServiceClient.listDataScansPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DataScan element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDataScansPagedCallable() { + return stub.listDataScansPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists dataScans. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   ListDataScansRequest request =
+   *       ListDataScansRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListDataScansResponse response =
+   *         dataScanServiceClient.listDataScansCallable().call(request);
+   *     for (DataScan element : response.getDataScansList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listDataScansCallable() { + return stub.listDataScansCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Run an on demand execution of a DataScan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]");
+   *   RunDataScanResponse response = dataScanServiceClient.runDataScan(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the DataScan: + * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}. where `{project}` + * refers to a project_id or project_number and `location_id` refers to a GCP region. Only + * on-demand DataScans are allowed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RunDataScanResponse runDataScan(DataScanName name) { + RunDataScanRequest request = + RunDataScanRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return runDataScan(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Run an on demand execution of a DataScan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   String name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString();
+   *   RunDataScanResponse response = dataScanServiceClient.runDataScan(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the DataScan: + * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}. where `{project}` + * refers to a project_id or project_number and `location_id` refers to a GCP region. Only + * on-demand DataScans are allowed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RunDataScanResponse runDataScan(String name) { + RunDataScanRequest request = RunDataScanRequest.newBuilder().setName(name).build(); + return runDataScan(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Run an on demand execution of a DataScan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   RunDataScanRequest request =
+   *       RunDataScanRequest.newBuilder()
+   *           .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString())
+   *           .build();
+   *   RunDataScanResponse response = dataScanServiceClient.runDataScan(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RunDataScanResponse runDataScan(RunDataScanRequest request) { + return runDataScanCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Run an on demand execution of a DataScan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   RunDataScanRequest request =
+   *       RunDataScanRequest.newBuilder()
+   *           .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataScanServiceClient.runDataScanCallable().futureCall(request);
+   *   // Do something.
+   *   RunDataScanResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable runDataScanCallable() { + return stub.runDataScanCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get DataScanJob resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   DataScanJobName name = DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]");
+   *   DataScanJob response = dataScanServiceClient.getDataScanJob(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the DataScanJob: + * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id} + * where `{project}` refers to a project_id or project_number and `location_id` refers to a + * GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataScanJob getDataScanJob(DataScanJobName name) { + GetDataScanJobRequest request = + GetDataScanJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDataScanJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get DataScanJob resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   String name = DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]").toString();
+   *   DataScanJob response = dataScanServiceClient.getDataScanJob(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the DataScanJob: + * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id} + * where `{project}` refers to a project_id or project_number and `location_id` refers to a + * GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataScanJob getDataScanJob(String name) { + GetDataScanJobRequest request = GetDataScanJobRequest.newBuilder().setName(name).build(); + return getDataScanJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get DataScanJob resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   GetDataScanJobRequest request =
+   *       GetDataScanJobRequest.newBuilder()
+   *           .setName(
+   *               DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]").toString())
+   *           .build();
+   *   DataScanJob response = dataScanServiceClient.getDataScanJob(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataScanJob getDataScanJob(GetDataScanJobRequest request) { + return getDataScanJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get DataScanJob resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   GetDataScanJobRequest request =
+   *       GetDataScanJobRequest.newBuilder()
+   *           .setName(
+   *               DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       dataScanServiceClient.getDataScanJobCallable().futureCall(request);
+   *   // Do something.
+   *   DataScanJob response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDataScanJobCallable() { + return stub.getDataScanJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataScanJobs under the given dataScan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   DataScanName parent = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]");
+   *   for (DataScanJob element : dataScanServiceClient.listDataScanJobs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the parent environment: + * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where `{project}` + * refers to a project_id or project_number and `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataScanJobsPagedResponse listDataScanJobs(DataScanName parent) { + ListDataScanJobsRequest request = + ListDataScanJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDataScanJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataScanJobs under the given dataScan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   String parent = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString();
+   *   for (DataScanJob element : dataScanServiceClient.listDataScanJobs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the parent environment: + * projects/{project}/locations/{location_id}/dataScans/{data_scan_id} where `{project}` + * refers to a project_id or project_number and `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataScanJobsPagedResponse listDataScanJobs(String parent) { + ListDataScanJobsRequest request = + ListDataScanJobsRequest.newBuilder().setParent(parent).build(); + return listDataScanJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataScanJobs under the given dataScan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   ListDataScanJobsRequest request =
+   *       ListDataScanJobsRequest.newBuilder()
+   *           .setParent(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (DataScanJob element : dataScanServiceClient.listDataScanJobs(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 ListDataScanJobsPagedResponse listDataScanJobs(ListDataScanJobsRequest request) { + return listDataScanJobsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataScanJobs under the given dataScan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   ListDataScanJobsRequest request =
+   *       ListDataScanJobsRequest.newBuilder()
+   *           .setParent(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       dataScanServiceClient.listDataScanJobsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DataScanJob element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDataScanJobsPagedCallable() { + return stub.listDataScanJobsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataScanJobs under the given dataScan. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   ListDataScanJobsRequest request =
+   *       ListDataScanJobsRequest.newBuilder()
+   *           .setParent(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDataScanJobsResponse response =
+   *         dataScanServiceClient.listDataScanJobsCallable().call(request);
+   *     for (DataScanJob element : response.getDataScanJobsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDataScanJobsCallable() { + return stub.listDataScanJobsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : dataScanServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       dataScanServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         dataScanServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = dataScanServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = dataScanServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListDataScansPagedResponse + extends AbstractPagedListResponse< + ListDataScansRequest, + ListDataScansResponse, + DataScan, + ListDataScansPage, + ListDataScansFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDataScansPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDataScansPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDataScansPagedResponse(ListDataScansPage page) { + super(page, ListDataScansFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDataScansPage + extends AbstractPage< + ListDataScansRequest, ListDataScansResponse, DataScan, ListDataScansPage> { + + private ListDataScansPage( + PageContext context, + ListDataScansResponse response) { + super(context, response); + } + + private static ListDataScansPage createEmptyPage() { + return new ListDataScansPage(null, null); + } + + @Override + protected ListDataScansPage createPage( + PageContext context, + ListDataScansResponse response) { + return new ListDataScansPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDataScansFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDataScansRequest, + ListDataScansResponse, + DataScan, + ListDataScansPage, + ListDataScansFixedSizeCollection> { + + private ListDataScansFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDataScansFixedSizeCollection createEmptyCollection() { + return new ListDataScansFixedSizeCollection(null, 0); + } + + @Override + protected ListDataScansFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDataScansFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListDataScanJobsPagedResponse + extends AbstractPagedListResponse< + ListDataScanJobsRequest, + ListDataScanJobsResponse, + DataScanJob, + ListDataScanJobsPage, + ListDataScanJobsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDataScanJobsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDataScanJobsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDataScanJobsPagedResponse(ListDataScanJobsPage page) { + super(page, ListDataScanJobsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDataScanJobsPage + extends AbstractPage< + ListDataScanJobsRequest, ListDataScanJobsResponse, DataScanJob, ListDataScanJobsPage> { + + private ListDataScanJobsPage( + PageContext context, + ListDataScanJobsResponse response) { + super(context, response); + } + + private static ListDataScanJobsPage createEmptyPage() { + return new ListDataScanJobsPage(null, null); + } + + @Override + protected ListDataScanJobsPage createPage( + PageContext context, + ListDataScanJobsResponse response) { + return new ListDataScanJobsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDataScanJobsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDataScanJobsRequest, + ListDataScanJobsResponse, + DataScanJob, + ListDataScanJobsPage, + ListDataScanJobsFixedSizeCollection> { + + private ListDataScanJobsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDataScanJobsFixedSizeCollection createEmptyCollection() { + return new ListDataScanJobsFixedSizeCollection(null, 0); + } + + @Override + protected ListDataScanJobsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDataScanJobsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceSettings.java new file mode 100644 index 000000000000..d98581be9fa0 --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceSettings.java @@ -0,0 +1,351 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1; + +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScanJobsPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScansPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.dataplex.v1.stub.DataScanServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DataScanServiceClient}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataScanServiceSettings.Builder dataScanServiceSettingsBuilder =
+ *     DataScanServiceSettings.newBuilder();
+ * dataScanServiceSettingsBuilder
+ *     .getDataScanSettings()
+ *     .setRetrySettings(
+ *         dataScanServiceSettingsBuilder.getDataScanSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DataScanServiceSettings dataScanServiceSettings = dataScanServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class DataScanServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createDataScan. */ + public UnaryCallSettings createDataScanSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).createDataScanSettings(); + } + + /** Returns the object with the settings used for calls to createDataScan. */ + public OperationCallSettings + createDataScanOperationSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).createDataScanOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateDataScan. */ + public UnaryCallSettings updateDataScanSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).updateDataScanSettings(); + } + + /** Returns the object with the settings used for calls to updateDataScan. */ + public OperationCallSettings + updateDataScanOperationSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).updateDataScanOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteDataScan. */ + public UnaryCallSettings deleteDataScanSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).deleteDataScanSettings(); + } + + /** Returns the object with the settings used for calls to deleteDataScan. */ + public OperationCallSettings + deleteDataScanOperationSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).deleteDataScanOperationSettings(); + } + + /** Returns the object with the settings used for calls to getDataScan. */ + public UnaryCallSettings getDataScanSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).getDataScanSettings(); + } + + /** Returns the object with the settings used for calls to listDataScans. */ + public PagedCallSettings + listDataScansSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).listDataScansSettings(); + } + + /** Returns the object with the settings used for calls to runDataScan. */ + public UnaryCallSettings runDataScanSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).runDataScanSettings(); + } + + /** Returns the object with the settings used for calls to getDataScanJob. */ + public UnaryCallSettings getDataScanJobSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).getDataScanJobSettings(); + } + + /** Returns the object with the settings used for calls to listDataScanJobs. */ + public PagedCallSettings< + ListDataScanJobsRequest, ListDataScanJobsResponse, ListDataScanJobsPagedResponse> + listDataScanJobsSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).listDataScanJobsSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((DataScanServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final DataScanServiceSettings create(DataScanServiceStubSettings stub) + throws IOException { + return new DataScanServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DataScanServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DataScanServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DataScanServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DataScanServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DataScanServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DataScanServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DataScanServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DataScanServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DataScanServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DataScanServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DataScanServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DataScanServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DataScanServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DataScanServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(DataScanServiceStubSettings.newHttpJsonBuilder()); + } + + public DataScanServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DataScanServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createDataScan. */ + public UnaryCallSettings.Builder createDataScanSettings() { + return getStubSettingsBuilder().createDataScanSettings(); + } + + /** Returns the builder for the settings used for calls to createDataScan. */ + public OperationCallSettings.Builder + createDataScanOperationSettings() { + return getStubSettingsBuilder().createDataScanOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataScan. */ + public UnaryCallSettings.Builder updateDataScanSettings() { + return getStubSettingsBuilder().updateDataScanSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataScan. */ + public OperationCallSettings.Builder + updateDataScanOperationSettings() { + return getStubSettingsBuilder().updateDataScanOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDataScan. */ + public UnaryCallSettings.Builder deleteDataScanSettings() { + return getStubSettingsBuilder().deleteDataScanSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDataScan. */ + public OperationCallSettings.Builder + deleteDataScanOperationSettings() { + return getStubSettingsBuilder().deleteDataScanOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getDataScan. */ + public UnaryCallSettings.Builder getDataScanSettings() { + return getStubSettingsBuilder().getDataScanSettings(); + } + + /** Returns the builder for the settings used for calls to listDataScans. */ + public PagedCallSettings.Builder< + ListDataScansRequest, ListDataScansResponse, ListDataScansPagedResponse> + listDataScansSettings() { + return getStubSettingsBuilder().listDataScansSettings(); + } + + /** Returns the builder for the settings used for calls to runDataScan. */ + public UnaryCallSettings.Builder + runDataScanSettings() { + return getStubSettingsBuilder().runDataScanSettings(); + } + + /** Returns the builder for the settings used for calls to getDataScanJob. */ + public UnaryCallSettings.Builder getDataScanJobSettings() { + return getStubSettingsBuilder().getDataScanJobSettings(); + } + + /** Returns the builder for the settings used for calls to listDataScanJobs. */ + public PagedCallSettings.Builder< + ListDataScanJobsRequest, ListDataScanJobsResponse, ListDataScanJobsPagedResponse> + listDataScanJobsSettings() { + return getStubSettingsBuilder().listDataScanJobsSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public DataScanServiceSettings build() throws IOException { + return new DataScanServiceSettings(this); + } + } +} diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/gapic_metadata.json b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/gapic_metadata.json index 828829dc7f97..0234f22340eb 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/gapic_metadata.json +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/gapic_metadata.json @@ -44,6 +44,45 @@ } } }, + "DataScanService": { + "clients": { + "grpc": { + "libraryClient": "DataScanServiceClient", + "rpcs": { + "CreateDataScan": { + "methods": ["createDataScanAsync", "createDataScanAsync", "createDataScanAsync", "createDataScanOperationCallable", "createDataScanCallable"] + }, + "DeleteDataScan": { + "methods": ["deleteDataScanAsync", "deleteDataScanAsync", "deleteDataScanAsync", "deleteDataScanOperationCallable", "deleteDataScanCallable"] + }, + "GetDataScan": { + "methods": ["getDataScan", "getDataScan", "getDataScan", "getDataScanCallable"] + }, + "GetDataScanJob": { + "methods": ["getDataScanJob", "getDataScanJob", "getDataScanJob", "getDataScanJobCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListDataScanJobs": { + "methods": ["listDataScanJobs", "listDataScanJobs", "listDataScanJobs", "listDataScanJobsPagedCallable", "listDataScanJobsCallable"] + }, + "ListDataScans": { + "methods": ["listDataScans", "listDataScans", "listDataScans", "listDataScansPagedCallable", "listDataScansCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "RunDataScan": { + "methods": ["runDataScan", "runDataScan", "runDataScan", "runDataScanCallable"] + }, + "UpdateDataScan": { + "methods": ["updateDataScanAsync", "updateDataScanAsync", "updateDataScanOperationCallable", "updateDataScanCallable"] + } + } + } + } + }, "MetadataService": { "clients": { "grpc": { diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/package-info.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/package-info.java index fc1838b70399..43437b323e61 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/package-info.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/package-info.java @@ -38,6 +38,22 @@ * } * } * + *

======================= DataScanServiceClient ======================= + * + *

Sample for DataScanServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) {
+ *   DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]");
+ *   DataScan response = dataScanServiceClient.getDataScan(name);
+ * }
+ * }
+ * *

======================= MetadataServiceClient ======================= * *

Service Description: Metadata service manages metadata resources such as tables, filesets and diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStub.java new file mode 100644 index 000000000000..76f2bad7957d --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStub.java @@ -0,0 +1,139 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.stub; + +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScanJobsPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScansPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataplex.v1.CreateDataScanRequest; +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DeleteDataScanRequest; +import com.google.cloud.dataplex.v1.GetDataScanJobRequest; +import com.google.cloud.dataplex.v1.GetDataScanRequest; +import com.google.cloud.dataplex.v1.ListDataScanJobsRequest; +import com.google.cloud.dataplex.v1.ListDataScanJobsResponse; +import com.google.cloud.dataplex.v1.ListDataScansRequest; +import com.google.cloud.dataplex.v1.ListDataScansResponse; +import com.google.cloud.dataplex.v1.OperationMetadata; +import com.google.cloud.dataplex.v1.RunDataScanRequest; +import com.google.cloud.dataplex.v1.RunDataScanResponse; +import com.google.cloud.dataplex.v1.UpdateDataScanRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DataScanService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class DataScanServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + createDataScanOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createDataScanOperationCallable()"); + } + + public UnaryCallable createDataScanCallable() { + throw new UnsupportedOperationException("Not implemented: createDataScanCallable()"); + } + + public OperationCallable + updateDataScanOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateDataScanOperationCallable()"); + } + + public UnaryCallable updateDataScanCallable() { + throw new UnsupportedOperationException("Not implemented: updateDataScanCallable()"); + } + + public OperationCallable + deleteDataScanOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDataScanOperationCallable()"); + } + + public UnaryCallable deleteDataScanCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDataScanCallable()"); + } + + public UnaryCallable getDataScanCallable() { + throw new UnsupportedOperationException("Not implemented: getDataScanCallable()"); + } + + public UnaryCallable + listDataScansPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDataScansPagedCallable()"); + } + + public UnaryCallable listDataScansCallable() { + throw new UnsupportedOperationException("Not implemented: listDataScansCallable()"); + } + + public UnaryCallable runDataScanCallable() { + throw new UnsupportedOperationException("Not implemented: runDataScanCallable()"); + } + + public UnaryCallable getDataScanJobCallable() { + throw new UnsupportedOperationException("Not implemented: getDataScanJobCallable()"); + } + + public UnaryCallable + listDataScanJobsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDataScanJobsPagedCallable()"); + } + + public UnaryCallable + listDataScanJobsCallable() { + throw new UnsupportedOperationException("Not implemented: listDataScanJobsCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java new file mode 100644 index 000000000000..0c6268c167e8 --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/DataScanServiceStubSettings.java @@ -0,0 +1,872 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.stub; + +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScanJobsPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScansPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataplex.v1.CreateDataScanRequest; +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DeleteDataScanRequest; +import com.google.cloud.dataplex.v1.GetDataScanJobRequest; +import com.google.cloud.dataplex.v1.GetDataScanRequest; +import com.google.cloud.dataplex.v1.ListDataScanJobsRequest; +import com.google.cloud.dataplex.v1.ListDataScanJobsResponse; +import com.google.cloud.dataplex.v1.ListDataScansRequest; +import com.google.cloud.dataplex.v1.ListDataScansResponse; +import com.google.cloud.dataplex.v1.OperationMetadata; +import com.google.cloud.dataplex.v1.RunDataScanRequest; +import com.google.cloud.dataplex.v1.RunDataScanResponse; +import com.google.cloud.dataplex.v1.UpdateDataScanRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DataScanServiceStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DataScanServiceStubSettings.Builder dataScanServiceSettingsBuilder =
+ *     DataScanServiceStubSettings.newBuilder();
+ * dataScanServiceSettingsBuilder
+ *     .getDataScanSettings()
+ *     .setRetrySettings(
+ *         dataScanServiceSettingsBuilder.getDataScanSettings().getRetrySettings().toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DataScanServiceStubSettings dataScanServiceSettings = dataScanServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class DataScanServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings createDataScanSettings; + private final OperationCallSettings + createDataScanOperationSettings; + private final UnaryCallSettings updateDataScanSettings; + private final OperationCallSettings + updateDataScanOperationSettings; + private final UnaryCallSettings deleteDataScanSettings; + private final OperationCallSettings + deleteDataScanOperationSettings; + private final UnaryCallSettings getDataScanSettings; + private final PagedCallSettings< + ListDataScansRequest, ListDataScansResponse, ListDataScansPagedResponse> + listDataScansSettings; + private final UnaryCallSettings runDataScanSettings; + private final UnaryCallSettings getDataScanJobSettings; + private final PagedCallSettings< + ListDataScanJobsRequest, ListDataScanJobsResponse, ListDataScanJobsPagedResponse> + listDataScanJobsSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_DATA_SCANS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDataScansRequest injectToken(ListDataScansRequest payload, String token) { + return ListDataScansRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDataScansRequest injectPageSize(ListDataScansRequest payload, int pageSize) { + return ListDataScansRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDataScansRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDataScansResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDataScansResponse payload) { + return payload.getDataScansList() == null + ? ImmutableList.of() + : payload.getDataScansList(); + } + }; + + private static final PagedListDescriptor< + ListDataScanJobsRequest, ListDataScanJobsResponse, DataScanJob> + LIST_DATA_SCAN_JOBS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDataScanJobsRequest, ListDataScanJobsResponse, DataScanJob>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDataScanJobsRequest injectToken( + ListDataScanJobsRequest payload, String token) { + return ListDataScanJobsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDataScanJobsRequest injectPageSize( + ListDataScanJobsRequest payload, int pageSize) { + return ListDataScanJobsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDataScanJobsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDataScanJobsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDataScanJobsResponse payload) { + return payload.getDataScanJobsList() == null + ? ImmutableList.of() + : payload.getDataScanJobsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListDataScansRequest, ListDataScansResponse, ListDataScansPagedResponse> + LIST_DATA_SCANS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDataScansRequest, ListDataScansResponse, ListDataScansPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDataScansRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DATA_SCANS_PAGE_STR_DESC, request, context); + return ListDataScansPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDataScanJobsRequest, ListDataScanJobsResponse, ListDataScanJobsPagedResponse> + LIST_DATA_SCAN_JOBS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDataScanJobsRequest, ListDataScanJobsResponse, ListDataScanJobsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDataScanJobsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_DATA_SCAN_JOBS_PAGE_STR_DESC, request, context); + return ListDataScanJobsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createDataScan. */ + public UnaryCallSettings createDataScanSettings() { + return createDataScanSettings; + } + + /** Returns the object with the settings used for calls to createDataScan. */ + public OperationCallSettings + createDataScanOperationSettings() { + return createDataScanOperationSettings; + } + + /** Returns the object with the settings used for calls to updateDataScan. */ + public UnaryCallSettings updateDataScanSettings() { + return updateDataScanSettings; + } + + /** Returns the object with the settings used for calls to updateDataScan. */ + public OperationCallSettings + updateDataScanOperationSettings() { + return updateDataScanOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteDataScan. */ + public UnaryCallSettings deleteDataScanSettings() { + return deleteDataScanSettings; + } + + /** Returns the object with the settings used for calls to deleteDataScan. */ + public OperationCallSettings + deleteDataScanOperationSettings() { + return deleteDataScanOperationSettings; + } + + /** Returns the object with the settings used for calls to getDataScan. */ + public UnaryCallSettings getDataScanSettings() { + return getDataScanSettings; + } + + /** Returns the object with the settings used for calls to listDataScans. */ + public PagedCallSettings + listDataScansSettings() { + return listDataScansSettings; + } + + /** Returns the object with the settings used for calls to runDataScan. */ + public UnaryCallSettings runDataScanSettings() { + return runDataScanSettings; + } + + /** Returns the object with the settings used for calls to getDataScanJob. */ + public UnaryCallSettings getDataScanJobSettings() { + return getDataScanJobSettings; + } + + /** Returns the object with the settings used for calls to listDataScanJobs. */ + public PagedCallSettings< + ListDataScanJobsRequest, ListDataScanJobsResponse, ListDataScanJobsPagedResponse> + listDataScanJobsSettings() { + return listDataScanJobsSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public DataScanServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDataScanServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDataScanServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "dataplex.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dataplex.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DataScanServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DataScanServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DataScanServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DataScanServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createDataScanSettings = settingsBuilder.createDataScanSettings().build(); + createDataScanOperationSettings = settingsBuilder.createDataScanOperationSettings().build(); + updateDataScanSettings = settingsBuilder.updateDataScanSettings().build(); + updateDataScanOperationSettings = settingsBuilder.updateDataScanOperationSettings().build(); + deleteDataScanSettings = settingsBuilder.deleteDataScanSettings().build(); + deleteDataScanOperationSettings = settingsBuilder.deleteDataScanOperationSettings().build(); + getDataScanSettings = settingsBuilder.getDataScanSettings().build(); + listDataScansSettings = settingsBuilder.listDataScansSettings().build(); + runDataScanSettings = settingsBuilder.runDataScanSettings().build(); + getDataScanJobSettings = settingsBuilder.getDataScanJobSettings().build(); + listDataScanJobsSettings = settingsBuilder.listDataScanJobsSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for DataScanServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createDataScanSettings; + private final OperationCallSettings.Builder + createDataScanOperationSettings; + private final UnaryCallSettings.Builder + updateDataScanSettings; + private final OperationCallSettings.Builder + updateDataScanOperationSettings; + private final UnaryCallSettings.Builder + deleteDataScanSettings; + private final OperationCallSettings.Builder + deleteDataScanOperationSettings; + private final UnaryCallSettings.Builder getDataScanSettings; + private final PagedCallSettings.Builder< + ListDataScansRequest, ListDataScansResponse, ListDataScansPagedResponse> + listDataScansSettings; + private final UnaryCallSettings.Builder + runDataScanSettings; + private final UnaryCallSettings.Builder + getDataScanJobSettings; + private final PagedCallSettings.Builder< + ListDataScanJobsRequest, ListDataScanJobsResponse, ListDataScanJobsPagedResponse> + listDataScanJobsSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createDataScanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDataScanOperationSettings = OperationCallSettings.newBuilder(); + updateDataScanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDataScanOperationSettings = OperationCallSettings.newBuilder(); + deleteDataScanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDataScanOperationSettings = OperationCallSettings.newBuilder(); + getDataScanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDataScansSettings = PagedCallSettings.newBuilder(LIST_DATA_SCANS_PAGE_STR_FACT); + runDataScanSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getDataScanJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDataScanJobsSettings = PagedCallSettings.newBuilder(LIST_DATA_SCAN_JOBS_PAGE_STR_FACT); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createDataScanSettings, + updateDataScanSettings, + deleteDataScanSettings, + getDataScanSettings, + listDataScansSettings, + runDataScanSettings, + getDataScanJobSettings, + listDataScanJobsSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(DataScanServiceStubSettings settings) { + super(settings); + + createDataScanSettings = settings.createDataScanSettings.toBuilder(); + createDataScanOperationSettings = settings.createDataScanOperationSettings.toBuilder(); + updateDataScanSettings = settings.updateDataScanSettings.toBuilder(); + updateDataScanOperationSettings = settings.updateDataScanOperationSettings.toBuilder(); + deleteDataScanSettings = settings.deleteDataScanSettings.toBuilder(); + deleteDataScanOperationSettings = settings.deleteDataScanOperationSettings.toBuilder(); + getDataScanSettings = settings.getDataScanSettings.toBuilder(); + listDataScansSettings = settings.listDataScansSettings.toBuilder(); + runDataScanSettings = settings.runDataScanSettings.toBuilder(); + getDataScanJobSettings = settings.getDataScanJobSettings.toBuilder(); + listDataScanJobsSettings = settings.listDataScanJobsSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createDataScanSettings, + updateDataScanSettings, + deleteDataScanSettings, + getDataScanSettings, + listDataScansSettings, + runDataScanSettings, + getDataScanJobSettings, + listDataScanJobsSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createDataScanSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateDataScanSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteDataScanSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getDataScanSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listDataScansSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .runDataScanSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getDataScanJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listDataScanJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createDataScanOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DataScan.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateDataScanOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DataScan.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteDataScanOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createDataScan. */ + public UnaryCallSettings.Builder createDataScanSettings() { + return createDataScanSettings; + } + + /** Returns the builder for the settings used for calls to createDataScan. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createDataScanOperationSettings() { + return createDataScanOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateDataScan. */ + public UnaryCallSettings.Builder updateDataScanSettings() { + return updateDataScanSettings; + } + + /** Returns the builder for the settings used for calls to updateDataScan. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateDataScanOperationSettings() { + return updateDataScanOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteDataScan. */ + public UnaryCallSettings.Builder deleteDataScanSettings() { + return deleteDataScanSettings; + } + + /** Returns the builder for the settings used for calls to deleteDataScan. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteDataScanOperationSettings() { + return deleteDataScanOperationSettings; + } + + /** Returns the builder for the settings used for calls to getDataScan. */ + public UnaryCallSettings.Builder getDataScanSettings() { + return getDataScanSettings; + } + + /** Returns the builder for the settings used for calls to listDataScans. */ + public PagedCallSettings.Builder< + ListDataScansRequest, ListDataScansResponse, ListDataScansPagedResponse> + listDataScansSettings() { + return listDataScansSettings; + } + + /** Returns the builder for the settings used for calls to runDataScan. */ + public UnaryCallSettings.Builder + runDataScanSettings() { + return runDataScanSettings; + } + + /** Returns the builder for the settings used for calls to getDataScanJob. */ + public UnaryCallSettings.Builder getDataScanJobSettings() { + return getDataScanJobSettings; + } + + /** Returns the builder for the settings used for calls to listDataScanJobs. */ + public PagedCallSettings.Builder< + ListDataScanJobsRequest, ListDataScanJobsResponse, ListDataScanJobsPagedResponse> + listDataScanJobsSettings() { + return listDataScanJobsSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public DataScanServiceStubSettings build() throws IOException { + return new DataScanServiceStubSettings(this); + } + } +} diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceCallableFactory.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceCallableFactory.java new file mode 100644 index 000000000000..00d8206e535a --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the DataScanService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcDataScanServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceStub.java new file mode 100644 index 000000000000..d440b6518bda --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/GrpcDataScanServiceStub.java @@ -0,0 +1,523 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.stub; + +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScanJobsPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScansPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataplex.v1.CreateDataScanRequest; +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DeleteDataScanRequest; +import com.google.cloud.dataplex.v1.GetDataScanJobRequest; +import com.google.cloud.dataplex.v1.GetDataScanRequest; +import com.google.cloud.dataplex.v1.ListDataScanJobsRequest; +import com.google.cloud.dataplex.v1.ListDataScanJobsResponse; +import com.google.cloud.dataplex.v1.ListDataScansRequest; +import com.google.cloud.dataplex.v1.ListDataScansResponse; +import com.google.cloud.dataplex.v1.OperationMetadata; +import com.google.cloud.dataplex.v1.RunDataScanRequest; +import com.google.cloud.dataplex.v1.RunDataScanResponse; +import com.google.cloud.dataplex.v1.UpdateDataScanRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DataScanService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcDataScanServiceStub extends DataScanServiceStub { + private static final MethodDescriptor + createDataScanMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/CreateDataScan") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDataScanRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDataScanMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/UpdateDataScan") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataScanRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDataScanMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/DeleteDataScan") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDataScanRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getDataScanMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/GetDataScan") + .setRequestMarshaller(ProtoUtils.marshaller(GetDataScanRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataScan.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listDataScansMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/ListDataScans") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDataScansRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDataScansResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + runDataScanMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/RunDataScan") + .setRequestMarshaller(ProtoUtils.marshaller(RunDataScanRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RunDataScanResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDataScanJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/GetDataScanJob") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataScanJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataScanJob.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listDataScanJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/ListDataScanJobs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDataScanJobsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDataScanJobsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private final UnaryCallable createDataScanCallable; + private final OperationCallable + createDataScanOperationCallable; + private final UnaryCallable updateDataScanCallable; + private final OperationCallable + updateDataScanOperationCallable; + private final UnaryCallable deleteDataScanCallable; + private final OperationCallable + deleteDataScanOperationCallable; + private final UnaryCallable getDataScanCallable; + private final UnaryCallable listDataScansCallable; + private final UnaryCallable + listDataScansPagedCallable; + private final UnaryCallable runDataScanCallable; + private final UnaryCallable getDataScanJobCallable; + private final UnaryCallable + listDataScanJobsCallable; + private final UnaryCallable + listDataScanJobsPagedCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDataScanServiceStub create(DataScanServiceStubSettings settings) + throws IOException { + return new GrpcDataScanServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDataScanServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcDataScanServiceStub( + DataScanServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDataScanServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDataScanServiceStub( + DataScanServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDataScanServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcDataScanServiceStub( + DataScanServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcDataScanServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcDataScanServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcDataScanServiceStub( + DataScanServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createDataScanTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDataScanMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateDataScanTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataScanMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("data_scan.name", String.valueOf(request.getDataScan().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteDataScanTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDataScanMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getDataScanTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataScanMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listDataScansTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDataScansMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings runDataScanTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runDataScanMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getDataScanJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataScanJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listDataScanJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDataScanJobsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + this.createDataScanCallable = + callableFactory.createUnaryCallable( + createDataScanTransportSettings, settings.createDataScanSettings(), clientContext); + this.createDataScanOperationCallable = + callableFactory.createOperationCallable( + createDataScanTransportSettings, + settings.createDataScanOperationSettings(), + clientContext, + operationsStub); + this.updateDataScanCallable = + callableFactory.createUnaryCallable( + updateDataScanTransportSettings, settings.updateDataScanSettings(), clientContext); + this.updateDataScanOperationCallable = + callableFactory.createOperationCallable( + updateDataScanTransportSettings, + settings.updateDataScanOperationSettings(), + clientContext, + operationsStub); + this.deleteDataScanCallable = + callableFactory.createUnaryCallable( + deleteDataScanTransportSettings, settings.deleteDataScanSettings(), clientContext); + this.deleteDataScanOperationCallable = + callableFactory.createOperationCallable( + deleteDataScanTransportSettings, + settings.deleteDataScanOperationSettings(), + clientContext, + operationsStub); + this.getDataScanCallable = + callableFactory.createUnaryCallable( + getDataScanTransportSettings, settings.getDataScanSettings(), clientContext); + this.listDataScansCallable = + callableFactory.createUnaryCallable( + listDataScansTransportSettings, settings.listDataScansSettings(), clientContext); + this.listDataScansPagedCallable = + callableFactory.createPagedCallable( + listDataScansTransportSettings, settings.listDataScansSettings(), clientContext); + this.runDataScanCallable = + callableFactory.createUnaryCallable( + runDataScanTransportSettings, settings.runDataScanSettings(), clientContext); + this.getDataScanJobCallable = + callableFactory.createUnaryCallable( + getDataScanJobTransportSettings, settings.getDataScanJobSettings(), clientContext); + this.listDataScanJobsCallable = + callableFactory.createUnaryCallable( + listDataScanJobsTransportSettings, settings.listDataScanJobsSettings(), clientContext); + this.listDataScanJobsPagedCallable = + callableFactory.createPagedCallable( + listDataScanJobsTransportSettings, settings.listDataScanJobsSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createDataScanCallable() { + return createDataScanCallable; + } + + @Override + public OperationCallable + createDataScanOperationCallable() { + return createDataScanOperationCallable; + } + + @Override + public UnaryCallable updateDataScanCallable() { + return updateDataScanCallable; + } + + @Override + public OperationCallable + updateDataScanOperationCallable() { + return updateDataScanOperationCallable; + } + + @Override + public UnaryCallable deleteDataScanCallable() { + return deleteDataScanCallable; + } + + @Override + public OperationCallable + deleteDataScanOperationCallable() { + return deleteDataScanOperationCallable; + } + + @Override + public UnaryCallable getDataScanCallable() { + return getDataScanCallable; + } + + @Override + public UnaryCallable listDataScansCallable() { + return listDataScansCallable; + } + + @Override + public UnaryCallable + listDataScansPagedCallable() { + return listDataScansPagedCallable; + } + + @Override + public UnaryCallable runDataScanCallable() { + return runDataScanCallable; + } + + @Override + public UnaryCallable getDataScanJobCallable() { + return getDataScanJobCallable; + } + + @Override + public UnaryCallable + listDataScanJobsCallable() { + return listDataScanJobsCallable; + } + + @Override + public UnaryCallable + listDataScanJobsPagedCallable() { + return listDataScanJobsPagedCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceCallableFactory.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceCallableFactory.java new file mode 100644 index 000000000000..983832176a2e --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DataScanService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonDataScanServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceStub.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceStub.java new file mode 100644 index 000000000000..10c4169bd53b --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/HttpJsonDataScanServiceStub.java @@ -0,0 +1,779 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.stub; + +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScanJobsPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScansPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dataplex.v1.CreateDataScanRequest; +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DeleteDataScanRequest; +import com.google.cloud.dataplex.v1.GetDataScanJobRequest; +import com.google.cloud.dataplex.v1.GetDataScanRequest; +import com.google.cloud.dataplex.v1.ListDataScanJobsRequest; +import com.google.cloud.dataplex.v1.ListDataScanJobsResponse; +import com.google.cloud.dataplex.v1.ListDataScansRequest; +import com.google.cloud.dataplex.v1.ListDataScansResponse; +import com.google.cloud.dataplex.v1.OperationMetadata; +import com.google.cloud.dataplex.v1.RunDataScanRequest; +import com.google.cloud.dataplex.v1.RunDataScanResponse; +import com.google.cloud.dataplex.v1.UpdateDataScanRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DataScanService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonDataScanServiceStub extends DataScanServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(DataScan.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createDataScanMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/CreateDataScan") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/dataScans", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "dataScanId", request.getDataScanId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("dataScan", request.getDataScan(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateDataScanRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateDataScanMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/UpdateDataScan") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{dataScan.name=projects/*/locations/*/dataScans/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "dataScan.name", request.getDataScan().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("dataScan", request.getDataScan(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateDataScanRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteDataScanMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/DeleteDataScan") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dataScans/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteDataScanRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getDataScanMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/GetDataScan") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dataScans/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataScan.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDataScansMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/ListDataScans") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/dataScans", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDataScansResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + runDataScanMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/RunDataScan") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dataScans/*}:run", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RunDataScanResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getDataScanJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/GetDataScanJob") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataScanJob.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listDataScanJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataplex.v1.DataScanService/ListDataScanJobs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/dataScans/*}/jobs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDataScanJobsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createDataScanCallable; + private final OperationCallable + createDataScanOperationCallable; + private final UnaryCallable updateDataScanCallable; + private final OperationCallable + updateDataScanOperationCallable; + private final UnaryCallable deleteDataScanCallable; + private final OperationCallable + deleteDataScanOperationCallable; + private final UnaryCallable getDataScanCallable; + private final UnaryCallable listDataScansCallable; + private final UnaryCallable + listDataScansPagedCallable; + private final UnaryCallable runDataScanCallable; + private final UnaryCallable getDataScanJobCallable; + private final UnaryCallable + listDataScanJobsCallable; + private final UnaryCallable + listDataScanJobsPagedCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDataScanServiceStub create(DataScanServiceStubSettings settings) + throws IOException { + return new HttpJsonDataScanServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDataScanServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDataScanServiceStub( + DataScanServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonDataScanServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDataScanServiceStub( + DataScanServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonDataScanServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDataScanServiceStub( + DataScanServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonDataScanServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDataScanServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDataScanServiceStub( + DataScanServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createDataScanTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createDataScanMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateDataScanTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDataScanMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteDataScanTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteDataScanMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getDataScanTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDataScanMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listDataScansTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDataScansMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings runDataScanTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runDataScanMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getDataScanJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDataScanJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listDataScanJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listDataScanJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createDataScanCallable = + callableFactory.createUnaryCallable( + createDataScanTransportSettings, settings.createDataScanSettings(), clientContext); + this.createDataScanOperationCallable = + callableFactory.createOperationCallable( + createDataScanTransportSettings, + settings.createDataScanOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateDataScanCallable = + callableFactory.createUnaryCallable( + updateDataScanTransportSettings, settings.updateDataScanSettings(), clientContext); + this.updateDataScanOperationCallable = + callableFactory.createOperationCallable( + updateDataScanTransportSettings, + settings.updateDataScanOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteDataScanCallable = + callableFactory.createUnaryCallable( + deleteDataScanTransportSettings, settings.deleteDataScanSettings(), clientContext); + this.deleteDataScanOperationCallable = + callableFactory.createOperationCallable( + deleteDataScanTransportSettings, + settings.deleteDataScanOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getDataScanCallable = + callableFactory.createUnaryCallable( + getDataScanTransportSettings, settings.getDataScanSettings(), clientContext); + this.listDataScansCallable = + callableFactory.createUnaryCallable( + listDataScansTransportSettings, settings.listDataScansSettings(), clientContext); + this.listDataScansPagedCallable = + callableFactory.createPagedCallable( + listDataScansTransportSettings, settings.listDataScansSettings(), clientContext); + this.runDataScanCallable = + callableFactory.createUnaryCallable( + runDataScanTransportSettings, settings.runDataScanSettings(), clientContext); + this.getDataScanJobCallable = + callableFactory.createUnaryCallable( + getDataScanJobTransportSettings, settings.getDataScanJobSettings(), clientContext); + this.listDataScanJobsCallable = + callableFactory.createUnaryCallable( + listDataScanJobsTransportSettings, settings.listDataScanJobsSettings(), clientContext); + this.listDataScanJobsPagedCallable = + callableFactory.createPagedCallable( + listDataScanJobsTransportSettings, settings.listDataScanJobsSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createDataScanMethodDescriptor); + methodDescriptors.add(updateDataScanMethodDescriptor); + methodDescriptors.add(deleteDataScanMethodDescriptor); + methodDescriptors.add(getDataScanMethodDescriptor); + methodDescriptors.add(listDataScansMethodDescriptor); + methodDescriptors.add(runDataScanMethodDescriptor); + methodDescriptors.add(getDataScanJobMethodDescriptor); + methodDescriptors.add(listDataScanJobsMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createDataScanCallable() { + return createDataScanCallable; + } + + @Override + public OperationCallable + createDataScanOperationCallable() { + return createDataScanOperationCallable; + } + + @Override + public UnaryCallable updateDataScanCallable() { + return updateDataScanCallable; + } + + @Override + public OperationCallable + updateDataScanOperationCallable() { + return updateDataScanOperationCallable; + } + + @Override + public UnaryCallable deleteDataScanCallable() { + return deleteDataScanCallable; + } + + @Override + public OperationCallable + deleteDataScanOperationCallable() { + return deleteDataScanOperationCallable; + } + + @Override + public UnaryCallable getDataScanCallable() { + return getDataScanCallable; + } + + @Override + public UnaryCallable listDataScansCallable() { + return listDataScansCallable; + } + + @Override + public UnaryCallable + listDataScansPagedCallable() { + return listDataScansPagedCallable; + } + + @Override + public UnaryCallable runDataScanCallable() { + return runDataScanCallable; + } + + @Override + public UnaryCallable getDataScanJobCallable() { + return getDataScanJobCallable; + } + + @Override + public UnaryCallable + listDataScanJobsCallable() { + return listDataScanJobsCallable; + } + + @Override + public UnaryCallable + listDataScanJobsPagedCallable() { + return listDataScanJobsPagedCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/DataScanServiceClientHttpJsonTest.java b/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/DataScanServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..c3cdb35c8059 --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/DataScanServiceClientHttpJsonTest.java @@ -0,0 +1,1010 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1; + +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScanJobsPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScansPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.dataplex.v1.stub.HttpJsonDataScanServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DataScanServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static DataScanServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDataScanServiceStub.getMethodDescriptors(), + DataScanServiceSettings.getDefaultEndpoint()); + DataScanServiceSettings settings = + DataScanServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DataScanServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DataScanServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createDataScanTest() throws Exception { + DataScan expectedResponse = + DataScan.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setUid("uid115792") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setState(State.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setData(DataSource.newBuilder().build()) + .setExecutionSpec(DataScan.ExecutionSpec.newBuilder().build()) + .setExecutionStatus(DataScan.ExecutionStatus.newBuilder().build()) + .setType(DataScanType.forNumber(0)) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDataScanTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DataScan dataScan = DataScan.newBuilder().build(); + String dataScanId = "dataScanId1260787906"; + + DataScan actualResponse = client.createDataScanAsync(parent, dataScan, dataScanId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDataScanExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DataScan dataScan = DataScan.newBuilder().build(); + String dataScanId = "dataScanId1260787906"; + client.createDataScanAsync(parent, dataScan, dataScanId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createDataScanTest2() throws Exception { + DataScan expectedResponse = + DataScan.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setUid("uid115792") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setState(State.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setData(DataSource.newBuilder().build()) + .setExecutionSpec(DataScan.ExecutionSpec.newBuilder().build()) + .setExecutionStatus(DataScan.ExecutionStatus.newBuilder().build()) + .setType(DataScanType.forNumber(0)) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDataScanTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + DataScan dataScan = DataScan.newBuilder().build(); + String dataScanId = "dataScanId1260787906"; + + DataScan actualResponse = client.createDataScanAsync(parent, dataScan, dataScanId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createDataScanExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + DataScan dataScan = DataScan.newBuilder().build(); + String dataScanId = "dataScanId1260787906"; + client.createDataScanAsync(parent, dataScan, dataScanId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateDataScanTest() throws Exception { + DataScan expectedResponse = + DataScan.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setUid("uid115792") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setState(State.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setData(DataSource.newBuilder().build()) + .setExecutionSpec(DataScan.ExecutionSpec.newBuilder().build()) + .setExecutionStatus(DataScan.ExecutionStatus.newBuilder().build()) + .setType(DataScanType.forNumber(0)) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDataScanTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + DataScan dataScan = + DataScan.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setUid("uid115792") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setState(State.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setData(DataSource.newBuilder().build()) + .setExecutionSpec(DataScan.ExecutionSpec.newBuilder().build()) + .setExecutionStatus(DataScan.ExecutionStatus.newBuilder().build()) + .setType(DataScanType.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DataScan actualResponse = client.updateDataScanAsync(dataScan, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDataScanExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataScan dataScan = + DataScan.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setUid("uid115792") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setState(State.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setData(DataSource.newBuilder().build()) + .setExecutionSpec(DataScan.ExecutionSpec.newBuilder().build()) + .setExecutionStatus(DataScan.ExecutionStatus.newBuilder().build()) + .setType(DataScanType.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataScanAsync(dataScan, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteDataScanTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDataScanTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + + client.deleteDataScanAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteDataScanExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + client.deleteDataScanAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteDataScanTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDataScanTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1806/locations/location-1806/dataScans/dataScan-1806"; + + client.deleteDataScanAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteDataScanExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1806/locations/location-1806/dataScans/dataScan-1806"; + client.deleteDataScanAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getDataScanTest() throws Exception { + DataScan expectedResponse = + DataScan.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setUid("uid115792") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setState(State.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setData(DataSource.newBuilder().build()) + .setExecutionSpec(DataScan.ExecutionSpec.newBuilder().build()) + .setExecutionStatus(DataScan.ExecutionStatus.newBuilder().build()) + .setType(DataScanType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + + DataScan actualResponse = client.getDataScan(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDataScanExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + client.getDataScan(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataScanTest2() throws Exception { + DataScan expectedResponse = + DataScan.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setUid("uid115792") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setState(State.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setData(DataSource.newBuilder().build()) + .setExecutionSpec(DataScan.ExecutionSpec.newBuilder().build()) + .setExecutionStatus(DataScan.ExecutionStatus.newBuilder().build()) + .setType(DataScanType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1806/locations/location-1806/dataScans/dataScan-1806"; + + DataScan actualResponse = client.getDataScan(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDataScanExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1806/locations/location-1806/dataScans/dataScan-1806"; + client.getDataScan(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataScansTest() throws Exception { + DataScan responsesElement = DataScan.newBuilder().build(); + ListDataScansResponse expectedResponse = + ListDataScansResponse.newBuilder() + .setNextPageToken("") + .addAllDataScans(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDataScansPagedResponse pagedListResponse = client.listDataScans(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataScansList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDataScansExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listDataScans(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataScansTest2() throws Exception { + DataScan responsesElement = DataScan.newBuilder().build(); + ListDataScansResponse expectedResponse = + ListDataScansResponse.newBuilder() + .setNextPageToken("") + .addAllDataScans(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListDataScansPagedResponse pagedListResponse = client.listDataScans(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataScansList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDataScansExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listDataScans(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runDataScanTest() throws Exception { + RunDataScanResponse expectedResponse = + RunDataScanResponse.newBuilder().setJob(DataScanJob.newBuilder().build()).build(); + mockService.addResponse(expectedResponse); + + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + + RunDataScanResponse actualResponse = client.runDataScan(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runDataScanExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + client.runDataScan(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runDataScanTest2() throws Exception { + RunDataScanResponse expectedResponse = + RunDataScanResponse.newBuilder().setJob(DataScanJob.newBuilder().build()).build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1806/locations/location-1806/dataScans/dataScan-1806"; + + RunDataScanResponse actualResponse = client.runDataScan(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runDataScanExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1806/locations/location-1806/dataScans/dataScan-1806"; + client.runDataScan(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataScanJobTest() throws Exception { + DataScanJob expectedResponse = + DataScanJob.newBuilder() + .setName( + DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]").toString()) + .setUid("uid115792") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setMessage("message954925063") + .setType(DataScanType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + DataScanJobName name = DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]"); + + DataScanJob actualResponse = client.getDataScanJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDataScanJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataScanJobName name = DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]"); + client.getDataScanJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataScanJobTest2() throws Exception { + DataScanJob expectedResponse = + DataScanJob.newBuilder() + .setName( + DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]").toString()) + .setUid("uid115792") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setMessage("message954925063") + .setType(DataScanType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7138/locations/location-7138/dataScans/dataScan-7138/jobs/job-7138"; + + DataScanJob actualResponse = client.getDataScanJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDataScanJobExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7138/locations/location-7138/dataScans/dataScan-7138/jobs/job-7138"; + client.getDataScanJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataScanJobsTest() throws Exception { + DataScanJob responsesElement = DataScanJob.newBuilder().build(); + ListDataScanJobsResponse expectedResponse = + ListDataScanJobsResponse.newBuilder() + .setNextPageToken("") + .addAllDataScanJobs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DataScanName parent = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + + ListDataScanJobsPagedResponse pagedListResponse = client.listDataScanJobs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataScanJobsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDataScanJobsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataScanName parent = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + client.listDataScanJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataScanJobsTest2() throws Exception { + DataScanJob responsesElement = DataScanJob.newBuilder().build(); + ListDataScanJobsResponse expectedResponse = + ListDataScanJobsResponse.newBuilder() + .setNextPageToken("") + .addAllDataScanJobs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-881/locations/location-881/dataScans/dataScan-881"; + + ListDataScanJobsPagedResponse pagedListResponse = client.listDataScanJobs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataScanJobsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listDataScanJobsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-881/locations/location-881/dataScans/dataScan-881"; + client.listDataScanJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/DataScanServiceClientTest.java b/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/DataScanServiceClientTest.java new file mode 100644 index 000000000000..0520e97dd572 --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/DataScanServiceClientTest.java @@ -0,0 +1,904 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1; + +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScanJobsPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListDataScansPagedResponse; +import static com.google.cloud.dataplex.v1.DataScanServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DataScanServiceClientTest { + private static MockDataScanService mockDataScanService; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DataScanServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockDataScanService = new MockDataScanService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockDataScanService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DataScanServiceSettings settings = + DataScanServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DataScanServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createDataScanTest() throws Exception { + DataScan expectedResponse = + DataScan.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setUid("uid115792") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setState(State.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setData(DataSource.newBuilder().build()) + .setExecutionSpec(DataScan.ExecutionSpec.newBuilder().build()) + .setExecutionStatus(DataScan.ExecutionStatus.newBuilder().build()) + .setType(DataScanType.forNumber(0)) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDataScanTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataScanService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DataScan dataScan = DataScan.newBuilder().build(); + String dataScanId = "dataScanId1260787906"; + + DataScan actualResponse = client.createDataScanAsync(parent, dataScan, dataScanId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDataScanRequest actualRequest = ((CreateDataScanRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(dataScan, actualRequest.getDataScan()); + Assert.assertEquals(dataScanId, actualRequest.getDataScanId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDataScanExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DataScan dataScan = DataScan.newBuilder().build(); + String dataScanId = "dataScanId1260787906"; + client.createDataScanAsync(parent, dataScan, dataScanId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createDataScanTest2() throws Exception { + DataScan expectedResponse = + DataScan.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setUid("uid115792") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setState(State.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setData(DataSource.newBuilder().build()) + .setExecutionSpec(DataScan.ExecutionSpec.newBuilder().build()) + .setExecutionStatus(DataScan.ExecutionStatus.newBuilder().build()) + .setType(DataScanType.forNumber(0)) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDataScanTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataScanService.addResponse(resultOperation); + + String parent = "parent-995424086"; + DataScan dataScan = DataScan.newBuilder().build(); + String dataScanId = "dataScanId1260787906"; + + DataScan actualResponse = client.createDataScanAsync(parent, dataScan, dataScanId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDataScanRequest actualRequest = ((CreateDataScanRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(dataScan, actualRequest.getDataScan()); + Assert.assertEquals(dataScanId, actualRequest.getDataScanId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDataScanExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + String parent = "parent-995424086"; + DataScan dataScan = DataScan.newBuilder().build(); + String dataScanId = "dataScanId1260787906"; + client.createDataScanAsync(parent, dataScan, dataScanId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateDataScanTest() throws Exception { + DataScan expectedResponse = + DataScan.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setUid("uid115792") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setState(State.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setData(DataSource.newBuilder().build()) + .setExecutionSpec(DataScan.ExecutionSpec.newBuilder().build()) + .setExecutionStatus(DataScan.ExecutionStatus.newBuilder().build()) + .setType(DataScanType.forNumber(0)) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDataScanTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataScanService.addResponse(resultOperation); + + DataScan dataScan = DataScan.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DataScan actualResponse = client.updateDataScanAsync(dataScan, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDataScanRequest actualRequest = ((UpdateDataScanRequest) actualRequests.get(0)); + + Assert.assertEquals(dataScan, actualRequest.getDataScan()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDataScanExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + DataScan dataScan = DataScan.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataScanAsync(dataScan, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteDataScanTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDataScanTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataScanService.addResponse(resultOperation); + + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + + client.deleteDataScanAsync(name).get(); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDataScanRequest actualRequest = ((DeleteDataScanRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDataScanExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + client.deleteDataScanAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteDataScanTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDataScanTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataScanService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteDataScanAsync(name).get(); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDataScanRequest actualRequest = ((DeleteDataScanRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDataScanExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDataScanAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getDataScanTest() throws Exception { + DataScan expectedResponse = + DataScan.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setUid("uid115792") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setState(State.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setData(DataSource.newBuilder().build()) + .setExecutionSpec(DataScan.ExecutionSpec.newBuilder().build()) + .setExecutionStatus(DataScan.ExecutionStatus.newBuilder().build()) + .setType(DataScanType.forNumber(0)) + .build(); + mockDataScanService.addResponse(expectedResponse); + + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + + DataScan actualResponse = client.getDataScan(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataScanRequest actualRequest = ((GetDataScanRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataScanExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + client.getDataScan(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataScanTest2() throws Exception { + DataScan expectedResponse = + DataScan.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setUid("uid115792") + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setState(State.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setData(DataSource.newBuilder().build()) + .setExecutionSpec(DataScan.ExecutionSpec.newBuilder().build()) + .setExecutionStatus(DataScan.ExecutionStatus.newBuilder().build()) + .setType(DataScanType.forNumber(0)) + .build(); + mockDataScanService.addResponse(expectedResponse); + + String name = "name3373707"; + + DataScan actualResponse = client.getDataScan(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataScanRequest actualRequest = ((GetDataScanRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataScanExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + String name = "name3373707"; + client.getDataScan(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataScansTest() throws Exception { + DataScan responsesElement = DataScan.newBuilder().build(); + ListDataScansResponse expectedResponse = + ListDataScansResponse.newBuilder() + .setNextPageToken("") + .addAllDataScans(Arrays.asList(responsesElement)) + .build(); + mockDataScanService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListDataScansPagedResponse pagedListResponse = client.listDataScans(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataScansList().get(0), resources.get(0)); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataScansRequest actualRequest = ((ListDataScansRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataScansExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listDataScans(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataScansTest2() throws Exception { + DataScan responsesElement = DataScan.newBuilder().build(); + ListDataScansResponse expectedResponse = + ListDataScansResponse.newBuilder() + .setNextPageToken("") + .addAllDataScans(Arrays.asList(responsesElement)) + .build(); + mockDataScanService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDataScansPagedResponse pagedListResponse = client.listDataScans(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataScansList().get(0), resources.get(0)); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataScansRequest actualRequest = ((ListDataScansRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataScansExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDataScans(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runDataScanTest() throws Exception { + RunDataScanResponse expectedResponse = + RunDataScanResponse.newBuilder().setJob(DataScanJob.newBuilder().build()).build(); + mockDataScanService.addResponse(expectedResponse); + + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + + RunDataScanResponse actualResponse = client.runDataScan(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunDataScanRequest actualRequest = ((RunDataScanRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runDataScanExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + client.runDataScan(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runDataScanTest2() throws Exception { + RunDataScanResponse expectedResponse = + RunDataScanResponse.newBuilder().setJob(DataScanJob.newBuilder().build()).build(); + mockDataScanService.addResponse(expectedResponse); + + String name = "name3373707"; + + RunDataScanResponse actualResponse = client.runDataScan(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunDataScanRequest actualRequest = ((RunDataScanRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runDataScanExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + String name = "name3373707"; + client.runDataScan(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataScanJobTest() throws Exception { + DataScanJob expectedResponse = + DataScanJob.newBuilder() + .setName( + DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]").toString()) + .setUid("uid115792") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setMessage("message954925063") + .setType(DataScanType.forNumber(0)) + .build(); + mockDataScanService.addResponse(expectedResponse); + + DataScanJobName name = DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]"); + + DataScanJob actualResponse = client.getDataScanJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataScanJobRequest actualRequest = ((GetDataScanJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataScanJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + DataScanJobName name = DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]"); + client.getDataScanJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataScanJobTest2() throws Exception { + DataScanJob expectedResponse = + DataScanJob.newBuilder() + .setName( + DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]").toString()) + .setUid("uid115792") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setMessage("message954925063") + .setType(DataScanType.forNumber(0)) + .build(); + mockDataScanService.addResponse(expectedResponse); + + String name = "name3373707"; + + DataScanJob actualResponse = client.getDataScanJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataScanJobRequest actualRequest = ((GetDataScanJobRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataScanJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + String name = "name3373707"; + client.getDataScanJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataScanJobsTest() throws Exception { + DataScanJob responsesElement = DataScanJob.newBuilder().build(); + ListDataScanJobsResponse expectedResponse = + ListDataScanJobsResponse.newBuilder() + .setNextPageToken("") + .addAllDataScanJobs(Arrays.asList(responsesElement)) + .build(); + mockDataScanService.addResponse(expectedResponse); + + DataScanName parent = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + + ListDataScanJobsPagedResponse pagedListResponse = client.listDataScanJobs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataScanJobsList().get(0), resources.get(0)); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataScanJobsRequest actualRequest = ((ListDataScanJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataScanJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + DataScanName parent = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + client.listDataScanJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataScanJobsTest2() throws Exception { + DataScanJob responsesElement = DataScanJob.newBuilder().build(); + ListDataScanJobsResponse expectedResponse = + ListDataScanJobsResponse.newBuilder() + .setNextPageToken("") + .addAllDataScanJobs(Arrays.asList(responsesElement)) + .build(); + mockDataScanService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDataScanJobsPagedResponse pagedListResponse = client.listDataScanJobs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataScanJobsList().get(0), resources.get(0)); + + List actualRequests = mockDataScanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataScanJobsRequest actualRequest = ((ListDataScanJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataScanJobsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataScanService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDataScanJobs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/MockDataScanService.java b/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/MockDataScanService.java new file mode 100644 index 000000000000..c9b82b32742b --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/MockDataScanService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDataScanService implements MockGrpcService { + private final MockDataScanServiceImpl serviceImpl; + + public MockDataScanService() { + serviceImpl = new MockDataScanServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/MockDataScanServiceImpl.java b/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/MockDataScanServiceImpl.java new file mode 100644 index 000000000000..7833c4d00daf --- /dev/null +++ b/java-dataplex/google-cloud-dataplex/src/test/java/com/google/cloud/dataplex/v1/MockDataScanServiceImpl.java @@ -0,0 +1,228 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.dataplex.v1.DataScanServiceGrpc.DataScanServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDataScanServiceImpl extends DataScanServiceImplBase { + private List requests; + private Queue responses; + + public MockDataScanServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createDataScan( + CreateDataScanRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateDataScan, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDataScan( + UpdateDataScanRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateDataScan, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDataScan( + DeleteDataScanRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteDataScan, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDataScan(GetDataScanRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataScan) { + requests.add(request); + responseObserver.onNext(((DataScan) 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 GetDataScan, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataScan.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDataScans( + ListDataScansRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDataScansResponse) { + requests.add(request); + responseObserver.onNext(((ListDataScansResponse) 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 ListDataScans, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDataScansResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void runDataScan( + RunDataScanRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RunDataScanResponse) { + requests.add(request); + responseObserver.onNext(((RunDataScanResponse) 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 RunDataScan, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RunDataScanResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDataScanJob( + GetDataScanJobRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataScanJob) { + requests.add(request); + responseObserver.onNext(((DataScanJob) 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 GetDataScanJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataScanJob.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDataScanJobs( + ListDataScanJobsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDataScanJobsResponse) { + requests.add(request); + responseObserver.onNext(((ListDataScanJobsResponse) 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 ListDataScanJobs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDataScanJobsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceGrpc.java b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceGrpc.java new file mode 100644 index 000000000000..1a550b158c9e --- /dev/null +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceGrpc.java @@ -0,0 +1,1139 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.dataplex.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/dataplex/v1/datascans.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DataScanServiceGrpc { + + private DataScanServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.dataplex.v1.DataScanService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.CreateDataScanRequest, com.google.longrunning.Operation> + getCreateDataScanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataScan", + requestType = com.google.cloud.dataplex.v1.CreateDataScanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.CreateDataScanRequest, com.google.longrunning.Operation> + getCreateDataScanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.CreateDataScanRequest, com.google.longrunning.Operation> + getCreateDataScanMethod; + if ((getCreateDataScanMethod = DataScanServiceGrpc.getCreateDataScanMethod) == null) { + synchronized (DataScanServiceGrpc.class) { + if ((getCreateDataScanMethod = DataScanServiceGrpc.getCreateDataScanMethod) == null) { + DataScanServiceGrpc.getCreateDataScanMethod = + getCreateDataScanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataScan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.CreateDataScanRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataScanServiceMethodDescriptorSupplier("CreateDataScan")) + .build(); + } + } + } + return getCreateDataScanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.UpdateDataScanRequest, com.google.longrunning.Operation> + getUpdateDataScanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataScan", + requestType = com.google.cloud.dataplex.v1.UpdateDataScanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.UpdateDataScanRequest, com.google.longrunning.Operation> + getUpdateDataScanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.UpdateDataScanRequest, com.google.longrunning.Operation> + getUpdateDataScanMethod; + if ((getUpdateDataScanMethod = DataScanServiceGrpc.getUpdateDataScanMethod) == null) { + synchronized (DataScanServiceGrpc.class) { + if ((getUpdateDataScanMethod = DataScanServiceGrpc.getUpdateDataScanMethod) == null) { + DataScanServiceGrpc.getUpdateDataScanMethod = + getUpdateDataScanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataScan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.UpdateDataScanRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataScanServiceMethodDescriptorSupplier("UpdateDataScan")) + .build(); + } + } + } + return getUpdateDataScanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.DeleteDataScanRequest, com.google.longrunning.Operation> + getDeleteDataScanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataScan", + requestType = com.google.cloud.dataplex.v1.DeleteDataScanRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.DeleteDataScanRequest, com.google.longrunning.Operation> + getDeleteDataScanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.DeleteDataScanRequest, com.google.longrunning.Operation> + getDeleteDataScanMethod; + if ((getDeleteDataScanMethod = DataScanServiceGrpc.getDeleteDataScanMethod) == null) { + synchronized (DataScanServiceGrpc.class) { + if ((getDeleteDataScanMethod = DataScanServiceGrpc.getDeleteDataScanMethod) == null) { + DataScanServiceGrpc.getDeleteDataScanMethod = + getDeleteDataScanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataScan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.DeleteDataScanRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataScanServiceMethodDescriptorSupplier("DeleteDataScan")) + .build(); + } + } + } + return getDeleteDataScanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.GetDataScanRequest, com.google.cloud.dataplex.v1.DataScan> + getGetDataScanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataScan", + requestType = com.google.cloud.dataplex.v1.GetDataScanRequest.class, + responseType = com.google.cloud.dataplex.v1.DataScan.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.GetDataScanRequest, com.google.cloud.dataplex.v1.DataScan> + getGetDataScanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.GetDataScanRequest, com.google.cloud.dataplex.v1.DataScan> + getGetDataScanMethod; + if ((getGetDataScanMethod = DataScanServiceGrpc.getGetDataScanMethod) == null) { + synchronized (DataScanServiceGrpc.class) { + if ((getGetDataScanMethod = DataScanServiceGrpc.getGetDataScanMethod) == null) { + DataScanServiceGrpc.getGetDataScanMethod = + getGetDataScanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataScan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.GetDataScanRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.DataScan.getDefaultInstance())) + .setSchemaDescriptor( + new DataScanServiceMethodDescriptorSupplier("GetDataScan")) + .build(); + } + } + } + return getGetDataScanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.ListDataScansRequest, + com.google.cloud.dataplex.v1.ListDataScansResponse> + getListDataScansMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataScans", + requestType = com.google.cloud.dataplex.v1.ListDataScansRequest.class, + responseType = com.google.cloud.dataplex.v1.ListDataScansResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.ListDataScansRequest, + com.google.cloud.dataplex.v1.ListDataScansResponse> + getListDataScansMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.ListDataScansRequest, + com.google.cloud.dataplex.v1.ListDataScansResponse> + getListDataScansMethod; + if ((getListDataScansMethod = DataScanServiceGrpc.getListDataScansMethod) == null) { + synchronized (DataScanServiceGrpc.class) { + if ((getListDataScansMethod = DataScanServiceGrpc.getListDataScansMethod) == null) { + DataScanServiceGrpc.getListDataScansMethod = + getListDataScansMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataScans")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.ListDataScansRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.ListDataScansResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataScanServiceMethodDescriptorSupplier("ListDataScans")) + .build(); + } + } + } + return getListDataScansMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.RunDataScanRequest, + com.google.cloud.dataplex.v1.RunDataScanResponse> + getRunDataScanMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunDataScan", + requestType = com.google.cloud.dataplex.v1.RunDataScanRequest.class, + responseType = com.google.cloud.dataplex.v1.RunDataScanResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.RunDataScanRequest, + com.google.cloud.dataplex.v1.RunDataScanResponse> + getRunDataScanMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.RunDataScanRequest, + com.google.cloud.dataplex.v1.RunDataScanResponse> + getRunDataScanMethod; + if ((getRunDataScanMethod = DataScanServiceGrpc.getRunDataScanMethod) == null) { + synchronized (DataScanServiceGrpc.class) { + if ((getRunDataScanMethod = DataScanServiceGrpc.getRunDataScanMethod) == null) { + DataScanServiceGrpc.getRunDataScanMethod = + getRunDataScanMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunDataScan")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.RunDataScanRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.RunDataScanResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataScanServiceMethodDescriptorSupplier("RunDataScan")) + .build(); + } + } + } + return getRunDataScanMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.GetDataScanJobRequest, + com.google.cloud.dataplex.v1.DataScanJob> + getGetDataScanJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataScanJob", + requestType = com.google.cloud.dataplex.v1.GetDataScanJobRequest.class, + responseType = com.google.cloud.dataplex.v1.DataScanJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.GetDataScanJobRequest, + com.google.cloud.dataplex.v1.DataScanJob> + getGetDataScanJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.GetDataScanJobRequest, + com.google.cloud.dataplex.v1.DataScanJob> + getGetDataScanJobMethod; + if ((getGetDataScanJobMethod = DataScanServiceGrpc.getGetDataScanJobMethod) == null) { + synchronized (DataScanServiceGrpc.class) { + if ((getGetDataScanJobMethod = DataScanServiceGrpc.getGetDataScanJobMethod) == null) { + DataScanServiceGrpc.getGetDataScanJobMethod = + getGetDataScanJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataScanJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.GetDataScanJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.DataScanJob.getDefaultInstance())) + .setSchemaDescriptor( + new DataScanServiceMethodDescriptorSupplier("GetDataScanJob")) + .build(); + } + } + } + return getGetDataScanJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.ListDataScanJobsRequest, + com.google.cloud.dataplex.v1.ListDataScanJobsResponse> + getListDataScanJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataScanJobs", + requestType = com.google.cloud.dataplex.v1.ListDataScanJobsRequest.class, + responseType = com.google.cloud.dataplex.v1.ListDataScanJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.ListDataScanJobsRequest, + com.google.cloud.dataplex.v1.ListDataScanJobsResponse> + getListDataScanJobsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataplex.v1.ListDataScanJobsRequest, + com.google.cloud.dataplex.v1.ListDataScanJobsResponse> + getListDataScanJobsMethod; + if ((getListDataScanJobsMethod = DataScanServiceGrpc.getListDataScanJobsMethod) == null) { + synchronized (DataScanServiceGrpc.class) { + if ((getListDataScanJobsMethod = DataScanServiceGrpc.getListDataScanJobsMethod) == null) { + DataScanServiceGrpc.getListDataScanJobsMethod = + getListDataScanJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataScanJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.ListDataScanJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataplex.v1.ListDataScanJobsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataScanServiceMethodDescriptorSupplier("ListDataScanJobs")) + .build(); + } + } + } + return getListDataScanJobsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DataScanServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataScanServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataScanServiceStub(channel, callOptions); + } + }; + return DataScanServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataScanServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataScanServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataScanServiceBlockingStub(channel, callOptions); + } + }; + return DataScanServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DataScanServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataScanServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataScanServiceFutureStub(channel, callOptions); + } + }; + return DataScanServiceFutureStub.newStub(factory, channel); + } + + /** */ + public abstract static class DataScanServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a dataScan resource.
+     * 
+ */ + public void createDataScan( + com.google.cloud.dataplex.v1.CreateDataScanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDataScanMethod(), responseObserver); + } + + /** + * + * + *
+     * Update the dataScan resource.
+     * 
+ */ + public void updateDataScan( + com.google.cloud.dataplex.v1.UpdateDataScanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataScanMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete the dataScan resource.
+     * 
+ */ + public void deleteDataScan( + com.google.cloud.dataplex.v1.DeleteDataScanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDataScanMethod(), responseObserver); + } + + /** + * + * + *
+     * Get dataScan resource.
+     * 
+ */ + public void getDataScan( + com.google.cloud.dataplex.v1.GetDataScanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataScanMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists dataScans.
+     * 
+ */ + public void listDataScans( + com.google.cloud.dataplex.v1.ListDataScansRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataScansMethod(), responseObserver); + } + + /** + * + * + *
+     * Run an on demand execution of a DataScan.
+     * 
+ */ + public void runDataScan( + com.google.cloud.dataplex.v1.RunDataScanRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunDataScanMethod(), responseObserver); + } + + /** + * + * + *
+     * Get DataScanJob resource.
+     * 
+ */ + public void getDataScanJob( + com.google.cloud.dataplex.v1.GetDataScanJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataScanJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists DataScanJobs under the given dataScan.
+     * 
+ */ + public void listDataScanJobs( + com.google.cloud.dataplex.v1.ListDataScanJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataScanJobsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateDataScanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataplex.v1.CreateDataScanRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_DATA_SCAN))) + .addMethod( + getUpdateDataScanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataplex.v1.UpdateDataScanRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_DATA_SCAN))) + .addMethod( + getDeleteDataScanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataplex.v1.DeleteDataScanRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_DATA_SCAN))) + .addMethod( + getGetDataScanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataplex.v1.GetDataScanRequest, + com.google.cloud.dataplex.v1.DataScan>(this, METHODID_GET_DATA_SCAN))) + .addMethod( + getListDataScansMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataplex.v1.ListDataScansRequest, + com.google.cloud.dataplex.v1.ListDataScansResponse>( + this, METHODID_LIST_DATA_SCANS))) + .addMethod( + getRunDataScanMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataplex.v1.RunDataScanRequest, + com.google.cloud.dataplex.v1.RunDataScanResponse>( + this, METHODID_RUN_DATA_SCAN))) + .addMethod( + getGetDataScanJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataplex.v1.GetDataScanJobRequest, + com.google.cloud.dataplex.v1.DataScanJob>(this, METHODID_GET_DATA_SCAN_JOB))) + .addMethod( + getListDataScanJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataplex.v1.ListDataScanJobsRequest, + com.google.cloud.dataplex.v1.ListDataScanJobsResponse>( + this, METHODID_LIST_DATA_SCAN_JOBS))) + .build(); + } + } + + /** */ + public static final class DataScanServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DataScanServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataScanServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataScanServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a dataScan resource.
+     * 
+ */ + public void createDataScan( + com.google.cloud.dataplex.v1.CreateDataScanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDataScanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update the dataScan resource.
+     * 
+ */ + public void updateDataScan( + com.google.cloud.dataplex.v1.UpdateDataScanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataScanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete the dataScan resource.
+     * 
+ */ + public void deleteDataScan( + com.google.cloud.dataplex.v1.DeleteDataScanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDataScanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get dataScan resource.
+     * 
+ */ + public void getDataScan( + com.google.cloud.dataplex.v1.GetDataScanRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataScanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists dataScans.
+     * 
+ */ + public void listDataScans( + com.google.cloud.dataplex.v1.ListDataScansRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataScansMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Run an on demand execution of a DataScan.
+     * 
+ */ + public void runDataScan( + com.google.cloud.dataplex.v1.RunDataScanRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunDataScanMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get DataScanJob resource.
+     * 
+ */ + public void getDataScanJob( + com.google.cloud.dataplex.v1.GetDataScanJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataScanJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists DataScanJobs under the given dataScan.
+     * 
+ */ + public void listDataScanJobs( + com.google.cloud.dataplex.v1.ListDataScanJobsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataScanJobsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** */ + public static final class DataScanServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DataScanServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataScanServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataScanServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a dataScan resource.
+     * 
+ */ + public com.google.longrunning.Operation createDataScan( + com.google.cloud.dataplex.v1.CreateDataScanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDataScanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update the dataScan resource.
+     * 
+ */ + public com.google.longrunning.Operation updateDataScan( + com.google.cloud.dataplex.v1.UpdateDataScanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataScanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete the dataScan resource.
+     * 
+ */ + public com.google.longrunning.Operation deleteDataScan( + com.google.cloud.dataplex.v1.DeleteDataScanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDataScanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get dataScan resource.
+     * 
+ */ + public com.google.cloud.dataplex.v1.DataScan getDataScan( + com.google.cloud.dataplex.v1.GetDataScanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataScanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists dataScans.
+     * 
+ */ + public com.google.cloud.dataplex.v1.ListDataScansResponse listDataScans( + com.google.cloud.dataplex.v1.ListDataScansRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataScansMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Run an on demand execution of a DataScan.
+     * 
+ */ + public com.google.cloud.dataplex.v1.RunDataScanResponse runDataScan( + com.google.cloud.dataplex.v1.RunDataScanRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunDataScanMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get DataScanJob resource.
+     * 
+ */ + public com.google.cloud.dataplex.v1.DataScanJob getDataScanJob( + com.google.cloud.dataplex.v1.GetDataScanJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataScanJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists DataScanJobs under the given dataScan.
+     * 
+ */ + public com.google.cloud.dataplex.v1.ListDataScanJobsResponse listDataScanJobs( + com.google.cloud.dataplex.v1.ListDataScanJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataScanJobsMethod(), getCallOptions(), request); + } + } + + /** */ + public static final class DataScanServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DataScanServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataScanServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataScanServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a dataScan resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createDataScan(com.google.cloud.dataplex.v1.CreateDataScanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDataScanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update the dataScan resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateDataScan(com.google.cloud.dataplex.v1.UpdateDataScanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataScanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete the dataScan resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDataScan(com.google.cloud.dataplex.v1.DeleteDataScanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDataScanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get dataScan resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getDataScan(com.google.cloud.dataplex.v1.GetDataScanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataScanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists dataScans.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataplex.v1.ListDataScansResponse> + listDataScans(com.google.cloud.dataplex.v1.ListDataScansRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataScansMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Run an on demand execution of a DataScan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataplex.v1.RunDataScanResponse> + runDataScan(com.google.cloud.dataplex.v1.RunDataScanRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunDataScanMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get DataScanJob resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataplex.v1.DataScanJob> + getDataScanJob(com.google.cloud.dataplex.v1.GetDataScanJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataScanJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists DataScanJobs under the given dataScan.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataplex.v1.ListDataScanJobsResponse> + listDataScanJobs(com.google.cloud.dataplex.v1.ListDataScanJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataScanJobsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_DATA_SCAN = 0; + private static final int METHODID_UPDATE_DATA_SCAN = 1; + private static final int METHODID_DELETE_DATA_SCAN = 2; + private static final int METHODID_GET_DATA_SCAN = 3; + private static final int METHODID_LIST_DATA_SCANS = 4; + private static final int METHODID_RUN_DATA_SCAN = 5; + private static final int METHODID_GET_DATA_SCAN_JOB = 6; + private static final int METHODID_LIST_DATA_SCAN_JOBS = 7; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final DataScanServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DataScanServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_DATA_SCAN: + serviceImpl.createDataScan( + (com.google.cloud.dataplex.v1.CreateDataScanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DATA_SCAN: + serviceImpl.updateDataScan( + (com.google.cloud.dataplex.v1.UpdateDataScanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DATA_SCAN: + serviceImpl.deleteDataScan( + (com.google.cloud.dataplex.v1.DeleteDataScanRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATA_SCAN: + serviceImpl.getDataScan( + (com.google.cloud.dataplex.v1.GetDataScanRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATA_SCANS: + serviceImpl.listDataScans( + (com.google.cloud.dataplex.v1.ListDataScansRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RUN_DATA_SCAN: + serviceImpl.runDataScan( + (com.google.cloud.dataplex.v1.RunDataScanRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_DATA_SCAN_JOB: + serviceImpl.getDataScanJob( + (com.google.cloud.dataplex.v1.GetDataScanJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATA_SCAN_JOBS: + serviceImpl.listDataScanJobs( + (com.google.cloud.dataplex.v1.ListDataScanJobsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class DataScanServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DataScanServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DataScanService"); + } + } + + private static final class DataScanServiceFileDescriptorSupplier + extends DataScanServiceBaseDescriptorSupplier { + DataScanServiceFileDescriptorSupplier() {} + } + + private static final class DataScanServiceMethodDescriptorSupplier + extends DataScanServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DataScanServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DataScanServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DataScanServiceFileDescriptorSupplier()) + .addMethod(getCreateDataScanMethod()) + .addMethod(getUpdateDataScanMethod()) + .addMethod(getDeleteDataScanMethod()) + .addMethod(getGetDataScanMethod()) + .addMethod(getListDataScansMethod()) + .addMethod(getRunDataScanMethod()) + .addMethod(getGetDataScanJobMethod()) + .addMethod(getListDataScanJobsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Asset.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Asset.java index 7ad8e72cf9ff..0a64b4d3f9ee 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Asset.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Asset.java @@ -1415,11 +1415,11 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered.  For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are interpreted as
-     * patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered.  For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1431,11 +1431,11 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered.  For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are interpreted as
-     * patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered.  For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1447,11 +1447,11 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered.  For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are interpreted as
-     * patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered.  For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1464,11 +1464,11 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered.  For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are interpreted as
-     * patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered.  For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1482,9 +1482,9 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -1497,9 +1497,9 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -1512,9 +1512,9 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -1528,9 +1528,9 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -1627,15 +1627,15 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * discovery periodically. Successive discovery runs must be scheduled at
-     * least 60 minutes apart.
-     * The default value is to run discovery every 60 minutes.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running discovery periodically. Successive discovery runs must be
+     * scheduled at least 60 minutes apart. The default value is to run
+     * discovery every 60 minutes. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+     * from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -1647,15 +1647,15 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * discovery periodically. Successive discovery runs must be scheduled at
-     * least 60 minutes apart.
-     * The default value is to run discovery every 60 minutes.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running discovery periodically. Successive discovery runs must be
+     * scheduled at least 60 minutes apart. The default value is to run
+     * discovery every 60 minutes. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+     * from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -1667,15 +1667,15 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * discovery periodically. Successive discovery runs must be scheduled at
-     * least 60 minutes apart.
-     * The default value is to run discovery every 60 minutes.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running discovery periodically. Successive discovery runs must be
+     * scheduled at least 60 minutes apart. The default value is to run
+     * discovery every 60 minutes. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+     * from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -1745,8 +1745,8 @@ public interface CsvOptionsOrBuilder * * *
-       * Optional. The number of rows to interpret as header rows that should be skipped
-       * when reading data rows.
+       * Optional. The number of rows to interpret as header rows that should be
+       * skipped when reading data rows.
        * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1759,7 +1759,8 @@ public interface CsvOptionsOrBuilder * * *
-       * Optional. The delimiter being used to separate values. This defaults to ','.
+       * Optional. The delimiter being used to separate values. This defaults to
+       * ','.
        * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1771,7 +1772,8 @@ public interface CsvOptionsOrBuilder * * *
-       * Optional. The delimiter being used to separate values. This defaults to ','.
+       * Optional. The delimiter being used to separate values. This defaults to
+       * ','.
        * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1875,8 +1877,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * Optional. The number of rows to interpret as header rows that should be skipped
-       * when reading data rows.
+       * Optional. The number of rows to interpret as header rows that should be
+       * skipped when reading data rows.
        * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1894,7 +1896,8 @@ public int getHeaderRows() { * * *
-       * Optional. The delimiter being used to separate values. This defaults to ','.
+       * Optional. The delimiter being used to separate values. This defaults to
+       * ','.
        * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1917,7 +1920,8 @@ public java.lang.String getDelimiter() { * * *
-       * Optional. The delimiter being used to separate values. This defaults to ','.
+       * Optional. The delimiter being used to separate values. This defaults to
+       * ','.
        * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2412,8 +2416,8 @@ public Builder mergeFrom( * * *
-         * Optional. The number of rows to interpret as header rows that should be skipped
-         * when reading data rows.
+         * Optional. The number of rows to interpret as header rows that should be
+         * skipped when reading data rows.
          * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2428,8 +2432,8 @@ public int getHeaderRows() { * * *
-         * Optional. The number of rows to interpret as header rows that should be skipped
-         * when reading data rows.
+         * Optional. The number of rows to interpret as header rows that should be
+         * skipped when reading data rows.
          * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2447,8 +2451,8 @@ public Builder setHeaderRows(int value) { * * *
-         * Optional. The number of rows to interpret as header rows that should be skipped
-         * when reading data rows.
+         * Optional. The number of rows to interpret as header rows that should be
+         * skipped when reading data rows.
          * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2467,7 +2471,8 @@ public Builder clearHeaderRows() { * * *
-         * Optional. The delimiter being used to separate values. This defaults to ','.
+         * Optional. The delimiter being used to separate values. This defaults to
+         * ','.
          * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2489,7 +2494,8 @@ public java.lang.String getDelimiter() { * * *
-         * Optional. The delimiter being used to separate values. This defaults to ','.
+         * Optional. The delimiter being used to separate values. This defaults to
+         * ','.
          * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2511,7 +2517,8 @@ public com.google.protobuf.ByteString getDelimiterBytes() { * * *
-         * Optional. The delimiter being used to separate values. This defaults to ','.
+         * Optional. The delimiter being used to separate values. This defaults to
+         * ','.
          * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2532,7 +2539,8 @@ public Builder setDelimiter(java.lang.String value) { * * *
-         * Optional. The delimiter being used to separate values. This defaults to ','.
+         * Optional. The delimiter being used to separate values. This defaults to
+         * ','.
          * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2549,7 +2557,8 @@ public Builder clearDelimiter() { * * *
-         * Optional. The delimiter being used to separate values. This defaults to ','.
+         * Optional. The delimiter being used to separate values. This defaults to
+         * ','.
          * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3617,11 +3626,11 @@ public boolean getEnabled() { * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered.  For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are interpreted as
-     * patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered.  For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3635,11 +3644,11 @@ public com.google.protobuf.ProtocolStringList getIncludePatternsList() { * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered.  For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are interpreted as
-     * patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered.  For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3653,11 +3662,11 @@ public int getIncludePatternsCount() { * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered.  For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are interpreted as
-     * patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered.  For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3672,11 +3681,11 @@ public java.lang.String getIncludePatterns(int index) { * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered.  For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are interpreted as
-     * patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered.  For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3694,9 +3703,9 @@ public com.google.protobuf.ByteString getIncludePatternsBytes(int index) { * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -3711,9 +3720,9 @@ public com.google.protobuf.ProtocolStringList getExcludePatternsList() { * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -3728,9 +3737,9 @@ public int getExcludePatternsCount() { * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -3746,9 +3755,9 @@ public java.lang.String getExcludePatterns(int index) { * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -3876,15 +3885,15 @@ public com.google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions getJsonOptio * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * discovery periodically. Successive discovery runs must be scheduled at
-     * least 60 minutes apart.
-     * The default value is to run discovery every 60 minutes.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running discovery periodically. Successive discovery runs must be
+     * scheduled at least 60 minutes apart. The default value is to run
+     * discovery every 60 minutes. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+     * from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3898,15 +3907,15 @@ public boolean hasSchedule() { * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * discovery periodically. Successive discovery runs must be scheduled at
-     * least 60 minutes apart.
-     * The default value is to run discovery every 60 minutes.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running discovery periodically. Successive discovery runs must be
+     * scheduled at least 60 minutes apart. The default value is to run
+     * discovery every 60 minutes. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+     * from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3933,15 +3942,15 @@ public java.lang.String getSchedule() { * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * discovery periodically. Successive discovery runs must be scheduled at
-     * least 60 minutes apart.
-     * The default value is to run discovery every 60 minutes.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running discovery periodically. Successive discovery runs must be
+     * scheduled at least 60 minutes apart. The default value is to run
+     * discovery every 60 minutes. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+     * from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -4576,11 +4585,11 @@ private void ensureIncludePatternsIsMutable() { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered.  For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are interpreted as
-       * patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered.  For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4595,11 +4604,11 @@ public com.google.protobuf.ProtocolStringList getIncludePatternsList() { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered.  For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are interpreted as
-       * patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered.  For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4614,11 +4623,11 @@ public int getIncludePatternsCount() { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered.  For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are interpreted as
-       * patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered.  For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4634,11 +4643,11 @@ public java.lang.String getIncludePatterns(int index) { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered.  For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are interpreted as
-       * patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered.  For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4654,11 +4663,11 @@ public com.google.protobuf.ByteString getIncludePatternsBytes(int index) { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered.  For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are interpreted as
-       * patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered.  For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4681,11 +4690,11 @@ public Builder setIncludePatterns(int index, java.lang.String value) { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered.  For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are interpreted as
-       * patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered.  For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4707,11 +4716,11 @@ public Builder addIncludePatterns(java.lang.String value) { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered.  For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are interpreted as
-       * patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered.  For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4730,11 +4739,11 @@ public Builder addAllIncludePatterns(java.lang.Iterable values * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered.  For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are interpreted as
-       * patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered.  For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4752,11 +4761,11 @@ public Builder clearIncludePatterns() { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered.  For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are interpreted as
-       * patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered.  For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4789,9 +4798,9 @@ private void ensureExcludePatternsIsMutable() { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4807,9 +4816,9 @@ public com.google.protobuf.ProtocolStringList getExcludePatternsList() { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4825,9 +4834,9 @@ public int getExcludePatternsCount() { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4844,9 +4853,9 @@ public java.lang.String getExcludePatterns(int index) { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4863,9 +4872,9 @@ public com.google.protobuf.ByteString getExcludePatternsBytes(int index) { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4889,9 +4898,9 @@ public Builder setExcludePatterns(int index, java.lang.String value) { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4914,9 +4923,9 @@ public Builder addExcludePatterns(java.lang.String value) { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4936,9 +4945,9 @@ public Builder addAllExcludePatterns(java.lang.Iterable values * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4957,9 +4966,9 @@ public Builder clearExcludePatterns() { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -5401,15 +5410,15 @@ public Builder clearJsonOptions() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * discovery periodically. Successive discovery runs must be scheduled at
-       * least 60 minutes apart.
-       * The default value is to run discovery every 60 minutes.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running discovery periodically. Successive discovery runs must be
+       * scheduled at least 60 minutes apart. The default value is to run
+       * discovery every 60 minutes. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+       * from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -5424,15 +5433,15 @@ public boolean hasSchedule() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * discovery periodically. Successive discovery runs must be scheduled at
-       * least 60 minutes apart.
-       * The default value is to run discovery every 60 minutes.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running discovery periodically. Successive discovery runs must be
+       * scheduled at least 60 minutes apart. The default value is to run
+       * discovery every 60 minutes. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+       * from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -5460,15 +5469,15 @@ public java.lang.String getSchedule() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * discovery periodically. Successive discovery runs must be scheduled at
-       * least 60 minutes apart.
-       * The default value is to run discovery every 60 minutes.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running discovery periodically. Successive discovery runs must be
+       * scheduled at least 60 minutes apart. The default value is to run
+       * discovery every 60 minutes. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+       * from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -5496,15 +5505,15 @@ public com.google.protobuf.ByteString getScheduleBytes() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * discovery periodically. Successive discovery runs must be scheduled at
-       * least 60 minutes apart.
-       * The default value is to run discovery every 60 minutes.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running discovery periodically. Successive discovery runs must be
+       * scheduled at least 60 minutes apart. The default value is to run
+       * discovery every 60 minutes. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+       * from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -5525,15 +5534,15 @@ public Builder setSchedule(java.lang.String value) { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * discovery periodically. Successive discovery runs must be scheduled at
-       * least 60 minutes apart.
-       * The default value is to run discovery every 60 minutes.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running discovery periodically. Successive discovery runs must be
+       * scheduled at least 60 minutes apart. The default value is to run
+       * discovery every 60 minutes. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+       * from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -5552,15 +5561,15 @@ public Builder clearSchedule() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * discovery periodically. Successive discovery runs must be scheduled at
-       * least 60 minutes apart.
-       * The default value is to run discovery every 60 minutes.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running discovery periodically. Successive discovery runs must be
+       * scheduled at least 60 minutes apart. The default value is to run
+       * discovery every 60 minutes. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+       * from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -5652,8 +5661,8 @@ public interface ResourceSpecOrBuilder * * *
-     * Immutable. Relative name of the cloud resource that contains the data that is
-     * being managed within a lake. For example:
+     * Immutable. Relative name of the cloud resource that contains the data
+     * that is being managed within a lake. For example:
      *   `projects/{project_number}/buckets/{bucket_id}`
      *   `projects/{project_number}/datasets/{dataset_id}`
      * 
@@ -5667,8 +5676,8 @@ public interface ResourceSpecOrBuilder * * *
-     * Immutable. Relative name of the cloud resource that contains the data that is
-     * being managed within a lake. For example:
+     * Immutable. Relative name of the cloud resource that contains the data
+     * that is being managed within a lake. For example:
      *   `projects/{project_number}/buckets/{bucket_id}`
      *   `projects/{project_number}/datasets/{dataset_id}`
      * 
@@ -5923,8 +5932,8 @@ private Type(int value) { * * *
-     * Immutable. Relative name of the cloud resource that contains the data that is
-     * being managed within a lake. For example:
+     * Immutable. Relative name of the cloud resource that contains the data
+     * that is being managed within a lake. For example:
      *   `projects/{project_number}/buckets/{bucket_id}`
      *   `projects/{project_number}/datasets/{dataset_id}`
      * 
@@ -5949,8 +5958,8 @@ public java.lang.String getName() { * * *
-     * Immutable. Relative name of the cloud resource that contains the data that is
-     * being managed within a lake. For example:
+     * Immutable. Relative name of the cloud resource that contains the data
+     * that is being managed within a lake. For example:
      *   `projects/{project_number}/buckets/{bucket_id}`
      *   `projects/{project_number}/datasets/{dataset_id}`
      * 
@@ -6376,8 +6385,8 @@ public Builder mergeFrom( * * *
-       * Immutable. Relative name of the cloud resource that contains the data that is
-       * being managed within a lake. For example:
+       * Immutable. Relative name of the cloud resource that contains the data
+       * that is being managed within a lake. For example:
        *   `projects/{project_number}/buckets/{bucket_id}`
        *   `projects/{project_number}/datasets/{dataset_id}`
        * 
@@ -6401,8 +6410,8 @@ public java.lang.String getName() { * * *
-       * Immutable. Relative name of the cloud resource that contains the data that is
-       * being managed within a lake. For example:
+       * Immutable. Relative name of the cloud resource that contains the data
+       * that is being managed within a lake. For example:
        *   `projects/{project_number}/buckets/{bucket_id}`
        *   `projects/{project_number}/datasets/{dataset_id}`
        * 
@@ -6426,8 +6435,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-       * Immutable. Relative name of the cloud resource that contains the data that is
-       * being managed within a lake. For example:
+       * Immutable. Relative name of the cloud resource that contains the data
+       * that is being managed within a lake. For example:
        *   `projects/{project_number}/buckets/{bucket_id}`
        *   `projects/{project_number}/datasets/{dataset_id}`
        * 
@@ -6450,8 +6459,8 @@ public Builder setName(java.lang.String value) { * * *
-       * Immutable. Relative name of the cloud resource that contains the data that is
-       * being managed within a lake. For example:
+       * Immutable. Relative name of the cloud resource that contains the data
+       * that is being managed within a lake. For example:
        *   `projects/{project_number}/buckets/{bucket_id}`
        *   `projects/{project_number}/datasets/{dataset_id}`
        * 
@@ -6470,8 +6479,8 @@ public Builder clearName() { * * *
-       * Immutable. Relative name of the cloud resource that contains the data that is
-       * being managed within a lake. For example:
+       * Immutable. Relative name of the cloud resource that contains the data
+       * that is being managed within a lake. For example:
        *   `projects/{project_number}/buckets/{bucket_id}`
        *   `projects/{project_number}/datasets/{dataset_id}`
        * 
@@ -11117,8 +11126,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Output only. System generated globally unique ID for the asset. This ID will be
-   * different if the asset is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the asset. This ID
+   * will be different if the asset is deleted and re-created with the same
+   * name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -11141,8 +11151,9 @@ public java.lang.String getUid() { * * *
-   * Output only. System generated globally unique ID for the asset. This ID will be
-   * different if the asset is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the asset. This ID
+   * will be different if the asset is deleted and re-created with the same
+   * name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -11558,7 +11569,8 @@ public com.google.cloud.dataplex.v1.Asset.ResourceStatusOrBuilder getResourceSta * * *
-   * Output only. Status of the security policy applied to resource referenced by this asset.
+   * Output only. Status of the security policy applied to resource referenced
+   * by this asset.
    * 
* * @@ -11575,7 +11587,8 @@ public boolean hasSecurityStatus() { * * *
-   * Output only. Status of the security policy applied to resource referenced by this asset.
+   * Output only. Status of the security policy applied to resource referenced
+   * by this asset.
    * 
* * @@ -11594,7 +11607,8 @@ public com.google.cloud.dataplex.v1.Asset.SecurityStatus getSecurityStatus() { * * *
-   * Output only. Status of the security policy applied to resource referenced by this asset.
+   * Output only. Status of the security policy applied to resource referenced
+   * by this asset.
    * 
* * @@ -11612,10 +11626,9 @@ public com.google.cloud.dataplex.v1.Asset.SecurityStatusOrBuilder getSecuritySta * * *
-   * Optional. Specification of the discovery feature applied to data referenced by this
-   * asset.
-   * When this spec is left unset, the asset will use the spec set on the parent
-   * zone.
+   * Optional. Specification of the discovery feature applied to data referenced
+   * by this asset. When this spec is left unset, the asset will use the spec
+   * set on the parent zone.
    * 
* * @@ -11632,10 +11645,9 @@ public boolean hasDiscoverySpec() { * * *
-   * Optional. Specification of the discovery feature applied to data referenced by this
-   * asset.
-   * When this spec is left unset, the asset will use the spec set on the parent
-   * zone.
+   * Optional. Specification of the discovery feature applied to data referenced
+   * by this asset. When this spec is left unset, the asset will use the spec
+   * set on the parent zone.
    * 
* * @@ -11654,10 +11666,9 @@ public com.google.cloud.dataplex.v1.Asset.DiscoverySpec getDiscoverySpec() { * * *
-   * Optional. Specification of the discovery feature applied to data referenced by this
-   * asset.
-   * When this spec is left unset, the asset will use the spec set on the parent
-   * zone.
+   * Optional. Specification of the discovery feature applied to data referenced
+   * by this asset. When this spec is left unset, the asset will use the spec
+   * set on the parent zone.
    * 
* * @@ -11675,7 +11686,8 @@ public com.google.cloud.dataplex.v1.Asset.DiscoverySpecOrBuilder getDiscoverySpe * * *
-   * Output only. Status of the discovery feature applied to data referenced by this asset.
+   * Output only. Status of the discovery feature applied to data referenced by
+   * this asset.
    * 
* * @@ -11692,7 +11704,8 @@ public boolean hasDiscoveryStatus() { * * *
-   * Output only. Status of the discovery feature applied to data referenced by this asset.
+   * Output only. Status of the discovery feature applied to data referenced by
+   * this asset.
    * 
* * @@ -11711,7 +11724,8 @@ public com.google.cloud.dataplex.v1.Asset.DiscoveryStatus getDiscoveryStatus() { * * *
-   * Output only. Status of the discovery feature applied to data referenced by this asset.
+   * Output only. Status of the discovery feature applied to data referenced by
+   * this asset.
    * 
* * @@ -12662,8 +12676,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. System generated globally unique ID for the asset. This ID will be
-     * different if the asset is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the asset. This ID
+     * will be different if the asset is deleted and re-created with the same
+     * name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -12685,8 +12700,9 @@ public java.lang.String getUid() { * * *
-     * Output only. System generated globally unique ID for the asset. This ID will be
-     * different if the asset is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the asset. This ID
+     * will be different if the asset is deleted and re-created with the same
+     * name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -12708,8 +12724,9 @@ public com.google.protobuf.ByteString getUidBytes() { * * *
-     * Output only. System generated globally unique ID for the asset. This ID will be
-     * different if the asset is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the asset. This ID
+     * will be different if the asset is deleted and re-created with the same
+     * name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -12730,8 +12747,9 @@ public Builder setUid(java.lang.String value) { * * *
-     * Output only. System generated globally unique ID for the asset. This ID will be
-     * different if the asset is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the asset. This ID
+     * will be different if the asset is deleted and re-created with the same
+     * name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -12748,8 +12766,9 @@ public Builder clearUid() { * * *
-     * Output only. System generated globally unique ID for the asset. This ID will be
-     * different if the asset is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the asset. This ID
+     * will be different if the asset is deleted and re-created with the same
+     * name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -13948,7 +13967,8 @@ public com.google.cloud.dataplex.v1.Asset.ResourceStatusOrBuilder getResourceSta * * *
-     * Output only. Status of the security policy applied to resource referenced by this asset.
+     * Output only. Status of the security policy applied to resource referenced
+     * by this asset.
      * 
* * @@ -13964,7 +13984,8 @@ public boolean hasSecurityStatus() { * * *
-     * Output only. Status of the security policy applied to resource referenced by this asset.
+     * Output only. Status of the security policy applied to resource referenced
+     * by this asset.
      * 
* * @@ -13986,7 +14007,8 @@ public com.google.cloud.dataplex.v1.Asset.SecurityStatus getSecurityStatus() { * * *
-     * Output only. Status of the security policy applied to resource referenced by this asset.
+     * Output only. Status of the security policy applied to resource referenced
+     * by this asset.
      * 
* * @@ -14010,7 +14032,8 @@ public Builder setSecurityStatus(com.google.cloud.dataplex.v1.Asset.SecurityStat * * *
-     * Output only. Status of the security policy applied to resource referenced by this asset.
+     * Output only. Status of the security policy applied to resource referenced
+     * by this asset.
      * 
* * @@ -14032,7 +14055,8 @@ public Builder setSecurityStatus( * * *
-     * Output only. Status of the security policy applied to resource referenced by this asset.
+     * Output only. Status of the security policy applied to resource referenced
+     * by this asset.
      * 
* * @@ -14060,7 +14084,8 @@ public Builder mergeSecurityStatus(com.google.cloud.dataplex.v1.Asset.SecuritySt * * *
-     * Output only. Status of the security policy applied to resource referenced by this asset.
+     * Output only. Status of the security policy applied to resource referenced
+     * by this asset.
      * 
* * @@ -14082,7 +14107,8 @@ public Builder clearSecurityStatus() { * * *
-     * Output only. Status of the security policy applied to resource referenced by this asset.
+     * Output only. Status of the security policy applied to resource referenced
+     * by this asset.
      * 
* * @@ -14098,7 +14124,8 @@ public com.google.cloud.dataplex.v1.Asset.SecurityStatus.Builder getSecurityStat * * *
-     * Output only. Status of the security policy applied to resource referenced by this asset.
+     * Output only. Status of the security policy applied to resource referenced
+     * by this asset.
      * 
* * @@ -14118,7 +14145,8 @@ public com.google.cloud.dataplex.v1.Asset.SecurityStatusOrBuilder getSecuritySta * * *
-     * Output only. Status of the security policy applied to resource referenced by this asset.
+     * Output only. Status of the security policy applied to resource referenced
+     * by this asset.
      * 
* * @@ -14152,10 +14180,9 @@ public com.google.cloud.dataplex.v1.Asset.SecurityStatusOrBuilder getSecuritySta * * *
-     * Optional. Specification of the discovery feature applied to data referenced by this
-     * asset.
-     * When this spec is left unset, the asset will use the spec set on the parent
-     * zone.
+     * Optional. Specification of the discovery feature applied to data referenced
+     * by this asset. When this spec is left unset, the asset will use the spec
+     * set on the parent zone.
      * 
* * @@ -14171,10 +14198,9 @@ public boolean hasDiscoverySpec() { * * *
-     * Optional. Specification of the discovery feature applied to data referenced by this
-     * asset.
-     * When this spec is left unset, the asset will use the spec set on the parent
-     * zone.
+     * Optional. Specification of the discovery feature applied to data referenced
+     * by this asset. When this spec is left unset, the asset will use the spec
+     * set on the parent zone.
      * 
* * @@ -14196,10 +14222,9 @@ public com.google.cloud.dataplex.v1.Asset.DiscoverySpec getDiscoverySpec() { * * *
-     * Optional. Specification of the discovery feature applied to data referenced by this
-     * asset.
-     * When this spec is left unset, the asset will use the spec set on the parent
-     * zone.
+     * Optional. Specification of the discovery feature applied to data referenced
+     * by this asset. When this spec is left unset, the asset will use the spec
+     * set on the parent zone.
      * 
* * @@ -14223,10 +14248,9 @@ public Builder setDiscoverySpec(com.google.cloud.dataplex.v1.Asset.DiscoverySpec * * *
-     * Optional. Specification of the discovery feature applied to data referenced by this
-     * asset.
-     * When this spec is left unset, the asset will use the spec set on the parent
-     * zone.
+     * Optional. Specification of the discovery feature applied to data referenced
+     * by this asset. When this spec is left unset, the asset will use the spec
+     * set on the parent zone.
      * 
* * @@ -14248,10 +14272,9 @@ public Builder setDiscoverySpec( * * *
-     * Optional. Specification of the discovery feature applied to data referenced by this
-     * asset.
-     * When this spec is left unset, the asset will use the spec set on the parent
-     * zone.
+     * Optional. Specification of the discovery feature applied to data referenced
+     * by this asset. When this spec is left unset, the asset will use the spec
+     * set on the parent zone.
      * 
* * @@ -14279,10 +14302,9 @@ public Builder mergeDiscoverySpec(com.google.cloud.dataplex.v1.Asset.DiscoverySp * * *
-     * Optional. Specification of the discovery feature applied to data referenced by this
-     * asset.
-     * When this spec is left unset, the asset will use the spec set on the parent
-     * zone.
+     * Optional. Specification of the discovery feature applied to data referenced
+     * by this asset. When this spec is left unset, the asset will use the spec
+     * set on the parent zone.
      * 
* * @@ -14304,10 +14326,9 @@ public Builder clearDiscoverySpec() { * * *
-     * Optional. Specification of the discovery feature applied to data referenced by this
-     * asset.
-     * When this spec is left unset, the asset will use the spec set on the parent
-     * zone.
+     * Optional. Specification of the discovery feature applied to data referenced
+     * by this asset. When this spec is left unset, the asset will use the spec
+     * set on the parent zone.
      * 
* * @@ -14323,10 +14344,9 @@ public com.google.cloud.dataplex.v1.Asset.DiscoverySpec.Builder getDiscoverySpec * * *
-     * Optional. Specification of the discovery feature applied to data referenced by this
-     * asset.
-     * When this spec is left unset, the asset will use the spec set on the parent
-     * zone.
+     * Optional. Specification of the discovery feature applied to data referenced
+     * by this asset. When this spec is left unset, the asset will use the spec
+     * set on the parent zone.
      * 
* * @@ -14346,10 +14366,9 @@ public com.google.cloud.dataplex.v1.Asset.DiscoverySpecOrBuilder getDiscoverySpe * * *
-     * Optional. Specification of the discovery feature applied to data referenced by this
-     * asset.
-     * When this spec is left unset, the asset will use the spec set on the parent
-     * zone.
+     * Optional. Specification of the discovery feature applied to data referenced
+     * by this asset. When this spec is left unset, the asset will use the spec
+     * set on the parent zone.
      * 
* * @@ -14383,7 +14402,8 @@ public com.google.cloud.dataplex.v1.Asset.DiscoverySpecOrBuilder getDiscoverySpe * * *
-     * Output only. Status of the discovery feature applied to data referenced by this asset.
+     * Output only. Status of the discovery feature applied to data referenced by
+     * this asset.
      * 
* * @@ -14399,7 +14419,8 @@ public boolean hasDiscoveryStatus() { * * *
-     * Output only. Status of the discovery feature applied to data referenced by this asset.
+     * Output only. Status of the discovery feature applied to data referenced by
+     * this asset.
      * 
* * @@ -14421,7 +14442,8 @@ public com.google.cloud.dataplex.v1.Asset.DiscoveryStatus getDiscoveryStatus() { * * *
-     * Output only. Status of the discovery feature applied to data referenced by this asset.
+     * Output only. Status of the discovery feature applied to data referenced by
+     * this asset.
      * 
* * @@ -14445,7 +14467,8 @@ public Builder setDiscoveryStatus(com.google.cloud.dataplex.v1.Asset.DiscoverySt * * *
-     * Output only. Status of the discovery feature applied to data referenced by this asset.
+     * Output only. Status of the discovery feature applied to data referenced by
+     * this asset.
      * 
* * @@ -14467,7 +14490,8 @@ public Builder setDiscoveryStatus( * * *
-     * Output only. Status of the discovery feature applied to data referenced by this asset.
+     * Output only. Status of the discovery feature applied to data referenced by
+     * this asset.
      * 
* * @@ -14495,7 +14519,8 @@ public Builder mergeDiscoveryStatus(com.google.cloud.dataplex.v1.Asset.Discovery * * *
-     * Output only. Status of the discovery feature applied to data referenced by this asset.
+     * Output only. Status of the discovery feature applied to data referenced by
+     * this asset.
      * 
* * @@ -14517,7 +14542,8 @@ public Builder clearDiscoveryStatus() { * * *
-     * Output only. Status of the discovery feature applied to data referenced by this asset.
+     * Output only. Status of the discovery feature applied to data referenced by
+     * this asset.
      * 
* * @@ -14533,7 +14559,8 @@ public com.google.cloud.dataplex.v1.Asset.DiscoveryStatus.Builder getDiscoverySt * * *
-     * Output only. Status of the discovery feature applied to data referenced by this asset.
+     * Output only. Status of the discovery feature applied to data referenced by
+     * this asset.
      * 
* * @@ -14554,7 +14581,8 @@ public com.google.cloud.dataplex.v1.Asset.DiscoveryStatus.Builder getDiscoverySt * * *
-     * Output only. Status of the discovery feature applied to data referenced by this asset.
+     * Output only. Status of the discovery feature applied to data referenced by
+     * this asset.
      * 
* * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AssetOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AssetOrBuilder.java index 3870f0e5706b..f466698ad4d1 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AssetOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/AssetOrBuilder.java @@ -83,8 +83,9 @@ public interface AssetOrBuilder * * *
-   * Output only. System generated globally unique ID for the asset. This ID will be
-   * different if the asset is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the asset. This ID
+   * will be different if the asset is deleted and re-created with the same
+   * name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -96,8 +97,9 @@ public interface AssetOrBuilder * * *
-   * Output only. System generated globally unique ID for the asset. This ID will be
-   * different if the asset is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the asset. This ID
+   * will be different if the asset is deleted and re-created with the same
+   * name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -379,7 +381,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Status of the security policy applied to resource referenced by this asset.
+   * Output only. Status of the security policy applied to resource referenced
+   * by this asset.
    * 
* * @@ -393,7 +396,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Status of the security policy applied to resource referenced by this asset.
+   * Output only. Status of the security policy applied to resource referenced
+   * by this asset.
    * 
* * @@ -407,7 +411,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Status of the security policy applied to resource referenced by this asset.
+   * Output only. Status of the security policy applied to resource referenced
+   * by this asset.
    * 
* * @@ -420,10 +425,9 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Specification of the discovery feature applied to data referenced by this
-   * asset.
-   * When this spec is left unset, the asset will use the spec set on the parent
-   * zone.
+   * Optional. Specification of the discovery feature applied to data referenced
+   * by this asset. When this spec is left unset, the asset will use the spec
+   * set on the parent zone.
    * 
* * @@ -437,10 +441,9 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Specification of the discovery feature applied to data referenced by this
-   * asset.
-   * When this spec is left unset, the asset will use the spec set on the parent
-   * zone.
+   * Optional. Specification of the discovery feature applied to data referenced
+   * by this asset. When this spec is left unset, the asset will use the spec
+   * set on the parent zone.
    * 
* * @@ -454,10 +457,9 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Specification of the discovery feature applied to data referenced by this
-   * asset.
-   * When this spec is left unset, the asset will use the spec set on the parent
-   * zone.
+   * Optional. Specification of the discovery feature applied to data referenced
+   * by this asset. When this spec is left unset, the asset will use the spec
+   * set on the parent zone.
    * 
* * @@ -470,7 +472,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Status of the discovery feature applied to data referenced by this asset.
+   * Output only. Status of the discovery feature applied to data referenced by
+   * this asset.
    * 
* * @@ -484,7 +487,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Status of the discovery feature applied to data referenced by this asset.
+   * Output only. Status of the discovery feature applied to data referenced by
+   * this asset.
    * 
* * @@ -498,7 +502,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Status of the discovery feature applied to data referenced by this asset.
+   * Output only. Status of the discovery feature applied to data referenced by
+   * this asset.
    * 
* * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Content.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Content.java index d985662c446a..5271d2536fab 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Content.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Content.java @@ -1761,8 +1761,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Output only. System generated globally unique ID for the content. This ID will be
-   * different if the content is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the content. This ID
+   * will be different if the content is deleted and re-created with the same
+   * name.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1785,8 +1786,9 @@ public java.lang.String getUid() { * * *
-   * Output only. System generated globally unique ID for the content. This ID will be
-   * different if the content is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the content. This ID
+   * will be different if the content is deleted and re-created with the same
+   * name.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1812,9 +1814,9 @@ public com.google.protobuf.ByteString getUidBytes() { * * *
-   * Required. The path for the Content file, represented as directory structure.
-   * Unique within a lake.
-   * Limited to alphanumerics, hyphens, underscores, dots and slashes.
+   * Required. The path for the Content file, represented as directory
+   * structure. Unique within a lake. Limited to alphanumerics, hyphens,
+   * underscores, dots and slashes.
    * 
* * string path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1837,9 +1839,9 @@ public java.lang.String getPath() { * * *
-   * Required. The path for the Content file, represented as directory structure.
-   * Unique within a lake.
-   * Limited to alphanumerics, hyphens, underscores, dots and slashes.
+   * Required. The path for the Content file, represented as directory
+   * structure. Unique within a lake. Limited to alphanumerics, hyphens,
+   * underscores, dots and slashes.
    * 
* * string path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -3083,8 +3085,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. System generated globally unique ID for the content. This ID will be
-     * different if the content is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the content. This ID
+     * will be different if the content is deleted and re-created with the same
+     * name.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3106,8 +3109,9 @@ public java.lang.String getUid() { * * *
-     * Output only. System generated globally unique ID for the content. This ID will be
-     * different if the content is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the content. This ID
+     * will be different if the content is deleted and re-created with the same
+     * name.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3129,8 +3133,9 @@ public com.google.protobuf.ByteString getUidBytes() { * * *
-     * Output only. System generated globally unique ID for the content. This ID will be
-     * different if the content is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the content. This ID
+     * will be different if the content is deleted and re-created with the same
+     * name.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3151,8 +3156,9 @@ public Builder setUid(java.lang.String value) { * * *
-     * Output only. System generated globally unique ID for the content. This ID will be
-     * different if the content is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the content. This ID
+     * will be different if the content is deleted and re-created with the same
+     * name.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3169,8 +3175,9 @@ public Builder clearUid() { * * *
-     * Output only. System generated globally unique ID for the content. This ID will be
-     * different if the content is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the content. This ID
+     * will be different if the content is deleted and re-created with the same
+     * name.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3194,9 +3201,9 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The path for the Content file, represented as directory structure.
-     * Unique within a lake.
-     * Limited to alphanumerics, hyphens, underscores, dots and slashes.
+     * Required. The path for the Content file, represented as directory
+     * structure. Unique within a lake. Limited to alphanumerics, hyphens,
+     * underscores, dots and slashes.
      * 
* * string path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -3218,9 +3225,9 @@ public java.lang.String getPath() { * * *
-     * Required. The path for the Content file, represented as directory structure.
-     * Unique within a lake.
-     * Limited to alphanumerics, hyphens, underscores, dots and slashes.
+     * Required. The path for the Content file, represented as directory
+     * structure. Unique within a lake. Limited to alphanumerics, hyphens,
+     * underscores, dots and slashes.
      * 
* * string path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -3242,9 +3249,9 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
-     * Required. The path for the Content file, represented as directory structure.
-     * Unique within a lake.
-     * Limited to alphanumerics, hyphens, underscores, dots and slashes.
+     * Required. The path for the Content file, represented as directory
+     * structure. Unique within a lake. Limited to alphanumerics, hyphens,
+     * underscores, dots and slashes.
      * 
* * string path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -3265,9 +3272,9 @@ public Builder setPath(java.lang.String value) { * * *
-     * Required. The path for the Content file, represented as directory structure.
-     * Unique within a lake.
-     * Limited to alphanumerics, hyphens, underscores, dots and slashes.
+     * Required. The path for the Content file, represented as directory
+     * structure. Unique within a lake. Limited to alphanumerics, hyphens,
+     * underscores, dots and slashes.
      * 
* * string path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -3284,9 +3291,9 @@ public Builder clearPath() { * * *
-     * Required. The path for the Content file, represented as directory structure.
-     * Unique within a lake.
-     * Limited to alphanumerics, hyphens, underscores, dots and slashes.
+     * Required. The path for the Content file, represented as directory
+     * structure. Unique within a lake. Limited to alphanumerics, hyphens,
+     * underscores, dots and slashes.
      * 
* * string path = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ContentOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ContentOrBuilder.java index 59c8ed0d8b7d..6f26cfbc49c4 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ContentOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ContentOrBuilder.java @@ -58,8 +58,9 @@ public interface ContentOrBuilder * * *
-   * Output only. System generated globally unique ID for the content. This ID will be
-   * different if the content is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the content. This ID
+   * will be different if the content is deleted and re-created with the same
+   * name.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -71,8 +72,9 @@ public interface ContentOrBuilder * * *
-   * Output only. System generated globally unique ID for the content. This ID will be
-   * different if the content is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the content. This ID
+   * will be different if the content is deleted and re-created with the same
+   * name.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -85,9 +87,9 @@ public interface ContentOrBuilder * * *
-   * Required. The path for the Content file, represented as directory structure.
-   * Unique within a lake.
-   * Limited to alphanumerics, hyphens, underscores, dots and slashes.
+   * Required. The path for the Content file, represented as directory
+   * structure. Unique within a lake. Limited to alphanumerics, hyphens,
+   * underscores, dots and slashes.
    * 
* * string path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -99,9 +101,9 @@ public interface ContentOrBuilder * * *
-   * Required. The path for the Content file, represented as directory structure.
-   * Unique within a lake.
-   * Limited to alphanumerics, hyphens, underscores, dots and slashes.
+   * Required. The path for the Content file, represented as directory
+   * structure. Unique within a lake. Limited to alphanumerics, hyphens,
+   * underscores, dots and slashes.
    * 
* * string path = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateDataScanRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateDataScanRequest.java new file mode 100644 index 000000000000..8f942239e1f8 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateDataScanRequest.java @@ -0,0 +1,1154 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * Create dataScan request.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.CreateDataScanRequest} + */ +public final class CreateDataScanRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.CreateDataScanRequest) + CreateDataScanRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDataScanRequest.newBuilder() to construct. + private CreateDataScanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDataScanRequest() { + parent_ = ""; + dataScanId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDataScanRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_CreateDataScanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_CreateDataScanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.CreateDataScanRequest.class, + com.google.cloud.dataplex.v1.CreateDataScanRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the parent location:
+   * projects/{project}/locations/{location_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * 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 parent location:
+   * projects/{project}/locations/{location_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * 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 DATA_SCAN_FIELD_NUMBER = 2; + private com.google.cloud.dataplex.v1.DataScan dataScan_; + /** + * + * + *
+   * Required. DataScan resource.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataScan field is set. + */ + @java.lang.Override + public boolean hasDataScan() { + return dataScan_ != null; + } + /** + * + * + *
+   * Required. DataScan resource.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataScan. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan getDataScan() { + return dataScan_ == null + ? com.google.cloud.dataplex.v1.DataScan.getDefaultInstance() + : dataScan_; + } + /** + * + * + *
+   * Required. DataScan resource.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanOrBuilder getDataScanOrBuilder() { + return getDataScan(); + } + + public static final int DATA_SCAN_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object dataScanId_; + /** + * + * + *
+   * Required. DataScan identifier.
+   * * Must contain only lowercase letters, numbers and hyphens.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * * Must be between 1-63 characters.
+   * * Must be unique within the customer project / location.
+   * 
+ * + * string data_scan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataScanId. + */ + @java.lang.Override + public java.lang.String getDataScanId() { + java.lang.Object ref = dataScanId_; + 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(); + dataScanId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. DataScan identifier.
+   * * Must contain only lowercase letters, numbers and hyphens.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * * Must be between 1-63 characters.
+   * * Must be unique within the customer project / location.
+   * 
+ * + * string data_scan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataScanId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataScanIdBytes() { + java.lang.Object ref = dataScanId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataScanId_ = 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 (dataScan_ != null) { + output.writeMessage(2, getDataScan()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataScanId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dataScanId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (dataScan_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataScan()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataScanId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dataScanId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.CreateDataScanRequest)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.CreateDataScanRequest other = + (com.google.cloud.dataplex.v1.CreateDataScanRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDataScan() != other.hasDataScan()) return false; + if (hasDataScan()) { + if (!getDataScan().equals(other.getDataScan())) return false; + } + if (!getDataScanId().equals(other.getDataScanId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDataScan()) { + hash = (37 * hash) + DATA_SCAN_FIELD_NUMBER; + hash = (53 * hash) + getDataScan().hashCode(); + } + hash = (37 * hash) + DATA_SCAN_ID_FIELD_NUMBER; + hash = (53 * hash) + getDataScanId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.CreateDataScanRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.CreateDataScanRequest 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.dataplex.v1.CreateDataScanRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.CreateDataScanRequest 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.dataplex.v1.CreateDataScanRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.CreateDataScanRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.CreateDataScanRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.CreateDataScanRequest 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.dataplex.v1.CreateDataScanRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.CreateDataScanRequest 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.dataplex.v1.CreateDataScanRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.CreateDataScanRequest 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.dataplex.v1.CreateDataScanRequest 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; + } + /** + * + * + *
+   * Create dataScan request.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.CreateDataScanRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.CreateDataScanRequest) + com.google.cloud.dataplex.v1.CreateDataScanRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_CreateDataScanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_CreateDataScanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.CreateDataScanRequest.class, + com.google.cloud.dataplex.v1.CreateDataScanRequest.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.CreateDataScanRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (dataScanBuilder_ == null) { + dataScan_ = null; + } else { + dataScan_ = null; + dataScanBuilder_ = null; + } + dataScanId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_CreateDataScanRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.CreateDataScanRequest getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.CreateDataScanRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.CreateDataScanRequest build() { + com.google.cloud.dataplex.v1.CreateDataScanRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.CreateDataScanRequest buildPartial() { + com.google.cloud.dataplex.v1.CreateDataScanRequest result = + new com.google.cloud.dataplex.v1.CreateDataScanRequest(this); + result.parent_ = parent_; + if (dataScanBuilder_ == null) { + result.dataScan_ = dataScan_; + } else { + result.dataScan_ = dataScanBuilder_.build(); + } + result.dataScanId_ = dataScanId_; + 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.dataplex.v1.CreateDataScanRequest) { + return mergeFrom((com.google.cloud.dataplex.v1.CreateDataScanRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.CreateDataScanRequest other) { + if (other == com.google.cloud.dataplex.v1.CreateDataScanRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasDataScan()) { + mergeDataScan(other.getDataScan()); + } + if (!other.getDataScanId().isEmpty()) { + dataScanId_ = other.dataScanId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getDataScanFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + dataScanId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent location:
+     * projects/{project}/locations/{location_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * 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 parent location:
+     * projects/{project}/locations/{location_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * 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 parent location:
+     * projects/{project}/locations/{location_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * 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 parent location:
+     * projects/{project}/locations/{location_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * 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 parent location:
+     * projects/{project}/locations/{location_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.cloud.dataplex.v1.DataScan dataScan_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan, + com.google.cloud.dataplex.v1.DataScan.Builder, + com.google.cloud.dataplex.v1.DataScanOrBuilder> + dataScanBuilder_; + /** + * + * + *
+     * Required. DataScan resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataScan field is set. + */ + public boolean hasDataScan() { + return dataScanBuilder_ != null || dataScan_ != null; + } + /** + * + * + *
+     * Required. DataScan resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataScan. + */ + public com.google.cloud.dataplex.v1.DataScan getDataScan() { + if (dataScanBuilder_ == null) { + return dataScan_ == null + ? com.google.cloud.dataplex.v1.DataScan.getDefaultInstance() + : dataScan_; + } else { + return dataScanBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. DataScan resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataScan(com.google.cloud.dataplex.v1.DataScan value) { + if (dataScanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataScan_ = value; + onChanged(); + } else { + dataScanBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. DataScan resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataScan(com.google.cloud.dataplex.v1.DataScan.Builder builderForValue) { + if (dataScanBuilder_ == null) { + dataScan_ = builderForValue.build(); + onChanged(); + } else { + dataScanBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. DataScan resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataScan(com.google.cloud.dataplex.v1.DataScan value) { + if (dataScanBuilder_ == null) { + if (dataScan_ != null) { + dataScan_ = + com.google.cloud.dataplex.v1.DataScan.newBuilder(dataScan_) + .mergeFrom(value) + .buildPartial(); + } else { + dataScan_ = value; + } + onChanged(); + } else { + dataScanBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. DataScan resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataScan() { + if (dataScanBuilder_ == null) { + dataScan_ = null; + onChanged(); + } else { + dataScan_ = null; + dataScanBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. DataScan resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataplex.v1.DataScan.Builder getDataScanBuilder() { + + onChanged(); + return getDataScanFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. DataScan resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataplex.v1.DataScanOrBuilder getDataScanOrBuilder() { + if (dataScanBuilder_ != null) { + return dataScanBuilder_.getMessageOrBuilder(); + } else { + return dataScan_ == null + ? com.google.cloud.dataplex.v1.DataScan.getDefaultInstance() + : dataScan_; + } + } + /** + * + * + *
+     * Required. DataScan resource.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan, + com.google.cloud.dataplex.v1.DataScan.Builder, + com.google.cloud.dataplex.v1.DataScanOrBuilder> + getDataScanFieldBuilder() { + if (dataScanBuilder_ == null) { + dataScanBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan, + com.google.cloud.dataplex.v1.DataScan.Builder, + com.google.cloud.dataplex.v1.DataScanOrBuilder>( + getDataScan(), getParentForChildren(), isClean()); + dataScan_ = null; + } + return dataScanBuilder_; + } + + private java.lang.Object dataScanId_ = ""; + /** + * + * + *
+     * Required. DataScan identifier.
+     * * Must contain only lowercase letters, numbers and hyphens.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * * Must be between 1-63 characters.
+     * * Must be unique within the customer project / location.
+     * 
+ * + * string data_scan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataScanId. + */ + public java.lang.String getDataScanId() { + java.lang.Object ref = dataScanId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataScanId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. DataScan identifier.
+     * * Must contain only lowercase letters, numbers and hyphens.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * * Must be between 1-63 characters.
+     * * Must be unique within the customer project / location.
+     * 
+ * + * string data_scan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataScanId. + */ + public com.google.protobuf.ByteString getDataScanIdBytes() { + java.lang.Object ref = dataScanId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataScanId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. DataScan identifier.
+     * * Must contain only lowercase letters, numbers and hyphens.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * * Must be between 1-63 characters.
+     * * Must be unique within the customer project / location.
+     * 
+ * + * string data_scan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dataScanId to set. + * @return This builder for chaining. + */ + public Builder setDataScanId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataScanId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. DataScan identifier.
+     * * Must contain only lowercase letters, numbers and hyphens.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * * Must be between 1-63 characters.
+     * * Must be unique within the customer project / location.
+     * 
+ * + * string data_scan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDataScanId() { + + dataScanId_ = getDefaultInstance().getDataScanId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. DataScan identifier.
+     * * Must contain only lowercase letters, numbers and hyphens.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * * Must be between 1-63 characters.
+     * * Must be unique within the customer project / location.
+     * 
+ * + * string data_scan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dataScanId to set. + * @return This builder for chaining. + */ + public Builder setDataScanIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataScanId_ = 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.dataplex.v1.CreateDataScanRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.CreateDataScanRequest) + private static final com.google.cloud.dataplex.v1.CreateDataScanRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.CreateDataScanRequest(); + } + + public static com.google.cloud.dataplex.v1.CreateDataScanRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDataScanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.CreateDataScanRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateDataScanRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateDataScanRequestOrBuilder.java new file mode 100644 index 000000000000..6c17fd16be97 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateDataScanRequestOrBuilder.java @@ -0,0 +1,136 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface CreateDataScanRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.CreateDataScanRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the parent location:
+   * projects/{project}/locations/{location_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * 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 parent location:
+   * projects/{project}/locations/{location_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. DataScan resource.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataScan field is set. + */ + boolean hasDataScan(); + /** + * + * + *
+   * Required. DataScan resource.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataScan. + */ + com.google.cloud.dataplex.v1.DataScan getDataScan(); + /** + * + * + *
+   * Required. DataScan resource.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataplex.v1.DataScanOrBuilder getDataScanOrBuilder(); + + /** + * + * + *
+   * Required. DataScan identifier.
+   * * Must contain only lowercase letters, numbers and hyphens.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * * Must be between 1-63 characters.
+   * * Must be unique within the customer project / location.
+   * 
+ * + * string data_scan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dataScanId. + */ + java.lang.String getDataScanId(); + /** + * + * + *
+   * Required. DataScan identifier.
+   * * Must contain only lowercase letters, numbers and hyphens.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * * Must be between 1-63 characters.
+   * * Must be unique within the customer project / location.
+   * 
+ * + * string data_scan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dataScanId. + */ + com.google.protobuf.ByteString getDataScanIdBytes(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileProto.java new file mode 100644 index 000000000000..799a11f0d930 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileProto.java @@ -0,0 +1,215 @@ +/* + * 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/dataplex/v1/data_profile.proto + +package com.google.cloud.dataplex.v1; + +public final class DataProfileProto { + private DataProfileProto() {} + + 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_dataplex_v1_DataProfileSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataProfileSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataProfileResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataProfileResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_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/dataplex/v1/data_profile." + + "proto\022\030google.cloud.dataplex.v1\032)google/" + + "cloud/dataplex/v1/processing.proto\"\021\n\017Da" + + "taProfileSpec\"\353\t\n\021DataProfileResult\022\021\n\tr" + + "ow_count\030\003 \001(\003\022D\n\007profile\030\004 \001(\01323.google" + + ".cloud.dataplex.v1.DataProfileResult.Pro" + + "file\022;\n\014scanned_data\030\005 \001(\0132%.google.clou" + + "d.dataplex.v1.ScannedData\032\277\010\n\007Profile\022I\n" + + "\006fields\030\002 \003(\01329.google.cloud.dataplex.v1" + + ".DataProfileResult.Profile.Field\032\350\007\n\005Fie" + + "ld\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\014\n\004mode\030\003" + + " \001(\t\022V\n\007profile\030\004 \001(\0132E.google.cloud.dat" + + "aplex.v1.DataProfileResult.Profile.Field" + + ".ProfileInfo\032\334\006\n\013ProfileInfo\022\022\n\nnull_rat" + + "io\030\002 \001(\001\022\026\n\016distinct_ratio\030\003 \001(\001\022e\n\014top_" + + "n_values\030\004 \003(\0132O.google.cloud.dataplex.v" + + "1.DataProfileResult.Profile.Field.Profil" + + "eInfo.TopNValue\022o\n\016string_profile\030e \001(\0132" + + "U.google.cloud.dataplex.v1.DataProfileRe" + + "sult.Profile.Field.ProfileInfo.StringFie" + + "ldInfoH\000\022q\n\017integer_profile\030f \001(\0132V.goog" + + "le.cloud.dataplex.v1.DataProfileResult.P" + + "rofile.Field.ProfileInfo.IntegerFieldInf" + + "oH\000\022o\n\016double_profile\030g \001(\0132U.google.clo" + + "ud.dataplex.v1.DataProfileResult.Profile" + + ".Field.ProfileInfo.DoubleFieldInfoH\000\032Q\n\017" + + "StringFieldInfo\022\022\n\nmin_length\030\001 \001(\003\022\022\n\nm" + + "ax_length\030\002 \001(\003\022\026\n\016average_length\030\003 \001(\001\032" + + "l\n\020IntegerFieldInfo\022\017\n\007average\030\001 \001(\001\022\032\n\022" + + "standard_deviation\030\003 \001(\001\022\013\n\003min\030\004 \001(\003\022\021\n" + + "\tquartiles\030\006 \003(\003\022\013\n\003max\030\005 \001(\003\032k\n\017DoubleF" + + "ieldInfo\022\017\n\007average\030\001 \001(\001\022\032\n\022standard_de" + + "viation\030\003 \001(\001\022\013\n\003min\030\004 \001(\001\022\021\n\tquartiles\030" + + "\006 \003(\001\022\013\n\003max\030\005 \001(\001\032)\n\tTopNValue\022\r\n\005value" + + "\030\001 \001(\t\022\r\n\005count\030\002 \001(\003B\014\n\nfield_infoBt\n\034c" + + "om.google.cloud.dataplex.v1B\020DataProfile" + + "ProtoP\001Z@google.golang.org/genproto/goog" + + "leapis/cloud/dataplex/v1;dataplexb\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.dataplex.v1.ProcessingProto.getDescriptor(), + }); + internal_static_google_cloud_dataplex_v1_DataProfileSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataplex_v1_DataProfileSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataProfileSpec_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dataplex_v1_DataProfileResult_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataplex_v1_DataProfileResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataProfileResult_descriptor, + new java.lang.String[] { + "RowCount", "Profile", "ScannedData", + }); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_descriptor = + internal_static_google_cloud_dataplex_v1_DataProfileResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_descriptor, + new java.lang.String[] { + "Fields", + }); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_descriptor = + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_descriptor, + new java.lang.String[] { + "Name", "Type", "Mode", "Profile", + }); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor = + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor, + new java.lang.String[] { + "NullRatio", + "DistinctRatio", + "TopNValues", + "StringProfile", + "IntegerProfile", + "DoubleProfile", + "FieldInfo", + }); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_descriptor = + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_descriptor, + new java.lang.String[] { + "MinLength", "MaxLength", "AverageLength", + }); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_descriptor = + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_descriptor, + new java.lang.String[] { + "Average", "StandardDeviation", "Min", "Quartiles", "Max", + }); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_descriptor = + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_descriptor, + new java.lang.String[] { + "Average", "StandardDeviation", "Min", "Quartiles", "Max", + }); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_descriptor = + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_descriptor, + new java.lang.String[] { + "Value", "Count", + }); + com.google.cloud.dataplex.v1.ProcessingProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResult.java new file mode 100644 index 000000000000..585182528613 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResult.java @@ -0,0 +1,10775 @@ +/* + * 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/dataplex/v1/data_profile.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * DataProfileResult defines the output of DataProfileScan.
+ * Each field of the table will have field type specific profile result.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult} + */ +public final class DataProfileResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult) + DataProfileResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataProfileResult.newBuilder() to construct. + private DataProfileResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataProfileResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataProfileResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.class, + com.google.cloud.dataplex.v1.DataProfileResult.Builder.class); + } + + public interface ProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The sequence of fields describing data in table entities.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + java.util.List getFieldsList(); + /** + * + * + *
+     * The sequence of fields describing data in table entities.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field getFields(int index); + /** + * + * + *
+     * The sequence of fields describing data in table entities.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + int getFieldsCount(); + /** + * + * + *
+     * The sequence of fields describing data in table entities.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + java.util.List + getFieldsOrBuilderList(); + /** + * + * + *
+     * The sequence of fields describing data in table entities.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder getFieldsOrBuilder( + int index); + } + /** + * + * + *
+   * Profile information describing the structure and layout of the data
+   * and contains the profile info.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult.Profile} + */ + public static final class Profile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile) + ProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use Profile.newBuilder() to construct. + private Profile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Profile() { + fields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Profile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder.class); + } + + public interface FieldOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile.Field) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The name of the field.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+       * The name of the field.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+       * The field data type. Possible values include:
+       * * STRING
+       * * BYTE
+       * * INT64
+       * * INT32
+       * * INT16
+       * * DOUBLE
+       * * FLOAT
+       * * DECIMAL
+       * * BOOLEAN
+       * * BINARY
+       * * TIMESTAMP
+       * * DATE
+       * * TIME
+       * * NULL
+       * * RECORD
+       * 
+ * + * string type = 2; + * + * @return The type. + */ + java.lang.String getType(); + /** + * + * + *
+       * The field data type. Possible values include:
+       * * STRING
+       * * BYTE
+       * * INT64
+       * * INT32
+       * * INT16
+       * * DOUBLE
+       * * FLOAT
+       * * DECIMAL
+       * * BOOLEAN
+       * * BINARY
+       * * TIMESTAMP
+       * * DATE
+       * * TIME
+       * * NULL
+       * * RECORD
+       * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
+       * The mode of the field. Its value will be:
+       * REQUIRED, if it is a required field.
+       * NULLABLE, if it is an optional field.
+       * REPEATED, if it is a repeated field.
+       * 
+ * + * string mode = 3; + * + * @return The mode. + */ + java.lang.String getMode(); + /** + * + * + *
+       * The mode of the field. Its value will be:
+       * REQUIRED, if it is a required field.
+       * NULLABLE, if it is an optional field.
+       * REPEATED, if it is a repeated field.
+       * 
+ * + * string mode = 3; + * + * @return The bytes for mode. + */ + com.google.protobuf.ByteString getModeBytes(); + + /** + * + * + *
+       * The profile information for the corresponding field.
+       * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + * + * @return Whether the profile field is set. + */ + boolean hasProfile(); + /** + * + * + *
+       * The profile information for the corresponding field.
+       * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + * + * @return The profile. + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo getProfile(); + /** + * + * + *
+       * The profile information for the corresponding field.
+       * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoOrBuilder + getProfileOrBuilder(); + } + /** + * + * + *
+     * Represents a column field within a table schema.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult.Profile.Field} + */ + public static final class Field extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field) + FieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use Field.newBuilder() to construct. + private Field(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Field() { + name_ = ""; + type_ = ""; + mode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Field(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder.class); + } + + public interface ProfileInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * The ratio of null rows against the rows in the sampled data.
+         * 
+ * + * double null_ratio = 2; + * + * @return The nullRatio. + */ + double getNullRatio(); + + /** + * + * + *
+         * The ratio of rows that are distinct against the rows in the sampled
+         * data.
+         * 
+ * + * double distinct_ratio = 3; + * + * @return The distinctRatio. + */ + double getDistinctRatio(); + + /** + * + * + *
+         * The array of top N values of the field in the sampled data.
+         * Currently N is set as 10 or equal to distinct values in the field,
+         * whichever is smaller. This will be optional for complex non-groupable
+         * data-types such as JSON, ARRAY, JSON, STRUCT.
+         * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + java.util.List< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue> + getTopNValuesList(); + /** + * + * + *
+         * The array of top N values of the field in the sampled data.
+         * Currently N is set as 10 or equal to distinct values in the field,
+         * whichever is smaller. This will be optional for complex non-groupable
+         * data-types such as JSON, ARRAY, JSON, STRUCT.
+         * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + getTopNValues(int index); + /** + * + * + *
+         * The array of top N values of the field in the sampled data.
+         * Currently N is set as 10 or equal to distinct values in the field,
+         * whichever is smaller. This will be optional for complex non-groupable
+         * data-types such as JSON, ARRAY, JSON, STRUCT.
+         * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + int getTopNValuesCount(); + /** + * + * + *
+         * The array of top N values of the field in the sampled data.
+         * Currently N is set as 10 or equal to distinct values in the field,
+         * whichever is smaller. This will be optional for complex non-groupable
+         * data-types such as JSON, ARRAY, JSON, STRUCT.
+         * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + java.util.List< + ? extends + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValueOrBuilder> + getTopNValuesOrBuilderList(); + /** + * + * + *
+         * The array of top N values of the field in the sampled data.
+         * Currently N is set as 10 or equal to distinct values in the field,
+         * whichever is smaller. This will be optional for complex non-groupable
+         * data-types such as JSON, ARRAY, JSON, STRUCT.
+         * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValueOrBuilder + getTopNValuesOrBuilder(int index); + + /** + * + * + *
+         * The corresponding string field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + * + * @return Whether the stringProfile field is set. + */ + boolean hasStringProfile(); + /** + * + * + *
+         * The corresponding string field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + * + * @return The stringProfile. + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo + getStringProfile(); + /** + * + * + *
+         * The corresponding string field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfoOrBuilder + getStringProfileOrBuilder(); + + /** + * + * + *
+         * The corresponding integer field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + * + * @return Whether the integerProfile field is set. + */ + boolean hasIntegerProfile(); + /** + * + * + *
+         * The corresponding integer field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + * + * @return The integerProfile. + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo + getIntegerProfile(); + /** + * + * + *
+         * The corresponding integer field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfoOrBuilder + getIntegerProfileOrBuilder(); + + /** + * + * + *
+         * The corresponding double field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + * + * @return Whether the doubleProfile field is set. + */ + boolean hasDoubleProfile(); + /** + * + * + *
+         * The corresponding double field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + * + * @return The doubleProfile. + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo + getDoubleProfile(); + /** + * + * + *
+         * The corresponding double field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfoOrBuilder + getDoubleProfileOrBuilder(); + + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .FieldInfoCase + getFieldInfoCase(); + } + /** + * + * + *
+       * ProfileInfo defines the profile information for each schema field type.
+       * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo} + */ + public static final class ProfileInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo) + ProfileInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProfileInfo.newBuilder() to construct. + private ProfileInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProfileInfo() { + topNValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProfileInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.Builder + .class); + } + + public interface StringFieldInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+           * The minimum length of the string field in the sampled data.
+           * Optional if zero non-null rows.
+           * 
+ * + * int64 min_length = 1; + * + * @return The minLength. + */ + long getMinLength(); + + /** + * + * + *
+           * The maximum length of a string field in the sampled data.
+           * Optional if zero non-null rows.
+           * 
+ * + * int64 max_length = 2; + * + * @return The maxLength. + */ + long getMaxLength(); + + /** + * + * + *
+           * The average length of a string field in the sampled data.
+           * Optional if zero non-null rows.
+           * 
+ * + * double average_length = 3; + * + * @return The averageLength. + */ + double getAverageLength(); + } + /** + * + * + *
+         * StringFieldInfo defines output info for any string type field.
+         * 
+ * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo} + */ + public static final class StringFieldInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo) + StringFieldInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use StringFieldInfo.newBuilder() to construct. + private StringFieldInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringFieldInfo() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StringFieldInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.Builder.class); + } + + public static final int MIN_LENGTH_FIELD_NUMBER = 1; + private long minLength_; + /** + * + * + *
+           * The minimum length of the string field in the sampled data.
+           * Optional if zero non-null rows.
+           * 
+ * + * int64 min_length = 1; + * + * @return The minLength. + */ + @java.lang.Override + public long getMinLength() { + return minLength_; + } + + public static final int MAX_LENGTH_FIELD_NUMBER = 2; + private long maxLength_; + /** + * + * + *
+           * The maximum length of a string field in the sampled data.
+           * Optional if zero non-null rows.
+           * 
+ * + * int64 max_length = 2; + * + * @return The maxLength. + */ + @java.lang.Override + public long getMaxLength() { + return maxLength_; + } + + public static final int AVERAGE_LENGTH_FIELD_NUMBER = 3; + private double averageLength_; + /** + * + * + *
+           * The average length of a string field in the sampled data.
+           * Optional if zero non-null rows.
+           * 
+ * + * double average_length = 3; + * + * @return The averageLength. + */ + @java.lang.Override + public double getAverageLength() { + return averageLength_; + } + + 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 (minLength_ != 0L) { + output.writeInt64(1, minLength_); + } + if (maxLength_ != 0L) { + output.writeInt64(2, maxLength_); + } + if (java.lang.Double.doubleToRawLongBits(averageLength_) != 0) { + output.writeDouble(3, averageLength_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minLength_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, minLength_); + } + if (maxLength_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, maxLength_); + } + if (java.lang.Double.doubleToRawLongBits(averageLength_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, averageLength_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo + other = + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo) + obj; + + if (getMinLength() != other.getMinLength()) return false; + if (getMaxLength() != other.getMaxLength()) return false; + if (java.lang.Double.doubleToLongBits(getAverageLength()) + != java.lang.Double.doubleToLongBits(other.getAverageLength())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MIN_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinLength()); + hash = (37 * hash) + MAX_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxLength()); + hash = (37 * hash) + AVERAGE_LENGTH_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAverageLength())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + 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; + } + /** + * + * + *
+           * StringFieldInfo defines output info for any string type field.
+           * 
+ * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo) + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.Builder.class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + minLength_ = 0L; + + maxLength_ = 0L; + + averageLength_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + build() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + buildPartial() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + result = + new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo(this); + result.minLength_ = minLength_; + result.maxLength_ = maxLength_; + result.averageLength_ = averageLength_; + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + other) { + if (other + == com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.getDefaultInstance()) return this; + if (other.getMinLength() != 0L) { + setMinLength(other.getMinLength()); + } + if (other.getMaxLength() != 0L) { + setMaxLength(other.getMaxLength()); + } + if (other.getAverageLength() != 0D) { + setAverageLength(other.getAverageLength()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + minLength_ = input.readInt64(); + + break; + } // case 8 + case 16: + { + maxLength_ = input.readInt64(); + + break; + } // case 16 + case 25: + { + averageLength_ = input.readDouble(); + + break; + } // case 25 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private long minLength_; + /** + * + * + *
+             * The minimum length of the string field in the sampled data.
+             * Optional if zero non-null rows.
+             * 
+ * + * int64 min_length = 1; + * + * @return The minLength. + */ + @java.lang.Override + public long getMinLength() { + return minLength_; + } + /** + * + * + *
+             * The minimum length of the string field in the sampled data.
+             * Optional if zero non-null rows.
+             * 
+ * + * int64 min_length = 1; + * + * @param value The minLength to set. + * @return This builder for chaining. + */ + public Builder setMinLength(long value) { + + minLength_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The minimum length of the string field in the sampled data.
+             * Optional if zero non-null rows.
+             * 
+ * + * int64 min_length = 1; + * + * @return This builder for chaining. + */ + public Builder clearMinLength() { + + minLength_ = 0L; + onChanged(); + return this; + } + + private long maxLength_; + /** + * + * + *
+             * The maximum length of a string field in the sampled data.
+             * Optional if zero non-null rows.
+             * 
+ * + * int64 max_length = 2; + * + * @return The maxLength. + */ + @java.lang.Override + public long getMaxLength() { + return maxLength_; + } + /** + * + * + *
+             * The maximum length of a string field in the sampled data.
+             * Optional if zero non-null rows.
+             * 
+ * + * int64 max_length = 2; + * + * @param value The maxLength to set. + * @return This builder for chaining. + */ + public Builder setMaxLength(long value) { + + maxLength_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The maximum length of a string field in the sampled data.
+             * Optional if zero non-null rows.
+             * 
+ * + * int64 max_length = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxLength() { + + maxLength_ = 0L; + onChanged(); + return this; + } + + private double averageLength_; + /** + * + * + *
+             * The average length of a string field in the sampled data.
+             * Optional if zero non-null rows.
+             * 
+ * + * double average_length = 3; + * + * @return The averageLength. + */ + @java.lang.Override + public double getAverageLength() { + return averageLength_; + } + /** + * + * + *
+             * The average length of a string field in the sampled data.
+             * Optional if zero non-null rows.
+             * 
+ * + * double average_length = 3; + * + * @param value The averageLength to set. + * @return This builder for chaining. + */ + public Builder setAverageLength(double value) { + + averageLength_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The average length of a string field in the sampled data.
+             * Optional if zero non-null rows.
+             * 
+ * + * double average_length = 3; + * + * @return This builder for chaining. + */ + public Builder clearAverageLength() { + + averageLength_ = 0D; + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo) + private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + .ProfileInfo.StringFieldInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo(); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringFieldInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IntegerFieldInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+           * The average of non-null values of integer field in the sampled
+           * data. Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * double average = 1; + * + * @return The average. + */ + double getAverage(); + + /** + * + * + *
+           * The standard deviation of non-null of integer field in the sampled
+           * data. Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * double standard_deviation = 3; + * + * @return The standardDeviation. + */ + double getStandardDeviation(); + + /** + * + * + *
+           * The minimum value of an integer field in the sampled data.
+           * Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * int64 min = 4; + * + * @return The min. + */ + long getMin(); + + /** + * + * + *
+           * A quartile divide the number of data points into four parts, or
+           * quarters, of more-or-less equal size. Three main quartiles used
+           * are: The first quartile (Q1) splits off the lowest 25% of data from
+           * the highest 75%. It is also known as the lower or 25th empirical
+           * quartile, as 25% of the data is below this point. The second
+           * quartile (Q2) is the median of a data set. So, 50% of the data lies
+           * below this point. The third quartile (Q3) splits off the highest
+           * 25% of data from the lowest 75%. It is known as the upper or 75th
+           * empirical quartile, as 75% of the data lies below this point. So,
+           * here the quartiles is provided as an ordered list of quartile
+           * values, occurring in order Q1, median, Q3.
+           * 
+ * + * repeated int64 quartiles = 6; + * + * @return A list containing the quartiles. + */ + java.util.List getQuartilesList(); + /** + * + * + *
+           * A quartile divide the number of data points into four parts, or
+           * quarters, of more-or-less equal size. Three main quartiles used
+           * are: The first quartile (Q1) splits off the lowest 25% of data from
+           * the highest 75%. It is also known as the lower or 25th empirical
+           * quartile, as 25% of the data is below this point. The second
+           * quartile (Q2) is the median of a data set. So, 50% of the data lies
+           * below this point. The third quartile (Q3) splits off the highest
+           * 25% of data from the lowest 75%. It is known as the upper or 75th
+           * empirical quartile, as 75% of the data lies below this point. So,
+           * here the quartiles is provided as an ordered list of quartile
+           * values, occurring in order Q1, median, Q3.
+           * 
+ * + * repeated int64 quartiles = 6; + * + * @return The count of quartiles. + */ + int getQuartilesCount(); + /** + * + * + *
+           * A quartile divide the number of data points into four parts, or
+           * quarters, of more-or-less equal size. Three main quartiles used
+           * are: The first quartile (Q1) splits off the lowest 25% of data from
+           * the highest 75%. It is also known as the lower or 25th empirical
+           * quartile, as 25% of the data is below this point. The second
+           * quartile (Q2) is the median of a data set. So, 50% of the data lies
+           * below this point. The third quartile (Q3) splits off the highest
+           * 25% of data from the lowest 75%. It is known as the upper or 75th
+           * empirical quartile, as 75% of the data lies below this point. So,
+           * here the quartiles is provided as an ordered list of quartile
+           * values, occurring in order Q1, median, Q3.
+           * 
+ * + * repeated int64 quartiles = 6; + * + * @param index The index of the element to return. + * @return The quartiles at the given index. + */ + long getQuartiles(int index); + + /** + * + * + *
+           * The maximum value of an integer field in the sampled data.
+           * Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * int64 max = 5; + * + * @return The max. + */ + long getMax(); + } + /** + * + * + *
+         * IntegerFieldInfo defines output for any integer type field.
+         * 
+ * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo} + */ + public static final class IntegerFieldInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo) + IntegerFieldInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntegerFieldInfo.newBuilder() to construct. + private IntegerFieldInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IntegerFieldInfo() { + quartiles_ = emptyLongList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IntegerFieldInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.Builder.class); + } + + public static final int AVERAGE_FIELD_NUMBER = 1; + private double average_; + /** + * + * + *
+           * The average of non-null values of integer field in the sampled
+           * data. Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * double average = 1; + * + * @return The average. + */ + @java.lang.Override + public double getAverage() { + return average_; + } + + public static final int STANDARD_DEVIATION_FIELD_NUMBER = 3; + private double standardDeviation_; + /** + * + * + *
+           * The standard deviation of non-null of integer field in the sampled
+           * data. Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * double standard_deviation = 3; + * + * @return The standardDeviation. + */ + @java.lang.Override + public double getStandardDeviation() { + return standardDeviation_; + } + + public static final int MIN_FIELD_NUMBER = 4; + private long min_; + /** + * + * + *
+           * The minimum value of an integer field in the sampled data.
+           * Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * int64 min = 4; + * + * @return The min. + */ + @java.lang.Override + public long getMin() { + return min_; + } + + public static final int QUARTILES_FIELD_NUMBER = 6; + private com.google.protobuf.Internal.LongList quartiles_; + /** + * + * + *
+           * A quartile divide the number of data points into four parts, or
+           * quarters, of more-or-less equal size. Three main quartiles used
+           * are: The first quartile (Q1) splits off the lowest 25% of data from
+           * the highest 75%. It is also known as the lower or 25th empirical
+           * quartile, as 25% of the data is below this point. The second
+           * quartile (Q2) is the median of a data set. So, 50% of the data lies
+           * below this point. The third quartile (Q3) splits off the highest
+           * 25% of data from the lowest 75%. It is known as the upper or 75th
+           * empirical quartile, as 75% of the data lies below this point. So,
+           * here the quartiles is provided as an ordered list of quartile
+           * values, occurring in order Q1, median, Q3.
+           * 
+ * + * repeated int64 quartiles = 6; + * + * @return A list containing the quartiles. + */ + @java.lang.Override + public java.util.List getQuartilesList() { + return quartiles_; + } + /** + * + * + *
+           * A quartile divide the number of data points into four parts, or
+           * quarters, of more-or-less equal size. Three main quartiles used
+           * are: The first quartile (Q1) splits off the lowest 25% of data from
+           * the highest 75%. It is also known as the lower or 25th empirical
+           * quartile, as 25% of the data is below this point. The second
+           * quartile (Q2) is the median of a data set. So, 50% of the data lies
+           * below this point. The third quartile (Q3) splits off the highest
+           * 25% of data from the lowest 75%. It is known as the upper or 75th
+           * empirical quartile, as 75% of the data lies below this point. So,
+           * here the quartiles is provided as an ordered list of quartile
+           * values, occurring in order Q1, median, Q3.
+           * 
+ * + * repeated int64 quartiles = 6; + * + * @return The count of quartiles. + */ + public int getQuartilesCount() { + return quartiles_.size(); + } + /** + * + * + *
+           * A quartile divide the number of data points into four parts, or
+           * quarters, of more-or-less equal size. Three main quartiles used
+           * are: The first quartile (Q1) splits off the lowest 25% of data from
+           * the highest 75%. It is also known as the lower or 25th empirical
+           * quartile, as 25% of the data is below this point. The second
+           * quartile (Q2) is the median of a data set. So, 50% of the data lies
+           * below this point. The third quartile (Q3) splits off the highest
+           * 25% of data from the lowest 75%. It is known as the upper or 75th
+           * empirical quartile, as 75% of the data lies below this point. So,
+           * here the quartiles is provided as an ordered list of quartile
+           * values, occurring in order Q1, median, Q3.
+           * 
+ * + * repeated int64 quartiles = 6; + * + * @param index The index of the element to return. + * @return The quartiles at the given index. + */ + public long getQuartiles(int index) { + return quartiles_.getLong(index); + } + + private int quartilesMemoizedSerializedSize = -1; + + public static final int MAX_FIELD_NUMBER = 5; + private long max_; + /** + * + * + *
+           * The maximum value of an integer field in the sampled data.
+           * Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * int64 max = 5; + * + * @return The max. + */ + @java.lang.Override + public long getMax() { + return max_; + } + + 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 { + getSerializedSize(); + if (java.lang.Double.doubleToRawLongBits(average_) != 0) { + output.writeDouble(1, average_); + } + if (java.lang.Double.doubleToRawLongBits(standardDeviation_) != 0) { + output.writeDouble(3, standardDeviation_); + } + if (min_ != 0L) { + output.writeInt64(4, min_); + } + if (max_ != 0L) { + output.writeInt64(5, max_); + } + if (getQuartilesList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(quartilesMemoizedSerializedSize); + } + for (int i = 0; i < quartiles_.size(); i++) { + output.writeInt64NoTag(quartiles_.getLong(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(average_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, average_); + } + if (java.lang.Double.doubleToRawLongBits(standardDeviation_) != 0) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(3, standardDeviation_); + } + if (min_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, min_); + } + if (max_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, max_); + } + { + int dataSize = 0; + for (int i = 0; i < quartiles_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag( + quartiles_.getLong(i)); + } + size += dataSize; + if (!getQuartilesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + quartilesMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + other = + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo) + obj; + + if (java.lang.Double.doubleToLongBits(getAverage()) + != java.lang.Double.doubleToLongBits(other.getAverage())) return false; + if (java.lang.Double.doubleToLongBits(getStandardDeviation()) + != java.lang.Double.doubleToLongBits(other.getStandardDeviation())) return false; + if (getMin() != other.getMin()) return false; + if (!getQuartilesList().equals(other.getQuartilesList())) return false; + if (getMax() != other.getMax()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AVERAGE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAverage())); + hash = (37 * hash) + STANDARD_DEVIATION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getStandardDeviation())); + hash = (37 * hash) + MIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMin()); + if (getQuartilesCount() > 0) { + hash = (37 * hash) + QUARTILES_FIELD_NUMBER; + hash = (53 * hash) + getQuartilesList().hashCode(); + } + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMax()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + 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; + } + /** + * + * + *
+           * IntegerFieldInfo defines output for any integer type field.
+           * 
+ * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo) + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.Builder.class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + average_ = 0D; + + standardDeviation_ = 0D; + + min_ = 0L; + + quartiles_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + max_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + build() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + buildPartial() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + result = + new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo(this); + int from_bitField0_ = bitField0_; + result.average_ = average_; + result.standardDeviation_ = standardDeviation_; + result.min_ = min_; + if (((bitField0_ & 0x00000001) != 0)) { + quartiles_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.quartiles_ = quartiles_; + result.max_ = max_; + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + other) { + if (other + == com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.getDefaultInstance()) return this; + if (other.getAverage() != 0D) { + setAverage(other.getAverage()); + } + if (other.getStandardDeviation() != 0D) { + setStandardDeviation(other.getStandardDeviation()); + } + if (other.getMin() != 0L) { + setMin(other.getMin()); + } + if (!other.quartiles_.isEmpty()) { + if (quartiles_.isEmpty()) { + quartiles_ = other.quartiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQuartilesIsMutable(); + quartiles_.addAll(other.quartiles_); + } + onChanged(); + } + if (other.getMax() != 0L) { + setMax(other.getMax()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + average_ = input.readDouble(); + + break; + } // case 9 + case 25: + { + standardDeviation_ = input.readDouble(); + + break; + } // case 25 + case 32: + { + min_ = input.readInt64(); + + break; + } // case 32 + case 40: + { + max_ = input.readInt64(); + + break; + } // case 40 + case 48: + { + long v = input.readInt64(); + ensureQuartilesIsMutable(); + quartiles_.addLong(v); + break; + } // case 48 + case 50: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureQuartilesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + quartiles_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private double average_; + /** + * + * + *
+             * The average of non-null values of integer field in the sampled
+             * data. Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double average = 1; + * + * @return The average. + */ + @java.lang.Override + public double getAverage() { + return average_; + } + /** + * + * + *
+             * The average of non-null values of integer field in the sampled
+             * data. Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double average = 1; + * + * @param value The average to set. + * @return This builder for chaining. + */ + public Builder setAverage(double value) { + + average_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The average of non-null values of integer field in the sampled
+             * data. Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double average = 1; + * + * @return This builder for chaining. + */ + public Builder clearAverage() { + + average_ = 0D; + onChanged(); + return this; + } + + private double standardDeviation_; + /** + * + * + *
+             * The standard deviation of non-null of integer field in the sampled
+             * data. Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double standard_deviation = 3; + * + * @return The standardDeviation. + */ + @java.lang.Override + public double getStandardDeviation() { + return standardDeviation_; + } + /** + * + * + *
+             * The standard deviation of non-null of integer field in the sampled
+             * data. Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double standard_deviation = 3; + * + * @param value The standardDeviation to set. + * @return This builder for chaining. + */ + public Builder setStandardDeviation(double value) { + + standardDeviation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The standard deviation of non-null of integer field in the sampled
+             * data. Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double standard_deviation = 3; + * + * @return This builder for chaining. + */ + public Builder clearStandardDeviation() { + + standardDeviation_ = 0D; + onChanged(); + return this; + } + + private long min_; + /** + * + * + *
+             * The minimum value of an integer field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * int64 min = 4; + * + * @return The min. + */ + @java.lang.Override + public long getMin() { + return min_; + } + /** + * + * + *
+             * The minimum value of an integer field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * int64 min = 4; + * + * @param value The min to set. + * @return This builder for chaining. + */ + public Builder setMin(long value) { + + min_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The minimum value of an integer field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * int64 min = 4; + * + * @return This builder for chaining. + */ + public Builder clearMin() { + + min_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.LongList quartiles_ = emptyLongList(); + + private void ensureQuartilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + quartiles_ = mutableCopy(quartiles_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+             * A quartile divide the number of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated int64 quartiles = 6; + * + * @return A list containing the quartiles. + */ + public java.util.List getQuartilesList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(quartiles_) + : quartiles_; + } + /** + * + * + *
+             * A quartile divide the number of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated int64 quartiles = 6; + * + * @return The count of quartiles. + */ + public int getQuartilesCount() { + return quartiles_.size(); + } + /** + * + * + *
+             * A quartile divide the number of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated int64 quartiles = 6; + * + * @param index The index of the element to return. + * @return The quartiles at the given index. + */ + public long getQuartiles(int index) { + return quartiles_.getLong(index); + } + /** + * + * + *
+             * A quartile divide the number of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated int64 quartiles = 6; + * + * @param index The index to set the value at. + * @param value The quartiles to set. + * @return This builder for chaining. + */ + public Builder setQuartiles(int index, long value) { + ensureQuartilesIsMutable(); + quartiles_.setLong(index, value); + onChanged(); + return this; + } + /** + * + * + *
+             * A quartile divide the number of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated int64 quartiles = 6; + * + * @param value The quartiles to add. + * @return This builder for chaining. + */ + public Builder addQuartiles(long value) { + ensureQuartilesIsMutable(); + quartiles_.addLong(value); + onChanged(); + return this; + } + /** + * + * + *
+             * A quartile divide the number of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated int64 quartiles = 6; + * + * @param values The quartiles to add. + * @return This builder for chaining. + */ + public Builder addAllQuartiles(java.lang.Iterable values) { + ensureQuartilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quartiles_); + onChanged(); + return this; + } + /** + * + * + *
+             * A quartile divide the number of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated int64 quartiles = 6; + * + * @return This builder for chaining. + */ + public Builder clearQuartiles() { + quartiles_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private long max_; + /** + * + * + *
+             * The maximum value of an integer field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * int64 max = 5; + * + * @return The max. + */ + @java.lang.Override + public long getMax() { + return max_; + } + /** + * + * + *
+             * The maximum value of an integer field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * int64 max = 5; + * + * @param value The max to set. + * @return This builder for chaining. + */ + public Builder setMax(long value) { + + max_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The maximum value of an integer field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * int64 max = 5; + * + * @return This builder for chaining. + */ + public Builder clearMax() { + + max_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo) + private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + .ProfileInfo.IntegerFieldInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo(); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntegerFieldInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DoubleFieldInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+           * The average of non-null values of double field in the sampled data.
+           * Return NaN, if the field has a NaN. Optional if zero non-null rows.
+           * 
+ * + * double average = 1; + * + * @return The average. + */ + double getAverage(); + + /** + * + * + *
+           * The standard deviation of non-null of double field in the sampled
+           * data. Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * double standard_deviation = 3; + * + * @return The standardDeviation. + */ + double getStandardDeviation(); + + /** + * + * + *
+           * The minimum value of a double field in the sampled data.
+           * Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * double min = 4; + * + * @return The min. + */ + double getMin(); + + /** + * + * + *
+           * A quartile divide the numebr of data points into four parts, or
+           * quarters, of more-or-less equal size. Three main quartiles used
+           * are: The first quartile (Q1) splits off the lowest 25% of data from
+           * the highest 75%. It is also known as the lower or 25th empirical
+           * quartile, as 25% of the data is below this point. The second
+           * quartile (Q2) is the median of a data set. So, 50% of the data lies
+           * below this point. The third quartile (Q3) splits off the highest
+           * 25% of data from the lowest 75%. It is known as the upper or 75th
+           * empirical quartile, as 75% of the data lies below this point. So,
+           * here the quartiles is provided as an ordered list of quartile
+           * values, occurring in order Q1, median, Q3.
+           * 
+ * + * repeated double quartiles = 6; + * + * @return A list containing the quartiles. + */ + java.util.List getQuartilesList(); + /** + * + * + *
+           * A quartile divide the numebr of data points into four parts, or
+           * quarters, of more-or-less equal size. Three main quartiles used
+           * are: The first quartile (Q1) splits off the lowest 25% of data from
+           * the highest 75%. It is also known as the lower or 25th empirical
+           * quartile, as 25% of the data is below this point. The second
+           * quartile (Q2) is the median of a data set. So, 50% of the data lies
+           * below this point. The third quartile (Q3) splits off the highest
+           * 25% of data from the lowest 75%. It is known as the upper or 75th
+           * empirical quartile, as 75% of the data lies below this point. So,
+           * here the quartiles is provided as an ordered list of quartile
+           * values, occurring in order Q1, median, Q3.
+           * 
+ * + * repeated double quartiles = 6; + * + * @return The count of quartiles. + */ + int getQuartilesCount(); + /** + * + * + *
+           * A quartile divide the numebr of data points into four parts, or
+           * quarters, of more-or-less equal size. Three main quartiles used
+           * are: The first quartile (Q1) splits off the lowest 25% of data from
+           * the highest 75%. It is also known as the lower or 25th empirical
+           * quartile, as 25% of the data is below this point. The second
+           * quartile (Q2) is the median of a data set. So, 50% of the data lies
+           * below this point. The third quartile (Q3) splits off the highest
+           * 25% of data from the lowest 75%. It is known as the upper or 75th
+           * empirical quartile, as 75% of the data lies below this point. So,
+           * here the quartiles is provided as an ordered list of quartile
+           * values, occurring in order Q1, median, Q3.
+           * 
+ * + * repeated double quartiles = 6; + * + * @param index The index of the element to return. + * @return The quartiles at the given index. + */ + double getQuartiles(int index); + + /** + * + * + *
+           * The maximum value of a double field in the sampled data.
+           * Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * double max = 5; + * + * @return The max. + */ + double getMax(); + } + /** + * + * + *
+         * DoubleFieldInfo defines output for any double type field.
+         * 
+ * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo} + */ + public static final class DoubleFieldInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo) + DoubleFieldInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DoubleFieldInfo.newBuilder() to construct. + private DoubleFieldInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DoubleFieldInfo() { + quartiles_ = emptyDoubleList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DoubleFieldInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.Builder.class); + } + + public static final int AVERAGE_FIELD_NUMBER = 1; + private double average_; + /** + * + * + *
+           * The average of non-null values of double field in the sampled data.
+           * Return NaN, if the field has a NaN. Optional if zero non-null rows.
+           * 
+ * + * double average = 1; + * + * @return The average. + */ + @java.lang.Override + public double getAverage() { + return average_; + } + + public static final int STANDARD_DEVIATION_FIELD_NUMBER = 3; + private double standardDeviation_; + /** + * + * + *
+           * The standard deviation of non-null of double field in the sampled
+           * data. Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * double standard_deviation = 3; + * + * @return The standardDeviation. + */ + @java.lang.Override + public double getStandardDeviation() { + return standardDeviation_; + } + + public static final int MIN_FIELD_NUMBER = 4; + private double min_; + /** + * + * + *
+           * The minimum value of a double field in the sampled data.
+           * Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * double min = 4; + * + * @return The min. + */ + @java.lang.Override + public double getMin() { + return min_; + } + + public static final int QUARTILES_FIELD_NUMBER = 6; + private com.google.protobuf.Internal.DoubleList quartiles_; + /** + * + * + *
+           * A quartile divide the numebr of data points into four parts, or
+           * quarters, of more-or-less equal size. Three main quartiles used
+           * are: The first quartile (Q1) splits off the lowest 25% of data from
+           * the highest 75%. It is also known as the lower or 25th empirical
+           * quartile, as 25% of the data is below this point. The second
+           * quartile (Q2) is the median of a data set. So, 50% of the data lies
+           * below this point. The third quartile (Q3) splits off the highest
+           * 25% of data from the lowest 75%. It is known as the upper or 75th
+           * empirical quartile, as 75% of the data lies below this point. So,
+           * here the quartiles is provided as an ordered list of quartile
+           * values, occurring in order Q1, median, Q3.
+           * 
+ * + * repeated double quartiles = 6; + * + * @return A list containing the quartiles. + */ + @java.lang.Override + public java.util.List getQuartilesList() { + return quartiles_; + } + /** + * + * + *
+           * A quartile divide the numebr of data points into four parts, or
+           * quarters, of more-or-less equal size. Three main quartiles used
+           * are: The first quartile (Q1) splits off the lowest 25% of data from
+           * the highest 75%. It is also known as the lower or 25th empirical
+           * quartile, as 25% of the data is below this point. The second
+           * quartile (Q2) is the median of a data set. So, 50% of the data lies
+           * below this point. The third quartile (Q3) splits off the highest
+           * 25% of data from the lowest 75%. It is known as the upper or 75th
+           * empirical quartile, as 75% of the data lies below this point. So,
+           * here the quartiles is provided as an ordered list of quartile
+           * values, occurring in order Q1, median, Q3.
+           * 
+ * + * repeated double quartiles = 6; + * + * @return The count of quartiles. + */ + public int getQuartilesCount() { + return quartiles_.size(); + } + /** + * + * + *
+           * A quartile divide the numebr of data points into four parts, or
+           * quarters, of more-or-less equal size. Three main quartiles used
+           * are: The first quartile (Q1) splits off the lowest 25% of data from
+           * the highest 75%. It is also known as the lower or 25th empirical
+           * quartile, as 25% of the data is below this point. The second
+           * quartile (Q2) is the median of a data set. So, 50% of the data lies
+           * below this point. The third quartile (Q3) splits off the highest
+           * 25% of data from the lowest 75%. It is known as the upper or 75th
+           * empirical quartile, as 75% of the data lies below this point. So,
+           * here the quartiles is provided as an ordered list of quartile
+           * values, occurring in order Q1, median, Q3.
+           * 
+ * + * repeated double quartiles = 6; + * + * @param index The index of the element to return. + * @return The quartiles at the given index. + */ + public double getQuartiles(int index) { + return quartiles_.getDouble(index); + } + + private int quartilesMemoizedSerializedSize = -1; + + public static final int MAX_FIELD_NUMBER = 5; + private double max_; + /** + * + * + *
+           * The maximum value of a double field in the sampled data.
+           * Return NaN, if the field has a NaN. Optional if zero non-null
+           * rows.
+           * 
+ * + * double max = 5; + * + * @return The max. + */ + @java.lang.Override + public double getMax() { + return max_; + } + + 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 { + getSerializedSize(); + if (java.lang.Double.doubleToRawLongBits(average_) != 0) { + output.writeDouble(1, average_); + } + if (java.lang.Double.doubleToRawLongBits(standardDeviation_) != 0) { + output.writeDouble(3, standardDeviation_); + } + if (java.lang.Double.doubleToRawLongBits(min_) != 0) { + output.writeDouble(4, min_); + } + if (java.lang.Double.doubleToRawLongBits(max_) != 0) { + output.writeDouble(5, max_); + } + if (getQuartilesList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(quartilesMemoizedSerializedSize); + } + for (int i = 0; i < quartiles_.size(); i++) { + output.writeDoubleNoTag(quartiles_.getDouble(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(average_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, average_); + } + if (java.lang.Double.doubleToRawLongBits(standardDeviation_) != 0) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize(3, standardDeviation_); + } + if (java.lang.Double.doubleToRawLongBits(min_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, min_); + } + if (java.lang.Double.doubleToRawLongBits(max_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, max_); + } + { + int dataSize = 0; + dataSize = 8 * getQuartilesList().size(); + size += dataSize; + if (!getQuartilesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + quartilesMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo + other = + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo) + obj; + + if (java.lang.Double.doubleToLongBits(getAverage()) + != java.lang.Double.doubleToLongBits(other.getAverage())) return false; + if (java.lang.Double.doubleToLongBits(getStandardDeviation()) + != java.lang.Double.doubleToLongBits(other.getStandardDeviation())) return false; + if (java.lang.Double.doubleToLongBits(getMin()) + != java.lang.Double.doubleToLongBits(other.getMin())) return false; + if (!getQuartilesList().equals(other.getQuartilesList())) return false; + if (java.lang.Double.doubleToLongBits(getMax()) + != java.lang.Double.doubleToLongBits(other.getMax())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AVERAGE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAverage())); + hash = (37 * hash) + STANDARD_DEVIATION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getStandardDeviation())); + hash = (37 * hash) + MIN_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMin())); + if (getQuartilesCount() > 0) { + hash = (37 * hash) + QUARTILES_FIELD_NUMBER; + hash = (53 * hash) + getQuartilesList().hashCode(); + } + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMax())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + 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; + } + /** + * + * + *
+           * DoubleFieldInfo defines output for any double type field.
+           * 
+ * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo) + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.Builder.class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + average_ = 0D; + + standardDeviation_ = 0D; + + min_ = 0D; + + quartiles_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000001); + max_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + build() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + buildPartial() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + result = + new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo(this); + int from_bitField0_ = bitField0_; + result.average_ = average_; + result.standardDeviation_ = standardDeviation_; + result.min_ = min_; + if (((bitField0_ & 0x00000001) != 0)) { + quartiles_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.quartiles_ = quartiles_; + result.max_ = max_; + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + other) { + if (other + == com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.getDefaultInstance()) return this; + if (other.getAverage() != 0D) { + setAverage(other.getAverage()); + } + if (other.getStandardDeviation() != 0D) { + setStandardDeviation(other.getStandardDeviation()); + } + if (other.getMin() != 0D) { + setMin(other.getMin()); + } + if (!other.quartiles_.isEmpty()) { + if (quartiles_.isEmpty()) { + quartiles_ = other.quartiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQuartilesIsMutable(); + quartiles_.addAll(other.quartiles_); + } + onChanged(); + } + if (other.getMax() != 0D) { + setMax(other.getMax()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + average_ = input.readDouble(); + + break; + } // case 9 + case 25: + { + standardDeviation_ = input.readDouble(); + + break; + } // case 25 + case 33: + { + min_ = input.readDouble(); + + break; + } // case 33 + case 41: + { + max_ = input.readDouble(); + + break; + } // case 41 + case 49: + { + double v = input.readDouble(); + ensureQuartilesIsMutable(); + quartiles_.addDouble(v); + break; + } // case 49 + case 50: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureQuartilesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + quartiles_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private double average_; + /** + * + * + *
+             * The average of non-null values of double field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null rows.
+             * 
+ * + * double average = 1; + * + * @return The average. + */ + @java.lang.Override + public double getAverage() { + return average_; + } + /** + * + * + *
+             * The average of non-null values of double field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null rows.
+             * 
+ * + * double average = 1; + * + * @param value The average to set. + * @return This builder for chaining. + */ + public Builder setAverage(double value) { + + average_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The average of non-null values of double field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null rows.
+             * 
+ * + * double average = 1; + * + * @return This builder for chaining. + */ + public Builder clearAverage() { + + average_ = 0D; + onChanged(); + return this; + } + + private double standardDeviation_; + /** + * + * + *
+             * The standard deviation of non-null of double field in the sampled
+             * data. Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double standard_deviation = 3; + * + * @return The standardDeviation. + */ + @java.lang.Override + public double getStandardDeviation() { + return standardDeviation_; + } + /** + * + * + *
+             * The standard deviation of non-null of double field in the sampled
+             * data. Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double standard_deviation = 3; + * + * @param value The standardDeviation to set. + * @return This builder for chaining. + */ + public Builder setStandardDeviation(double value) { + + standardDeviation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The standard deviation of non-null of double field in the sampled
+             * data. Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double standard_deviation = 3; + * + * @return This builder for chaining. + */ + public Builder clearStandardDeviation() { + + standardDeviation_ = 0D; + onChanged(); + return this; + } + + private double min_; + /** + * + * + *
+             * The minimum value of a double field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double min = 4; + * + * @return The min. + */ + @java.lang.Override + public double getMin() { + return min_; + } + /** + * + * + *
+             * The minimum value of a double field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double min = 4; + * + * @param value The min to set. + * @return This builder for chaining. + */ + public Builder setMin(double value) { + + min_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The minimum value of a double field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double min = 4; + * + * @return This builder for chaining. + */ + public Builder clearMin() { + + min_ = 0D; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.DoubleList quartiles_ = emptyDoubleList(); + + private void ensureQuartilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + quartiles_ = mutableCopy(quartiles_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+             * A quartile divide the numebr of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated double quartiles = 6; + * + * @return A list containing the quartiles. + */ + public java.util.List getQuartilesList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(quartiles_) + : quartiles_; + } + /** + * + * + *
+             * A quartile divide the numebr of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated double quartiles = 6; + * + * @return The count of quartiles. + */ + public int getQuartilesCount() { + return quartiles_.size(); + } + /** + * + * + *
+             * A quartile divide the numebr of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated double quartiles = 6; + * + * @param index The index of the element to return. + * @return The quartiles at the given index. + */ + public double getQuartiles(int index) { + return quartiles_.getDouble(index); + } + /** + * + * + *
+             * A quartile divide the numebr of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated double quartiles = 6; + * + * @param index The index to set the value at. + * @param value The quartiles to set. + * @return This builder for chaining. + */ + public Builder setQuartiles(int index, double value) { + ensureQuartilesIsMutable(); + quartiles_.setDouble(index, value); + onChanged(); + return this; + } + /** + * + * + *
+             * A quartile divide the numebr of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated double quartiles = 6; + * + * @param value The quartiles to add. + * @return This builder for chaining. + */ + public Builder addQuartiles(double value) { + ensureQuartilesIsMutable(); + quartiles_.addDouble(value); + onChanged(); + return this; + } + /** + * + * + *
+             * A quartile divide the numebr of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated double quartiles = 6; + * + * @param values The quartiles to add. + * @return This builder for chaining. + */ + public Builder addAllQuartiles(java.lang.Iterable values) { + ensureQuartilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quartiles_); + onChanged(); + return this; + } + /** + * + * + *
+             * A quartile divide the numebr of data points into four parts, or
+             * quarters, of more-or-less equal size. Three main quartiles used
+             * are: The first quartile (Q1) splits off the lowest 25% of data from
+             * the highest 75%. It is also known as the lower or 25th empirical
+             * quartile, as 25% of the data is below this point. The second
+             * quartile (Q2) is the median of a data set. So, 50% of the data lies
+             * below this point. The third quartile (Q3) splits off the highest
+             * 25% of data from the lowest 75%. It is known as the upper or 75th
+             * empirical quartile, as 75% of the data lies below this point. So,
+             * here the quartiles is provided as an ordered list of quartile
+             * values, occurring in order Q1, median, Q3.
+             * 
+ * + * repeated double quartiles = 6; + * + * @return This builder for chaining. + */ + public Builder clearQuartiles() { + quartiles_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private double max_; + /** + * + * + *
+             * The maximum value of a double field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double max = 5; + * + * @return The max. + */ + @java.lang.Override + public double getMax() { + return max_; + } + /** + * + * + *
+             * The maximum value of a double field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double max = 5; + * + * @param value The max to set. + * @return This builder for chaining. + */ + public Builder setMax(double value) { + + max_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The maximum value of a double field in the sampled data.
+             * Return NaN, if the field has a NaN. Optional if zero non-null
+             * rows.
+             * 
+ * + * double max = 5; + * + * @return This builder for chaining. + */ + public Builder clearMax() { + + max_ = 0D; + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo) + private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + .ProfileInfo.DoubleFieldInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo(); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DoubleFieldInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TopNValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+           * The value is the string value of the actual value from the field.
+           * 
+ * + * string value = 1; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+           * The value is the string value of the actual value from the field.
+           * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+           * The frequency count of the corresponding value in the field.
+           * 
+ * + * int64 count = 2; + * + * @return The count. + */ + long getCount(); + } + /** + * + * + *
+         * The TopNValue defines the structure of output of top N values of a
+         * field.
+         * 
+ * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue} + */ + public static final class TopNValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue) + TopNValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use TopNValue.newBuilder() to construct. + private TopNValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TopNValue() { + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TopNValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object value_; + /** + * + * + *
+           * The value is the string value of the actual value from the field.
+           * 
+ * + * string value = 1; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + * + * + *
+           * The value is the string value of the actual value from the field.
+           * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNT_FIELD_NUMBER = 2; + private long count_; + /** + * + * + *
+           * The frequency count of the corresponding value in the field.
+           * 
+ * + * int64 count = 2; + * + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + + 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(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + if (count_ != 0L) { + output.writeInt64(2, count_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); + } + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + other = + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue) + obj; + + if (!getValue().equals(other.getValue())) return false; + if (getCount() != other.getCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+           * The TopNValue defines the structure of output of top N values of a
+           * field.
+           * 
+ * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue) + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue.Builder.class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = ""; + + count_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + build() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + buildPartial() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + result = + new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue(this); + result.value_ = value_; + result.count_ = count_; + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + other) { + if (other + == com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue.getDefaultInstance()) return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + value_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + count_ = input.readInt64(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+             * The value is the string value of the actual value from the field.
+             * 
+ * + * string value = 1; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * The value is the string value of the actual value from the field.
+             * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * The value is the string value of the actual value from the field.
+             * 
+ * + * string value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The value is the string value of the actual value from the field.
+             * 
+ * + * string value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * + * + *
+             * The value is the string value of the actual value from the field.
+             * 
+ * + * string value = 1; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private long count_; + /** + * + * + *
+             * The frequency count of the corresponding value in the field.
+             * 
+ * + * int64 count = 2; + * + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + /** + * + * + *
+             * The frequency count of the corresponding value in the field.
+             * 
+ * + * int64 count = 2; + * + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(long value) { + + count_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * The frequency count of the corresponding value in the field.
+             * 
+ * + * int64 count = 2; + * + * @return This builder for chaining. + */ + public Builder clearCount() { + + count_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue) + private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + .ProfileInfo.TopNValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue(); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TopNValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int fieldInfoCase_ = 0; + private java.lang.Object fieldInfo_; + + public enum FieldInfoCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_PROFILE(101), + INTEGER_PROFILE(102), + DOUBLE_PROFILE(103), + FIELDINFO_NOT_SET(0); + private final int value; + + private FieldInfoCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FieldInfoCase valueOf(int value) { + return forNumber(value); + } + + public static FieldInfoCase forNumber(int value) { + switch (value) { + case 101: + return STRING_PROFILE; + case 102: + return INTEGER_PROFILE; + case 103: + return DOUBLE_PROFILE; + case 0: + return FIELDINFO_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FieldInfoCase getFieldInfoCase() { + return FieldInfoCase.forNumber(fieldInfoCase_); + } + + public static final int NULL_RATIO_FIELD_NUMBER = 2; + private double nullRatio_; + /** + * + * + *
+         * The ratio of null rows against the rows in the sampled data.
+         * 
+ * + * double null_ratio = 2; + * + * @return The nullRatio. + */ + @java.lang.Override + public double getNullRatio() { + return nullRatio_; + } + + public static final int DISTINCT_RATIO_FIELD_NUMBER = 3; + private double distinctRatio_; + /** + * + * + *
+         * The ratio of rows that are distinct against the rows in the sampled
+         * data.
+         * 
+ * + * double distinct_ratio = 3; + * + * @return The distinctRatio. + */ + @java.lang.Override + public double getDistinctRatio() { + return distinctRatio_; + } + + public static final int TOP_N_VALUES_FIELD_NUMBER = 4; + private java.util.List< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue> + topNValues_; + /** + * + * + *
+         * The array of top N values of the field in the sampled data.
+         * Currently N is set as 10 or equal to distinct values in the field,
+         * whichever is smaller. This will be optional for complex non-groupable
+         * data-types such as JSON, ARRAY, JSON, STRUCT.
+         * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue> + getTopNValuesList() { + return topNValues_; + } + /** + * + * + *
+         * The array of top N values of the field in the sampled data.
+         * Currently N is set as 10 or equal to distinct values in the field,
+         * whichever is smaller. This will be optional for complex non-groupable
+         * data-types such as JSON, ARRAY, JSON, STRUCT.
+         * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValueOrBuilder> + getTopNValuesOrBuilderList() { + return topNValues_; + } + /** + * + * + *
+         * The array of top N values of the field in the sampled data.
+         * Currently N is set as 10 or equal to distinct values in the field,
+         * whichever is smaller. This will be optional for complex non-groupable
+         * data-types such as JSON, ARRAY, JSON, STRUCT.
+         * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + @java.lang.Override + public int getTopNValuesCount() { + return topNValues_.size(); + } + /** + * + * + *
+         * The array of top N values of the field in the sampled data.
+         * Currently N is set as 10 or equal to distinct values in the field,
+         * whichever is smaller. This will be optional for complex non-groupable
+         * data-types such as JSON, ARRAY, JSON, STRUCT.
+         * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + getTopNValues(int index) { + return topNValues_.get(index); + } + /** + * + * + *
+         * The array of top N values of the field in the sampled data.
+         * Currently N is set as 10 or equal to distinct values in the field,
+         * whichever is smaller. This will be optional for complex non-groupable
+         * data-types such as JSON, ARRAY, JSON, STRUCT.
+         * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValueOrBuilder + getTopNValuesOrBuilder(int index) { + return topNValues_.get(index); + } + + public static final int STRING_PROFILE_FIELD_NUMBER = 101; + /** + * + * + *
+         * The corresponding string field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + * + * @return Whether the stringProfile field is set. + */ + @java.lang.Override + public boolean hasStringProfile() { + return fieldInfoCase_ == 101; + } + /** + * + * + *
+         * The corresponding string field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + * + * @return The stringProfile. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + getStringProfile() { + if (fieldInfoCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo) + fieldInfo_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.getDefaultInstance(); + } + /** + * + * + *
+         * The corresponding string field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfoOrBuilder + getStringProfileOrBuilder() { + if (fieldInfoCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo) + fieldInfo_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.getDefaultInstance(); + } + + public static final int INTEGER_PROFILE_FIELD_NUMBER = 102; + /** + * + * + *
+         * The corresponding integer field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + * + * @return Whether the integerProfile field is set. + */ + @java.lang.Override + public boolean hasIntegerProfile() { + return fieldInfoCase_ == 102; + } + /** + * + * + *
+         * The corresponding integer field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + * + * @return The integerProfile. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + getIntegerProfile() { + if (fieldInfoCase_ == 102) { + return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo) + fieldInfo_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.getDefaultInstance(); + } + /** + * + * + *
+         * The corresponding integer field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfoOrBuilder + getIntegerProfileOrBuilder() { + if (fieldInfoCase_ == 102) { + return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo) + fieldInfo_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.getDefaultInstance(); + } + + public static final int DOUBLE_PROFILE_FIELD_NUMBER = 103; + /** + * + * + *
+         * The corresponding double field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + * + * @return Whether the doubleProfile field is set. + */ + @java.lang.Override + public boolean hasDoubleProfile() { + return fieldInfoCase_ == 103; + } + /** + * + * + *
+         * The corresponding double field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + * + * @return The doubleProfile. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + getDoubleProfile() { + if (fieldInfoCase_ == 103) { + return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo) + fieldInfo_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.getDefaultInstance(); + } + /** + * + * + *
+         * The corresponding double field profile.
+         * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfoOrBuilder + getDoubleProfileOrBuilder() { + if (fieldInfoCase_ == 103) { + return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo) + fieldInfo_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.getDefaultInstance(); + } + + 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 (java.lang.Double.doubleToRawLongBits(nullRatio_) != 0) { + output.writeDouble(2, nullRatio_); + } + if (java.lang.Double.doubleToRawLongBits(distinctRatio_) != 0) { + output.writeDouble(3, distinctRatio_); + } + for (int i = 0; i < topNValues_.size(); i++) { + output.writeMessage(4, topNValues_.get(i)); + } + if (fieldInfoCase_ == 101) { + output.writeMessage( + 101, + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo) + fieldInfo_); + } + if (fieldInfoCase_ == 102) { + output.writeMessage( + 102, + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo) + fieldInfo_); + } + if (fieldInfoCase_ == 103) { + output.writeMessage( + 103, + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo) + fieldInfo_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(nullRatio_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, nullRatio_); + } + if (java.lang.Double.doubleToRawLongBits(distinctRatio_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, distinctRatio_); + } + for (int i = 0; i < topNValues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, topNValues_.get(i)); + } + if (fieldInfoCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo) + fieldInfo_); + } + if (fieldInfoCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo) + fieldInfo_); + } + if (fieldInfoCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo) + fieldInfo_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo other = + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo) obj; + + if (java.lang.Double.doubleToLongBits(getNullRatio()) + != java.lang.Double.doubleToLongBits(other.getNullRatio())) return false; + if (java.lang.Double.doubleToLongBits(getDistinctRatio()) + != java.lang.Double.doubleToLongBits(other.getDistinctRatio())) return false; + if (!getTopNValuesList().equals(other.getTopNValuesList())) return false; + if (!getFieldInfoCase().equals(other.getFieldInfoCase())) return false; + switch (fieldInfoCase_) { + case 101: + if (!getStringProfile().equals(other.getStringProfile())) return false; + break; + case 102: + if (!getIntegerProfile().equals(other.getIntegerProfile())) return false; + break; + case 103: + if (!getDoubleProfile().equals(other.getDoubleProfile())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NULL_RATIO_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNullRatio())); + hash = (37 * hash) + DISTINCT_RATIO_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDistinctRatio())); + if (getTopNValuesCount() > 0) { + hash = (37 * hash) + TOP_N_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getTopNValuesList().hashCode(); + } + switch (fieldInfoCase_) { + case 101: + hash = (37 * hash) + STRING_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getStringProfile().hashCode(); + break; + case 102: + hash = (37 * hash) + INTEGER_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getIntegerProfile().hashCode(); + break; + case 103: + hash = (37 * hash) + DOUBLE_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getDoubleProfile().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo 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; + } + /** + * + * + *
+         * ProfileInfo defines the profile information for each schema field type.
+         * 
+ * + * Protobuf type {@code + * google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo) + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.Builder + .class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + nullRatio_ = 0D; + + distinctRatio_ = 0D; + + if (topNValuesBuilder_ == null) { + topNValues_ = java.util.Collections.emptyList(); + } else { + topNValues_ = null; + topNValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (stringProfileBuilder_ != null) { + stringProfileBuilder_.clear(); + } + if (integerProfileBuilder_ != null) { + integerProfileBuilder_.clear(); + } + if (doubleProfileBuilder_ != null) { + doubleProfileBuilder_.clear(); + } + fieldInfoCase_ = 0; + fieldInfo_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo build() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + buildPartial() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo result = + new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo(this); + int from_bitField0_ = bitField0_; + result.nullRatio_ = nullRatio_; + result.distinctRatio_ = distinctRatio_; + if (topNValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + topNValues_ = java.util.Collections.unmodifiableList(topNValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.topNValues_ = topNValues_; + } else { + result.topNValues_ = topNValuesBuilder_.build(); + } + if (fieldInfoCase_ == 101) { + if (stringProfileBuilder_ == null) { + result.fieldInfo_ = fieldInfo_; + } else { + result.fieldInfo_ = stringProfileBuilder_.build(); + } + } + if (fieldInfoCase_ == 102) { + if (integerProfileBuilder_ == null) { + result.fieldInfo_ = fieldInfo_; + } else { + result.fieldInfo_ = integerProfileBuilder_.build(); + } + } + if (fieldInfoCase_ == 103) { + if (doubleProfileBuilder_ == null) { + result.fieldInfo_ = fieldInfo_; + } else { + result.fieldInfo_ = doubleProfileBuilder_.build(); + } + } + result.fieldInfoCase_ = fieldInfoCase_; + 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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo other) { + if (other + == com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .getDefaultInstance()) return this; + if (other.getNullRatio() != 0D) { + setNullRatio(other.getNullRatio()); + } + if (other.getDistinctRatio() != 0D) { + setDistinctRatio(other.getDistinctRatio()); + } + if (topNValuesBuilder_ == null) { + if (!other.topNValues_.isEmpty()) { + if (topNValues_.isEmpty()) { + topNValues_ = other.topNValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTopNValuesIsMutable(); + topNValues_.addAll(other.topNValues_); + } + onChanged(); + } + } else { + if (!other.topNValues_.isEmpty()) { + if (topNValuesBuilder_.isEmpty()) { + topNValuesBuilder_.dispose(); + topNValuesBuilder_ = null; + topNValues_ = other.topNValues_; + bitField0_ = (bitField0_ & ~0x00000001); + topNValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTopNValuesFieldBuilder() + : null; + } else { + topNValuesBuilder_.addAllMessages(other.topNValues_); + } + } + } + switch (other.getFieldInfoCase()) { + case STRING_PROFILE: + { + mergeStringProfile(other.getStringProfile()); + break; + } + case INTEGER_PROFILE: + { + mergeIntegerProfile(other.getIntegerProfile()); + break; + } + case DOUBLE_PROFILE: + { + mergeDoubleProfile(other.getDoubleProfile()); + break; + } + case FIELDINFO_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 17: + { + nullRatio_ = input.readDouble(); + + break; + } // case 17 + case 25: + { + distinctRatio_ = input.readDouble(); + + break; + } // case 25 + case 34: + { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue + m = + input.readMessage( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + .ProfileInfo.TopNValue.parser(), + extensionRegistry); + if (topNValuesBuilder_ == null) { + ensureTopNValuesIsMutable(); + topNValues_.add(m); + } else { + topNValuesBuilder_.addMessage(m); + } + break; + } // case 34 + case 810: + { + input.readMessage( + getStringProfileFieldBuilder().getBuilder(), extensionRegistry); + fieldInfoCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage( + getIntegerProfileFieldBuilder().getBuilder(), extensionRegistry); + fieldInfoCase_ = 102; + break; + } // case 818 + case 826: + { + input.readMessage( + getDoubleProfileFieldBuilder().getBuilder(), extensionRegistry); + fieldInfoCase_ = 103; + break; + } // case 826 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int fieldInfoCase_ = 0; + private java.lang.Object fieldInfo_; + + public FieldInfoCase getFieldInfoCase() { + return FieldInfoCase.forNumber(fieldInfoCase_); + } + + public Builder clearFieldInfo() { + fieldInfoCase_ = 0; + fieldInfo_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private double nullRatio_; + /** + * + * + *
+           * The ratio of null rows against the rows in the sampled data.
+           * 
+ * + * double null_ratio = 2; + * + * @return The nullRatio. + */ + @java.lang.Override + public double getNullRatio() { + return nullRatio_; + } + /** + * + * + *
+           * The ratio of null rows against the rows in the sampled data.
+           * 
+ * + * double null_ratio = 2; + * + * @param value The nullRatio to set. + * @return This builder for chaining. + */ + public Builder setNullRatio(double value) { + + nullRatio_ = value; + onChanged(); + return this; + } + /** + * + * + *
+           * The ratio of null rows against the rows in the sampled data.
+           * 
+ * + * double null_ratio = 2; + * + * @return This builder for chaining. + */ + public Builder clearNullRatio() { + + nullRatio_ = 0D; + onChanged(); + return this; + } + + private double distinctRatio_; + /** + * + * + *
+           * The ratio of rows that are distinct against the rows in the sampled
+           * data.
+           * 
+ * + * double distinct_ratio = 3; + * + * @return The distinctRatio. + */ + @java.lang.Override + public double getDistinctRatio() { + return distinctRatio_; + } + /** + * + * + *
+           * The ratio of rows that are distinct against the rows in the sampled
+           * data.
+           * 
+ * + * double distinct_ratio = 3; + * + * @param value The distinctRatio to set. + * @return This builder for chaining. + */ + public Builder setDistinctRatio(double value) { + + distinctRatio_ = value; + onChanged(); + return this; + } + /** + * + * + *
+           * The ratio of rows that are distinct against the rows in the sampled
+           * data.
+           * 
+ * + * double distinct_ratio = 3; + * + * @return This builder for chaining. + */ + public Builder clearDistinctRatio() { + + distinctRatio_ = 0D; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue> + topNValues_ = java.util.Collections.emptyList(); + + private void ensureTopNValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + topNValues_ = + new java.util.ArrayList< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue>(topNValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + .Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValueOrBuilder> + topNValuesBuilder_; + + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public java.util.List< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue> + getTopNValuesList() { + if (topNValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(topNValues_); + } else { + return topNValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public int getTopNValuesCount() { + if (topNValuesBuilder_ == null) { + return topNValues_.size(); + } else { + return topNValuesBuilder_.getCount(); + } + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + getTopNValues(int index) { + if (topNValuesBuilder_ == null) { + return topNValues_.get(index); + } else { + return topNValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public Builder setTopNValues( + int index, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + value) { + if (topNValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopNValuesIsMutable(); + topNValues_.set(index, value); + onChanged(); + } else { + topNValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public Builder setTopNValues( + int index, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + .Builder + builderForValue) { + if (topNValuesBuilder_ == null) { + ensureTopNValuesIsMutable(); + topNValues_.set(index, builderForValue.build()); + onChanged(); + } else { + topNValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public Builder addTopNValues( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + value) { + if (topNValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopNValuesIsMutable(); + topNValues_.add(value); + onChanged(); + } else { + topNValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public Builder addTopNValues( + int index, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + value) { + if (topNValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopNValuesIsMutable(); + topNValues_.add(index, value); + onChanged(); + } else { + topNValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public Builder addTopNValues( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + .Builder + builderForValue) { + if (topNValuesBuilder_ == null) { + ensureTopNValuesIsMutable(); + topNValues_.add(builderForValue.build()); + onChanged(); + } else { + topNValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public Builder addTopNValues( + int index, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + .Builder + builderForValue) { + if (topNValuesBuilder_ == null) { + ensureTopNValuesIsMutable(); + topNValues_.add(index, builderForValue.build()); + onChanged(); + } else { + topNValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public Builder addAllTopNValues( + java.lang.Iterable< + ? extends + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue> + values) { + if (topNValuesBuilder_ == null) { + ensureTopNValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topNValues_); + onChanged(); + } else { + topNValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public Builder clearTopNValues() { + if (topNValuesBuilder_ == null) { + topNValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + topNValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public Builder removeTopNValues(int index) { + if (topNValuesBuilder_ == null) { + ensureTopNValuesIsMutable(); + topNValues_.remove(index); + onChanged(); + } else { + topNValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + .Builder + getTopNValuesBuilder(int index) { + return getTopNValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValueOrBuilder + getTopNValuesOrBuilder(int index) { + if (topNValuesBuilder_ == null) { + return topNValues_.get(index); + } else { + return topNValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValueOrBuilder> + getTopNValuesOrBuilderList() { + if (topNValuesBuilder_ != null) { + return topNValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(topNValues_); + } + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + .Builder + addTopNValuesBuilder() { + return getTopNValuesFieldBuilder() + .addBuilder( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue.getDefaultInstance()); + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + .Builder + addTopNValuesBuilder(int index) { + return getTopNValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue.getDefaultInstance()); + } + /** + * + * + *
+           * The array of top N values of the field in the sampled data.
+           * Currently N is set as 10 or equal to distinct values in the field,
+           * whichever is smaller. This will be optional for complex non-groupable
+           * data-types such as JSON, ARRAY, JSON, STRUCT.
+           * 
+ * + * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4; + * + */ + public java.util.List< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + .Builder> + getTopNValuesBuilderList() { + return getTopNValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + .Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValueOrBuilder> + getTopNValuesFieldBuilder() { + if (topNValuesBuilder_ == null) { + topNValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValue.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .TopNValueOrBuilder>( + topNValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + topNValues_ = null; + } + return topNValuesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfoOrBuilder> + stringProfileBuilder_; + /** + * + * + *
+           * The corresponding string field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + * + * @return Whether the stringProfile field is set. + */ + @java.lang.Override + public boolean hasStringProfile() { + return fieldInfoCase_ == 101; + } + /** + * + * + *
+           * The corresponding string field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + * + * @return The stringProfile. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + getStringProfile() { + if (stringProfileBuilder_ == null) { + if (fieldInfoCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo) + fieldInfo_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.getDefaultInstance(); + } else { + if (fieldInfoCase_ == 101) { + return stringProfileBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.getDefaultInstance(); + } + } + /** + * + * + *
+           * The corresponding string field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + */ + public Builder setStringProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + value) { + if (stringProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldInfo_ = value; + onChanged(); + } else { + stringProfileBuilder_.setMessage(value); + } + fieldInfoCase_ = 101; + return this; + } + /** + * + * + *
+           * The corresponding string field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + */ + public Builder setStringProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.Builder + builderForValue) { + if (stringProfileBuilder_ == null) { + fieldInfo_ = builderForValue.build(); + onChanged(); + } else { + stringProfileBuilder_.setMessage(builderForValue.build()); + } + fieldInfoCase_ = 101; + return this; + } + /** + * + * + *
+           * The corresponding string field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + */ + public Builder mergeStringProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo + value) { + if (stringProfileBuilder_ == null) { + if (fieldInfoCase_ == 101 + && fieldInfo_ + != com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.getDefaultInstance()) { + fieldInfo_ = + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.newBuilder( + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + .ProfileInfo.StringFieldInfo) + fieldInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + fieldInfo_ = value; + } + onChanged(); + } else { + if (fieldInfoCase_ == 101) { + stringProfileBuilder_.mergeFrom(value); + } else { + stringProfileBuilder_.setMessage(value); + } + } + fieldInfoCase_ = 101; + return this; + } + /** + * + * + *
+           * The corresponding string field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + */ + public Builder clearStringProfile() { + if (stringProfileBuilder_ == null) { + if (fieldInfoCase_ == 101) { + fieldInfoCase_ = 0; + fieldInfo_ = null; + onChanged(); + } + } else { + if (fieldInfoCase_ == 101) { + fieldInfoCase_ = 0; + fieldInfo_ = null; + } + stringProfileBuilder_.clear(); + } + return this; + } + /** + * + * + *
+           * The corresponding string field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.Builder + getStringProfileBuilder() { + return getStringProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+           * The corresponding string field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfoOrBuilder + getStringProfileOrBuilder() { + if ((fieldInfoCase_ == 101) && (stringProfileBuilder_ != null)) { + return stringProfileBuilder_.getMessageOrBuilder(); + } else { + if (fieldInfoCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo) + fieldInfo_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.getDefaultInstance(); + } + } + /** + * + * + *
+           * The corresponding string field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfoOrBuilder> + getStringProfileFieldBuilder() { + if (stringProfileBuilder_ == null) { + if (!(fieldInfoCase_ == 101)) { + fieldInfo_ = + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.getDefaultInstance(); + } + stringProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfoOrBuilder>( + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .StringFieldInfo) + fieldInfo_, + getParentForChildren(), + isClean()); + fieldInfo_ = null; + } + fieldInfoCase_ = 101; + onChanged(); + ; + return stringProfileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfoOrBuilder> + integerProfileBuilder_; + /** + * + * + *
+           * The corresponding integer field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + * + * @return Whether the integerProfile field is set. + */ + @java.lang.Override + public boolean hasIntegerProfile() { + return fieldInfoCase_ == 102; + } + /** + * + * + *
+           * The corresponding integer field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + * + * @return The integerProfile. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + getIntegerProfile() { + if (integerProfileBuilder_ == null) { + if (fieldInfoCase_ == 102) { + return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo) + fieldInfo_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.getDefaultInstance(); + } else { + if (fieldInfoCase_ == 102) { + return integerProfileBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.getDefaultInstance(); + } + } + /** + * + * + *
+           * The corresponding integer field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + */ + public Builder setIntegerProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + value) { + if (integerProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldInfo_ = value; + onChanged(); + } else { + integerProfileBuilder_.setMessage(value); + } + fieldInfoCase_ = 102; + return this; + } + /** + * + * + *
+           * The corresponding integer field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + */ + public Builder setIntegerProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.Builder + builderForValue) { + if (integerProfileBuilder_ == null) { + fieldInfo_ = builderForValue.build(); + onChanged(); + } else { + integerProfileBuilder_.setMessage(builderForValue.build()); + } + fieldInfoCase_ = 102; + return this; + } + /** + * + * + *
+           * The corresponding integer field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + */ + public Builder mergeIntegerProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo + value) { + if (integerProfileBuilder_ == null) { + if (fieldInfoCase_ == 102 + && fieldInfo_ + != com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.getDefaultInstance()) { + fieldInfo_ = + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.newBuilder( + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + .ProfileInfo.IntegerFieldInfo) + fieldInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + fieldInfo_ = value; + } + onChanged(); + } else { + if (fieldInfoCase_ == 102) { + integerProfileBuilder_.mergeFrom(value); + } else { + integerProfileBuilder_.setMessage(value); + } + } + fieldInfoCase_ = 102; + return this; + } + /** + * + * + *
+           * The corresponding integer field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + */ + public Builder clearIntegerProfile() { + if (integerProfileBuilder_ == null) { + if (fieldInfoCase_ == 102) { + fieldInfoCase_ = 0; + fieldInfo_ = null; + onChanged(); + } + } else { + if (fieldInfoCase_ == 102) { + fieldInfoCase_ = 0; + fieldInfo_ = null; + } + integerProfileBuilder_.clear(); + } + return this; + } + /** + * + * + *
+           * The corresponding integer field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.Builder + getIntegerProfileBuilder() { + return getIntegerProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+           * The corresponding integer field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfoOrBuilder + getIntegerProfileOrBuilder() { + if ((fieldInfoCase_ == 102) && (integerProfileBuilder_ != null)) { + return integerProfileBuilder_.getMessageOrBuilder(); + } else { + if (fieldInfoCase_ == 102) { + return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo) + fieldInfo_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.getDefaultInstance(); + } + } + /** + * + * + *
+           * The corresponding integer field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfoOrBuilder> + getIntegerProfileFieldBuilder() { + if (integerProfileBuilder_ == null) { + if (!(fieldInfoCase_ == 102)) { + fieldInfo_ = + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.getDefaultInstance(); + } + integerProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfoOrBuilder>( + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .IntegerFieldInfo) + fieldInfo_, + getParentForChildren(), + isClean()); + fieldInfo_ = null; + } + fieldInfoCase_ = 102; + onChanged(); + ; + return integerProfileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfoOrBuilder> + doubleProfileBuilder_; + /** + * + * + *
+           * The corresponding double field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + * + * @return Whether the doubleProfile field is set. + */ + @java.lang.Override + public boolean hasDoubleProfile() { + return fieldInfoCase_ == 103; + } + /** + * + * + *
+           * The corresponding double field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + * + * @return The doubleProfile. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + getDoubleProfile() { + if (doubleProfileBuilder_ == null) { + if (fieldInfoCase_ == 103) { + return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo) + fieldInfo_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.getDefaultInstance(); + } else { + if (fieldInfoCase_ == 103) { + return doubleProfileBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.getDefaultInstance(); + } + } + /** + * + * + *
+           * The corresponding double field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + */ + public Builder setDoubleProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + value) { + if (doubleProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldInfo_ = value; + onChanged(); + } else { + doubleProfileBuilder_.setMessage(value); + } + fieldInfoCase_ = 103; + return this; + } + /** + * + * + *
+           * The corresponding double field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + */ + public Builder setDoubleProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.Builder + builderForValue) { + if (doubleProfileBuilder_ == null) { + fieldInfo_ = builderForValue.build(); + onChanged(); + } else { + doubleProfileBuilder_.setMessage(builderForValue.build()); + } + fieldInfoCase_ = 103; + return this; + } + /** + * + * + *
+           * The corresponding double field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + */ + public Builder mergeDoubleProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo + value) { + if (doubleProfileBuilder_ == null) { + if (fieldInfoCase_ == 103 + && fieldInfo_ + != com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.getDefaultInstance()) { + fieldInfo_ = + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.newBuilder( + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + .ProfileInfo.DoubleFieldInfo) + fieldInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + fieldInfo_ = value; + } + onChanged(); + } else { + if (fieldInfoCase_ == 103) { + doubleProfileBuilder_.mergeFrom(value); + } else { + doubleProfileBuilder_.setMessage(value); + } + } + fieldInfoCase_ = 103; + return this; + } + /** + * + * + *
+           * The corresponding double field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + */ + public Builder clearDoubleProfile() { + if (doubleProfileBuilder_ == null) { + if (fieldInfoCase_ == 103) { + fieldInfoCase_ = 0; + fieldInfo_ = null; + onChanged(); + } + } else { + if (fieldInfoCase_ == 103) { + fieldInfoCase_ = 0; + fieldInfo_ = null; + } + doubleProfileBuilder_.clear(); + } + return this; + } + /** + * + * + *
+           * The corresponding double field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.Builder + getDoubleProfileBuilder() { + return getDoubleProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+           * The corresponding double field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfoOrBuilder + getDoubleProfileOrBuilder() { + if ((fieldInfoCase_ == 103) && (doubleProfileBuilder_ != null)) { + return doubleProfileBuilder_.getMessageOrBuilder(); + } else { + if (fieldInfoCase_ == 103) { + return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo) + fieldInfo_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.getDefaultInstance(); + } + } + /** + * + * + *
+           * The corresponding double field profile.
+           * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfoOrBuilder> + getDoubleProfileFieldBuilder() { + if (doubleProfileBuilder_ == null) { + if (!(fieldInfoCase_ == 103)) { + fieldInfo_ = + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.getDefaultInstance(); + } + doubleProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfoOrBuilder>( + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .DoubleFieldInfo) + fieldInfo_, + getParentForChildren(), + isClean()); + fieldInfo_ = null; + } + fieldInfoCase_ = 103; + onChanged(); + ; + return doubleProfileBuilder_; + } + + @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.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo) + private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + .ProfileInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo(); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProfileInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+       * The name of the field.
+       * 
+ * + * string name = 1; + * + * @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; + } + } + /** + * + * + *
+       * The name of the field.
+       * 
+ * + * string name = 1; + * + * @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 TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object type_; + /** + * + * + *
+       * The field data type. Possible values include:
+       * * STRING
+       * * BYTE
+       * * INT64
+       * * INT32
+       * * INT16
+       * * DOUBLE
+       * * FLOAT
+       * * DECIMAL
+       * * BOOLEAN
+       * * BINARY
+       * * TIMESTAMP
+       * * DATE
+       * * TIME
+       * * NULL
+       * * RECORD
+       * 
+ * + * string type = 2; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + * + * + *
+       * The field data type. Possible values include:
+       * * STRING
+       * * BYTE
+       * * INT64
+       * * INT32
+       * * INT16
+       * * DOUBLE
+       * * FLOAT
+       * * DECIMAL
+       * * BOOLEAN
+       * * BINARY
+       * * TIMESTAMP
+       * * DATE
+       * * TIME
+       * * NULL
+       * * RECORD
+       * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODE_FIELD_NUMBER = 3; + private volatile java.lang.Object mode_; + /** + * + * + *
+       * The mode of the field. Its value will be:
+       * REQUIRED, if it is a required field.
+       * NULLABLE, if it is an optional field.
+       * REPEATED, if it is a repeated field.
+       * 
+ * + * string mode = 3; + * + * @return The mode. + */ + @java.lang.Override + public java.lang.String getMode() { + java.lang.Object ref = mode_; + 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(); + mode_ = s; + return s; + } + } + /** + * + * + *
+       * The mode of the field. Its value will be:
+       * REQUIRED, if it is a required field.
+       * NULLABLE, if it is an optional field.
+       * REPEATED, if it is a repeated field.
+       * 
+ * + * string mode = 3; + * + * @return The bytes for mode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModeBytes() { + java.lang.Object ref = mode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROFILE_FIELD_NUMBER = 4; + private com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile_; + /** + * + * + *
+       * The profile information for the corresponding field.
+       * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + * + * @return Whether the profile field is set. + */ + @java.lang.Override + public boolean hasProfile() { + return profile_ != null; + } + /** + * + * + *
+       * The profile information for the corresponding field.
+       * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + * + * @return The profile. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo getProfile() { + return profile_ == null + ? com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .getDefaultInstance() + : profile_; + } + /** + * + * + *
+       * The profile information for the corresponding field.
+       * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoOrBuilder + getProfileOrBuilder() { + return getProfile(); + } + + 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(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mode_); + } + if (profile_ != null) { + output.writeMessage(4, getProfile()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mode_); + } + if (profile_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProfile()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field other = + (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field) obj; + + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; + if (!getMode().equals(other.getMode())) return false; + if (hasProfile() != other.hasProfile()) return false; + if (hasProfile()) { + if (!getProfile().equals(other.getProfile())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + getMode().hashCode(); + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field 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.dataplex.v1.DataProfileResult.Profile.Field parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field 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.dataplex.v1.DataProfileResult.Profile.Field parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field 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.dataplex.v1.DataProfileResult.Profile.Field parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field 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.dataplex.v1.DataProfileResult.Profile.Field parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field 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.dataplex.v1.DataProfileResult.Profile.Field prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Represents a column field within a table schema.
+       * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult.Profile.Field} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field) + com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + type_ = ""; + + mode_ = ""; + + if (profileBuilder_ == null) { + profile_ = null; + } else { + profile_ = null; + profileBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field build() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field buildPartial() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field result = + new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field(this); + result.name_ = name_; + result.type_ = type_; + result.mode_ = mode_; + if (profileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = profileBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field) { + return mergeFrom((com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field other) { + if (other + == com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (!other.getMode().isEmpty()) { + mode_ = other.mode_; + onChanged(); + } + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + mode_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + input.readMessage(getProfileFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+         * The name of the field.
+         * 
+ * + * string name = 1; + * + * @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; + } + } + /** + * + * + *
+         * The name of the field.
+         * 
+ * + * string name = 1; + * + * @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; + } + } + /** + * + * + *
+         * The name of the field.
+         * 
+ * + * string name = 1; + * + * @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; + } + /** + * + * + *
+         * The name of the field.
+         * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+         * The name of the field.
+         * 
+ * + * string name = 1; + * + * @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 type_ = ""; + /** + * + * + *
+         * The field data type. Possible values include:
+         * * STRING
+         * * BYTE
+         * * INT64
+         * * INT32
+         * * INT16
+         * * DOUBLE
+         * * FLOAT
+         * * DECIMAL
+         * * BOOLEAN
+         * * BINARY
+         * * TIMESTAMP
+         * * DATE
+         * * TIME
+         * * NULL
+         * * RECORD
+         * 
+ * + * string type = 2; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The field data type. Possible values include:
+         * * STRING
+         * * BYTE
+         * * INT64
+         * * INT32
+         * * INT16
+         * * DOUBLE
+         * * FLOAT
+         * * DECIMAL
+         * * BOOLEAN
+         * * BINARY
+         * * TIMESTAMP
+         * * DATE
+         * * TIME
+         * * NULL
+         * * RECORD
+         * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The field data type. Possible values include:
+         * * STRING
+         * * BYTE
+         * * INT64
+         * * INT32
+         * * INT16
+         * * DOUBLE
+         * * FLOAT
+         * * DECIMAL
+         * * BOOLEAN
+         * * BINARY
+         * * TIMESTAMP
+         * * DATE
+         * * TIME
+         * * NULL
+         * * RECORD
+         * 
+ * + * string type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The field data type. Possible values include:
+         * * STRING
+         * * BYTE
+         * * INT64
+         * * INT32
+         * * INT16
+         * * DOUBLE
+         * * FLOAT
+         * * DECIMAL
+         * * BOOLEAN
+         * * BINARY
+         * * TIMESTAMP
+         * * DATE
+         * * TIME
+         * * NULL
+         * * RECORD
+         * 
+ * + * string type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * + * + *
+         * The field data type. Possible values include:
+         * * STRING
+         * * BYTE
+         * * INT64
+         * * INT32
+         * * INT16
+         * * DOUBLE
+         * * FLOAT
+         * * DECIMAL
+         * * BOOLEAN
+         * * BINARY
+         * * TIMESTAMP
+         * * DATE
+         * * TIME
+         * * NULL
+         * * RECORD
+         * 
+ * + * string type = 2; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private java.lang.Object mode_ = ""; + /** + * + * + *
+         * The mode of the field. Its value will be:
+         * REQUIRED, if it is a required field.
+         * NULLABLE, if it is an optional field.
+         * REPEATED, if it is a repeated field.
+         * 
+ * + * string mode = 3; + * + * @return The mode. + */ + public java.lang.String getMode() { + java.lang.Object ref = mode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The mode of the field. Its value will be:
+         * REQUIRED, if it is a required field.
+         * NULLABLE, if it is an optional field.
+         * REPEATED, if it is a repeated field.
+         * 
+ * + * string mode = 3; + * + * @return The bytes for mode. + */ + public com.google.protobuf.ByteString getModeBytes() { + java.lang.Object ref = mode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The mode of the field. Its value will be:
+         * REQUIRED, if it is a required field.
+         * NULLABLE, if it is an optional field.
+         * REPEATED, if it is a repeated field.
+         * 
+ * + * string mode = 3; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * The mode of the field. Its value will be:
+         * REQUIRED, if it is a required field.
+         * NULLABLE, if it is an optional field.
+         * REPEATED, if it is a repeated field.
+         * 
+ * + * string mode = 3; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + + mode_ = getDefaultInstance().getMode(); + onChanged(); + return this; + } + /** + * + * + *
+         * The mode of the field. Its value will be:
+         * REQUIRED, if it is a required field.
+         * NULLABLE, if it is an optional field.
+         * REPEATED, if it is a repeated field.
+         * 
+ * + * string mode = 3; + * + * @param value The bytes for mode to set. + * @return This builder for chaining. + */ + public Builder setModeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mode_ = value; + onChanged(); + return this; + } + + private com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoOrBuilder> + profileBuilder_; + /** + * + * + *
+         * The profile information for the corresponding field.
+         * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + * + * @return Whether the profile field is set. + */ + public boolean hasProfile() { + return profileBuilder_ != null || profile_ != null; + } + /** + * + * + *
+         * The profile information for the corresponding field.
+         * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + * + * @return The profile. + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + getProfile() { + if (profileBuilder_ == null) { + return profile_ == null + ? com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .getDefaultInstance() + : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * + * + *
+         * The profile information for the corresponding field.
+         * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + */ + public Builder setProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + profileBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+         * The profile information for the corresponding field.
+         * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + */ + public Builder setProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.Builder + builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+         * The profile information for the corresponding field.
+         * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + */ + public Builder mergeProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo value) { + if (profileBuilder_ == null) { + if (profile_ != null) { + profile_ = + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + profileBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+         * The profile information for the corresponding field.
+         * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + */ + public Builder clearProfile() { + if (profileBuilder_ == null) { + profile_ = null; + onChanged(); + } else { + profile_ = null; + profileBuilder_ = null; + } + + return this; + } + /** + * + * + *
+         * The profile information for the corresponding field.
+         * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.Builder + getProfileBuilder() { + + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * The profile information for the corresponding field.
+         * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoOrBuilder + getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null + ? com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .getDefaultInstance() + : profile_; + } + } + /** + * + * + *
+         * The profile information for the corresponding field.
+         * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + .Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + .ProfileInfoOrBuilder>(getProfile(), getParentForChildren(), isClean()); + profile_ = null; + } + return profileBuilder_; + } + + @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.dataplex.v1.DataProfileResult.Profile.Field) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field) + private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field(); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Field parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FIELDS_FIELD_NUMBER = 2; + private java.util.List fields_; + /** + * + * + *
+     * The sequence of fields describing data in table entities.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + @java.lang.Override + public java.util.List + getFieldsList() { + return fields_; + } + /** + * + * + *
+     * The sequence of fields describing data in table entities.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder> + getFieldsOrBuilderList() { + return fields_; + } + /** + * + * + *
+     * The sequence of fields describing data in table entities.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + @java.lang.Override + public int getFieldsCount() { + return fields_.size(); + } + /** + * + * + *
+     * The sequence of fields describing data in table entities.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field getFields(int index) { + return fields_.get(index); + } + /** + * + * + *
+     * The sequence of fields describing data in table entities.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder getFieldsOrBuilder( + int index) { + return fields_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < fields_.size(); i++) { + output.writeMessage(2, fields_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < fields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, fields_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataProfileResult.Profile)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataProfileResult.Profile other = + (com.google.cloud.dataplex.v1.DataProfileResult.Profile) obj; + + if (!getFieldsList().equals(other.getFieldsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile 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.dataplex.v1.DataProfileResult.Profile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile 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.dataplex.v1.DataProfileResult.Profile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile 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.dataplex.v1.DataProfileResult.Profile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile 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.dataplex.v1.DataProfileResult.Profile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile 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.dataplex.v1.DataProfileResult.Profile 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; + } + /** + * + * + *
+     * Profile information describing the structure and layout of the data
+     * and contains the profile info.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult.Profile} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile) + com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.class, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataProfileResult.Profile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + } else { + fields_ = null; + fieldsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataProfileResult.Profile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile build() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile buildPartial() { + com.google.cloud.dataplex.v1.DataProfileResult.Profile result = + new com.google.cloud.dataplex.v1.DataProfileResult.Profile(this); + int from_bitField0_ = bitField0_; + if (fieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fields_ = fields_; + } else { + result.fields_ = fieldsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataProfileResult.Profile) { + return mergeFrom((com.google.cloud.dataplex.v1.DataProfileResult.Profile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataProfileResult.Profile other) { + if (other == com.google.cloud.dataplex.v1.DataProfileResult.Profile.getDefaultInstance()) + return this; + if (fieldsBuilder_ == null) { + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + } else { + if (!other.fields_.isEmpty()) { + if (fieldsBuilder_.isEmpty()) { + fieldsBuilder_.dispose(); + fieldsBuilder_ = null; + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; + } else { + fieldsBuilder_.addAllMessages(other.fields_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field m = + input.readMessage( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List fields_ = + java.util.Collections.emptyList(); + + private void ensureFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fields_ = + new java.util.ArrayList( + fields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder> + fieldsBuilder_; + + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public java.util.List + getFieldsList() { + if (fieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fields_); + } else { + return fieldsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public int getFieldsCount() { + if (fieldsBuilder_ == null) { + return fields_.size(); + } else { + return fieldsBuilder_.getCount(); + } + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field getFields(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public Builder setFields( + int index, com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.set(index, value); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public Builder setFields( + int index, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public Builder addFields(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(value); + onChanged(); + } else { + fieldsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public Builder addFields( + int index, com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(index, value); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public Builder addFields( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public Builder addFields( + int index, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public Builder addAllFields( + java.lang.Iterable + values) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + onChanged(); + } else { + fieldsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public Builder clearFields() { + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fieldsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public Builder removeFields(int index) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.remove(index); + onChanged(); + } else { + fieldsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder getFieldsBuilder( + int index) { + return getFieldsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder + getFieldsOrBuilder(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public java.util.List< + ? extends com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder> + getFieldsOrBuilderList() { + if (fieldsBuilder_ != null) { + return fieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fields_); + } + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder + addFieldsBuilder() { + return getFieldsFieldBuilder() + .addBuilder( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.getDefaultInstance()); + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder addFieldsBuilder( + int index) { + return getFieldsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.getDefaultInstance()); + } + /** + * + * + *
+       * The sequence of fields describing data in table entities.
+       * 
+ * + * repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2; + */ + public java.util.List + getFieldsBuilderList() { + return getFieldsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder> + getFieldsFieldBuilder() { + if (fieldsBuilder_ == null) { + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder>( + fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + fields_ = null; + } + return fieldsBuilder_; + } + + @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.dataplex.v1.DataProfileResult.Profile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile) + private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataProfileResult.Profile(); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult.Profile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Profile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ROW_COUNT_FIELD_NUMBER = 3; + private long rowCount_; + /** + * + * + *
+   * The count of all rows in the sampled data.
+   * Return 0, if zero rows.
+   * 
+ * + * int64 row_count = 3; + * + * @return The rowCount. + */ + @java.lang.Override + public long getRowCount() { + return rowCount_; + } + + public static final int PROFILE_FIELD_NUMBER = 4; + private com.google.cloud.dataplex.v1.DataProfileResult.Profile profile_; + /** + * + * + *
+   * This represents the profile information per field.
+   * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + * + * @return Whether the profile field is set. + */ + @java.lang.Override + public boolean hasProfile() { + return profile_ != null; + } + /** + * + * + *
+   * This represents the profile information per field.
+   * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + * + * @return The profile. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.Profile getProfile() { + return profile_ == null + ? com.google.cloud.dataplex.v1.DataProfileResult.Profile.getDefaultInstance() + : profile_; + } + /** + * + * + *
+   * This represents the profile information per field.
+   * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder getProfileOrBuilder() { + return getProfile(); + } + + public static final int SCANNED_DATA_FIELD_NUMBER = 5; + private com.google.cloud.dataplex.v1.ScannedData scannedData_; + /** + * + * + *
+   * The data scanned for this profile.
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + * + * @return Whether the scannedData field is set. + */ + @java.lang.Override + public boolean hasScannedData() { + return scannedData_ != null; + } + /** + * + * + *
+   * The data scanned for this profile.
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + * + * @return The scannedData. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData getScannedData() { + return scannedData_ == null + ? com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance() + : scannedData_; + } + /** + * + * + *
+   * The data scanned for this profile.
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedDataOrBuilder getScannedDataOrBuilder() { + return getScannedData(); + } + + 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 (rowCount_ != 0L) { + output.writeInt64(3, rowCount_); + } + if (profile_ != null) { + output.writeMessage(4, getProfile()); + } + if (scannedData_ != null) { + output.writeMessage(5, getScannedData()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rowCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, rowCount_); + } + if (profile_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProfile()); + } + if (scannedData_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getScannedData()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataProfileResult)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataProfileResult other = + (com.google.cloud.dataplex.v1.DataProfileResult) obj; + + if (getRowCount() != other.getRowCount()) return false; + if (hasProfile() != other.hasProfile()) return false; + if (hasProfile()) { + if (!getProfile().equals(other.getProfile())) return false; + } + if (hasScannedData() != other.hasScannedData()) return false; + if (hasScannedData()) { + if (!getScannedData().equals(other.getScannedData())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + if (hasProfile()) { + hash = (37 * hash) + PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getProfile().hashCode(); + } + if (hasScannedData()) { + hash = (37 * hash) + SCANNED_DATA_FIELD_NUMBER; + hash = (53 * hash) + getScannedData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult 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.dataplex.v1.DataProfileResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult 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.dataplex.v1.DataProfileResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult 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.dataplex.v1.DataProfileResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult 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.dataplex.v1.DataProfileResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult 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.dataplex.v1.DataProfileResult 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; + } + /** + * + * + *
+   * DataProfileResult defines the output of DataProfileScan.
+   * Each field of the table will have field type specific profile result.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult) + com.google.cloud.dataplex.v1.DataProfileResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileResult.class, + com.google.cloud.dataplex.v1.DataProfileResult.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataProfileResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + rowCount_ = 0L; + + if (profileBuilder_ == null) { + profile_ = null; + } else { + profile_ = null; + profileBuilder_ = null; + } + if (scannedDataBuilder_ == null) { + scannedData_ = null; + } else { + scannedData_ = null; + scannedDataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult build() { + com.google.cloud.dataplex.v1.DataProfileResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult buildPartial() { + com.google.cloud.dataplex.v1.DataProfileResult result = + new com.google.cloud.dataplex.v1.DataProfileResult(this); + result.rowCount_ = rowCount_; + if (profileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = profileBuilder_.build(); + } + if (scannedDataBuilder_ == null) { + result.scannedData_ = scannedData_; + } else { + result.scannedData_ = scannedDataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataProfileResult) { + return mergeFrom((com.google.cloud.dataplex.v1.DataProfileResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataProfileResult other) { + if (other == com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance()) return this; + if (other.getRowCount() != 0L) { + setRowCount(other.getRowCount()); + } + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + if (other.hasScannedData()) { + mergeScannedData(other.getScannedData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 24: + { + rowCount_ = input.readInt64(); + + break; + } // case 24 + case 34: + { + input.readMessage(getProfileFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getScannedDataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private long rowCount_; + /** + * + * + *
+     * The count of all rows in the sampled data.
+     * Return 0, if zero rows.
+     * 
+ * + * int64 row_count = 3; + * + * @return The rowCount. + */ + @java.lang.Override + public long getRowCount() { + return rowCount_; + } + /** + * + * + *
+     * The count of all rows in the sampled data.
+     * Return 0, if zero rows.
+     * 
+ * + * int64 row_count = 3; + * + * @param value The rowCount to set. + * @return This builder for chaining. + */ + public Builder setRowCount(long value) { + + rowCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The count of all rows in the sampled data.
+     * Return 0, if zero rows.
+     * 
+ * + * int64 row_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearRowCount() { + + rowCount_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.dataplex.v1.DataProfileResult.Profile profile_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder> + profileBuilder_; + /** + * + * + *
+     * This represents the profile information per field.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + * + * @return Whether the profile field is set. + */ + public boolean hasProfile() { + return profileBuilder_ != null || profile_ != null; + } + /** + * + * + *
+     * This represents the profile information per field.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + * + * @return The profile. + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile getProfile() { + if (profileBuilder_ == null) { + return profile_ == null + ? com.google.cloud.dataplex.v1.DataProfileResult.Profile.getDefaultInstance() + : profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * + * + *
+     * This represents the profile information per field.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + */ + public Builder setProfile(com.google.cloud.dataplex.v1.DataProfileResult.Profile value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + profileBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * This represents the profile information per field.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + */ + public Builder setProfile( + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * This represents the profile information per field.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + */ + public Builder mergeProfile(com.google.cloud.dataplex.v1.DataProfileResult.Profile value) { + if (profileBuilder_ == null) { + if (profile_ != null) { + profile_ = + com.google.cloud.dataplex.v1.DataProfileResult.Profile.newBuilder(profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + profileBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * This represents the profile information per field.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + */ + public Builder clearProfile() { + if (profileBuilder_ == null) { + profile_ = null; + onChanged(); + } else { + profile_ = null; + profileBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * This represents the profile information per field.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder getProfileBuilder() { + + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * This represents the profile information per field.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + */ + public com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_ == null + ? com.google.cloud.dataplex.v1.DataProfileResult.Profile.getDefaultInstance() + : profile_; + } + } + /** + * + * + *
+     * This represents the profile information per field.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult.Profile, + com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder, + com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder>( + getProfile(), getParentForChildren(), isClean()); + profile_ = null; + } + return profileBuilder_; + } + + private com.google.cloud.dataplex.v1.ScannedData scannedData_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.ScannedData, + com.google.cloud.dataplex.v1.ScannedData.Builder, + com.google.cloud.dataplex.v1.ScannedDataOrBuilder> + scannedDataBuilder_; + /** + * + * + *
+     * The data scanned for this profile.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + * + * @return Whether the scannedData field is set. + */ + public boolean hasScannedData() { + return scannedDataBuilder_ != null || scannedData_ != null; + } + /** + * + * + *
+     * The data scanned for this profile.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + * + * @return The scannedData. + */ + public com.google.cloud.dataplex.v1.ScannedData getScannedData() { + if (scannedDataBuilder_ == null) { + return scannedData_ == null + ? com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance() + : scannedData_; + } else { + return scannedDataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The data scanned for this profile.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + */ + public Builder setScannedData(com.google.cloud.dataplex.v1.ScannedData value) { + if (scannedDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scannedData_ = value; + onChanged(); + } else { + scannedDataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The data scanned for this profile.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + */ + public Builder setScannedData( + com.google.cloud.dataplex.v1.ScannedData.Builder builderForValue) { + if (scannedDataBuilder_ == null) { + scannedData_ = builderForValue.build(); + onChanged(); + } else { + scannedDataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The data scanned for this profile.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + */ + public Builder mergeScannedData(com.google.cloud.dataplex.v1.ScannedData value) { + if (scannedDataBuilder_ == null) { + if (scannedData_ != null) { + scannedData_ = + com.google.cloud.dataplex.v1.ScannedData.newBuilder(scannedData_) + .mergeFrom(value) + .buildPartial(); + } else { + scannedData_ = value; + } + onChanged(); + } else { + scannedDataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The data scanned for this profile.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + */ + public Builder clearScannedData() { + if (scannedDataBuilder_ == null) { + scannedData_ = null; + onChanged(); + } else { + scannedData_ = null; + scannedDataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The data scanned for this profile.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + */ + public com.google.cloud.dataplex.v1.ScannedData.Builder getScannedDataBuilder() { + + onChanged(); + return getScannedDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The data scanned for this profile.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + */ + public com.google.cloud.dataplex.v1.ScannedDataOrBuilder getScannedDataOrBuilder() { + if (scannedDataBuilder_ != null) { + return scannedDataBuilder_.getMessageOrBuilder(); + } else { + return scannedData_ == null + ? com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance() + : scannedData_; + } + } + /** + * + * + *
+     * The data scanned for this profile.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.ScannedData, + com.google.cloud.dataplex.v1.ScannedData.Builder, + com.google.cloud.dataplex.v1.ScannedDataOrBuilder> + getScannedDataFieldBuilder() { + if (scannedDataBuilder_ == null) { + scannedDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.ScannedData, + com.google.cloud.dataplex.v1.ScannedData.Builder, + com.google.cloud.dataplex.v1.ScannedDataOrBuilder>( + getScannedData(), getParentForChildren(), isClean()); + scannedData_ = null; + } + return scannedDataBuilder_; + } + + @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.dataplex.v1.DataProfileResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult) + private static final com.google.cloud.dataplex.v1.DataProfileResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataProfileResult(); + } + + public static com.google.cloud.dataplex.v1.DataProfileResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataProfileResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResultOrBuilder.java new file mode 100644 index 000000000000..5c57f3ae4c3a --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileResultOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/dataplex/v1/data_profile.proto + +package com.google.cloud.dataplex.v1; + +public interface DataProfileResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The count of all rows in the sampled data.
+   * Return 0, if zero rows.
+   * 
+ * + * int64 row_count = 3; + * + * @return The rowCount. + */ + long getRowCount(); + + /** + * + * + *
+   * This represents the profile information per field.
+   * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + * + * @return Whether the profile field is set. + */ + boolean hasProfile(); + /** + * + * + *
+   * This represents the profile information per field.
+   * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + * + * @return The profile. + */ + com.google.cloud.dataplex.v1.DataProfileResult.Profile getProfile(); + /** + * + * + *
+   * This represents the profile information per field.
+   * 
+ * + * .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4; + */ + com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder getProfileOrBuilder(); + + /** + * + * + *
+   * The data scanned for this profile.
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + * + * @return Whether the scannedData field is set. + */ + boolean hasScannedData(); + /** + * + * + *
+   * The data scanned for this profile.
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + * + * @return The scannedData. + */ + com.google.cloud.dataplex.v1.ScannedData getScannedData(); + /** + * + * + *
+   * The data scanned for this profile.
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 5; + */ + com.google.cloud.dataplex.v1.ScannedDataOrBuilder getScannedDataOrBuilder(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpec.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpec.java new file mode 100644 index 000000000000..41b4ef03a6a5 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpec.java @@ -0,0 +1,435 @@ +/* + * 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/dataplex/v1/data_profile.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * DataProfileScan related setting.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataProfileSpec} + */ +public final class DataProfileSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileSpec) + DataProfileSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataProfileSpec.newBuilder() to construct. + private DataProfileSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataProfileSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataProfileSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileSpec.class, + com.google.cloud.dataplex.v1.DataProfileSpec.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataProfileSpec)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataProfileSpec other = + (com.google.cloud.dataplex.v1.DataProfileSpec) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataProfileSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileSpec 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.dataplex.v1.DataProfileSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileSpec 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.dataplex.v1.DataProfileSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataProfileSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataProfileSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileSpec 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.dataplex.v1.DataProfileSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileSpec 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.dataplex.v1.DataProfileSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataProfileSpec 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.dataplex.v1.DataProfileSpec 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; + } + /** + * + * + *
+   * DataProfileScan related setting.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataProfileSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileSpec) + com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataProfileSpec.class, + com.google.cloud.dataplex.v1.DataProfileSpec.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataProfileSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataProfileProto + .internal_static_google_cloud_dataplex_v1_DataProfileSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileSpec getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileSpec build() { + com.google.cloud.dataplex.v1.DataProfileSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileSpec buildPartial() { + com.google.cloud.dataplex.v1.DataProfileSpec result = + new com.google.cloud.dataplex.v1.DataProfileSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataProfileSpec) { + return mergeFrom((com.google.cloud.dataplex.v1.DataProfileSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataProfileSpec other) { + if (other == com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataProfileSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileSpec) + private static final com.google.cloud.dataplex.v1.DataProfileSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataProfileSpec(); + } + + public static com.google.cloud.dataplex.v1.DataProfileSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataProfileSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpecOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpecOrBuilder.java new file mode 100644 index 000000000000..b081e920c537 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataProfileSpecOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataplex/v1/data_profile.proto + +package com.google.cloud.dataplex.v1; + +public interface DataProfileSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileSpec) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityDimensionResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityDimensionResult.java new file mode 100644 index 000000000000..04bbdebfe87c --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityDimensionResult.java @@ -0,0 +1,530 @@ +/* + * 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/dataplex/v1/data_quality.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * DataQualityDimensionResult provides a more detailed, per-dimension level view
+ * of the results.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityDimensionResult} + */ +public final class DataQualityDimensionResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityDimensionResult) + DataQualityDimensionResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataQualityDimensionResult.newBuilder() to construct. + private DataQualityDimensionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataQualityDimensionResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataQualityDimensionResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityDimensionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityDimensionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityDimensionResult.class, + com.google.cloud.dataplex.v1.DataQualityDimensionResult.Builder.class); + } + + public static final int PASSED_FIELD_NUMBER = 3; + private boolean passed_; + /** + * + * + *
+   * Whether the dimension passed or failed.
+   * 
+ * + * bool passed = 3; + * + * @return The passed. + */ + @java.lang.Override + public boolean getPassed() { + return passed_; + } + + 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 (passed_ != false) { + output.writeBool(3, passed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (passed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, passed_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataQualityDimensionResult)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityDimensionResult other = + (com.google.cloud.dataplex.v1.DataQualityDimensionResult) obj; + + if (getPassed() != other.getPassed()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PASSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPassed()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityDimensionResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityDimensionResult 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.dataplex.v1.DataQualityDimensionResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityDimensionResult 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.dataplex.v1.DataQualityDimensionResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityDimensionResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityDimensionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityDimensionResult 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.dataplex.v1.DataQualityDimensionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityDimensionResult 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.dataplex.v1.DataQualityDimensionResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityDimensionResult 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.dataplex.v1.DataQualityDimensionResult 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; + } + /** + * + * + *
+   * DataQualityDimensionResult provides a more detailed, per-dimension level view
+   * of the results.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityDimensionResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityDimensionResult) + com.google.cloud.dataplex.v1.DataQualityDimensionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityDimensionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityDimensionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityDimensionResult.class, + com.google.cloud.dataplex.v1.DataQualityDimensionResult.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataQualityDimensionResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + passed_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityDimensionResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityDimensionResult getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityDimensionResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityDimensionResult build() { + com.google.cloud.dataplex.v1.DataQualityDimensionResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityDimensionResult buildPartial() { + com.google.cloud.dataplex.v1.DataQualityDimensionResult result = + new com.google.cloud.dataplex.v1.DataQualityDimensionResult(this); + result.passed_ = passed_; + 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.dataplex.v1.DataQualityDimensionResult) { + return mergeFrom((com.google.cloud.dataplex.v1.DataQualityDimensionResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataQualityDimensionResult other) { + if (other == com.google.cloud.dataplex.v1.DataQualityDimensionResult.getDefaultInstance()) + return this; + if (other.getPassed() != false) { + setPassed(other.getPassed()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 24: + { + passed_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private boolean passed_; + /** + * + * + *
+     * Whether the dimension passed or failed.
+     * 
+ * + * bool passed = 3; + * + * @return The passed. + */ + @java.lang.Override + public boolean getPassed() { + return passed_; + } + /** + * + * + *
+     * Whether the dimension passed or failed.
+     * 
+ * + * bool passed = 3; + * + * @param value The passed to set. + * @return This builder for chaining. + */ + public Builder setPassed(boolean value) { + + passed_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the dimension passed or failed.
+     * 
+ * + * bool passed = 3; + * + * @return This builder for chaining. + */ + public Builder clearPassed() { + + passed_ = 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.dataplex.v1.DataQualityDimensionResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityDimensionResult) + private static final com.google.cloud.dataplex.v1.DataQualityDimensionResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityDimensionResult(); + } + + public static com.google.cloud.dataplex.v1.DataQualityDimensionResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataQualityDimensionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityDimensionResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityDimensionResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityDimensionResultOrBuilder.java new file mode 100644 index 000000000000..71effa1ba160 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityDimensionResultOrBuilder.java @@ -0,0 +1,38 @@ +/* + * 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/dataplex/v1/data_quality.proto + +package com.google.cloud.dataplex.v1; + +public interface DataQualityDimensionResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityDimensionResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the dimension passed or failed.
+   * 
+ * + * bool passed = 3; + * + * @return The passed. + */ + boolean getPassed(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityProto.java new file mode 100644 index 000000000000..7701635bef2d --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityProto.java @@ -0,0 +1,288 @@ +/* + * 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/dataplex/v1/data_quality.proto + +package com.google.cloud.dataplex.v1; + +public final class DataQualityProto { + private DataQualityProto() {} + + 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_dataplex_v1_DataQualitySpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualitySpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityDimensionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityDimensionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityRule_RangeExpectation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityRule_RangeExpectation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityRule_RegexExpectation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityRule_RegexExpectation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityRule_StatisticRangeExpectation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityRule_StatisticRangeExpectation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_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/dataplex/v1/data_quality." + + "proto\022\030google.cloud.dataplex.v1\032\037google/" + + "api/field_behavior.proto\032)google/cloud/d" + + "ataplex/v1/processing.proto\"K\n\017DataQuali" + + "tySpec\0228\n\005rules\030\001 \003(\0132).google.cloud.dat" + + "aplex.v1.DataQualityRule\"\375\001\n\021DataQuality" + + "Result\022\016\n\006passed\030\005 \001(\010\022H\n\ndimensions\030\002 \003" + + "(\01324.google.cloud.dataplex.v1.DataQualit" + + "yDimensionResult\022>\n\005rules\030\003 \003(\0132/.google" + + ".cloud.dataplex.v1.DataQualityRuleResult" + + "\022\021\n\trow_count\030\004 \001(\003\022;\n\014scanned_data\030\007 \001(" + + "\0132%.google.cloud.dataplex.v1.ScannedData" + + "\"\323\001\n\025DataQualityRuleResult\0227\n\004rule\030\001 \001(\013" + + "2).google.cloud.dataplex.v1.DataQualityR" + + "ule\022\016\n\006passed\030\007 \001(\010\022\027\n\017evaluated_count\030\t" + + " \001(\003\022\024\n\014passed_count\030\010 \001(\003\022\022\n\nnull_count" + + "\030\005 \001(\003\022\022\n\npass_ratio\030\006 \001(\001\022\032\n\022failing_ro" + + "ws_query\030\n \001(\t\",\n\032DataQualityDimensionRe" + + "sult\022\016\n\006passed\030\003 \001(\010\"\232\014\n\017DataQualityRule" + + "\022W\n\021range_expectation\030\001 \001(\0132:.google.clo" + + "ud.dataplex.v1.DataQualityRule.RangeExpe" + + "ctationH\000\022\\\n\024non_null_expectation\030\002 \001(\0132" + + "<.google.cloud.dataplex.v1.DataQualityRu" + + "le.NonNullExpectationH\000\022S\n\017set_expectati" + + "on\030\003 \001(\01328.google.cloud.dataplex.v1.Data" + + "QualityRule.SetExpectationH\000\022W\n\021regex_ex" + + "pectation\030\004 \001(\0132:.google.cloud.dataplex." + + "v1.DataQualityRule.RegexExpectationH\000\022a\n" + + "\026uniqueness_expectation\030d \001(\0132?.google.c" + + "loud.dataplex.v1.DataQualityRule.Uniquen" + + "essExpectationH\000\022j\n\033statistic_range_expe" + + "ctation\030e \001(\0132C.google.cloud.dataplex.v1" + + ".DataQualityRule.StatisticRangeExpectati" + + "onH\000\022g\n\031row_condition_expectation\030\310\001 \001(\013" + + "2A.google.cloud.dataplex.v1.DataQualityR" + + "ule.RowConditionExpectationH\000\022k\n\033table_c" + + "ondition_expectation\030\311\001 \001(\0132C.google.clo" + + "ud.dataplex.v1.DataQualityRule.TableCond" + + "itionExpectationH\000\022\024\n\006column\030\364\003 \001(\tB\003\340A\001" + + "\022\031\n\013ignore_null\030\365\003 \001(\010B\003\340A\001\022\027\n\tdimension" + + "\030\366\003 \001(\tB\003\340A\002\022\027\n\tthreshold\030\367\003 \001(\001B\003\340A\001\032\204\001" + + "\n\020RangeExpectation\022\026\n\tmin_value\030\001 \001(\tB\003\340" + + "A\001\022\026\n\tmax_value\030\002 \001(\tB\003\340A\001\022\037\n\022strict_min" + + "_enabled\030\003 \001(\010B\003\340A\001\022\037\n\022strict_max_enable" + + "d\030\004 \001(\010B\003\340A\001\032\024\n\022NonNullExpectation\032 \n\016Se" + + "tExpectation\022\016\n\006values\030\001 \003(\t\032!\n\020RegexExp" + + "ectation\022\r\n\005regex\030\001 \001(\t\032\027\n\025UniquenessExp" + + "ectation\032\251\002\n\031StatisticRangeExpectation\022f" + + "\n\tstatistic\030\001 \001(\0162S.google.cloud.dataple" + + "x.v1.DataQualityRule.StatisticRangeExpec" + + "tation.ColumnStatistic\022\021\n\tmin_value\030\002 \001(" + + "\t\022\021\n\tmax_value\030\003 \001(\t\022\032\n\022strict_min_enabl" + + "ed\030\004 \001(\010\022\032\n\022strict_max_enabled\030\005 \001(\010\"F\n\017" + + "ColumnStatistic\022\027\n\023STATISTIC_UNDEFINED\020\000" + + "\022\010\n\004MEAN\020\001\022\007\n\003MIN\020\002\022\007\n\003MAX\020\003\0321\n\027RowCondi" + + "tionExpectation\022\026\n\016sql_expression\030\001 \001(\t\032" + + "3\n\031TableConditionExpectation\022\026\n\016sql_expr" + + "ession\030\001 \001(\tB\013\n\trule_typeBt\n\034com.google." + + "cloud.dataplex.v1B\020DataQualityProtoP\001Z@g" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/dataplex/v1;dataplexb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.dataplex.v1.ProcessingProto.getDescriptor(), + }); + internal_static_google_cloud_dataplex_v1_DataQualitySpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataplex_v1_DataQualitySpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualitySpec_descriptor, + new java.lang.String[] { + "Rules", + }); + internal_static_google_cloud_dataplex_v1_DataQualityResult_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataplex_v1_DataQualityResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityResult_descriptor, + new java.lang.String[] { + "Passed", "Dimensions", "Rules", "RowCount", "ScannedData", + }); + internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_descriptor, + new java.lang.String[] { + "Rule", + "Passed", + "EvaluatedCount", + "PassedCount", + "NullCount", + "PassRatio", + "FailingRowsQuery", + }); + internal_static_google_cloud_dataplex_v1_DataQualityDimensionResult_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataplex_v1_DataQualityDimensionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityDimensionResult_descriptor, + new java.lang.String[] { + "Passed", + }); + internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataplex_v1_DataQualityRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor, + new java.lang.String[] { + "RangeExpectation", + "NonNullExpectation", + "SetExpectation", + "RegexExpectation", + "UniquenessExpectation", + "StatisticRangeExpectation", + "RowConditionExpectation", + "TableConditionExpectation", + "Column", + "IgnoreNull", + "Dimension", + "Threshold", + "RuleType", + }); + internal_static_google_cloud_dataplex_v1_DataQualityRule_RangeExpectation_descriptor = + internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataplex_v1_DataQualityRule_RangeExpectation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityRule_RangeExpectation_descriptor, + new java.lang.String[] { + "MinValue", "MaxValue", "StrictMinEnabled", "StrictMaxEnabled", + }); + internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_descriptor = + internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_descriptor = + internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_dataplex_v1_DataQualityRule_RegexExpectation_descriptor = + internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_dataplex_v1_DataQualityRule_RegexExpectation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityRule_RegexExpectation_descriptor, + new java.lang.String[] { + "Regex", + }); + internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_descriptor = + internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dataplex_v1_DataQualityRule_StatisticRangeExpectation_descriptor = + internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_dataplex_v1_DataQualityRule_StatisticRangeExpectation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityRule_StatisticRangeExpectation_descriptor, + new java.lang.String[] { + "Statistic", "MinValue", "MaxValue", "StrictMinEnabled", "StrictMaxEnabled", + }); + internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_descriptor = + internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_descriptor, + new java.lang.String[] { + "SqlExpression", + }); + internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_descriptor = + internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_descriptor, + new java.lang.String[] { + "SqlExpression", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.dataplex.v1.ProcessingProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResult.java new file mode 100644 index 000000000000..a8f242036a46 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResult.java @@ -0,0 +1,1883 @@ +/* + * 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/dataplex/v1/data_quality.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * The output of a DataQualityScan.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityResult} + */ +public final class DataQualityResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityResult) + DataQualityResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataQualityResult.newBuilder() to construct. + private DataQualityResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataQualityResult() { + dimensions_ = java.util.Collections.emptyList(); + rules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataQualityResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityResult.class, + com.google.cloud.dataplex.v1.DataQualityResult.Builder.class); + } + + public static final int PASSED_FIELD_NUMBER = 5; + private boolean passed_; + /** + * + * + *
+   * Overall data quality result -- `true` if all rules passed.
+   * 
+ * + * bool passed = 5; + * + * @return The passed. + */ + @java.lang.Override + public boolean getPassed() { + return passed_; + } + + public static final int DIMENSIONS_FIELD_NUMBER = 2; + private java.util.List dimensions_; + /** + * + * + *
+   * A list of results at the dimension-level.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + @java.lang.Override + public java.util.List + getDimensionsList() { + return dimensions_; + } + /** + * + * + *
+   * A list of results at the dimension-level.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + @java.lang.Override + public java.util.List + getDimensionsOrBuilderList() { + return dimensions_; + } + /** + * + * + *
+   * A list of results at the dimension-level.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + @java.lang.Override + public int getDimensionsCount() { + return dimensions_.size(); + } + /** + * + * + *
+   * A list of results at the dimension-level.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityDimensionResult getDimensions(int index) { + return dimensions_.get(index); + } + /** + * + * + *
+   * A list of results at the dimension-level.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityDimensionResultOrBuilder getDimensionsOrBuilder( + int index) { + return dimensions_.get(index); + } + + public static final int RULES_FIELD_NUMBER = 3; + private java.util.List rules_; + /** + * + * + *
+   * A list of all the rules in a job, and their results.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + @java.lang.Override + public java.util.List getRulesList() { + return rules_; + } + /** + * + * + *
+   * A list of all the rules in a job, and their results.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + @java.lang.Override + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + /** + * + * + *
+   * A list of all the rules in a job, and their results.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + @java.lang.Override + public int getRulesCount() { + return rules_.size(); + } + /** + * + * + *
+   * A list of all the rules in a job, and their results.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRuleResult getRules(int index) { + return rules_.get(index); + } + /** + * + * + *
+   * A list of all the rules in a job, and their results.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRuleResultOrBuilder getRulesOrBuilder(int index) { + return rules_.get(index); + } + + public static final int ROW_COUNT_FIELD_NUMBER = 4; + private long rowCount_; + /** + * + * + *
+   * The count of rows processed.
+   * 
+ * + * int64 row_count = 4; + * + * @return The rowCount. + */ + @java.lang.Override + public long getRowCount() { + return rowCount_; + } + + public static final int SCANNED_DATA_FIELD_NUMBER = 7; + private com.google.cloud.dataplex.v1.ScannedData scannedData_; + /** + * + * + *
+   * The data scanned for this result.
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + * + * @return Whether the scannedData field is set. + */ + @java.lang.Override + public boolean hasScannedData() { + return scannedData_ != null; + } + /** + * + * + *
+   * The data scanned for this result.
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + * + * @return The scannedData. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData getScannedData() { + return scannedData_ == null + ? com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance() + : scannedData_; + } + /** + * + * + *
+   * The data scanned for this result.
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedDataOrBuilder getScannedDataOrBuilder() { + return getScannedData(); + } + + 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 < dimensions_.size(); i++) { + output.writeMessage(2, dimensions_.get(i)); + } + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(3, rules_.get(i)); + } + if (rowCount_ != 0L) { + output.writeInt64(4, rowCount_); + } + if (passed_ != false) { + output.writeBool(5, passed_); + } + if (scannedData_ != null) { + output.writeMessage(7, getScannedData()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dimensions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dimensions_.get(i)); + } + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rules_.get(i)); + } + if (rowCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, rowCount_); + } + if (passed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, passed_); + } + if (scannedData_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getScannedData()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataQualityResult)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityResult other = + (com.google.cloud.dataplex.v1.DataQualityResult) obj; + + if (getPassed() != other.getPassed()) return false; + if (!getDimensionsList().equals(other.getDimensionsList())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (getRowCount() != other.getRowCount()) return false; + if (hasScannedData() != other.hasScannedData()) return false; + if (hasScannedData()) { + if (!getScannedData().equals(other.getScannedData())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PASSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPassed()); + if (getDimensionsCount() > 0) { + hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getDimensionsList().hashCode(); + } + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + if (hasScannedData()) { + hash = (37 * hash) + SCANNED_DATA_FIELD_NUMBER; + hash = (53 * hash) + getScannedData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult 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.dataplex.v1.DataQualityResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult 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.dataplex.v1.DataQualityResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult 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.dataplex.v1.DataQualityResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult 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.dataplex.v1.DataQualityResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult 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.dataplex.v1.DataQualityResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The output of a DataQualityScan.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityResult) + com.google.cloud.dataplex.v1.DataQualityResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityResult.class, + com.google.cloud.dataplex.v1.DataQualityResult.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataQualityResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + passed_ = false; + + if (dimensionsBuilder_ == null) { + dimensions_ = java.util.Collections.emptyList(); + } else { + dimensions_ = null; + dimensionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + } else { + rules_ = null; + rulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + rowCount_ = 0L; + + if (scannedDataBuilder_ == null) { + scannedData_ = null; + } else { + scannedData_ = null; + scannedDataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult build() { + com.google.cloud.dataplex.v1.DataQualityResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult buildPartial() { + com.google.cloud.dataplex.v1.DataQualityResult result = + new com.google.cloud.dataplex.v1.DataQualityResult(this); + int from_bitField0_ = bitField0_; + result.passed_ = passed_; + if (dimensionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dimensions_ = java.util.Collections.unmodifiableList(dimensions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dimensions_ = dimensions_; + } else { + result.dimensions_ = dimensionsBuilder_.build(); + } + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + result.rowCount_ = rowCount_; + if (scannedDataBuilder_ == null) { + result.scannedData_ = scannedData_; + } else { + result.scannedData_ = scannedDataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataQualityResult) { + return mergeFrom((com.google.cloud.dataplex.v1.DataQualityResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataQualityResult other) { + if (other == com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance()) return this; + if (other.getPassed() != false) { + setPassed(other.getPassed()); + } + if (dimensionsBuilder_ == null) { + if (!other.dimensions_.isEmpty()) { + if (dimensions_.isEmpty()) { + dimensions_ = other.dimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDimensionsIsMutable(); + dimensions_.addAll(other.dimensions_); + } + onChanged(); + } + } else { + if (!other.dimensions_.isEmpty()) { + if (dimensionsBuilder_.isEmpty()) { + dimensionsBuilder_.dispose(); + dimensionsBuilder_ = null; + dimensions_ = other.dimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + dimensionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDimensionsFieldBuilder() + : null; + } else { + dimensionsBuilder_.addAllMessages(other.dimensions_); + } + } + } + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRulesFieldBuilder() + : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + if (other.getRowCount() != 0L) { + setRowCount(other.getRowCount()); + } + if (other.hasScannedData()) { + mergeScannedData(other.getScannedData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.dataplex.v1.DataQualityDimensionResult m = + input.readMessage( + com.google.cloud.dataplex.v1.DataQualityDimensionResult.parser(), + extensionRegistry); + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(m); + } else { + dimensionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.dataplex.v1.DataQualityRuleResult m = + input.readMessage( + com.google.cloud.dataplex.v1.DataQualityRuleResult.parser(), + extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + rowCount_ = input.readInt64(); + + break; + } // case 32 + case 40: + { + passed_ = input.readBool(); + + break; + } // case 40 + case 58: + { + input.readMessage(getScannedDataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean passed_; + /** + * + * + *
+     * Overall data quality result -- `true` if all rules passed.
+     * 
+ * + * bool passed = 5; + * + * @return The passed. + */ + @java.lang.Override + public boolean getPassed() { + return passed_; + } + /** + * + * + *
+     * Overall data quality result -- `true` if all rules passed.
+     * 
+ * + * bool passed = 5; + * + * @param value The passed to set. + * @return This builder for chaining. + */ + public Builder setPassed(boolean value) { + + passed_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Overall data quality result -- `true` if all rules passed.
+     * 
+ * + * bool passed = 5; + * + * @return This builder for chaining. + */ + public Builder clearPassed() { + + passed_ = false; + onChanged(); + return this; + } + + private java.util.List dimensions_ = + java.util.Collections.emptyList(); + + private void ensureDimensionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dimensions_ = + new java.util.ArrayList( + dimensions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityDimensionResult, + com.google.cloud.dataplex.v1.DataQualityDimensionResult.Builder, + com.google.cloud.dataplex.v1.DataQualityDimensionResultOrBuilder> + dimensionsBuilder_; + + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public java.util.List + getDimensionsList() { + if (dimensionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensions_); + } else { + return dimensionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public int getDimensionsCount() { + if (dimensionsBuilder_ == null) { + return dimensions_.size(); + } else { + return dimensionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public com.google.cloud.dataplex.v1.DataQualityDimensionResult getDimensions(int index) { + if (dimensionsBuilder_ == null) { + return dimensions_.get(index); + } else { + return dimensionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public Builder setDimensions( + int index, com.google.cloud.dataplex.v1.DataQualityDimensionResult value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.set(index, value); + onChanged(); + } else { + dimensionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public Builder setDimensions( + int index, + com.google.cloud.dataplex.v1.DataQualityDimensionResult.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public Builder addDimensions(com.google.cloud.dataplex.v1.DataQualityDimensionResult value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.add(value); + onChanged(); + } else { + dimensionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public Builder addDimensions( + int index, com.google.cloud.dataplex.v1.DataQualityDimensionResult value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.add(index, value); + onChanged(); + } else { + dimensionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public Builder addDimensions( + com.google.cloud.dataplex.v1.DataQualityDimensionResult.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public Builder addDimensions( + int index, + com.google.cloud.dataplex.v1.DataQualityDimensionResult.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public Builder addAllDimensions( + java.lang.Iterable + values) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_); + onChanged(); + } else { + dimensionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public Builder clearDimensions() { + if (dimensionsBuilder_ == null) { + dimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dimensionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public Builder removeDimensions(int index) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.remove(index); + onChanged(); + } else { + dimensionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public com.google.cloud.dataplex.v1.DataQualityDimensionResult.Builder getDimensionsBuilder( + int index) { + return getDimensionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public com.google.cloud.dataplex.v1.DataQualityDimensionResultOrBuilder getDimensionsOrBuilder( + int index) { + if (dimensionsBuilder_ == null) { + return dimensions_.get(index); + } else { + return dimensionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public java.util.List< + ? extends com.google.cloud.dataplex.v1.DataQualityDimensionResultOrBuilder> + getDimensionsOrBuilderList() { + if (dimensionsBuilder_ != null) { + return dimensionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensions_); + } + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public com.google.cloud.dataplex.v1.DataQualityDimensionResult.Builder addDimensionsBuilder() { + return getDimensionsFieldBuilder() + .addBuilder(com.google.cloud.dataplex.v1.DataQualityDimensionResult.getDefaultInstance()); + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public com.google.cloud.dataplex.v1.DataQualityDimensionResult.Builder addDimensionsBuilder( + int index) { + return getDimensionsFieldBuilder() + .addBuilder( + index, com.google.cloud.dataplex.v1.DataQualityDimensionResult.getDefaultInstance()); + } + /** + * + * + *
+     * A list of results at the dimension-level.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + public java.util.List + getDimensionsBuilderList() { + return getDimensionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityDimensionResult, + com.google.cloud.dataplex.v1.DataQualityDimensionResult.Builder, + com.google.cloud.dataplex.v1.DataQualityDimensionResultOrBuilder> + getDimensionsFieldBuilder() { + if (dimensionsBuilder_ == null) { + dimensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityDimensionResult, + com.google.cloud.dataplex.v1.DataQualityDimensionResult.Builder, + com.google.cloud.dataplex.v1.DataQualityDimensionResultOrBuilder>( + dimensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dimensions_ = null; + } + return dimensionsBuilder_; + } + + private java.util.List rules_ = + java.util.Collections.emptyList(); + + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rules_ = + new java.util.ArrayList(rules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRuleResult, + com.google.cloud.dataplex.v1.DataQualityRuleResult.Builder, + com.google.cloud.dataplex.v1.DataQualityRuleResultOrBuilder> + rulesBuilder_; + + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public com.google.cloud.dataplex.v1.DataQualityRuleResult getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public Builder setRules(int index, com.google.cloud.dataplex.v1.DataQualityRuleResult value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public Builder setRules( + int index, com.google.cloud.dataplex.v1.DataQualityRuleResult.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public Builder addRules(com.google.cloud.dataplex.v1.DataQualityRuleResult value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public Builder addRules(int index, com.google.cloud.dataplex.v1.DataQualityRuleResult value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public Builder addRules( + com.google.cloud.dataplex.v1.DataQualityRuleResult.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public Builder addRules( + int index, com.google.cloud.dataplex.v1.DataQualityRuleResult.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public com.google.cloud.dataplex.v1.DataQualityRuleResult.Builder getRulesBuilder(int index) { + return getRulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public com.google.cloud.dataplex.v1.DataQualityRuleResultOrBuilder getRulesOrBuilder( + int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public com.google.cloud.dataplex.v1.DataQualityRuleResult.Builder addRulesBuilder() { + return getRulesFieldBuilder() + .addBuilder(com.google.cloud.dataplex.v1.DataQualityRuleResult.getDefaultInstance()); + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public com.google.cloud.dataplex.v1.DataQualityRuleResult.Builder addRulesBuilder(int index) { + return getRulesFieldBuilder() + .addBuilder( + index, com.google.cloud.dataplex.v1.DataQualityRuleResult.getDefaultInstance()); + } + /** + * + * + *
+     * A list of all the rules in a job, and their results.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + public java.util.List + getRulesBuilderList() { + return getRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRuleResult, + com.google.cloud.dataplex.v1.DataQualityRuleResult.Builder, + com.google.cloud.dataplex.v1.DataQualityRuleResultOrBuilder> + getRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRuleResult, + com.google.cloud.dataplex.v1.DataQualityRuleResult.Builder, + com.google.cloud.dataplex.v1.DataQualityRuleResultOrBuilder>( + rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + private long rowCount_; + /** + * + * + *
+     * The count of rows processed.
+     * 
+ * + * int64 row_count = 4; + * + * @return The rowCount. + */ + @java.lang.Override + public long getRowCount() { + return rowCount_; + } + /** + * + * + *
+     * The count of rows processed.
+     * 
+ * + * int64 row_count = 4; + * + * @param value The rowCount to set. + * @return This builder for chaining. + */ + public Builder setRowCount(long value) { + + rowCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The count of rows processed.
+     * 
+ * + * int64 row_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearRowCount() { + + rowCount_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.dataplex.v1.ScannedData scannedData_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.ScannedData, + com.google.cloud.dataplex.v1.ScannedData.Builder, + com.google.cloud.dataplex.v1.ScannedDataOrBuilder> + scannedDataBuilder_; + /** + * + * + *
+     * The data scanned for this result.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + * + * @return Whether the scannedData field is set. + */ + public boolean hasScannedData() { + return scannedDataBuilder_ != null || scannedData_ != null; + } + /** + * + * + *
+     * The data scanned for this result.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + * + * @return The scannedData. + */ + public com.google.cloud.dataplex.v1.ScannedData getScannedData() { + if (scannedDataBuilder_ == null) { + return scannedData_ == null + ? com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance() + : scannedData_; + } else { + return scannedDataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The data scanned for this result.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + */ + public Builder setScannedData(com.google.cloud.dataplex.v1.ScannedData value) { + if (scannedDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scannedData_ = value; + onChanged(); + } else { + scannedDataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The data scanned for this result.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + */ + public Builder setScannedData( + com.google.cloud.dataplex.v1.ScannedData.Builder builderForValue) { + if (scannedDataBuilder_ == null) { + scannedData_ = builderForValue.build(); + onChanged(); + } else { + scannedDataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The data scanned for this result.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + */ + public Builder mergeScannedData(com.google.cloud.dataplex.v1.ScannedData value) { + if (scannedDataBuilder_ == null) { + if (scannedData_ != null) { + scannedData_ = + com.google.cloud.dataplex.v1.ScannedData.newBuilder(scannedData_) + .mergeFrom(value) + .buildPartial(); + } else { + scannedData_ = value; + } + onChanged(); + } else { + scannedDataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The data scanned for this result.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + */ + public Builder clearScannedData() { + if (scannedDataBuilder_ == null) { + scannedData_ = null; + onChanged(); + } else { + scannedData_ = null; + scannedDataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The data scanned for this result.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + */ + public com.google.cloud.dataplex.v1.ScannedData.Builder getScannedDataBuilder() { + + onChanged(); + return getScannedDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The data scanned for this result.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + */ + public com.google.cloud.dataplex.v1.ScannedDataOrBuilder getScannedDataOrBuilder() { + if (scannedDataBuilder_ != null) { + return scannedDataBuilder_.getMessageOrBuilder(); + } else { + return scannedData_ == null + ? com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance() + : scannedData_; + } + } + /** + * + * + *
+     * The data scanned for this result.
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.ScannedData, + com.google.cloud.dataplex.v1.ScannedData.Builder, + com.google.cloud.dataplex.v1.ScannedDataOrBuilder> + getScannedDataFieldBuilder() { + if (scannedDataBuilder_ == null) { + scannedDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.ScannedData, + com.google.cloud.dataplex.v1.ScannedData.Builder, + com.google.cloud.dataplex.v1.ScannedDataOrBuilder>( + getScannedData(), getParentForChildren(), isClean()); + scannedData_ = null; + } + return scannedDataBuilder_; + } + + @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.dataplex.v1.DataQualityResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityResult) + private static final com.google.cloud.dataplex.v1.DataQualityResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityResult(); + } + + public static com.google.cloud.dataplex.v1.DataQualityResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataQualityResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResultOrBuilder.java new file mode 100644 index 000000000000..7c117d19ee33 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityResultOrBuilder.java @@ -0,0 +1,191 @@ +/* + * 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/dataplex/v1/data_quality.proto + +package com.google.cloud.dataplex.v1; + +public interface DataQualityResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Overall data quality result -- `true` if all rules passed.
+   * 
+ * + * bool passed = 5; + * + * @return The passed. + */ + boolean getPassed(); + + /** + * + * + *
+   * A list of results at the dimension-level.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + java.util.List getDimensionsList(); + /** + * + * + *
+   * A list of results at the dimension-level.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + com.google.cloud.dataplex.v1.DataQualityDimensionResult getDimensions(int index); + /** + * + * + *
+   * A list of results at the dimension-level.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + int getDimensionsCount(); + /** + * + * + *
+   * A list of results at the dimension-level.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + java.util.List + getDimensionsOrBuilderList(); + /** + * + * + *
+   * A list of results at the dimension-level.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; + */ + com.google.cloud.dataplex.v1.DataQualityDimensionResultOrBuilder getDimensionsOrBuilder( + int index); + + /** + * + * + *
+   * A list of all the rules in a job, and their results.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + java.util.List getRulesList(); + /** + * + * + *
+   * A list of all the rules in a job, and their results.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + com.google.cloud.dataplex.v1.DataQualityRuleResult getRules(int index); + /** + * + * + *
+   * A list of all the rules in a job, and their results.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + int getRulesCount(); + /** + * + * + *
+   * A list of all the rules in a job, and their results.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + java.util.List + getRulesOrBuilderList(); + /** + * + * + *
+   * A list of all the rules in a job, and their results.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3; + */ + com.google.cloud.dataplex.v1.DataQualityRuleResultOrBuilder getRulesOrBuilder(int index); + + /** + * + * + *
+   * The count of rows processed.
+   * 
+ * + * int64 row_count = 4; + * + * @return The rowCount. + */ + long getRowCount(); + + /** + * + * + *
+   * The data scanned for this result.
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + * + * @return Whether the scannedData field is set. + */ + boolean hasScannedData(); + /** + * + * + *
+   * The data scanned for this result.
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + * + * @return The scannedData. + */ + com.google.cloud.dataplex.v1.ScannedData getScannedData(); + /** + * + * + *
+   * The data scanned for this result.
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData scanned_data = 7; + */ + com.google.cloud.dataplex.v1.ScannedDataOrBuilder getScannedDataOrBuilder(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRule.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRule.java new file mode 100644 index 000000000000..eff5aac42e44 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRule.java @@ -0,0 +1,9643 @@ +/* + * 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/dataplex/v1/data_quality.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * A rule captures data quality intent about a data source.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule} + */ +public final class DataQualityRule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule) + DataQualityRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataQualityRule.newBuilder() to construct. + private DataQualityRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataQualityRule() { + column_ = ""; + dimension_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataQualityRule(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.class, + com.google.cloud.dataplex.v1.DataQualityRule.Builder.class); + } + + public interface RangeExpectationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The minimum column value allowed for a row to pass this
+     * validation. At least one of min_value and max_value need to be provided.
+     * 
+ * + * string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minValue. + */ + java.lang.String getMinValue(); + /** + * + * + *
+     * Optional. The minimum column value allowed for a row to pass this
+     * validation. At least one of min_value and max_value need to be provided.
+     * 
+ * + * string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for minValue. + */ + com.google.protobuf.ByteString getMinValueBytes(); + + /** + * + * + *
+     * Optional. The maximum column value allowed for a row to pass this
+     * validation. At least one of min_value and max_value need to be provided.
+     * 
+ * + * string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxValue. + */ + java.lang.String getMaxValue(); + /** + * + * + *
+     * Optional. The maximum column value allowed for a row to pass this
+     * validation. At least one of min_value and max_value need to be provided.
+     * 
+ * + * string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for maxValue. + */ + com.google.protobuf.ByteString getMaxValueBytes(); + + /** + * + * + *
+     * Optional. Whether each value needs to be strictly greater than ('>') the
+     * minimum, or if equality is allowed. Only relevant if a min_value has been
+     * defined. Default = false.
+     * 
+ * + * bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The strictMinEnabled. + */ + boolean getStrictMinEnabled(); + + /** + * + * + *
+     * Optional. Whether each value needs to be strictly lesser than ('<') the
+     * maximum, or if equality is allowed. Only relevant if a max_value has been
+     * defined. Default = false.
+     * 
+ * + * bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The strictMaxEnabled. + */ + boolean getStrictMaxEnabled(); + } + /** + * + * + *
+   * Evaluates whether each column value lies between a specified range.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.RangeExpectation} + */ + public static final class RangeExpectation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) + RangeExpectationOrBuilder { + private static final long serialVersionUID = 0L; + // Use RangeExpectation.newBuilder() to construct. + private RangeExpectation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RangeExpectation() { + minValue_ = ""; + maxValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RangeExpectation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RangeExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RangeExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.Builder.class); + } + + public static final int MIN_VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object minValue_; + /** + * + * + *
+     * Optional. The minimum column value allowed for a row to pass this
+     * validation. At least one of min_value and max_value need to be provided.
+     * 
+ * + * string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minValue. + */ + @java.lang.Override + public java.lang.String getMinValue() { + java.lang.Object ref = minValue_; + 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(); + minValue_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The minimum column value allowed for a row to pass this
+     * validation. At least one of min_value and max_value need to be provided.
+     * 
+ * + * string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for minValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMinValueBytes() { + java.lang.Object ref = minValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object maxValue_; + /** + * + * + *
+     * Optional. The maximum column value allowed for a row to pass this
+     * validation. At least one of min_value and max_value need to be provided.
+     * 
+ * + * string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxValue. + */ + @java.lang.Override + public java.lang.String getMaxValue() { + java.lang.Object ref = maxValue_; + 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(); + maxValue_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The maximum column value allowed for a row to pass this
+     * validation. At least one of min_value and max_value need to be provided.
+     * 
+ * + * string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for maxValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMaxValueBytes() { + java.lang.Object ref = maxValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + maxValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRICT_MIN_ENABLED_FIELD_NUMBER = 3; + private boolean strictMinEnabled_; + /** + * + * + *
+     * Optional. Whether each value needs to be strictly greater than ('>') the
+     * minimum, or if equality is allowed. Only relevant if a min_value has been
+     * defined. Default = false.
+     * 
+ * + * bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The strictMinEnabled. + */ + @java.lang.Override + public boolean getStrictMinEnabled() { + return strictMinEnabled_; + } + + public static final int STRICT_MAX_ENABLED_FIELD_NUMBER = 4; + private boolean strictMaxEnabled_; + /** + * + * + *
+     * Optional. Whether each value needs to be strictly lesser than ('<') the
+     * maximum, or if equality is allowed. Only relevant if a max_value has been
+     * defined. Default = false.
+     * 
+ * + * bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The strictMaxEnabled. + */ + @java.lang.Override + public boolean getStrictMaxEnabled() { + return strictMaxEnabled_; + } + + 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(minValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, minValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(maxValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, maxValue_); + } + if (strictMinEnabled_ != false) { + output.writeBool(3, strictMinEnabled_); + } + if (strictMaxEnabled_ != false) { + output.writeBool(4, strictMaxEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, minValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(maxValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, maxValue_); + } + if (strictMinEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, strictMinEnabled_); + } + if (strictMaxEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, strictMaxEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation other = + (com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) obj; + + if (!getMinValue().equals(other.getMinValue())) return false; + if (!getMaxValue().equals(other.getMaxValue())) return false; + if (getStrictMinEnabled() != other.getStrictMinEnabled()) return false; + if (getStrictMaxEnabled() != other.getStrictMaxEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getMinValue().hashCode(); + hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getMaxValue().hashCode(); + hash = (37 * hash) + STRICT_MIN_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStrictMinEnabled()); + hash = (37 * hash) + STRICT_MAX_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStrictMaxEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation 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.dataplex.v1.DataQualityRule.RangeExpectation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation 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.dataplex.v1.DataQualityRule.RangeExpectation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation 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.dataplex.v1.DataQualityRule.RangeExpectation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation 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.dataplex.v1.DataQualityRule.RangeExpectation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation 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.dataplex.v1.DataQualityRule.RangeExpectation 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; + } + /** + * + * + *
+     * Evaluates whether each column value lies between a specified range.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.RangeExpectation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RangeExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RangeExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + minValue_ = ""; + + maxValue_ = ""; + + strictMinEnabled_ = false; + + strictMaxEnabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RangeExpectation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation build() { + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation buildPartial() { + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation result = + new com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation(this); + result.minValue_ = minValue_; + result.maxValue_ = maxValue_; + result.strictMinEnabled_ = strictMinEnabled_; + result.strictMaxEnabled_ = strictMaxEnabled_; + 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.dataplex.v1.DataQualityRule.RangeExpectation) { + return mergeFrom((com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation other) { + if (other + == com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.getDefaultInstance()) + return this; + if (!other.getMinValue().isEmpty()) { + minValue_ = other.minValue_; + onChanged(); + } + if (!other.getMaxValue().isEmpty()) { + maxValue_ = other.maxValue_; + onChanged(); + } + if (other.getStrictMinEnabled() != false) { + setStrictMinEnabled(other.getStrictMinEnabled()); + } + if (other.getStrictMaxEnabled() != false) { + setStrictMaxEnabled(other.getStrictMaxEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + minValue_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + maxValue_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + strictMinEnabled_ = input.readBool(); + + break; + } // case 24 + case 32: + { + strictMaxEnabled_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object minValue_ = ""; + /** + * + * + *
+       * Optional. The minimum column value allowed for a row to pass this
+       * validation. At least one of min_value and max_value need to be provided.
+       * 
+ * + * string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The minValue. + */ + public java.lang.String getMinValue() { + java.lang.Object ref = minValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The minimum column value allowed for a row to pass this
+       * validation. At least one of min_value and max_value need to be provided.
+       * 
+ * + * string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for minValue. + */ + public com.google.protobuf.ByteString getMinValueBytes() { + java.lang.Object ref = minValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The minimum column value allowed for a row to pass this
+       * validation. At least one of min_value and max_value need to be provided.
+       * 
+ * + * string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The minValue to set. + * @return This builder for chaining. + */ + public Builder setMinValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + minValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The minimum column value allowed for a row to pass this
+       * validation. At least one of min_value and max_value need to be provided.
+       * 
+ * + * string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMinValue() { + + minValue_ = getDefaultInstance().getMinValue(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The minimum column value allowed for a row to pass this
+       * validation. At least one of min_value and max_value need to be provided.
+       * 
+ * + * string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for minValue to set. + * @return This builder for chaining. + */ + public Builder setMinValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + minValue_ = value; + onChanged(); + return this; + } + + private java.lang.Object maxValue_ = ""; + /** + * + * + *
+       * Optional. The maximum column value allowed for a row to pass this
+       * validation. At least one of min_value and max_value need to be provided.
+       * 
+ * + * string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxValue. + */ + public java.lang.String getMaxValue() { + java.lang.Object ref = maxValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + maxValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The maximum column value allowed for a row to pass this
+       * validation. At least one of min_value and max_value need to be provided.
+       * 
+ * + * string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for maxValue. + */ + public com.google.protobuf.ByteString getMaxValueBytes() { + java.lang.Object ref = maxValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + maxValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The maximum column value allowed for a row to pass this
+       * validation. At least one of min_value and max_value need to be provided.
+       * 
+ * + * string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxValue to set. + * @return This builder for chaining. + */ + public Builder setMaxValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + maxValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The maximum column value allowed for a row to pass this
+       * validation. At least one of min_value and max_value need to be provided.
+       * 
+ * + * string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxValue() { + + maxValue_ = getDefaultInstance().getMaxValue(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The maximum column value allowed for a row to pass this
+       * validation. At least one of min_value and max_value need to be provided.
+       * 
+ * + * string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for maxValue to set. + * @return This builder for chaining. + */ + public Builder setMaxValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + maxValue_ = value; + onChanged(); + return this; + } + + private boolean strictMinEnabled_; + /** + * + * + *
+       * Optional. Whether each value needs to be strictly greater than ('>') the
+       * minimum, or if equality is allowed. Only relevant if a min_value has been
+       * defined. Default = false.
+       * 
+ * + * bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The strictMinEnabled. + */ + @java.lang.Override + public boolean getStrictMinEnabled() { + return strictMinEnabled_; + } + /** + * + * + *
+       * Optional. Whether each value needs to be strictly greater than ('>') the
+       * minimum, or if equality is allowed. Only relevant if a min_value has been
+       * defined. Default = false.
+       * 
+ * + * bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The strictMinEnabled to set. + * @return This builder for chaining. + */ + public Builder setStrictMinEnabled(boolean value) { + + strictMinEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Whether each value needs to be strictly greater than ('>') the
+       * minimum, or if equality is allowed. Only relevant if a min_value has been
+       * defined. Default = false.
+       * 
+ * + * bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStrictMinEnabled() { + + strictMinEnabled_ = false; + onChanged(); + return this; + } + + private boolean strictMaxEnabled_; + /** + * + * + *
+       * Optional. Whether each value needs to be strictly lesser than ('<') the
+       * maximum, or if equality is allowed. Only relevant if a max_value has been
+       * defined. Default = false.
+       * 
+ * + * bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The strictMaxEnabled. + */ + @java.lang.Override + public boolean getStrictMaxEnabled() { + return strictMaxEnabled_; + } + /** + * + * + *
+       * Optional. Whether each value needs to be strictly lesser than ('<') the
+       * maximum, or if equality is allowed. Only relevant if a max_value has been
+       * defined. Default = false.
+       * 
+ * + * bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The strictMaxEnabled to set. + * @return This builder for chaining. + */ + public Builder setStrictMaxEnabled(boolean value) { + + strictMaxEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Whether each value needs to be strictly lesser than ('<') the
+       * maximum, or if equality is allowed. Only relevant if a max_value has been
+       * defined. Default = false.
+       * 
+ * + * bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStrictMaxEnabled() { + + strictMaxEnabled_ = 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.dataplex.v1.DataQualityRule.RangeExpectation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) + private static final com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation(); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RangeExpectation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NonNullExpectationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Evaluates whether each column value is null.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation} + */ + public static final class NonNullExpectation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) + NonNullExpectationOrBuilder { + private static final long serialVersionUID = 0L; + // Use NonNullExpectation.newBuilder() to construct. + private NonNullExpectation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NonNullExpectation() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NonNullExpectation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation other = + (com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation 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.dataplex.v1.DataQualityRule.NonNullExpectation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation 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.dataplex.v1.DataQualityRule.NonNullExpectation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation 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.dataplex.v1.DataQualityRule.NonNullExpectation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation + 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.dataplex.v1.DataQualityRule.NonNullExpectation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation 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.dataplex.v1.DataQualityRule.NonNullExpectation 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; + } + /** + * + * + *
+     * Evaluates whether each column value is null.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.Builder.class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation build() { + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation buildPartial() { + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation result = + new com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) { + return mergeFrom((com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation other) { + if (other + == com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) + private static final com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation(); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NonNullExpectation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SetExpectationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.SetExpectation) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + } + /** + * + * + *
+   * Evaluates whether each column value is contained by a specified set.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.SetExpectation} + */ + public static final class SetExpectation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.SetExpectation) + SetExpectationOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetExpectation.newBuilder() to construct. + private SetExpectation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetExpectation() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetExpectation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation other = + (com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation 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.dataplex.v1.DataQualityRule.SetExpectation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation 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.dataplex.v1.DataQualityRule.SetExpectation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation 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.dataplex.v1.DataQualityRule.SetExpectation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation 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.dataplex.v1.DataQualityRule.SetExpectation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation 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.dataplex.v1.DataQualityRule.SetExpectation 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; + } + /** + * + * + *
+     * Evaluates whether each column value is contained by a specified set.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.SetExpectation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.SetExpectation) + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation build() { + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation buildPartial() { + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation result = + new com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + 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.dataplex.v1.DataQualityRule.SetExpectation) { + return mergeFrom((com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation other) { + if (other + == com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(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.dataplex.v1.DataQualityRule.SetExpectation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.SetExpectation) + private static final com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation(); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetExpectation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RegexExpectationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) + com.google.protobuf.MessageOrBuilder { + + /** + * string regex = 1; + * + * @return The regex. + */ + java.lang.String getRegex(); + /** + * string regex = 1; + * + * @return The bytes for regex. + */ + com.google.protobuf.ByteString getRegexBytes(); + } + /** + * + * + *
+   * Evaluates whether each column value matches a specified regex.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.RegexExpectation} + */ + public static final class RegexExpectation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) + RegexExpectationOrBuilder { + private static final long serialVersionUID = 0L; + // Use RegexExpectation.newBuilder() to construct. + private RegexExpectation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RegexExpectation() { + regex_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RegexExpectation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RegexExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RegexExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.Builder.class); + } + + public static final int REGEX_FIELD_NUMBER = 1; + private volatile java.lang.Object regex_; + /** + * string regex = 1; + * + * @return The regex. + */ + @java.lang.Override + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + 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(); + regex_ = s; + return s; + } + } + /** + * string regex = 1; + * + * @return The bytes for regex. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regex_ = 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(regex_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regex_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regex_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, regex_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation other = + (com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) obj; + + if (!getRegex().equals(other.getRegex())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation 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.dataplex.v1.DataQualityRule.RegexExpectation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation 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.dataplex.v1.DataQualityRule.RegexExpectation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation 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.dataplex.v1.DataQualityRule.RegexExpectation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation 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.dataplex.v1.DataQualityRule.RegexExpectation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation 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.dataplex.v1.DataQualityRule.RegexExpectation 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; + } + /** + * + * + *
+     * Evaluates whether each column value matches a specified regex.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.RegexExpectation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RegexExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RegexExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + regex_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RegexExpectation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation build() { + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation buildPartial() { + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation result = + new com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation(this); + result.regex_ = regex_; + 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.dataplex.v1.DataQualityRule.RegexExpectation) { + return mergeFrom((com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation other) { + if (other + == com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.getDefaultInstance()) + return this; + if (!other.getRegex().isEmpty()) { + regex_ = other.regex_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + regex_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object regex_ = ""; + /** + * string regex = 1; + * + * @return The regex. + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string regex = 1; + * + * @return The bytes for regex. + */ + public com.google.protobuf.ByteString getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string regex = 1; + * + * @param value The regex to set. + * @return This builder for chaining. + */ + public Builder setRegex(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regex_ = value; + onChanged(); + return this; + } + /** + * string regex = 1; + * + * @return This builder for chaining. + */ + public Builder clearRegex() { + + regex_ = getDefaultInstance().getRegex(); + onChanged(); + return this; + } + /** + * string regex = 1; + * + * @param value The bytes for regex to set. + * @return This builder for chaining. + */ + public Builder setRegexBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regex_ = 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.dataplex.v1.DataQualityRule.RegexExpectation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) + private static final com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation(); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegexExpectation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface UniquenessExpectationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Evaluates whether the column has duplicates.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation} + */ + public static final class UniquenessExpectation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) + UniquenessExpectationOrBuilder { + private static final long serialVersionUID = 0L; + // Use UniquenessExpectation.newBuilder() to construct. + private UniquenessExpectation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UniquenessExpectation() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UniquenessExpectation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation other = + (com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation 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.dataplex.v1.DataQualityRule.UniquenessExpectation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation 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.dataplex.v1.DataQualityRule.UniquenessExpectation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation 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.dataplex.v1.DataQualityRule.UniquenessExpectation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + 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.dataplex.v1.DataQualityRule.UniquenessExpectation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation 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.dataplex.v1.DataQualityRule.UniquenessExpectation 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; + } + /** + * + * + *
+     * Evaluates whether the column has duplicates.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.Builder.class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation build() { + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation buildPartial() { + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation result = + new com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation other) { + if (other + == com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) + private static final com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation(); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UniquenessExpectation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface StatisticRangeExpectationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1; + * + * + * @return The enum numeric value on the wire for statistic. + */ + int getStatisticValue(); + /** + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1; + * + * + * @return The statistic. + */ + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic + getStatistic(); + + /** + * + * + *
+     * The minimum column statistic value allowed for a row to pass this
+     * validation.
+     * At least one of min_value and max_value need to be provided.
+     * 
+ * + * string min_value = 2; + * + * @return The minValue. + */ + java.lang.String getMinValue(); + /** + * + * + *
+     * The minimum column statistic value allowed for a row to pass this
+     * validation.
+     * At least one of min_value and max_value need to be provided.
+     * 
+ * + * string min_value = 2; + * + * @return The bytes for minValue. + */ + com.google.protobuf.ByteString getMinValueBytes(); + + /** + * + * + *
+     * The maximum column statistic value allowed for a row to pass this
+     * validation.
+     * At least one of min_value and max_value need to be provided.
+     * 
+ * + * string max_value = 3; + * + * @return The maxValue. + */ + java.lang.String getMaxValue(); + /** + * + * + *
+     * The maximum column statistic value allowed for a row to pass this
+     * validation.
+     * At least one of min_value and max_value need to be provided.
+     * 
+ * + * string max_value = 3; + * + * @return The bytes for maxValue. + */ + com.google.protobuf.ByteString getMaxValueBytes(); + + /** + * + * + *
+     * Whether column statistic needs to be strictly greater than ('>')
+     * the minimum, or if equality is allowed. Only relevant if a min_value has
+     * been defined. Default = false.
+     * 
+ * + * bool strict_min_enabled = 4; + * + * @return The strictMinEnabled. + */ + boolean getStrictMinEnabled(); + + /** + * + * + *
+     * Whether column statistic needs to be strictly lesser than ('<') the
+     * maximum, or if equality is allowed. Only relevant if a max_value has been
+     * defined. Default = false.
+     * 
+ * + * bool strict_max_enabled = 5; + * + * @return The strictMaxEnabled. + */ + boolean getStrictMaxEnabled(); + } + /** + * + * + *
+   * Evaluates whether the column aggregate statistic lies between a specified
+   * range.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation} + */ + public static final class StatisticRangeExpectation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) + StatisticRangeExpectationOrBuilder { + private static final long serialVersionUID = 0L; + // Use StatisticRangeExpectation.newBuilder() to construct. + private StatisticRangeExpectation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StatisticRangeExpectation() { + statistic_ = 0; + minValue_ = ""; + maxValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StatisticRangeExpectation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_StatisticRangeExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_StatisticRangeExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.Builder.class); + } + + /** + * Protobuf enum {@code + * google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic} + */ + public enum ColumnStatistic implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified statistic type
+       * 
+ * + * STATISTIC_UNDEFINED = 0; + */ + STATISTIC_UNDEFINED(0), + /** + * + * + *
+       * Evaluate the column mean
+       * 
+ * + * MEAN = 1; + */ + MEAN(1), + /** + * + * + *
+       * Evaluate the column min
+       * 
+ * + * MIN = 2; + */ + MIN(2), + /** + * + * + *
+       * Evaluate the column max
+       * 
+ * + * MAX = 3; + */ + MAX(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified statistic type
+       * 
+ * + * STATISTIC_UNDEFINED = 0; + */ + public static final int STATISTIC_UNDEFINED_VALUE = 0; + /** + * + * + *
+       * Evaluate the column mean
+       * 
+ * + * MEAN = 1; + */ + public static final int MEAN_VALUE = 1; + /** + * + * + *
+       * Evaluate the column min
+       * 
+ * + * MIN = 2; + */ + public static final int MIN_VALUE = 2; + /** + * + * + *
+       * Evaluate the column max
+       * 
+ * + * MAX = 3; + */ + public static final int MAX_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ColumnStatistic valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ColumnStatistic forNumber(int value) { + switch (value) { + case 0: + return STATISTIC_UNDEFINED; + case 1: + return MEAN; + case 2: + return MIN; + case 3: + return MAX; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ColumnStatistic findValueByNumber(int number) { + return ColumnStatistic.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ColumnStatistic[] VALUES = values(); + + public static ColumnStatistic valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ColumnStatistic(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic) + } + + public static final int STATISTIC_FIELD_NUMBER = 1; + private int statistic_; + /** + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1; + * + * + * @return The enum numeric value on the wire for statistic. + */ + @java.lang.Override + public int getStatisticValue() { + return statistic_; + } + /** + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1; + * + * + * @return The statistic. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic + getStatistic() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic + result = + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic + .valueOf(statistic_); + return result == null + ? com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic + .UNRECOGNIZED + : result; + } + + public static final int MIN_VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object minValue_; + /** + * + * + *
+     * The minimum column statistic value allowed for a row to pass this
+     * validation.
+     * At least one of min_value and max_value need to be provided.
+     * 
+ * + * string min_value = 2; + * + * @return The minValue. + */ + @java.lang.Override + public java.lang.String getMinValue() { + java.lang.Object ref = minValue_; + 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(); + minValue_ = s; + return s; + } + } + /** + * + * + *
+     * The minimum column statistic value allowed for a row to pass this
+     * validation.
+     * At least one of min_value and max_value need to be provided.
+     * 
+ * + * string min_value = 2; + * + * @return The bytes for minValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMinValueBytes() { + java.lang.Object ref = minValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_VALUE_FIELD_NUMBER = 3; + private volatile java.lang.Object maxValue_; + /** + * + * + *
+     * The maximum column statistic value allowed for a row to pass this
+     * validation.
+     * At least one of min_value and max_value need to be provided.
+     * 
+ * + * string max_value = 3; + * + * @return The maxValue. + */ + @java.lang.Override + public java.lang.String getMaxValue() { + java.lang.Object ref = maxValue_; + 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(); + maxValue_ = s; + return s; + } + } + /** + * + * + *
+     * The maximum column statistic value allowed for a row to pass this
+     * validation.
+     * At least one of min_value and max_value need to be provided.
+     * 
+ * + * string max_value = 3; + * + * @return The bytes for maxValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMaxValueBytes() { + java.lang.Object ref = maxValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + maxValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRICT_MIN_ENABLED_FIELD_NUMBER = 4; + private boolean strictMinEnabled_; + /** + * + * + *
+     * Whether column statistic needs to be strictly greater than ('>')
+     * the minimum, or if equality is allowed. Only relevant if a min_value has
+     * been defined. Default = false.
+     * 
+ * + * bool strict_min_enabled = 4; + * + * @return The strictMinEnabled. + */ + @java.lang.Override + public boolean getStrictMinEnabled() { + return strictMinEnabled_; + } + + public static final int STRICT_MAX_ENABLED_FIELD_NUMBER = 5; + private boolean strictMaxEnabled_; + /** + * + * + *
+     * Whether column statistic needs to be strictly lesser than ('<') the
+     * maximum, or if equality is allowed. Only relevant if a max_value has been
+     * defined. Default = false.
+     * 
+ * + * bool strict_max_enabled = 5; + * + * @return The strictMaxEnabled. + */ + @java.lang.Override + public boolean getStrictMaxEnabled() { + return strictMaxEnabled_; + } + + 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 (statistic_ + != com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic + .STATISTIC_UNDEFINED + .getNumber()) { + output.writeEnum(1, statistic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, minValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(maxValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, maxValue_); + } + if (strictMinEnabled_ != false) { + output.writeBool(4, strictMinEnabled_); + } + if (strictMaxEnabled_ != false) { + output.writeBool(5, strictMaxEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (statistic_ + != com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic + .STATISTIC_UNDEFINED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, statistic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, minValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(maxValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, maxValue_); + } + if (strictMinEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, strictMinEnabled_); + } + if (strictMaxEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, strictMaxEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation other = + (com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) obj; + + if (statistic_ != other.statistic_) return false; + if (!getMinValue().equals(other.getMinValue())) return false; + if (!getMaxValue().equals(other.getMaxValue())) return false; + if (getStrictMinEnabled() != other.getStrictMinEnabled()) return false; + if (getStrictMaxEnabled() != other.getStrictMaxEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATISTIC_FIELD_NUMBER; + hash = (53 * hash) + statistic_; + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getMinValue().hashCode(); + hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getMaxValue().hashCode(); + hash = (37 * hash) + STRICT_MIN_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStrictMinEnabled()); + hash = (37 * hash) + STRICT_MAX_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStrictMaxEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation 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.dataplex.v1.DataQualityRule.StatisticRangeExpectation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation 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.dataplex.v1.DataQualityRule.StatisticRangeExpectation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation 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.dataplex.v1.DataQualityRule.StatisticRangeExpectation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + 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.dataplex.v1.DataQualityRule.StatisticRangeExpectation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation 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.dataplex.v1.DataQualityRule.StatisticRangeExpectation 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; + } + /** + * + * + *
+     * Evaluates whether the column aggregate statistic lies between a specified
+     * range.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_StatisticRangeExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_StatisticRangeExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.Builder + .class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + statistic_ = 0; + + minValue_ = ""; + + maxValue_ = ""; + + strictMinEnabled_ = false; + + strictMaxEnabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_StatisticRangeExpectation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation build() { + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation buildPartial() { + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation result = + new com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation(this); + result.statistic_ = statistic_; + result.minValue_ = minValue_; + result.maxValue_ = maxValue_; + result.strictMinEnabled_ = strictMinEnabled_; + result.strictMaxEnabled_ = strictMaxEnabled_; + 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.dataplex.v1.DataQualityRule.StatisticRangeExpectation) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation other) { + if (other + == com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + .getDefaultInstance()) return this; + if (other.statistic_ != 0) { + setStatisticValue(other.getStatisticValue()); + } + if (!other.getMinValue().isEmpty()) { + minValue_ = other.minValue_; + onChanged(); + } + if (!other.getMaxValue().isEmpty()) { + maxValue_ = other.maxValue_; + onChanged(); + } + if (other.getStrictMinEnabled() != false) { + setStrictMinEnabled(other.getStrictMinEnabled()); + } + if (other.getStrictMaxEnabled() != false) { + setStrictMaxEnabled(other.getStrictMaxEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + statistic_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + minValue_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + maxValue_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + strictMinEnabled_ = input.readBool(); + + break; + } // case 32 + case 40: + { + strictMaxEnabled_ = input.readBool(); + + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int statistic_ = 0; + /** + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1; + * + * + * @return The enum numeric value on the wire for statistic. + */ + @java.lang.Override + public int getStatisticValue() { + return statistic_; + } + /** + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1; + * + * + * @param value The enum numeric value on the wire for statistic to set. + * @return This builder for chaining. + */ + public Builder setStatisticValue(int value) { + + statistic_ = value; + onChanged(); + return this; + } + /** + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1; + * + * + * @return The statistic. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic + getStatistic() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic + result = + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + .ColumnStatistic.valueOf(statistic_); + return result == null + ? com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic + .UNRECOGNIZED + : result; + } + /** + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1; + * + * + * @param value The statistic to set. + * @return This builder for chaining. + */ + public Builder setStatistic( + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic + value) { + if (value == null) { + throw new NullPointerException(); + } + + statistic_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearStatistic() { + + statistic_ = 0; + onChanged(); + return this; + } + + private java.lang.Object minValue_ = ""; + /** + * + * + *
+       * The minimum column statistic value allowed for a row to pass this
+       * validation.
+       * At least one of min_value and max_value need to be provided.
+       * 
+ * + * string min_value = 2; + * + * @return The minValue. + */ + public java.lang.String getMinValue() { + java.lang.Object ref = minValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The minimum column statistic value allowed for a row to pass this
+       * validation.
+       * At least one of min_value and max_value need to be provided.
+       * 
+ * + * string min_value = 2; + * + * @return The bytes for minValue. + */ + public com.google.protobuf.ByteString getMinValueBytes() { + java.lang.Object ref = minValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The minimum column statistic value allowed for a row to pass this
+       * validation.
+       * At least one of min_value and max_value need to be provided.
+       * 
+ * + * string min_value = 2; + * + * @param value The minValue to set. + * @return This builder for chaining. + */ + public Builder setMinValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + minValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The minimum column statistic value allowed for a row to pass this
+       * validation.
+       * At least one of min_value and max_value need to be provided.
+       * 
+ * + * string min_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearMinValue() { + + minValue_ = getDefaultInstance().getMinValue(); + onChanged(); + return this; + } + /** + * + * + *
+       * The minimum column statistic value allowed for a row to pass this
+       * validation.
+       * At least one of min_value and max_value need to be provided.
+       * 
+ * + * string min_value = 2; + * + * @param value The bytes for minValue to set. + * @return This builder for chaining. + */ + public Builder setMinValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + minValue_ = value; + onChanged(); + return this; + } + + private java.lang.Object maxValue_ = ""; + /** + * + * + *
+       * The maximum column statistic value allowed for a row to pass this
+       * validation.
+       * At least one of min_value and max_value need to be provided.
+       * 
+ * + * string max_value = 3; + * + * @return The maxValue. + */ + public java.lang.String getMaxValue() { + java.lang.Object ref = maxValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + maxValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The maximum column statistic value allowed for a row to pass this
+       * validation.
+       * At least one of min_value and max_value need to be provided.
+       * 
+ * + * string max_value = 3; + * + * @return The bytes for maxValue. + */ + public com.google.protobuf.ByteString getMaxValueBytes() { + java.lang.Object ref = maxValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + maxValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The maximum column statistic value allowed for a row to pass this
+       * validation.
+       * At least one of min_value and max_value need to be provided.
+       * 
+ * + * string max_value = 3; + * + * @param value The maxValue to set. + * @return This builder for chaining. + */ + public Builder setMaxValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + maxValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The maximum column statistic value allowed for a row to pass this
+       * validation.
+       * At least one of min_value and max_value need to be provided.
+       * 
+ * + * string max_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxValue() { + + maxValue_ = getDefaultInstance().getMaxValue(); + onChanged(); + return this; + } + /** + * + * + *
+       * The maximum column statistic value allowed for a row to pass this
+       * validation.
+       * At least one of min_value and max_value need to be provided.
+       * 
+ * + * string max_value = 3; + * + * @param value The bytes for maxValue to set. + * @return This builder for chaining. + */ + public Builder setMaxValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + maxValue_ = value; + onChanged(); + return this; + } + + private boolean strictMinEnabled_; + /** + * + * + *
+       * Whether column statistic needs to be strictly greater than ('>')
+       * the minimum, or if equality is allowed. Only relevant if a min_value has
+       * been defined. Default = false.
+       * 
+ * + * bool strict_min_enabled = 4; + * + * @return The strictMinEnabled. + */ + @java.lang.Override + public boolean getStrictMinEnabled() { + return strictMinEnabled_; + } + /** + * + * + *
+       * Whether column statistic needs to be strictly greater than ('>')
+       * the minimum, or if equality is allowed. Only relevant if a min_value has
+       * been defined. Default = false.
+       * 
+ * + * bool strict_min_enabled = 4; + * + * @param value The strictMinEnabled to set. + * @return This builder for chaining. + */ + public Builder setStrictMinEnabled(boolean value) { + + strictMinEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Whether column statistic needs to be strictly greater than ('>')
+       * the minimum, or if equality is allowed. Only relevant if a min_value has
+       * been defined. Default = false.
+       * 
+ * + * bool strict_min_enabled = 4; + * + * @return This builder for chaining. + */ + public Builder clearStrictMinEnabled() { + + strictMinEnabled_ = false; + onChanged(); + return this; + } + + private boolean strictMaxEnabled_; + /** + * + * + *
+       * Whether column statistic needs to be strictly lesser than ('<') the
+       * maximum, or if equality is allowed. Only relevant if a max_value has been
+       * defined. Default = false.
+       * 
+ * + * bool strict_max_enabled = 5; + * + * @return The strictMaxEnabled. + */ + @java.lang.Override + public boolean getStrictMaxEnabled() { + return strictMaxEnabled_; + } + /** + * + * + *
+       * Whether column statistic needs to be strictly lesser than ('<') the
+       * maximum, or if equality is allowed. Only relevant if a max_value has been
+       * defined. Default = false.
+       * 
+ * + * bool strict_max_enabled = 5; + * + * @param value The strictMaxEnabled to set. + * @return This builder for chaining. + */ + public Builder setStrictMaxEnabled(boolean value) { + + strictMaxEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Whether column statistic needs to be strictly lesser than ('<') the
+       * maximum, or if equality is allowed. Only relevant if a max_value has been
+       * defined. Default = false.
+       * 
+ * + * bool strict_max_enabled = 5; + * + * @return This builder for chaining. + */ + public Builder clearStrictMaxEnabled() { + + strictMaxEnabled_ = 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.dataplex.v1.DataQualityRule.StatisticRangeExpectation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) + private static final com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation(); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatisticRangeExpectation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RowConditionExpectationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) + com.google.protobuf.MessageOrBuilder { + + /** + * string sql_expression = 1; + * + * @return The sqlExpression. + */ + java.lang.String getSqlExpression(); + /** + * string sql_expression = 1; + * + * @return The bytes for sqlExpression. + */ + com.google.protobuf.ByteString getSqlExpressionBytes(); + } + /** + * + * + *
+   * Evaluates whether each row passes the specified condition.
+   * The SQL expression needs to use BigQuery standard SQL syntax and should
+   * produce a boolean per row as the result.
+   * Example: col1 >= 0 AND col2 < 10
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation} + */ + public static final class RowConditionExpectation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) + RowConditionExpectationOrBuilder { + private static final long serialVersionUID = 0L; + // Use RowConditionExpectation.newBuilder() to construct. + private RowConditionExpectation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RowConditionExpectation() { + sqlExpression_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RowConditionExpectation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.Builder.class); + } + + public static final int SQL_EXPRESSION_FIELD_NUMBER = 1; + private volatile java.lang.Object sqlExpression_; + /** + * string sql_expression = 1; + * + * @return The sqlExpression. + */ + @java.lang.Override + public java.lang.String getSqlExpression() { + java.lang.Object ref = sqlExpression_; + 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(); + sqlExpression_ = s; + return s; + } + } + /** + * string sql_expression = 1; + * + * @return The bytes for sqlExpression. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlExpressionBytes() { + java.lang.Object ref = sqlExpression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlExpression_ = 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(sqlExpression_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlExpression_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlExpression_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlExpression_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation other = + (com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) obj; + + if (!getSqlExpression().equals(other.getSqlExpression())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SQL_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getSqlExpression().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation 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.dataplex.v1.DataQualityRule.RowConditionExpectation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation 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.dataplex.v1.DataQualityRule.RowConditionExpectation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation 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.dataplex.v1.DataQualityRule.RowConditionExpectation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + 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.dataplex.v1.DataQualityRule.RowConditionExpectation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation 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.dataplex.v1.DataQualityRule.RowConditionExpectation 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; + } + /** + * + * + *
+     * Evaluates whether each row passes the specified condition.
+     * The SQL expression needs to use BigQuery standard SQL syntax and should
+     * produce a boolean per row as the result.
+     * Example: col1 >= 0 AND col2 < 10
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.Builder.class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + sqlExpression_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation build() { + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation buildPartial() { + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation result = + new com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation(this); + result.sqlExpression_ = sqlExpression_; + 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.dataplex.v1.DataQualityRule.RowConditionExpectation) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation other) { + if (other + == com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + .getDefaultInstance()) return this; + if (!other.getSqlExpression().isEmpty()) { + sqlExpression_ = other.sqlExpression_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sqlExpression_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object sqlExpression_ = ""; + /** + * string sql_expression = 1; + * + * @return The sqlExpression. + */ + public java.lang.String getSqlExpression() { + java.lang.Object ref = sqlExpression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlExpression_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string sql_expression = 1; + * + * @return The bytes for sqlExpression. + */ + public com.google.protobuf.ByteString getSqlExpressionBytes() { + java.lang.Object ref = sqlExpression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string sql_expression = 1; + * + * @param value The sqlExpression to set. + * @return This builder for chaining. + */ + public Builder setSqlExpression(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sqlExpression_ = value; + onChanged(); + return this; + } + /** + * string sql_expression = 1; + * + * @return This builder for chaining. + */ + public Builder clearSqlExpression() { + + sqlExpression_ = getDefaultInstance().getSqlExpression(); + onChanged(); + return this; + } + /** + * string sql_expression = 1; + * + * @param value The bytes for sqlExpression to set. + * @return This builder for chaining. + */ + public Builder setSqlExpressionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sqlExpression_ = 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.dataplex.v1.DataQualityRule.RowConditionExpectation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) + private static final com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation(); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RowConditionExpectation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TableConditionExpectationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) + com.google.protobuf.MessageOrBuilder { + + /** + * string sql_expression = 1; + * + * @return The sqlExpression. + */ + java.lang.String getSqlExpression(); + /** + * string sql_expression = 1; + * + * @return The bytes for sqlExpression. + */ + com.google.protobuf.ByteString getSqlExpressionBytes(); + } + /** + * + * + *
+   * Evaluates whether the provided expression is true.
+   * The SQL expression needs to use BigQuery standard SQL syntax and should
+   * produce a scalar boolean result.
+   * Example: MIN(col1) >= 0
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation} + */ + public static final class TableConditionExpectation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) + TableConditionExpectationOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableConditionExpectation.newBuilder() to construct. + private TableConditionExpectation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TableConditionExpectation() { + sqlExpression_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TableConditionExpectation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.Builder.class); + } + + public static final int SQL_EXPRESSION_FIELD_NUMBER = 1; + private volatile java.lang.Object sqlExpression_; + /** + * string sql_expression = 1; + * + * @return The sqlExpression. + */ + @java.lang.Override + public java.lang.String getSqlExpression() { + java.lang.Object ref = sqlExpression_; + 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(); + sqlExpression_ = s; + return s; + } + } + /** + * string sql_expression = 1; + * + * @return The bytes for sqlExpression. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSqlExpressionBytes() { + java.lang.Object ref = sqlExpression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlExpression_ = 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(sqlExpression_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlExpression_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlExpression_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlExpression_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation other = + (com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) obj; + + if (!getSqlExpression().equals(other.getSqlExpression())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SQL_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getSqlExpression().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation 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.dataplex.v1.DataQualityRule.TableConditionExpectation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation 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.dataplex.v1.DataQualityRule.TableConditionExpectation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation 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.dataplex.v1.DataQualityRule.TableConditionExpectation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + 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.dataplex.v1.DataQualityRule.TableConditionExpectation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation 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.dataplex.v1.DataQualityRule.TableConditionExpectation 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; + } + /** + * + * + *
+     * Evaluates whether the provided expression is true.
+     * The SQL expression needs to use BigQuery standard SQL syntax and should
+     * produce a scalar boolean result.
+     * Example: MIN(col1) >= 0
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.class, + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.Builder + .class); + } + + // Construct using + // com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + sqlExpression_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation build() { + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation buildPartial() { + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation result = + new com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation(this); + result.sqlExpression_ = sqlExpression_; + 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.dataplex.v1.DataQualityRule.TableConditionExpectation) { + return mergeFrom( + (com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation other) { + if (other + == com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + .getDefaultInstance()) return this; + if (!other.getSqlExpression().isEmpty()) { + sqlExpression_ = other.sqlExpression_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sqlExpression_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object sqlExpression_ = ""; + /** + * string sql_expression = 1; + * + * @return The sqlExpression. + */ + public java.lang.String getSqlExpression() { + java.lang.Object ref = sqlExpression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sqlExpression_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string sql_expression = 1; + * + * @return The bytes for sqlExpression. + */ + public com.google.protobuf.ByteString getSqlExpressionBytes() { + java.lang.Object ref = sqlExpression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sqlExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string sql_expression = 1; + * + * @param value The sqlExpression to set. + * @return This builder for chaining. + */ + public Builder setSqlExpression(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sqlExpression_ = value; + onChanged(); + return this; + } + /** + * string sql_expression = 1; + * + * @return This builder for chaining. + */ + public Builder clearSqlExpression() { + + sqlExpression_ = getDefaultInstance().getSqlExpression(); + onChanged(); + return this; + } + /** + * string sql_expression = 1; + * + * @param value The bytes for sqlExpression to set. + * @return This builder for chaining. + */ + public Builder setSqlExpressionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sqlExpression_ = 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.dataplex.v1.DataQualityRule.TableConditionExpectation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) + private static final com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation(); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableConditionExpectation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int ruleTypeCase_ = 0; + private java.lang.Object ruleType_; + + public enum RuleTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RANGE_EXPECTATION(1), + NON_NULL_EXPECTATION(2), + SET_EXPECTATION(3), + REGEX_EXPECTATION(4), + UNIQUENESS_EXPECTATION(100), + STATISTIC_RANGE_EXPECTATION(101), + ROW_CONDITION_EXPECTATION(200), + TABLE_CONDITION_EXPECTATION(201), + RULETYPE_NOT_SET(0); + private final int value; + + private RuleTypeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RuleTypeCase valueOf(int value) { + return forNumber(value); + } + + public static RuleTypeCase forNumber(int value) { + switch (value) { + case 1: + return RANGE_EXPECTATION; + case 2: + return NON_NULL_EXPECTATION; + case 3: + return SET_EXPECTATION; + case 4: + return REGEX_EXPECTATION; + case 100: + return UNIQUENESS_EXPECTATION; + case 101: + return STATISTIC_RANGE_EXPECTATION; + case 200: + return ROW_CONDITION_EXPECTATION; + case 201: + return TABLE_CONDITION_EXPECTATION; + case 0: + return RULETYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RuleTypeCase getRuleTypeCase() { + return RuleTypeCase.forNumber(ruleTypeCase_); + } + + public static final int RANGE_EXPECTATION_FIELD_NUMBER = 1; + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value lies between a
+   * specified range.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + * @return Whether the rangeExpectation field is set. + */ + @java.lang.Override + public boolean hasRangeExpectation() { + return ruleTypeCase_ == 1; + } + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value lies between a
+   * specified range.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + * @return The rangeExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation getRangeExpectation() { + if (ruleTypeCase_ == 1) { + return (com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.getDefaultInstance(); + } + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value lies between a
+   * specified range.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationOrBuilder + getRangeExpectationOrBuilder() { + if (ruleTypeCase_ == 1) { + return (com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.getDefaultInstance(); + } + + public static final int NON_NULL_EXPECTATION_FIELD_NUMBER = 2; + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value is null.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + * + * @return Whether the nonNullExpectation field is set. + */ + @java.lang.Override + public boolean hasNonNullExpectation() { + return ruleTypeCase_ == 2; + } + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value is null.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + * + * @return The nonNullExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation getNonNullExpectation() { + if (ruleTypeCase_ == 2) { + return (com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.getDefaultInstance(); + } + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value is null.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationOrBuilder + getNonNullExpectationOrBuilder() { + if (ruleTypeCase_ == 2) { + return (com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.getDefaultInstance(); + } + + public static final int SET_EXPECTATION_FIELD_NUMBER = 3; + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value is contained by
+   * a specified set.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + * + * @return Whether the setExpectation field is set. + */ + @java.lang.Override + public boolean hasSetExpectation() { + return ruleTypeCase_ == 3; + } + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value is contained by
+   * a specified set.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + * + * @return The setExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation getSetExpectation() { + if (ruleTypeCase_ == 3) { + return (com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.getDefaultInstance(); + } + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value is contained by
+   * a specified set.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.SetExpectationOrBuilder + getSetExpectationOrBuilder() { + if (ruleTypeCase_ == 3) { + return (com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.getDefaultInstance(); + } + + public static final int REGEX_EXPECTATION_FIELD_NUMBER = 4; + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value matches a
+   * specified regex.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + * @return Whether the regexExpectation field is set. + */ + @java.lang.Override + public boolean hasRegexExpectation() { + return ruleTypeCase_ == 4; + } + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value matches a
+   * specified regex.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + * @return The regexExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation getRegexExpectation() { + if (ruleTypeCase_ == 4) { + return (com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.getDefaultInstance(); + } + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value matches a
+   * specified regex.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationOrBuilder + getRegexExpectationOrBuilder() { + if (ruleTypeCase_ == 4) { + return (com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.getDefaultInstance(); + } + + public static final int UNIQUENESS_EXPECTATION_FIELD_NUMBER = 100; + /** + * + * + *
+   * ColumnAggregate rule which evaluates whether the column has duplicates.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + * + * @return Whether the uniquenessExpectation field is set. + */ + @java.lang.Override + public boolean hasUniquenessExpectation() { + return ruleTypeCase_ == 100; + } + /** + * + * + *
+   * ColumnAggregate rule which evaluates whether the column has duplicates.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + * + * @return The uniquenessExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + getUniquenessExpectation() { + if (ruleTypeCase_ == 100) { + return (com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.getDefaultInstance(); + } + /** + * + * + *
+   * ColumnAggregate rule which evaluates whether the column has duplicates.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationOrBuilder + getUniquenessExpectationOrBuilder() { + if (ruleTypeCase_ == 100) { + return (com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.getDefaultInstance(); + } + + public static final int STATISTIC_RANGE_EXPECTATION_FIELD_NUMBER = 101; + /** + * + * + *
+   * ColumnAggregate rule which evaluates whether the column aggregate
+   * statistic lies between a specified range.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + * + * @return Whether the statisticRangeExpectation field is set. + */ + @java.lang.Override + public boolean hasStatisticRangeExpectation() { + return ruleTypeCase_ == 101; + } + /** + * + * + *
+   * ColumnAggregate rule which evaluates whether the column aggregate
+   * statistic lies between a specified range.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + * + * @return The statisticRangeExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + getStatisticRangeExpectation() { + if (ruleTypeCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + .getDefaultInstance(); + } + /** + * + * + *
+   * ColumnAggregate rule which evaluates whether the column aggregate
+   * statistic lies between a specified range.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationOrBuilder + getStatisticRangeExpectationOrBuilder() { + if (ruleTypeCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + .getDefaultInstance(); + } + + public static final int ROW_CONDITION_EXPECTATION_FIELD_NUMBER = 200; + /** + * + * + *
+   * Table rule which evaluates whether each row passes the specified
+   * condition.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + * + * @return Whether the rowConditionExpectation field is set. + */ + @java.lang.Override + public boolean hasRowConditionExpectation() { + return ruleTypeCase_ == 200; + } + /** + * + * + *
+   * Table rule which evaluates whether each row passes the specified
+   * condition.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + * + * @return The rowConditionExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + getRowConditionExpectation() { + if (ruleTypeCase_ == 200) { + return (com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + .getDefaultInstance(); + } + /** + * + * + *
+   * Table rule which evaluates whether each row passes the specified
+   * condition.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationOrBuilder + getRowConditionExpectationOrBuilder() { + if (ruleTypeCase_ == 200) { + return (com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + .getDefaultInstance(); + } + + public static final int TABLE_CONDITION_EXPECTATION_FIELD_NUMBER = 201; + /** + * + * + *
+   * Table rule which evaluates whether the provided expression is true.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + * + * @return Whether the tableConditionExpectation field is set. + */ + @java.lang.Override + public boolean hasTableConditionExpectation() { + return ruleTypeCase_ == 201; + } + /** + * + * + *
+   * Table rule which evaluates whether the provided expression is true.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + * + * @return The tableConditionExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + getTableConditionExpectation() { + if (ruleTypeCase_ == 201) { + return (com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + .getDefaultInstance(); + } + /** + * + * + *
+   * Table rule which evaluates whether the provided expression is true.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationOrBuilder + getTableConditionExpectationOrBuilder() { + if (ruleTypeCase_ == 201) { + return (com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + .getDefaultInstance(); + } + + public static final int COLUMN_FIELD_NUMBER = 500; + private volatile java.lang.Object column_; + /** + * + * + *
+   * Optional. The unnested column which this rule is evaluated against.
+   * 
+ * + * string column = 500 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The column. + */ + @java.lang.Override + public java.lang.String getColumn() { + java.lang.Object ref = column_; + 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(); + column_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The unnested column which this rule is evaluated against.
+   * 
+ * + * string column = 500 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for column. + */ + @java.lang.Override + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IGNORE_NULL_FIELD_NUMBER = 501; + private boolean ignoreNull_; + /** + * + * + *
+   * Optional. Rows with null values will automatically fail a rule, unless
+   * ignore_null is true. In that case, such null rows are trivially considered
+   * passing. Only applicable to ColumnMap rules.
+   * 
+ * + * bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreNull. + */ + @java.lang.Override + public boolean getIgnoreNull() { + return ignoreNull_; + } + + public static final int DIMENSION_FIELD_NUMBER = 502; + private volatile java.lang.Object dimension_; + /** + * + * + *
+   * Required. The dimension a rule belongs to. Results are also aggregated at
+   * the dimension-level. Supported dimensions are ["COMPLETENESS", "ACCURACY",
+   * "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]
+   * 
+ * + * string dimension = 502 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dimension. + */ + @java.lang.Override + public java.lang.String getDimension() { + java.lang.Object ref = dimension_; + 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(); + dimension_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The dimension a rule belongs to. Results are also aggregated at
+   * the dimension-level. Supported dimensions are ["COMPLETENESS", "ACCURACY",
+   * "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]
+   * 
+ * + * string dimension = 502 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dimension. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDimensionBytes() { + java.lang.Object ref = dimension_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimension_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int THRESHOLD_FIELD_NUMBER = 503; + private double threshold_; + /** + * + * + *
+   * Optional. The minimum ratio of passing_rows / total_rows required to pass
+   * this rule, with a range of [0.0, 1.0]
+   * 0 indicates default value (i.e. 1.0)
+   * 
+ * + * double threshold = 503 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The threshold. + */ + @java.lang.Override + public double getThreshold() { + return threshold_; + } + + 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 (ruleTypeCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) ruleType_); + } + if (ruleTypeCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) ruleType_); + } + if (ruleTypeCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation) ruleType_); + } + if (ruleTypeCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) ruleType_); + } + if (ruleTypeCase_ == 100) { + output.writeMessage( + 100, (com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) ruleType_); + } + if (ruleTypeCase_ == 101) { + output.writeMessage( + 101, (com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) ruleType_); + } + if (ruleTypeCase_ == 200) { + output.writeMessage( + 200, (com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) ruleType_); + } + if (ruleTypeCase_ == 201) { + output.writeMessage( + 201, (com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) ruleType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 500, column_); + } + if (ignoreNull_ != false) { + output.writeBool(501, ignoreNull_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimension_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 502, dimension_); + } + if (java.lang.Double.doubleToRawLongBits(threshold_) != 0) { + output.writeDouble(503, threshold_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ruleTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) ruleType_); + } + if (ruleTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) ruleType_); + } + if (ruleTypeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation) ruleType_); + } + if (ruleTypeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) ruleType_); + } + if (ruleTypeCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) ruleType_); + } + if (ruleTypeCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, + (com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) ruleType_); + } + if (ruleTypeCase_ == 200) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 200, + (com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) ruleType_); + } + if (ruleTypeCase_ == 201) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 201, + (com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) ruleType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(500, column_); + } + if (ignoreNull_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(501, ignoreNull_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimension_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(502, dimension_); + } + if (java.lang.Double.doubleToRawLongBits(threshold_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(503, threshold_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataQualityRule)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityRule other = + (com.google.cloud.dataplex.v1.DataQualityRule) obj; + + if (!getColumn().equals(other.getColumn())) return false; + if (getIgnoreNull() != other.getIgnoreNull()) return false; + if (!getDimension().equals(other.getDimension())) return false; + if (java.lang.Double.doubleToLongBits(getThreshold()) + != java.lang.Double.doubleToLongBits(other.getThreshold())) return false; + if (!getRuleTypeCase().equals(other.getRuleTypeCase())) return false; + switch (ruleTypeCase_) { + case 1: + if (!getRangeExpectation().equals(other.getRangeExpectation())) return false; + break; + case 2: + if (!getNonNullExpectation().equals(other.getNonNullExpectation())) return false; + break; + case 3: + if (!getSetExpectation().equals(other.getSetExpectation())) return false; + break; + case 4: + if (!getRegexExpectation().equals(other.getRegexExpectation())) return false; + break; + case 100: + if (!getUniquenessExpectation().equals(other.getUniquenessExpectation())) return false; + break; + case 101: + if (!getStatisticRangeExpectation().equals(other.getStatisticRangeExpectation())) + return false; + break; + case 200: + if (!getRowConditionExpectation().equals(other.getRowConditionExpectation())) return false; + break; + case 201: + if (!getTableConditionExpectation().equals(other.getTableConditionExpectation())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn().hashCode(); + hash = (37 * hash) + IGNORE_NULL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreNull()); + hash = (37 * hash) + DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getDimension().hashCode(); + hash = (37 * hash) + THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThreshold())); + switch (ruleTypeCase_) { + case 1: + hash = (37 * hash) + RANGE_EXPECTATION_FIELD_NUMBER; + hash = (53 * hash) + getRangeExpectation().hashCode(); + break; + case 2: + hash = (37 * hash) + NON_NULL_EXPECTATION_FIELD_NUMBER; + hash = (53 * hash) + getNonNullExpectation().hashCode(); + break; + case 3: + hash = (37 * hash) + SET_EXPECTATION_FIELD_NUMBER; + hash = (53 * hash) + getSetExpectation().hashCode(); + break; + case 4: + hash = (37 * hash) + REGEX_EXPECTATION_FIELD_NUMBER; + hash = (53 * hash) + getRegexExpectation().hashCode(); + break; + case 100: + hash = (37 * hash) + UNIQUENESS_EXPECTATION_FIELD_NUMBER; + hash = (53 * hash) + getUniquenessExpectation().hashCode(); + break; + case 101: + hash = (37 * hash) + STATISTIC_RANGE_EXPECTATION_FIELD_NUMBER; + hash = (53 * hash) + getStatisticRangeExpectation().hashCode(); + break; + case 200: + hash = (37 * hash) + ROW_CONDITION_EXPECTATION_FIELD_NUMBER; + hash = (53 * hash) + getRowConditionExpectation().hashCode(); + break; + case 201: + hash = (37 * hash) + TABLE_CONDITION_EXPECTATION_FIELD_NUMBER; + hash = (53 * hash) + getTableConditionExpectation().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule 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.dataplex.v1.DataQualityRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule 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.dataplex.v1.DataQualityRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule 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.dataplex.v1.DataQualityRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule 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.dataplex.v1.DataQualityRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule 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.dataplex.v1.DataQualityRule 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 rule captures data quality intent about a data source.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule) + com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRule.class, + com.google.cloud.dataplex.v1.DataQualityRule.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataQualityRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (rangeExpectationBuilder_ != null) { + rangeExpectationBuilder_.clear(); + } + if (nonNullExpectationBuilder_ != null) { + nonNullExpectationBuilder_.clear(); + } + if (setExpectationBuilder_ != null) { + setExpectationBuilder_.clear(); + } + if (regexExpectationBuilder_ != null) { + regexExpectationBuilder_.clear(); + } + if (uniquenessExpectationBuilder_ != null) { + uniquenessExpectationBuilder_.clear(); + } + if (statisticRangeExpectationBuilder_ != null) { + statisticRangeExpectationBuilder_.clear(); + } + if (rowConditionExpectationBuilder_ != null) { + rowConditionExpectationBuilder_.clear(); + } + if (tableConditionExpectationBuilder_ != null) { + tableConditionExpectationBuilder_.clear(); + } + column_ = ""; + + ignoreNull_ = false; + + dimension_ = ""; + + threshold_ = 0D; + + ruleTypeCase_ = 0; + ruleType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule build() { + com.google.cloud.dataplex.v1.DataQualityRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule buildPartial() { + com.google.cloud.dataplex.v1.DataQualityRule result = + new com.google.cloud.dataplex.v1.DataQualityRule(this); + if (ruleTypeCase_ == 1) { + if (rangeExpectationBuilder_ == null) { + result.ruleType_ = ruleType_; + } else { + result.ruleType_ = rangeExpectationBuilder_.build(); + } + } + if (ruleTypeCase_ == 2) { + if (nonNullExpectationBuilder_ == null) { + result.ruleType_ = ruleType_; + } else { + result.ruleType_ = nonNullExpectationBuilder_.build(); + } + } + if (ruleTypeCase_ == 3) { + if (setExpectationBuilder_ == null) { + result.ruleType_ = ruleType_; + } else { + result.ruleType_ = setExpectationBuilder_.build(); + } + } + if (ruleTypeCase_ == 4) { + if (regexExpectationBuilder_ == null) { + result.ruleType_ = ruleType_; + } else { + result.ruleType_ = regexExpectationBuilder_.build(); + } + } + if (ruleTypeCase_ == 100) { + if (uniquenessExpectationBuilder_ == null) { + result.ruleType_ = ruleType_; + } else { + result.ruleType_ = uniquenessExpectationBuilder_.build(); + } + } + if (ruleTypeCase_ == 101) { + if (statisticRangeExpectationBuilder_ == null) { + result.ruleType_ = ruleType_; + } else { + result.ruleType_ = statisticRangeExpectationBuilder_.build(); + } + } + if (ruleTypeCase_ == 200) { + if (rowConditionExpectationBuilder_ == null) { + result.ruleType_ = ruleType_; + } else { + result.ruleType_ = rowConditionExpectationBuilder_.build(); + } + } + if (ruleTypeCase_ == 201) { + if (tableConditionExpectationBuilder_ == null) { + result.ruleType_ = ruleType_; + } else { + result.ruleType_ = tableConditionExpectationBuilder_.build(); + } + } + result.column_ = column_; + result.ignoreNull_ = ignoreNull_; + result.dimension_ = dimension_; + result.threshold_ = threshold_; + result.ruleTypeCase_ = ruleTypeCase_; + 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.dataplex.v1.DataQualityRule) { + return mergeFrom((com.google.cloud.dataplex.v1.DataQualityRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataQualityRule other) { + if (other == com.google.cloud.dataplex.v1.DataQualityRule.getDefaultInstance()) return this; + if (!other.getColumn().isEmpty()) { + column_ = other.column_; + onChanged(); + } + if (other.getIgnoreNull() != false) { + setIgnoreNull(other.getIgnoreNull()); + } + if (!other.getDimension().isEmpty()) { + dimension_ = other.dimension_; + onChanged(); + } + if (other.getThreshold() != 0D) { + setThreshold(other.getThreshold()); + } + switch (other.getRuleTypeCase()) { + case RANGE_EXPECTATION: + { + mergeRangeExpectation(other.getRangeExpectation()); + break; + } + case NON_NULL_EXPECTATION: + { + mergeNonNullExpectation(other.getNonNullExpectation()); + break; + } + case SET_EXPECTATION: + { + mergeSetExpectation(other.getSetExpectation()); + break; + } + case REGEX_EXPECTATION: + { + mergeRegexExpectation(other.getRegexExpectation()); + break; + } + case UNIQUENESS_EXPECTATION: + { + mergeUniquenessExpectation(other.getUniquenessExpectation()); + break; + } + case STATISTIC_RANGE_EXPECTATION: + { + mergeStatisticRangeExpectation(other.getStatisticRangeExpectation()); + break; + } + case ROW_CONDITION_EXPECTATION: + { + mergeRowConditionExpectation(other.getRowConditionExpectation()); + break; + } + case TABLE_CONDITION_EXPECTATION: + { + mergeTableConditionExpectation(other.getTableConditionExpectation()); + break; + } + case RULETYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getRangeExpectationFieldBuilder().getBuilder(), extensionRegistry); + ruleTypeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getNonNullExpectationFieldBuilder().getBuilder(), extensionRegistry); + ruleTypeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getSetExpectationFieldBuilder().getBuilder(), extensionRegistry); + ruleTypeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getRegexExpectationFieldBuilder().getBuilder(), extensionRegistry); + ruleTypeCase_ = 4; + break; + } // case 34 + case 802: + { + input.readMessage( + getUniquenessExpectationFieldBuilder().getBuilder(), extensionRegistry); + ruleTypeCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage( + getStatisticRangeExpectationFieldBuilder().getBuilder(), extensionRegistry); + ruleTypeCase_ = 101; + break; + } // case 810 + case 1602: + { + input.readMessage( + getRowConditionExpectationFieldBuilder().getBuilder(), extensionRegistry); + ruleTypeCase_ = 200; + break; + } // case 1602 + case 1610: + { + input.readMessage( + getTableConditionExpectationFieldBuilder().getBuilder(), extensionRegistry); + ruleTypeCase_ = 201; + break; + } // case 1610 + case 4002: + { + column_ = input.readStringRequireUtf8(); + + break; + } // case 4002 + case 4008: + { + ignoreNull_ = input.readBool(); + + break; + } // case 4008 + case 4018: + { + dimension_ = input.readStringRequireUtf8(); + + break; + } // case 4018 + case 4025: + { + threshold_ = input.readDouble(); + + break; + } // case 4025 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int ruleTypeCase_ = 0; + private java.lang.Object ruleType_; + + public RuleTypeCase getRuleTypeCase() { + return RuleTypeCase.forNumber(ruleTypeCase_); + } + + public Builder clearRuleType() { + ruleTypeCase_ = 0; + ruleType_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationOrBuilder> + rangeExpectationBuilder_; + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value lies between a
+     * specified range.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + * + * @return Whether the rangeExpectation field is set. + */ + @java.lang.Override + public boolean hasRangeExpectation() { + return ruleTypeCase_ == 1; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value lies between a
+     * specified range.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + * + * @return The rangeExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation getRangeExpectation() { + if (rangeExpectationBuilder_ == null) { + if (ruleTypeCase_ == 1) { + return (com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.getDefaultInstance(); + } else { + if (ruleTypeCase_ == 1) { + return rangeExpectationBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.getDefaultInstance(); + } + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value lies between a
+     * specified range.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + */ + public Builder setRangeExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation value) { + if (rangeExpectationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleType_ = value; + onChanged(); + } else { + rangeExpectationBuilder_.setMessage(value); + } + ruleTypeCase_ = 1; + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value lies between a
+     * specified range.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + */ + public Builder setRangeExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.Builder builderForValue) { + if (rangeExpectationBuilder_ == null) { + ruleType_ = builderForValue.build(); + onChanged(); + } else { + rangeExpectationBuilder_.setMessage(builderForValue.build()); + } + ruleTypeCase_ = 1; + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value lies between a
+     * specified range.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + */ + public Builder mergeRangeExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation value) { + if (rangeExpectationBuilder_ == null) { + if (ruleTypeCase_ == 1 + && ruleType_ + != com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation + .getDefaultInstance()) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.newBuilder( + (com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) ruleType_) + .mergeFrom(value) + .buildPartial(); + } else { + ruleType_ = value; + } + onChanged(); + } else { + if (ruleTypeCase_ == 1) { + rangeExpectationBuilder_.mergeFrom(value); + } else { + rangeExpectationBuilder_.setMessage(value); + } + } + ruleTypeCase_ = 1; + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value lies between a
+     * specified range.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + */ + public Builder clearRangeExpectation() { + if (rangeExpectationBuilder_ == null) { + if (ruleTypeCase_ == 1) { + ruleTypeCase_ = 0; + ruleType_ = null; + onChanged(); + } + } else { + if (ruleTypeCase_ == 1) { + ruleTypeCase_ = 0; + ruleType_ = null; + } + rangeExpectationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value lies between a
+     * specified range.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + */ + public com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.Builder + getRangeExpectationBuilder() { + return getRangeExpectationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value lies between a
+     * specified range.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationOrBuilder + getRangeExpectationOrBuilder() { + if ((ruleTypeCase_ == 1) && (rangeExpectationBuilder_ != null)) { + return rangeExpectationBuilder_.getMessageOrBuilder(); + } else { + if (ruleTypeCase_ == 1) { + return (com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.getDefaultInstance(); + } + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value lies between a
+     * specified range.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationOrBuilder> + getRangeExpectationFieldBuilder() { + if (rangeExpectationBuilder_ == null) { + if (!(ruleTypeCase_ == 1)) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.getDefaultInstance(); + } + rangeExpectationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationOrBuilder>( + (com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation) ruleType_, + getParentForChildren(), + isClean()); + ruleType_ = null; + } + ruleTypeCase_ = 1; + onChanged(); + ; + return rangeExpectationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationOrBuilder> + nonNullExpectationBuilder_; + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is null.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + * + * @return Whether the nonNullExpectation field is set. + */ + @java.lang.Override + public boolean hasNonNullExpectation() { + return ruleTypeCase_ == 2; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is null.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + * + * @return The nonNullExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation getNonNullExpectation() { + if (nonNullExpectationBuilder_ == null) { + if (ruleTypeCase_ == 2) { + return (com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.getDefaultInstance(); + } else { + if (ruleTypeCase_ == 2) { + return nonNullExpectationBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.getDefaultInstance(); + } + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is null.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + */ + public Builder setNonNullExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation value) { + if (nonNullExpectationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleType_ = value; + onChanged(); + } else { + nonNullExpectationBuilder_.setMessage(value); + } + ruleTypeCase_ = 2; + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is null.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + */ + public Builder setNonNullExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.Builder builderForValue) { + if (nonNullExpectationBuilder_ == null) { + ruleType_ = builderForValue.build(); + onChanged(); + } else { + nonNullExpectationBuilder_.setMessage(builderForValue.build()); + } + ruleTypeCase_ = 2; + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is null.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + */ + public Builder mergeNonNullExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation value) { + if (nonNullExpectationBuilder_ == null) { + if (ruleTypeCase_ == 2 + && ruleType_ + != com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation + .getDefaultInstance()) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.newBuilder( + (com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) ruleType_) + .mergeFrom(value) + .buildPartial(); + } else { + ruleType_ = value; + } + onChanged(); + } else { + if (ruleTypeCase_ == 2) { + nonNullExpectationBuilder_.mergeFrom(value); + } else { + nonNullExpectationBuilder_.setMessage(value); + } + } + ruleTypeCase_ = 2; + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is null.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + */ + public Builder clearNonNullExpectation() { + if (nonNullExpectationBuilder_ == null) { + if (ruleTypeCase_ == 2) { + ruleTypeCase_ = 0; + ruleType_ = null; + onChanged(); + } + } else { + if (ruleTypeCase_ == 2) { + ruleTypeCase_ = 0; + ruleType_ = null; + } + nonNullExpectationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is null.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + */ + public com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.Builder + getNonNullExpectationBuilder() { + return getNonNullExpectationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is null.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationOrBuilder + getNonNullExpectationOrBuilder() { + if ((ruleTypeCase_ == 2) && (nonNullExpectationBuilder_ != null)) { + return nonNullExpectationBuilder_.getMessageOrBuilder(); + } else { + if (ruleTypeCase_ == 2) { + return (com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.getDefaultInstance(); + } + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is null.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationOrBuilder> + getNonNullExpectationFieldBuilder() { + if (nonNullExpectationBuilder_ == null) { + if (!(ruleTypeCase_ == 2)) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.getDefaultInstance(); + } + nonNullExpectationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationOrBuilder>( + (com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) ruleType_, + getParentForChildren(), + isClean()); + ruleType_ = null; + } + ruleTypeCase_ = 2; + onChanged(); + ; + return nonNullExpectationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectationOrBuilder> + setExpectationBuilder_; + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is contained by
+     * a specified set.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + * + * @return Whether the setExpectation field is set. + */ + @java.lang.Override + public boolean hasSetExpectation() { + return ruleTypeCase_ == 3; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is contained by
+     * a specified set.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + * + * @return The setExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation getSetExpectation() { + if (setExpectationBuilder_ == null) { + if (ruleTypeCase_ == 3) { + return (com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.getDefaultInstance(); + } else { + if (ruleTypeCase_ == 3) { + return setExpectationBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.getDefaultInstance(); + } + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is contained by
+     * a specified set.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + */ + public Builder setSetExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation value) { + if (setExpectationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleType_ = value; + onChanged(); + } else { + setExpectationBuilder_.setMessage(value); + } + ruleTypeCase_ = 3; + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is contained by
+     * a specified set.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + */ + public Builder setSetExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.Builder builderForValue) { + if (setExpectationBuilder_ == null) { + ruleType_ = builderForValue.build(); + onChanged(); + } else { + setExpectationBuilder_.setMessage(builderForValue.build()); + } + ruleTypeCase_ = 3; + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is contained by
+     * a specified set.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + */ + public Builder mergeSetExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation value) { + if (setExpectationBuilder_ == null) { + if (ruleTypeCase_ == 3 + && ruleType_ + != com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation + .getDefaultInstance()) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.newBuilder( + (com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation) ruleType_) + .mergeFrom(value) + .buildPartial(); + } else { + ruleType_ = value; + } + onChanged(); + } else { + if (ruleTypeCase_ == 3) { + setExpectationBuilder_.mergeFrom(value); + } else { + setExpectationBuilder_.setMessage(value); + } + } + ruleTypeCase_ = 3; + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is contained by
+     * a specified set.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + */ + public Builder clearSetExpectation() { + if (setExpectationBuilder_ == null) { + if (ruleTypeCase_ == 3) { + ruleTypeCase_ = 0; + ruleType_ = null; + onChanged(); + } + } else { + if (ruleTypeCase_ == 3) { + ruleTypeCase_ = 0; + ruleType_ = null; + } + setExpectationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is contained by
+     * a specified set.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + */ + public com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.Builder + getSetExpectationBuilder() { + return getSetExpectationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is contained by
+     * a specified set.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.SetExpectationOrBuilder + getSetExpectationOrBuilder() { + if ((ruleTypeCase_ == 3) && (setExpectationBuilder_ != null)) { + return setExpectationBuilder_.getMessageOrBuilder(); + } else { + if (ruleTypeCase_ == 3) { + return (com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.getDefaultInstance(); + } + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value is contained by
+     * a specified set.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectationOrBuilder> + getSetExpectationFieldBuilder() { + if (setExpectationBuilder_ == null) { + if (!(ruleTypeCase_ == 3)) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.getDefaultInstance(); + } + setExpectationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectationOrBuilder>( + (com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation) ruleType_, + getParentForChildren(), + isClean()); + ruleType_ = null; + } + ruleTypeCase_ = 3; + onChanged(); + ; + return setExpectationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationOrBuilder> + regexExpectationBuilder_; + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value matches a
+     * specified regex.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + * + * @return Whether the regexExpectation field is set. + */ + @java.lang.Override + public boolean hasRegexExpectation() { + return ruleTypeCase_ == 4; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value matches a
+     * specified regex.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + * + * @return The regexExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation getRegexExpectation() { + if (regexExpectationBuilder_ == null) { + if (ruleTypeCase_ == 4) { + return (com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.getDefaultInstance(); + } else { + if (ruleTypeCase_ == 4) { + return regexExpectationBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.getDefaultInstance(); + } + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value matches a
+     * specified regex.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + */ + public Builder setRegexExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation value) { + if (regexExpectationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleType_ = value; + onChanged(); + } else { + regexExpectationBuilder_.setMessage(value); + } + ruleTypeCase_ = 4; + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value matches a
+     * specified regex.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + */ + public Builder setRegexExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.Builder builderForValue) { + if (regexExpectationBuilder_ == null) { + ruleType_ = builderForValue.build(); + onChanged(); + } else { + regexExpectationBuilder_.setMessage(builderForValue.build()); + } + ruleTypeCase_ = 4; + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value matches a
+     * specified regex.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + */ + public Builder mergeRegexExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation value) { + if (regexExpectationBuilder_ == null) { + if (ruleTypeCase_ == 4 + && ruleType_ + != com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation + .getDefaultInstance()) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.newBuilder( + (com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) ruleType_) + .mergeFrom(value) + .buildPartial(); + } else { + ruleType_ = value; + } + onChanged(); + } else { + if (ruleTypeCase_ == 4) { + regexExpectationBuilder_.mergeFrom(value); + } else { + regexExpectationBuilder_.setMessage(value); + } + } + ruleTypeCase_ = 4; + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value matches a
+     * specified regex.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + */ + public Builder clearRegexExpectation() { + if (regexExpectationBuilder_ == null) { + if (ruleTypeCase_ == 4) { + ruleTypeCase_ = 0; + ruleType_ = null; + onChanged(); + } + } else { + if (ruleTypeCase_ == 4) { + ruleTypeCase_ = 0; + ruleType_ = null; + } + regexExpectationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value matches a
+     * specified regex.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + */ + public com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.Builder + getRegexExpectationBuilder() { + return getRegexExpectationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value matches a
+     * specified regex.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationOrBuilder + getRegexExpectationOrBuilder() { + if ((ruleTypeCase_ == 4) && (regexExpectationBuilder_ != null)) { + return regexExpectationBuilder_.getMessageOrBuilder(); + } else { + if (ruleTypeCase_ == 4) { + return (com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.getDefaultInstance(); + } + } + /** + * + * + *
+     * ColumnMap rule which evaluates whether each column value matches a
+     * specified regex.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationOrBuilder> + getRegexExpectationFieldBuilder() { + if (regexExpectationBuilder_ == null) { + if (!(ruleTypeCase_ == 4)) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.getDefaultInstance(); + } + regexExpectationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationOrBuilder>( + (com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation) ruleType_, + getParentForChildren(), + isClean()); + ruleType_ = null; + } + ruleTypeCase_ = 4; + onChanged(); + ; + return regexExpectationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationOrBuilder> + uniquenessExpectationBuilder_; + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column has duplicates.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + * + * @return Whether the uniquenessExpectation field is set. + */ + @java.lang.Override + public boolean hasUniquenessExpectation() { + return ruleTypeCase_ == 100; + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column has duplicates.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + * + * @return The uniquenessExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + getUniquenessExpectation() { + if (uniquenessExpectationBuilder_ == null) { + if (ruleTypeCase_ == 100) { + return (com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + .getDefaultInstance(); + } else { + if (ruleTypeCase_ == 100) { + return uniquenessExpectationBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column has duplicates.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + */ + public Builder setUniquenessExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation value) { + if (uniquenessExpectationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleType_ = value; + onChanged(); + } else { + uniquenessExpectationBuilder_.setMessage(value); + } + ruleTypeCase_ = 100; + return this; + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column has duplicates.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + */ + public Builder setUniquenessExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.Builder + builderForValue) { + if (uniquenessExpectationBuilder_ == null) { + ruleType_ = builderForValue.build(); + onChanged(); + } else { + uniquenessExpectationBuilder_.setMessage(builderForValue.build()); + } + ruleTypeCase_ = 100; + return this; + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column has duplicates.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + */ + public Builder mergeUniquenessExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation value) { + if (uniquenessExpectationBuilder_ == null) { + if (ruleTypeCase_ == 100 + && ruleType_ + != com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + .getDefaultInstance()) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.newBuilder( + (com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) + ruleType_) + .mergeFrom(value) + .buildPartial(); + } else { + ruleType_ = value; + } + onChanged(); + } else { + if (ruleTypeCase_ == 100) { + uniquenessExpectationBuilder_.mergeFrom(value); + } else { + uniquenessExpectationBuilder_.setMessage(value); + } + } + ruleTypeCase_ = 100; + return this; + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column has duplicates.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + */ + public Builder clearUniquenessExpectation() { + if (uniquenessExpectationBuilder_ == null) { + if (ruleTypeCase_ == 100) { + ruleTypeCase_ = 0; + ruleType_ = null; + onChanged(); + } + } else { + if (ruleTypeCase_ == 100) { + ruleTypeCase_ = 0; + ruleType_ = null; + } + uniquenessExpectationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column has duplicates.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + */ + public com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.Builder + getUniquenessExpectationBuilder() { + return getUniquenessExpectationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column has duplicates.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationOrBuilder + getUniquenessExpectationOrBuilder() { + if ((ruleTypeCase_ == 100) && (uniquenessExpectationBuilder_ != null)) { + return uniquenessExpectationBuilder_.getMessageOrBuilder(); + } else { + if (ruleTypeCase_ == 100) { + return (com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column has duplicates.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationOrBuilder> + getUniquenessExpectationFieldBuilder() { + if (uniquenessExpectationBuilder_ == null) { + if (!(ruleTypeCase_ == 100)) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + .getDefaultInstance(); + } + uniquenessExpectationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationOrBuilder>( + (com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) ruleType_, + getParentForChildren(), + isClean()); + ruleType_ = null; + } + ruleTypeCase_ = 100; + onChanged(); + ; + return uniquenessExpectationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationOrBuilder> + statisticRangeExpectationBuilder_; + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column aggregate
+     * statistic lies between a specified range.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + * + * @return Whether the statisticRangeExpectation field is set. + */ + @java.lang.Override + public boolean hasStatisticRangeExpectation() { + return ruleTypeCase_ == 101; + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column aggregate
+     * statistic lies between a specified range.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + * + * @return The statisticRangeExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + getStatisticRangeExpectation() { + if (statisticRangeExpectationBuilder_ == null) { + if (ruleTypeCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + .getDefaultInstance(); + } else { + if (ruleTypeCase_ == 101) { + return statisticRangeExpectationBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column aggregate
+     * statistic lies between a specified range.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + */ + public Builder setStatisticRangeExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation value) { + if (statisticRangeExpectationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleType_ = value; + onChanged(); + } else { + statisticRangeExpectationBuilder_.setMessage(value); + } + ruleTypeCase_ = 101; + return this; + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column aggregate
+     * statistic lies between a specified range.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + */ + public Builder setStatisticRangeExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.Builder + builderForValue) { + if (statisticRangeExpectationBuilder_ == null) { + ruleType_ = builderForValue.build(); + onChanged(); + } else { + statisticRangeExpectationBuilder_.setMessage(builderForValue.build()); + } + ruleTypeCase_ = 101; + return this; + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column aggregate
+     * statistic lies between a specified range.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + */ + public Builder mergeStatisticRangeExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation value) { + if (statisticRangeExpectationBuilder_ == null) { + if (ruleTypeCase_ == 101 + && ruleType_ + != com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + .getDefaultInstance()) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.newBuilder( + (com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) + ruleType_) + .mergeFrom(value) + .buildPartial(); + } else { + ruleType_ = value; + } + onChanged(); + } else { + if (ruleTypeCase_ == 101) { + statisticRangeExpectationBuilder_.mergeFrom(value); + } else { + statisticRangeExpectationBuilder_.setMessage(value); + } + } + ruleTypeCase_ = 101; + return this; + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column aggregate
+     * statistic lies between a specified range.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + */ + public Builder clearStatisticRangeExpectation() { + if (statisticRangeExpectationBuilder_ == null) { + if (ruleTypeCase_ == 101) { + ruleTypeCase_ = 0; + ruleType_ = null; + onChanged(); + } + } else { + if (ruleTypeCase_ == 101) { + ruleTypeCase_ = 0; + ruleType_ = null; + } + statisticRangeExpectationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column aggregate
+     * statistic lies between a specified range.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + */ + public com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.Builder + getStatisticRangeExpectationBuilder() { + return getStatisticRangeExpectationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column aggregate
+     * statistic lies between a specified range.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationOrBuilder + getStatisticRangeExpectationOrBuilder() { + if ((ruleTypeCase_ == 101) && (statisticRangeExpectationBuilder_ != null)) { + return statisticRangeExpectationBuilder_.getMessageOrBuilder(); + } else { + if (ruleTypeCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * ColumnAggregate rule which evaluates whether the column aggregate
+     * statistic lies between a specified range.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationOrBuilder> + getStatisticRangeExpectationFieldBuilder() { + if (statisticRangeExpectationBuilder_ == null) { + if (!(ruleTypeCase_ == 101)) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + .getDefaultInstance(); + } + statisticRangeExpectationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationOrBuilder>( + (com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation) ruleType_, + getParentForChildren(), + isClean()); + ruleType_ = null; + } + ruleTypeCase_ = 101; + onChanged(); + ; + return statisticRangeExpectationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationOrBuilder> + rowConditionExpectationBuilder_; + /** + * + * + *
+     * Table rule which evaluates whether each row passes the specified
+     * condition.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + * + * @return Whether the rowConditionExpectation field is set. + */ + @java.lang.Override + public boolean hasRowConditionExpectation() { + return ruleTypeCase_ == 200; + } + /** + * + * + *
+     * Table rule which evaluates whether each row passes the specified
+     * condition.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + * + * @return The rowConditionExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + getRowConditionExpectation() { + if (rowConditionExpectationBuilder_ == null) { + if (ruleTypeCase_ == 200) { + return (com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + .getDefaultInstance(); + } else { + if (ruleTypeCase_ == 200) { + return rowConditionExpectationBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Table rule which evaluates whether each row passes the specified
+     * condition.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + */ + public Builder setRowConditionExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation value) { + if (rowConditionExpectationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleType_ = value; + onChanged(); + } else { + rowConditionExpectationBuilder_.setMessage(value); + } + ruleTypeCase_ = 200; + return this; + } + /** + * + * + *
+     * Table rule which evaluates whether each row passes the specified
+     * condition.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + */ + public Builder setRowConditionExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.Builder + builderForValue) { + if (rowConditionExpectationBuilder_ == null) { + ruleType_ = builderForValue.build(); + onChanged(); + } else { + rowConditionExpectationBuilder_.setMessage(builderForValue.build()); + } + ruleTypeCase_ = 200; + return this; + } + /** + * + * + *
+     * Table rule which evaluates whether each row passes the specified
+     * condition.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + */ + public Builder mergeRowConditionExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation value) { + if (rowConditionExpectationBuilder_ == null) { + if (ruleTypeCase_ == 200 + && ruleType_ + != com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + .getDefaultInstance()) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.newBuilder( + (com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) + ruleType_) + .mergeFrom(value) + .buildPartial(); + } else { + ruleType_ = value; + } + onChanged(); + } else { + if (ruleTypeCase_ == 200) { + rowConditionExpectationBuilder_.mergeFrom(value); + } else { + rowConditionExpectationBuilder_.setMessage(value); + } + } + ruleTypeCase_ = 200; + return this; + } + /** + * + * + *
+     * Table rule which evaluates whether each row passes the specified
+     * condition.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + */ + public Builder clearRowConditionExpectation() { + if (rowConditionExpectationBuilder_ == null) { + if (ruleTypeCase_ == 200) { + ruleTypeCase_ = 0; + ruleType_ = null; + onChanged(); + } + } else { + if (ruleTypeCase_ == 200) { + ruleTypeCase_ = 0; + ruleType_ = null; + } + rowConditionExpectationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Table rule which evaluates whether each row passes the specified
+     * condition.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + */ + public com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.Builder + getRowConditionExpectationBuilder() { + return getRowConditionExpectationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Table rule which evaluates whether each row passes the specified
+     * condition.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationOrBuilder + getRowConditionExpectationOrBuilder() { + if ((ruleTypeCase_ == 200) && (rowConditionExpectationBuilder_ != null)) { + return rowConditionExpectationBuilder_.getMessageOrBuilder(); + } else { + if (ruleTypeCase_ == 200) { + return (com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Table rule which evaluates whether each row passes the specified
+     * condition.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationOrBuilder> + getRowConditionExpectationFieldBuilder() { + if (rowConditionExpectationBuilder_ == null) { + if (!(ruleTypeCase_ == 200)) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + .getDefaultInstance(); + } + rowConditionExpectationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationOrBuilder>( + (com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) ruleType_, + getParentForChildren(), + isClean()); + ruleType_ = null; + } + ruleTypeCase_ = 200; + onChanged(); + ; + return rowConditionExpectationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationOrBuilder> + tableConditionExpectationBuilder_; + /** + * + * + *
+     * Table rule which evaluates whether the provided expression is true.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + * + * @return Whether the tableConditionExpectation field is set. + */ + @java.lang.Override + public boolean hasTableConditionExpectation() { + return ruleTypeCase_ == 201; + } + /** + * + * + *
+     * Table rule which evaluates whether the provided expression is true.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + * + * @return The tableConditionExpectation. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + getTableConditionExpectation() { + if (tableConditionExpectationBuilder_ == null) { + if (ruleTypeCase_ == 201) { + return (com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + .getDefaultInstance(); + } else { + if (ruleTypeCase_ == 201) { + return tableConditionExpectationBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Table rule which evaluates whether the provided expression is true.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + */ + public Builder setTableConditionExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation value) { + if (tableConditionExpectationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleType_ = value; + onChanged(); + } else { + tableConditionExpectationBuilder_.setMessage(value); + } + ruleTypeCase_ = 201; + return this; + } + /** + * + * + *
+     * Table rule which evaluates whether the provided expression is true.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + */ + public Builder setTableConditionExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.Builder + builderForValue) { + if (tableConditionExpectationBuilder_ == null) { + ruleType_ = builderForValue.build(); + onChanged(); + } else { + tableConditionExpectationBuilder_.setMessage(builderForValue.build()); + } + ruleTypeCase_ = 201; + return this; + } + /** + * + * + *
+     * Table rule which evaluates whether the provided expression is true.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + */ + public Builder mergeTableConditionExpectation( + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation value) { + if (tableConditionExpectationBuilder_ == null) { + if (ruleTypeCase_ == 201 + && ruleType_ + != com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + .getDefaultInstance()) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.newBuilder( + (com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) + ruleType_) + .mergeFrom(value) + .buildPartial(); + } else { + ruleType_ = value; + } + onChanged(); + } else { + if (ruleTypeCase_ == 201) { + tableConditionExpectationBuilder_.mergeFrom(value); + } else { + tableConditionExpectationBuilder_.setMessage(value); + } + } + ruleTypeCase_ = 201; + return this; + } + /** + * + * + *
+     * Table rule which evaluates whether the provided expression is true.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + */ + public Builder clearTableConditionExpectation() { + if (tableConditionExpectationBuilder_ == null) { + if (ruleTypeCase_ == 201) { + ruleTypeCase_ = 0; + ruleType_ = null; + onChanged(); + } + } else { + if (ruleTypeCase_ == 201) { + ruleTypeCase_ = 0; + ruleType_ = null; + } + tableConditionExpectationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Table rule which evaluates whether the provided expression is true.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + */ + public com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.Builder + getTableConditionExpectationBuilder() { + return getTableConditionExpectationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Table rule which evaluates whether the provided expression is true.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationOrBuilder + getTableConditionExpectationOrBuilder() { + if ((ruleTypeCase_ == 201) && (tableConditionExpectationBuilder_ != null)) { + return tableConditionExpectationBuilder_.getMessageOrBuilder(); + } else { + if (ruleTypeCase_ == 201) { + return (com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) ruleType_; + } + return com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Table rule which evaluates whether the provided expression is true.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationOrBuilder> + getTableConditionExpectationFieldBuilder() { + if (tableConditionExpectationBuilder_ == null) { + if (!(ruleTypeCase_ == 201)) { + ruleType_ = + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + .getDefaultInstance(); + } + tableConditionExpectationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation, + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.Builder, + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationOrBuilder>( + (com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) ruleType_, + getParentForChildren(), + isClean()); + ruleType_ = null; + } + ruleTypeCase_ = 201; + onChanged(); + ; + return tableConditionExpectationBuilder_; + } + + private java.lang.Object column_ = ""; + /** + * + * + *
+     * Optional. The unnested column which this rule is evaluated against.
+     * 
+ * + * string column = 500 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The column. + */ + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The unnested column which this rule is evaluated against.
+     * 
+ * + * string column = 500 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for column. + */ + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The unnested column which this rule is evaluated against.
+     * 
+ * + * string column = 500 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + column_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The unnested column which this rule is evaluated against.
+     * 
+ * + * string column = 500 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearColumn() { + + column_ = getDefaultInstance().getColumn(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The unnested column which this rule is evaluated against.
+     * 
+ * + * string column = 500 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for column to set. + * @return This builder for chaining. + */ + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + column_ = value; + onChanged(); + return this; + } + + private boolean ignoreNull_; + /** + * + * + *
+     * Optional. Rows with null values will automatically fail a rule, unless
+     * ignore_null is true. In that case, such null rows are trivially considered
+     * passing. Only applicable to ColumnMap rules.
+     * 
+ * + * bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreNull. + */ + @java.lang.Override + public boolean getIgnoreNull() { + return ignoreNull_; + } + /** + * + * + *
+     * Optional. Rows with null values will automatically fail a rule, unless
+     * ignore_null is true. In that case, such null rows are trivially considered
+     * passing. Only applicable to ColumnMap rules.
+     * 
+ * + * bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ignoreNull to set. + * @return This builder for chaining. + */ + public Builder setIgnoreNull(boolean value) { + + ignoreNull_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Rows with null values will automatically fail a rule, unless
+     * ignore_null is true. In that case, such null rows are trivially considered
+     * passing. Only applicable to ColumnMap rules.
+     * 
+ * + * bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreNull() { + + ignoreNull_ = false; + onChanged(); + return this; + } + + private java.lang.Object dimension_ = ""; + /** + * + * + *
+     * Required. The dimension a rule belongs to. Results are also aggregated at
+     * the dimension-level. Supported dimensions are ["COMPLETENESS", "ACCURACY",
+     * "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]
+     * 
+ * + * string dimension = 502 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dimension. + */ + public java.lang.String getDimension() { + java.lang.Object ref = dimension_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimension_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The dimension a rule belongs to. Results are also aggregated at
+     * the dimension-level. Supported dimensions are ["COMPLETENESS", "ACCURACY",
+     * "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]
+     * 
+ * + * string dimension = 502 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dimension. + */ + public com.google.protobuf.ByteString getDimensionBytes() { + java.lang.Object ref = dimension_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimension_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The dimension a rule belongs to. Results are also aggregated at
+     * the dimension-level. Supported dimensions are ["COMPLETENESS", "ACCURACY",
+     * "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]
+     * 
+ * + * string dimension = 502 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dimension to set. + * @return This builder for chaining. + */ + public Builder setDimension(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dimension_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The dimension a rule belongs to. Results are also aggregated at
+     * the dimension-level. Supported dimensions are ["COMPLETENESS", "ACCURACY",
+     * "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]
+     * 
+ * + * string dimension = 502 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDimension() { + + dimension_ = getDefaultInstance().getDimension(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The dimension a rule belongs to. Results are also aggregated at
+     * the dimension-level. Supported dimensions are ["COMPLETENESS", "ACCURACY",
+     * "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]
+     * 
+ * + * string dimension = 502 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dimension to set. + * @return This builder for chaining. + */ + public Builder setDimensionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dimension_ = value; + onChanged(); + return this; + } + + private double threshold_; + /** + * + * + *
+     * Optional. The minimum ratio of passing_rows / total_rows required to pass
+     * this rule, with a range of [0.0, 1.0]
+     * 0 indicates default value (i.e. 1.0)
+     * 
+ * + * double threshold = 503 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The threshold. + */ + @java.lang.Override + public double getThreshold() { + return threshold_; + } + /** + * + * + *
+     * Optional. The minimum ratio of passing_rows / total_rows required to pass
+     * this rule, with a range of [0.0, 1.0]
+     * 0 indicates default value (i.e. 1.0)
+     * 
+ * + * double threshold = 503 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The threshold to set. + * @return This builder for chaining. + */ + public Builder setThreshold(double value) { + + threshold_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The minimum ratio of passing_rows / total_rows required to pass
+     * this rule, with a range of [0.0, 1.0]
+     * 0 indicates default value (i.e. 1.0)
+     * 
+ * + * double threshold = 503 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearThreshold() { + + threshold_ = 0D; + 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.dataplex.v1.DataQualityRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule) + private static final com.google.cloud.dataplex.v1.DataQualityRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityRule(); + } + + public static com.google.cloud.dataplex.v1.DataQualityRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataQualityRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleOrBuilder.java new file mode 100644 index 000000000000..4b07cbbc16c9 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleOrBuilder.java @@ -0,0 +1,442 @@ +/* + * 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/dataplex/v1/data_quality.proto + +package com.google.cloud.dataplex.v1; + +public interface DataQualityRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value lies between a
+   * specified range.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + * @return Whether the rangeExpectation field is set. + */ + boolean hasRangeExpectation(); + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value lies between a
+   * specified range.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * + * @return The rangeExpectation. + */ + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation getRangeExpectation(); + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value lies between a
+   * specified range.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + */ + com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationOrBuilder + getRangeExpectationOrBuilder(); + + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value is null.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + * + * @return Whether the nonNullExpectation field is set. + */ + boolean hasNonNullExpectation(); + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value is null.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + * + * @return The nonNullExpectation. + */ + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation getNonNullExpectation(); + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value is null.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * + */ + com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationOrBuilder + getNonNullExpectationOrBuilder(); + + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value is contained by
+   * a specified set.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + * + * @return Whether the setExpectation field is set. + */ + boolean hasSetExpectation(); + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value is contained by
+   * a specified set.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + * + * @return The setExpectation. + */ + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation getSetExpectation(); + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value is contained by
+   * a specified set.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + */ + com.google.cloud.dataplex.v1.DataQualityRule.SetExpectationOrBuilder getSetExpectationOrBuilder(); + + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value matches a
+   * specified regex.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + * @return Whether the regexExpectation field is set. + */ + boolean hasRegexExpectation(); + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value matches a
+   * specified regex.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * + * @return The regexExpectation. + */ + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation getRegexExpectation(); + /** + * + * + *
+   * ColumnMap rule which evaluates whether each column value matches a
+   * specified regex.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + */ + com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationOrBuilder + getRegexExpectationOrBuilder(); + + /** + * + * + *
+   * ColumnAggregate rule which evaluates whether the column has duplicates.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + * + * @return Whether the uniquenessExpectation field is set. + */ + boolean hasUniquenessExpectation(); + /** + * + * + *
+   * ColumnAggregate rule which evaluates whether the column has duplicates.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + * + * @return The uniquenessExpectation. + */ + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation getUniquenessExpectation(); + /** + * + * + *
+   * ColumnAggregate rule which evaluates whether the column has duplicates.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * + */ + com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationOrBuilder + getUniquenessExpectationOrBuilder(); + + /** + * + * + *
+   * ColumnAggregate rule which evaluates whether the column aggregate
+   * statistic lies between a specified range.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + * + * @return Whether the statisticRangeExpectation field is set. + */ + boolean hasStatisticRangeExpectation(); + /** + * + * + *
+   * ColumnAggregate rule which evaluates whether the column aggregate
+   * statistic lies between a specified range.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + * + * @return The statisticRangeExpectation. + */ + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + getStatisticRangeExpectation(); + /** + * + * + *
+   * ColumnAggregate rule which evaluates whether the column aggregate
+   * statistic lies between a specified range.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * + */ + com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationOrBuilder + getStatisticRangeExpectationOrBuilder(); + + /** + * + * + *
+   * Table rule which evaluates whether each row passes the specified
+   * condition.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + * + * @return Whether the rowConditionExpectation field is set. + */ + boolean hasRowConditionExpectation(); + /** + * + * + *
+   * Table rule which evaluates whether each row passes the specified
+   * condition.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + * + * @return The rowConditionExpectation. + */ + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation getRowConditionExpectation(); + /** + * + * + *
+   * Table rule which evaluates whether each row passes the specified
+   * condition.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * + */ + com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationOrBuilder + getRowConditionExpectationOrBuilder(); + + /** + * + * + *
+   * Table rule which evaluates whether the provided expression is true.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + * + * @return Whether the tableConditionExpectation field is set. + */ + boolean hasTableConditionExpectation(); + /** + * + * + *
+   * Table rule which evaluates whether the provided expression is true.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + * + * @return The tableConditionExpectation. + */ + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + getTableConditionExpectation(); + /** + * + * + *
+   * Table rule which evaluates whether the provided expression is true.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * + */ + com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationOrBuilder + getTableConditionExpectationOrBuilder(); + + /** + * + * + *
+   * Optional. The unnested column which this rule is evaluated against.
+   * 
+ * + * string column = 500 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The column. + */ + java.lang.String getColumn(); + /** + * + * + *
+   * Optional. The unnested column which this rule is evaluated against.
+   * 
+ * + * string column = 500 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for column. + */ + com.google.protobuf.ByteString getColumnBytes(); + + /** + * + * + *
+   * Optional. Rows with null values will automatically fail a rule, unless
+   * ignore_null is true. In that case, such null rows are trivially considered
+   * passing. Only applicable to ColumnMap rules.
+   * 
+ * + * bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreNull. + */ + boolean getIgnoreNull(); + + /** + * + * + *
+   * Required. The dimension a rule belongs to. Results are also aggregated at
+   * the dimension-level. Supported dimensions are ["COMPLETENESS", "ACCURACY",
+   * "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]
+   * 
+ * + * string dimension = 502 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dimension. + */ + java.lang.String getDimension(); + /** + * + * + *
+   * Required. The dimension a rule belongs to. Results are also aggregated at
+   * the dimension-level. Supported dimensions are ["COMPLETENESS", "ACCURACY",
+   * "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]
+   * 
+ * + * string dimension = 502 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dimension. + */ + com.google.protobuf.ByteString getDimensionBytes(); + + /** + * + * + *
+   * Optional. The minimum ratio of passing_rows / total_rows required to pass
+   * this rule, with a range of [0.0, 1.0]
+   * 0 indicates default value (i.e. 1.0)
+   * 
+ * + * double threshold = 503 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The threshold. + */ + double getThreshold(); + + public com.google.cloud.dataplex.v1.DataQualityRule.RuleTypeCase getRuleTypeCase(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResult.java new file mode 100644 index 000000000000..f514806e232a --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResult.java @@ -0,0 +1,1378 @@ +/* + * 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/dataplex/v1/data_quality.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * DataQualityRuleResult provides a more detailed, per-rule level view of the
+ * results.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRuleResult} + */ +public final class DataQualityRuleResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRuleResult) + DataQualityRuleResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataQualityRuleResult.newBuilder() to construct. + private DataQualityRuleResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataQualityRuleResult() { + failingRowsQuery_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataQualityRuleResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRuleResult.class, + com.google.cloud.dataplex.v1.DataQualityRuleResult.Builder.class); + } + + public static final int RULE_FIELD_NUMBER = 1; + private com.google.cloud.dataplex.v1.DataQualityRule rule_; + /** + * + * + *
+   * The rule specified in the DataQualitySpec, as is.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + * + * @return Whether the rule field is set. + */ + @java.lang.Override + public boolean hasRule() { + return rule_ != null; + } + /** + * + * + *
+   * The rule specified in the DataQualitySpec, as is.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + * + * @return The rule. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule getRule() { + return rule_ == null + ? com.google.cloud.dataplex.v1.DataQualityRule.getDefaultInstance() + : rule_; + } + /** + * + * + *
+   * The rule specified in the DataQualitySpec, as is.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder getRuleOrBuilder() { + return getRule(); + } + + public static final int PASSED_FIELD_NUMBER = 7; + private boolean passed_; + /** + * + * + *
+   * Whether the rule passed or failed.
+   * 
+ * + * bool passed = 7; + * + * @return The passed. + */ + @java.lang.Override + public boolean getPassed() { + return passed_; + } + + public static final int EVALUATED_COUNT_FIELD_NUMBER = 9; + private long evaluatedCount_; + /** + * + * + *
+   * The number of rows a rule was evaluated against.
+   * This field is only valid for ColumnMap type rules.
+   * Evaluated count can be configured to either
+   * (1) include all rows (default) - with null rows automatically failing rule
+   * evaluation  OR (2) exclude null rows from the evaluated_count, by setting
+   * ignore_nulls = true
+   * 
+ * + * int64 evaluated_count = 9; + * + * @return The evaluatedCount. + */ + @java.lang.Override + public long getEvaluatedCount() { + return evaluatedCount_; + } + + public static final int PASSED_COUNT_FIELD_NUMBER = 8; + private long passedCount_; + /** + * + * + *
+   * The number of rows which passed a rule evaluation.
+   * This field is only valid for ColumnMap type rules.
+   * 
+ * + * int64 passed_count = 8; + * + * @return The passedCount. + */ + @java.lang.Override + public long getPassedCount() { + return passedCount_; + } + + public static final int NULL_COUNT_FIELD_NUMBER = 5; + private long nullCount_; + /** + * + * + *
+   * The number of rows with null values in the specified column.
+   * 
+ * + * int64 null_count = 5; + * + * @return The nullCount. + */ + @java.lang.Override + public long getNullCount() { + return nullCount_; + } + + public static final int PASS_RATIO_FIELD_NUMBER = 6; + private double passRatio_; + /** + * + * + *
+   * The ratio of passed_count / evaluated_count.
+   * This field is only valid for ColumnMap type rules.
+   * 
+ * + * double pass_ratio = 6; + * + * @return The passRatio. + */ + @java.lang.Override + public double getPassRatio() { + return passRatio_; + } + + public static final int FAILING_ROWS_QUERY_FIELD_NUMBER = 10; + private volatile java.lang.Object failingRowsQuery_; + /** + * + * + *
+   * The query to find rows that did not pass this rule.
+   * Only applies to ColumnMap and RowCondition rules.
+   * 
+ * + * string failing_rows_query = 10; + * + * @return The failingRowsQuery. + */ + @java.lang.Override + public java.lang.String getFailingRowsQuery() { + java.lang.Object ref = failingRowsQuery_; + 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(); + failingRowsQuery_ = s; + return s; + } + } + /** + * + * + *
+   * The query to find rows that did not pass this rule.
+   * Only applies to ColumnMap and RowCondition rules.
+   * 
+ * + * string failing_rows_query = 10; + * + * @return The bytes for failingRowsQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFailingRowsQueryBytes() { + java.lang.Object ref = failingRowsQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + failingRowsQuery_ = 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 (rule_ != null) { + output.writeMessage(1, getRule()); + } + if (nullCount_ != 0L) { + output.writeInt64(5, nullCount_); + } + if (java.lang.Double.doubleToRawLongBits(passRatio_) != 0) { + output.writeDouble(6, passRatio_); + } + if (passed_ != false) { + output.writeBool(7, passed_); + } + if (passedCount_ != 0L) { + output.writeInt64(8, passedCount_); + } + if (evaluatedCount_ != 0L) { + output.writeInt64(9, evaluatedCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failingRowsQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, failingRowsQuery_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rule_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRule()); + } + if (nullCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, nullCount_); + } + if (java.lang.Double.doubleToRawLongBits(passRatio_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, passRatio_); + } + if (passed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, passed_); + } + if (passedCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, passedCount_); + } + if (evaluatedCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, evaluatedCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failingRowsQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, failingRowsQuery_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataQualityRuleResult)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualityRuleResult other = + (com.google.cloud.dataplex.v1.DataQualityRuleResult) obj; + + if (hasRule() != other.hasRule()) return false; + if (hasRule()) { + if (!getRule().equals(other.getRule())) return false; + } + if (getPassed() != other.getPassed()) return false; + if (getEvaluatedCount() != other.getEvaluatedCount()) return false; + if (getPassedCount() != other.getPassedCount()) return false; + if (getNullCount() != other.getNullCount()) return false; + if (java.lang.Double.doubleToLongBits(getPassRatio()) + != java.lang.Double.doubleToLongBits(other.getPassRatio())) return false; + if (!getFailingRowsQuery().equals(other.getFailingRowsQuery())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRule()) { + hash = (37 * hash) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + } + hash = (37 * hash) + PASSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPassed()); + hash = (37 * hash) + EVALUATED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEvaluatedCount()); + hash = (37 * hash) + PASSED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPassedCount()); + hash = (37 * hash) + NULL_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNullCount()); + hash = (37 * hash) + PASS_RATIO_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPassRatio())); + hash = (37 * hash) + FAILING_ROWS_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getFailingRowsQuery().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualityRuleResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRuleResult 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.dataplex.v1.DataQualityRuleResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRuleResult 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.dataplex.v1.DataQualityRuleResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualityRuleResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualityRuleResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRuleResult 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.dataplex.v1.DataQualityRuleResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRuleResult 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.dataplex.v1.DataQualityRuleResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualityRuleResult 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.dataplex.v1.DataQualityRuleResult 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; + } + /** + * + * + *
+   * DataQualityRuleResult provides a more detailed, per-rule level view of the
+   * results.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRuleResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRuleResult) + com.google.cloud.dataplex.v1.DataQualityRuleResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualityRuleResult.class, + com.google.cloud.dataplex.v1.DataQualityRuleResult.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataQualityRuleResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (ruleBuilder_ == null) { + rule_ = null; + } else { + rule_ = null; + ruleBuilder_ = null; + } + passed_ = false; + + evaluatedCount_ = 0L; + + passedCount_ = 0L; + + nullCount_ = 0L; + + passRatio_ = 0D; + + failingRowsQuery_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualityRuleResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRuleResult getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualityRuleResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRuleResult build() { + com.google.cloud.dataplex.v1.DataQualityRuleResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRuleResult buildPartial() { + com.google.cloud.dataplex.v1.DataQualityRuleResult result = + new com.google.cloud.dataplex.v1.DataQualityRuleResult(this); + if (ruleBuilder_ == null) { + result.rule_ = rule_; + } else { + result.rule_ = ruleBuilder_.build(); + } + result.passed_ = passed_; + result.evaluatedCount_ = evaluatedCount_; + result.passedCount_ = passedCount_; + result.nullCount_ = nullCount_; + result.passRatio_ = passRatio_; + result.failingRowsQuery_ = failingRowsQuery_; + 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.dataplex.v1.DataQualityRuleResult) { + return mergeFrom((com.google.cloud.dataplex.v1.DataQualityRuleResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataQualityRuleResult other) { + if (other == com.google.cloud.dataplex.v1.DataQualityRuleResult.getDefaultInstance()) + return this; + if (other.hasRule()) { + mergeRule(other.getRule()); + } + if (other.getPassed() != false) { + setPassed(other.getPassed()); + } + if (other.getEvaluatedCount() != 0L) { + setEvaluatedCount(other.getEvaluatedCount()); + } + if (other.getPassedCount() != 0L) { + setPassedCount(other.getPassedCount()); + } + if (other.getNullCount() != 0L) { + setNullCount(other.getNullCount()); + } + if (other.getPassRatio() != 0D) { + setPassRatio(other.getPassRatio()); + } + if (!other.getFailingRowsQuery().isEmpty()) { + failingRowsQuery_ = other.failingRowsQuery_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getRuleFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 40: + { + nullCount_ = input.readInt64(); + + break; + } // case 40 + case 49: + { + passRatio_ = input.readDouble(); + + break; + } // case 49 + case 56: + { + passed_ = input.readBool(); + + break; + } // case 56 + case 64: + { + passedCount_ = input.readInt64(); + + break; + } // case 64 + case 72: + { + evaluatedCount_ = input.readInt64(); + + break; + } // case 72 + case 82: + { + failingRowsQuery_ = input.readStringRequireUtf8(); + + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.cloud.dataplex.v1.DataQualityRule rule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule, + com.google.cloud.dataplex.v1.DataQualityRule.Builder, + com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder> + ruleBuilder_; + /** + * + * + *
+     * The rule specified in the DataQualitySpec, as is.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + * + * @return Whether the rule field is set. + */ + public boolean hasRule() { + return ruleBuilder_ != null || rule_ != null; + } + /** + * + * + *
+     * The rule specified in the DataQualitySpec, as is.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + * + * @return The rule. + */ + public com.google.cloud.dataplex.v1.DataQualityRule getRule() { + if (ruleBuilder_ == null) { + return rule_ == null + ? com.google.cloud.dataplex.v1.DataQualityRule.getDefaultInstance() + : rule_; + } else { + return ruleBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The rule specified in the DataQualitySpec, as is.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + */ + public Builder setRule(com.google.cloud.dataplex.v1.DataQualityRule value) { + if (ruleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + onChanged(); + } else { + ruleBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The rule specified in the DataQualitySpec, as is.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + */ + public Builder setRule(com.google.cloud.dataplex.v1.DataQualityRule.Builder builderForValue) { + if (ruleBuilder_ == null) { + rule_ = builderForValue.build(); + onChanged(); + } else { + ruleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The rule specified in the DataQualitySpec, as is.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + */ + public Builder mergeRule(com.google.cloud.dataplex.v1.DataQualityRule value) { + if (ruleBuilder_ == null) { + if (rule_ != null) { + rule_ = + com.google.cloud.dataplex.v1.DataQualityRule.newBuilder(rule_) + .mergeFrom(value) + .buildPartial(); + } else { + rule_ = value; + } + onChanged(); + } else { + ruleBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The rule specified in the DataQualitySpec, as is.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + */ + public Builder clearRule() { + if (ruleBuilder_ == null) { + rule_ = null; + onChanged(); + } else { + rule_ = null; + ruleBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The rule specified in the DataQualitySpec, as is.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + */ + public com.google.cloud.dataplex.v1.DataQualityRule.Builder getRuleBuilder() { + + onChanged(); + return getRuleFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The rule specified in the DataQualitySpec, as is.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + */ + public com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder getRuleOrBuilder() { + if (ruleBuilder_ != null) { + return ruleBuilder_.getMessageOrBuilder(); + } else { + return rule_ == null + ? com.google.cloud.dataplex.v1.DataQualityRule.getDefaultInstance() + : rule_; + } + } + /** + * + * + *
+     * The rule specified in the DataQualitySpec, as is.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule, + com.google.cloud.dataplex.v1.DataQualityRule.Builder, + com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder> + getRuleFieldBuilder() { + if (ruleBuilder_ == null) { + ruleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule, + com.google.cloud.dataplex.v1.DataQualityRule.Builder, + com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder>( + getRule(), getParentForChildren(), isClean()); + rule_ = null; + } + return ruleBuilder_; + } + + private boolean passed_; + /** + * + * + *
+     * Whether the rule passed or failed.
+     * 
+ * + * bool passed = 7; + * + * @return The passed. + */ + @java.lang.Override + public boolean getPassed() { + return passed_; + } + /** + * + * + *
+     * Whether the rule passed or failed.
+     * 
+ * + * bool passed = 7; + * + * @param value The passed to set. + * @return This builder for chaining. + */ + public Builder setPassed(boolean value) { + + passed_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the rule passed or failed.
+     * 
+ * + * bool passed = 7; + * + * @return This builder for chaining. + */ + public Builder clearPassed() { + + passed_ = false; + onChanged(); + return this; + } + + private long evaluatedCount_; + /** + * + * + *
+     * The number of rows a rule was evaluated against.
+     * This field is only valid for ColumnMap type rules.
+     * Evaluated count can be configured to either
+     * (1) include all rows (default) - with null rows automatically failing rule
+     * evaluation  OR (2) exclude null rows from the evaluated_count, by setting
+     * ignore_nulls = true
+     * 
+ * + * int64 evaluated_count = 9; + * + * @return The evaluatedCount. + */ + @java.lang.Override + public long getEvaluatedCount() { + return evaluatedCount_; + } + /** + * + * + *
+     * The number of rows a rule was evaluated against.
+     * This field is only valid for ColumnMap type rules.
+     * Evaluated count can be configured to either
+     * (1) include all rows (default) - with null rows automatically failing rule
+     * evaluation  OR (2) exclude null rows from the evaluated_count, by setting
+     * ignore_nulls = true
+     * 
+ * + * int64 evaluated_count = 9; + * + * @param value The evaluatedCount to set. + * @return This builder for chaining. + */ + public Builder setEvaluatedCount(long value) { + + evaluatedCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of rows a rule was evaluated against.
+     * This field is only valid for ColumnMap type rules.
+     * Evaluated count can be configured to either
+     * (1) include all rows (default) - with null rows automatically failing rule
+     * evaluation  OR (2) exclude null rows from the evaluated_count, by setting
+     * ignore_nulls = true
+     * 
+ * + * int64 evaluated_count = 9; + * + * @return This builder for chaining. + */ + public Builder clearEvaluatedCount() { + + evaluatedCount_ = 0L; + onChanged(); + return this; + } + + private long passedCount_; + /** + * + * + *
+     * The number of rows which passed a rule evaluation.
+     * This field is only valid for ColumnMap type rules.
+     * 
+ * + * int64 passed_count = 8; + * + * @return The passedCount. + */ + @java.lang.Override + public long getPassedCount() { + return passedCount_; + } + /** + * + * + *
+     * The number of rows which passed a rule evaluation.
+     * This field is only valid for ColumnMap type rules.
+     * 
+ * + * int64 passed_count = 8; + * + * @param value The passedCount to set. + * @return This builder for chaining. + */ + public Builder setPassedCount(long value) { + + passedCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of rows which passed a rule evaluation.
+     * This field is only valid for ColumnMap type rules.
+     * 
+ * + * int64 passed_count = 8; + * + * @return This builder for chaining. + */ + public Builder clearPassedCount() { + + passedCount_ = 0L; + onChanged(); + return this; + } + + private long nullCount_; + /** + * + * + *
+     * The number of rows with null values in the specified column.
+     * 
+ * + * int64 null_count = 5; + * + * @return The nullCount. + */ + @java.lang.Override + public long getNullCount() { + return nullCount_; + } + /** + * + * + *
+     * The number of rows with null values in the specified column.
+     * 
+ * + * int64 null_count = 5; + * + * @param value The nullCount to set. + * @return This builder for chaining. + */ + public Builder setNullCount(long value) { + + nullCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of rows with null values in the specified column.
+     * 
+ * + * int64 null_count = 5; + * + * @return This builder for chaining. + */ + public Builder clearNullCount() { + + nullCount_ = 0L; + onChanged(); + return this; + } + + private double passRatio_; + /** + * + * + *
+     * The ratio of passed_count / evaluated_count.
+     * This field is only valid for ColumnMap type rules.
+     * 
+ * + * double pass_ratio = 6; + * + * @return The passRatio. + */ + @java.lang.Override + public double getPassRatio() { + return passRatio_; + } + /** + * + * + *
+     * The ratio of passed_count / evaluated_count.
+     * This field is only valid for ColumnMap type rules.
+     * 
+ * + * double pass_ratio = 6; + * + * @param value The passRatio to set. + * @return This builder for chaining. + */ + public Builder setPassRatio(double value) { + + passRatio_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ratio of passed_count / evaluated_count.
+     * This field is only valid for ColumnMap type rules.
+     * 
+ * + * double pass_ratio = 6; + * + * @return This builder for chaining. + */ + public Builder clearPassRatio() { + + passRatio_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object failingRowsQuery_ = ""; + /** + * + * + *
+     * The query to find rows that did not pass this rule.
+     * Only applies to ColumnMap and RowCondition rules.
+     * 
+ * + * string failing_rows_query = 10; + * + * @return The failingRowsQuery. + */ + public java.lang.String getFailingRowsQuery() { + java.lang.Object ref = failingRowsQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failingRowsQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The query to find rows that did not pass this rule.
+     * Only applies to ColumnMap and RowCondition rules.
+     * 
+ * + * string failing_rows_query = 10; + * + * @return The bytes for failingRowsQuery. + */ + public com.google.protobuf.ByteString getFailingRowsQueryBytes() { + java.lang.Object ref = failingRowsQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + failingRowsQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The query to find rows that did not pass this rule.
+     * Only applies to ColumnMap and RowCondition rules.
+     * 
+ * + * string failing_rows_query = 10; + * + * @param value The failingRowsQuery to set. + * @return This builder for chaining. + */ + public Builder setFailingRowsQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + failingRowsQuery_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The query to find rows that did not pass this rule.
+     * Only applies to ColumnMap and RowCondition rules.
+     * 
+ * + * string failing_rows_query = 10; + * + * @return This builder for chaining. + */ + public Builder clearFailingRowsQuery() { + + failingRowsQuery_ = getDefaultInstance().getFailingRowsQuery(); + onChanged(); + return this; + } + /** + * + * + *
+     * The query to find rows that did not pass this rule.
+     * Only applies to ColumnMap and RowCondition rules.
+     * 
+ * + * string failing_rows_query = 10; + * + * @param value The bytes for failingRowsQuery to set. + * @return This builder for chaining. + */ + public Builder setFailingRowsQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + failingRowsQuery_ = 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.dataplex.v1.DataQualityRuleResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRuleResult) + private static final com.google.cloud.dataplex.v1.DataQualityRuleResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityRuleResult(); + } + + public static com.google.cloud.dataplex.v1.DataQualityRuleResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataQualityRuleResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRuleResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResultOrBuilder.java new file mode 100644 index 000000000000..d8eebca0c251 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResultOrBuilder.java @@ -0,0 +1,159 @@ +/* + * 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/dataplex/v1/data_quality.proto + +package com.google.cloud.dataplex.v1; + +public interface DataQualityRuleResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRuleResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The rule specified in the DataQualitySpec, as is.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + * + * @return Whether the rule field is set. + */ + boolean hasRule(); + /** + * + * + *
+   * The rule specified in the DataQualitySpec, as is.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + * + * @return The rule. + */ + com.google.cloud.dataplex.v1.DataQualityRule getRule(); + /** + * + * + *
+   * The rule specified in the DataQualitySpec, as is.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualityRule rule = 1; + */ + com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder getRuleOrBuilder(); + + /** + * + * + *
+   * Whether the rule passed or failed.
+   * 
+ * + * bool passed = 7; + * + * @return The passed. + */ + boolean getPassed(); + + /** + * + * + *
+   * The number of rows a rule was evaluated against.
+   * This field is only valid for ColumnMap type rules.
+   * Evaluated count can be configured to either
+   * (1) include all rows (default) - with null rows automatically failing rule
+   * evaluation  OR (2) exclude null rows from the evaluated_count, by setting
+   * ignore_nulls = true
+   * 
+ * + * int64 evaluated_count = 9; + * + * @return The evaluatedCount. + */ + long getEvaluatedCount(); + + /** + * + * + *
+   * The number of rows which passed a rule evaluation.
+   * This field is only valid for ColumnMap type rules.
+   * 
+ * + * int64 passed_count = 8; + * + * @return The passedCount. + */ + long getPassedCount(); + + /** + * + * + *
+   * The number of rows with null values in the specified column.
+   * 
+ * + * int64 null_count = 5; + * + * @return The nullCount. + */ + long getNullCount(); + + /** + * + * + *
+   * The ratio of passed_count / evaluated_count.
+   * This field is only valid for ColumnMap type rules.
+   * 
+ * + * double pass_ratio = 6; + * + * @return The passRatio. + */ + double getPassRatio(); + + /** + * + * + *
+   * The query to find rows that did not pass this rule.
+   * Only applies to ColumnMap and RowCondition rules.
+   * 
+ * + * string failing_rows_query = 10; + * + * @return The failingRowsQuery. + */ + java.lang.String getFailingRowsQuery(); + /** + * + * + *
+   * The query to find rows that did not pass this rule.
+   * Only applies to ColumnMap and RowCondition rules.
+   * 
+ * + * string failing_rows_query = 10; + * + * @return The bytes for failingRowsQuery. + */ + com.google.protobuf.ByteString getFailingRowsQueryBytes(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualitySpec.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualitySpec.java new file mode 100644 index 000000000000..3ea0cc8fde2d --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualitySpec.java @@ -0,0 +1,948 @@ +/* + * 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/dataplex/v1/data_quality.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * DataQualityScan related setting.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualitySpec} + */ +public final class DataQualitySpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualitySpec) + DataQualitySpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataQualitySpec.newBuilder() to construct. + private DataQualitySpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataQualitySpec() { + rules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataQualitySpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualitySpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualitySpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualitySpec.class, + com.google.cloud.dataplex.v1.DataQualitySpec.Builder.class); + } + + public static final int RULES_FIELD_NUMBER = 1; + private java.util.List rules_; + /** + * + * + *
+   * The list of rules to evaluate against a data source. At least one rule is
+   * required.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + @java.lang.Override + public java.util.List getRulesList() { + return rules_; + } + /** + * + * + *
+   * The list of rules to evaluate against a data source. At least one rule is
+   * required.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + @java.lang.Override + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + /** + * + * + *
+   * The list of rules to evaluate against a data source. At least one rule is
+   * required.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + @java.lang.Override + public int getRulesCount() { + return rules_.size(); + } + /** + * + * + *
+   * The list of rules to evaluate against a data source. At least one rule is
+   * required.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRule getRules(int index) { + return rules_.get(index); + } + /** + * + * + *
+   * The list of rules to evaluate against a data source. At least one rule is
+   * required.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder getRulesOrBuilder(int index) { + return rules_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(1, rules_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rules_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataQualitySpec)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataQualitySpec other = + (com.google.cloud.dataplex.v1.DataQualitySpec) obj; + + if (!getRulesList().equals(other.getRulesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataQualitySpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualitySpec 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.dataplex.v1.DataQualitySpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualitySpec 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.dataplex.v1.DataQualitySpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataQualitySpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataQualitySpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualitySpec 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.dataplex.v1.DataQualitySpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualitySpec 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.dataplex.v1.DataQualitySpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataQualitySpec 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.dataplex.v1.DataQualitySpec 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; + } + /** + * + * + *
+   * DataQualityScan related setting.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataQualitySpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualitySpec) + com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualitySpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualitySpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataQualitySpec.class, + com.google.cloud.dataplex.v1.DataQualitySpec.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataQualitySpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + } else { + rules_ = null; + rulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataQualityProto + .internal_static_google_cloud_dataplex_v1_DataQualitySpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualitySpec getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualitySpec build() { + com.google.cloud.dataplex.v1.DataQualitySpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualitySpec buildPartial() { + com.google.cloud.dataplex.v1.DataQualitySpec result = + new com.google.cloud.dataplex.v1.DataQualitySpec(this); + int from_bitField0_ = bitField0_; + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataQualitySpec) { + return mergeFrom((com.google.cloud.dataplex.v1.DataQualitySpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataQualitySpec other) { + if (other == com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance()) return this; + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRulesFieldBuilder() + : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataplex.v1.DataQualityRule m = + input.readMessage( + com.google.cloud.dataplex.v1.DataQualityRule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List rules_ = + java.util.Collections.emptyList(); + + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule, + com.google.cloud.dataplex.v1.DataQualityRule.Builder, + com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder> + rulesBuilder_; + + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public com.google.cloud.dataplex.v1.DataQualityRule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public Builder setRules(int index, com.google.cloud.dataplex.v1.DataQualityRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public Builder setRules( + int index, com.google.cloud.dataplex.v1.DataQualityRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public Builder addRules(com.google.cloud.dataplex.v1.DataQualityRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public Builder addRules(int index, com.google.cloud.dataplex.v1.DataQualityRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public Builder addRules(com.google.cloud.dataplex.v1.DataQualityRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public Builder addRules( + int index, com.google.cloud.dataplex.v1.DataQualityRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public com.google.cloud.dataplex.v1.DataQualityRule.Builder getRulesBuilder(int index) { + return getRulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder getRulesOrBuilder(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public com.google.cloud.dataplex.v1.DataQualityRule.Builder addRulesBuilder() { + return getRulesFieldBuilder() + .addBuilder(com.google.cloud.dataplex.v1.DataQualityRule.getDefaultInstance()); + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public com.google.cloud.dataplex.v1.DataQualityRule.Builder addRulesBuilder(int index) { + return getRulesFieldBuilder() + .addBuilder(index, com.google.cloud.dataplex.v1.DataQualityRule.getDefaultInstance()); + } + /** + * + * + *
+     * The list of rules to evaluate against a data source. At least one rule is
+     * required.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + public java.util.List + getRulesBuilderList() { + return getRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule, + com.google.cloud.dataplex.v1.DataQualityRule.Builder, + com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder> + getRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityRule, + com.google.cloud.dataplex.v1.DataQualityRule.Builder, + com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder>( + rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + @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.dataplex.v1.DataQualitySpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualitySpec) + private static final com.google.cloud.dataplex.v1.DataQualitySpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualitySpec(); + } + + public static com.google.cloud.dataplex.v1.DataQualitySpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataQualitySpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualitySpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualitySpecOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualitySpecOrBuilder.java new file mode 100644 index 000000000000..c657a1019815 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualitySpecOrBuilder.java @@ -0,0 +1,82 @@ +/* + * 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/dataplex/v1/data_quality.proto + +package com.google.cloud.dataplex.v1; + +public interface DataQualitySpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualitySpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of rules to evaluate against a data source. At least one rule is
+   * required.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + java.util.List getRulesList(); + /** + * + * + *
+   * The list of rules to evaluate against a data source. At least one rule is
+   * required.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + com.google.cloud.dataplex.v1.DataQualityRule getRules(int index); + /** + * + * + *
+   * The list of rules to evaluate against a data source. At least one rule is
+   * required.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + int getRulesCount(); + /** + * + * + *
+   * The list of rules to evaluate against a data source. At least one rule is
+   * required.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + java.util.List + getRulesOrBuilderList(); + /** + * + * + *
+   * The list of rules to evaluate against a data source. At least one rule is
+   * required.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1; + */ + com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder getRulesOrBuilder(int index); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScan.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScan.java new file mode 100644 index 000000000000..530bfdb0ea1c --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScan.java @@ -0,0 +1,6877 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * Represents a user-visible job which provides the insights for the related
+ * data source.
+ * For examples:
+ *   - Data Quality: generates queries based on the rules and run against the
+ *     data to get data quality check results.
+ *   - Data Profile: analyzes the data in table(s) and generates insights about
+ *     the structure, content and relationships (such as null percent,
+ *     cardinality, min/max/mean, etc).
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScan} + */ +public final class DataScan extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScan) + DataScanOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataScan.newBuilder() to construct. + private DataScan(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataScan() { + name_ = ""; + uid_ = ""; + description_ = ""; + displayName_ = ""; + state_ = 0; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataScan(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScan.class, + com.google.cloud.dataplex.v1.DataScan.Builder.class); + } + + public interface ExecutionSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScan.ExecutionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Spec related to how often and when a scan should be triggered.
+     * If not specified, the default is OnDemand, which means the scan will not
+     * run until the user calls RunDataScan API.
+     * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the trigger field is set. + */ + boolean hasTrigger(); + /** + * + * + *
+     * Optional. Spec related to how often and when a scan should be triggered.
+     * If not specified, the default is OnDemand, which means the scan will not
+     * run until the user calls RunDataScan API.
+     * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The trigger. + */ + com.google.cloud.dataplex.v1.Trigger getTrigger(); + /** + * + * + *
+     * Optional. Spec related to how often and when a scan should be triggered.
+     * If not specified, the default is OnDemand, which means the scan will not
+     * run until the user calls RunDataScan API.
+     * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataplex.v1.TriggerOrBuilder getTriggerOrBuilder(); + + /** + * + * + *
+     * Immutable. The unnested field (Date or Timestamp) that contains values
+     * that monotonically increase over time.
+     * 
+ * + * string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the field field is set. + */ + boolean hasField(); + /** + * + * + *
+     * Immutable. The unnested field (Date or Timestamp) that contains values
+     * that monotonically increase over time.
+     * 
+ * + * string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The field. + */ + java.lang.String getField(); + /** + * + * + *
+     * Immutable. The unnested field (Date or Timestamp) that contains values
+     * that monotonically increase over time.
+     * 
+ * + * string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for field. + */ + com.google.protobuf.ByteString getFieldBytes(); + + public com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.IncrementalCase getIncrementalCase(); + } + /** + * + * + *
+   * DataScan execution settings.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScan.ExecutionSpec} + */ + public static final class ExecutionSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScan.ExecutionSpec) + ExecutionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionSpec.newBuilder() to construct. + private ExecutionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecutionSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExecutionSpec(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.class, + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.Builder.class); + } + + private int incrementalCase_ = 0; + private java.lang.Object incremental_; + + public enum IncrementalCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FIELD(100), + INCREMENTAL_NOT_SET(0); + private final int value; + + private IncrementalCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IncrementalCase valueOf(int value) { + return forNumber(value); + } + + public static IncrementalCase forNumber(int value) { + switch (value) { + case 100: + return FIELD; + case 0: + return INCREMENTAL_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public IncrementalCase getIncrementalCase() { + return IncrementalCase.forNumber(incrementalCase_); + } + + public static final int TRIGGER_FIELD_NUMBER = 1; + private com.google.cloud.dataplex.v1.Trigger trigger_; + /** + * + * + *
+     * Optional. Spec related to how often and when a scan should be triggered.
+     * If not specified, the default is OnDemand, which means the scan will not
+     * run until the user calls RunDataScan API.
+     * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the trigger field is set. + */ + @java.lang.Override + public boolean hasTrigger() { + return trigger_ != null; + } + /** + * + * + *
+     * Optional. Spec related to how often and when a scan should be triggered.
+     * If not specified, the default is OnDemand, which means the scan will not
+     * run until the user calls RunDataScan API.
+     * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The trigger. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger getTrigger() { + return trigger_ == null + ? com.google.cloud.dataplex.v1.Trigger.getDefaultInstance() + : trigger_; + } + /** + * + * + *
+     * Optional. Spec related to how often and when a scan should be triggered.
+     * If not specified, the default is OnDemand, which means the scan will not
+     * run until the user calls RunDataScan API.
+     * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.TriggerOrBuilder getTriggerOrBuilder() { + return getTrigger(); + } + + public static final int FIELD_FIELD_NUMBER = 100; + /** + * + * + *
+     * Immutable. The unnested field (Date or Timestamp) that contains values
+     * that monotonically increase over time.
+     * 
+ * + * string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the field field is set. + */ + public boolean hasField() { + return incrementalCase_ == 100; + } + /** + * + * + *
+     * Immutable. The unnested field (Date or Timestamp) that contains values
+     * that monotonically increase over time.
+     * 
+ * + * string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The field. + */ + public java.lang.String getField() { + java.lang.Object ref = ""; + if (incrementalCase_ == 100) { + ref = incremental_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (incrementalCase_ == 100) { + incremental_ = s; + } + return s; + } + } + /** + * + * + *
+     * Immutable. The unnested field (Date or Timestamp) that contains values
+     * that monotonically increase over time.
+     * 
+ * + * string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for field. + */ + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = ""; + if (incrementalCase_ == 100) { + ref = incremental_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (incrementalCase_ == 100) { + incremental_ = 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 (trigger_ != null) { + output.writeMessage(1, getTrigger()); + } + if (incrementalCase_ == 100) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, incremental_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (trigger_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTrigger()); + } + if (incrementalCase_ == 100) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, incremental_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataScan.ExecutionSpec)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec other = + (com.google.cloud.dataplex.v1.DataScan.ExecutionSpec) obj; + + if (hasTrigger() != other.hasTrigger()) return false; + if (hasTrigger()) { + if (!getTrigger().equals(other.getTrigger())) return false; + } + if (!getIncrementalCase().equals(other.getIncrementalCase())) return false; + switch (incrementalCase_) { + case 100: + if (!getField().equals(other.getField())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTrigger()) { + hash = (37 * hash) + TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + getTrigger().hashCode(); + } + switch (incrementalCase_) { + case 100: + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec 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.dataplex.v1.DataScan.ExecutionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec 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.dataplex.v1.DataScan.ExecutionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec 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.dataplex.v1.DataScan.ExecutionSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec 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.dataplex.v1.DataScan.ExecutionSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec 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.dataplex.v1.DataScan.ExecutionSpec 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; + } + /** + * + * + *
+     * DataScan execution settings.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScan.ExecutionSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScan.ExecutionSpec) + com.google.cloud.dataplex.v1.DataScan.ExecutionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.class, + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (triggerBuilder_ == null) { + trigger_ = null; + } else { + trigger_ = null; + triggerBuilder_ = null; + } + incrementalCase_ = 0; + incremental_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan.ExecutionSpec getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan.ExecutionSpec build() { + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan.ExecutionSpec buildPartial() { + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec result = + new com.google.cloud.dataplex.v1.DataScan.ExecutionSpec(this); + if (triggerBuilder_ == null) { + result.trigger_ = trigger_; + } else { + result.trigger_ = triggerBuilder_.build(); + } + if (incrementalCase_ == 100) { + result.incremental_ = incremental_; + } + result.incrementalCase_ = incrementalCase_; + 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.dataplex.v1.DataScan.ExecutionSpec) { + return mergeFrom((com.google.cloud.dataplex.v1.DataScan.ExecutionSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScan.ExecutionSpec other) { + if (other == com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.getDefaultInstance()) + return this; + if (other.hasTrigger()) { + mergeTrigger(other.getTrigger()); + } + switch (other.getIncrementalCase()) { + case FIELD: + { + incrementalCase_ = 100; + incremental_ = other.incremental_; + onChanged(); + break; + } + case INCREMENTAL_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getTriggerFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + incrementalCase_ = 100; + incremental_ = s; + break; + } // case 802 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int incrementalCase_ = 0; + private java.lang.Object incremental_; + + public IncrementalCase getIncrementalCase() { + return IncrementalCase.forNumber(incrementalCase_); + } + + public Builder clearIncremental() { + incrementalCase_ = 0; + incremental_ = null; + onChanged(); + return this; + } + + private com.google.cloud.dataplex.v1.Trigger trigger_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.Trigger, + com.google.cloud.dataplex.v1.Trigger.Builder, + com.google.cloud.dataplex.v1.TriggerOrBuilder> + triggerBuilder_; + /** + * + * + *
+       * Optional. Spec related to how often and when a scan should be triggered.
+       * If not specified, the default is OnDemand, which means the scan will not
+       * run until the user calls RunDataScan API.
+       * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the trigger field is set. + */ + public boolean hasTrigger() { + return triggerBuilder_ != null || trigger_ != null; + } + /** + * + * + *
+       * Optional. Spec related to how often and when a scan should be triggered.
+       * If not specified, the default is OnDemand, which means the scan will not
+       * run until the user calls RunDataScan API.
+       * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The trigger. + */ + public com.google.cloud.dataplex.v1.Trigger getTrigger() { + if (triggerBuilder_ == null) { + return trigger_ == null + ? com.google.cloud.dataplex.v1.Trigger.getDefaultInstance() + : trigger_; + } else { + return triggerBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional. Spec related to how often and when a scan should be triggered.
+       * If not specified, the default is OnDemand, which means the scan will not
+       * run until the user calls RunDataScan API.
+       * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTrigger(com.google.cloud.dataplex.v1.Trigger value) { + if (triggerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trigger_ = value; + onChanged(); + } else { + triggerBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Optional. Spec related to how often and when a scan should be triggered.
+       * If not specified, the default is OnDemand, which means the scan will not
+       * run until the user calls RunDataScan API.
+       * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTrigger(com.google.cloud.dataplex.v1.Trigger.Builder builderForValue) { + if (triggerBuilder_ == null) { + trigger_ = builderForValue.build(); + onChanged(); + } else { + triggerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Optional. Spec related to how often and when a scan should be triggered.
+       * If not specified, the default is OnDemand, which means the scan will not
+       * run until the user calls RunDataScan API.
+       * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTrigger(com.google.cloud.dataplex.v1.Trigger value) { + if (triggerBuilder_ == null) { + if (trigger_ != null) { + trigger_ = + com.google.cloud.dataplex.v1.Trigger.newBuilder(trigger_) + .mergeFrom(value) + .buildPartial(); + } else { + trigger_ = value; + } + onChanged(); + } else { + triggerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Optional. Spec related to how often and when a scan should be triggered.
+       * If not specified, the default is OnDemand, which means the scan will not
+       * run until the user calls RunDataScan API.
+       * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTrigger() { + if (triggerBuilder_ == null) { + trigger_ = null; + onChanged(); + } else { + trigger_ = null; + triggerBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Optional. Spec related to how often and when a scan should be triggered.
+       * If not specified, the default is OnDemand, which means the scan will not
+       * run until the user calls RunDataScan API.
+       * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataplex.v1.Trigger.Builder getTriggerBuilder() { + + onChanged(); + return getTriggerFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. Spec related to how often and when a scan should be triggered.
+       * If not specified, the default is OnDemand, which means the scan will not
+       * run until the user calls RunDataScan API.
+       * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataplex.v1.TriggerOrBuilder getTriggerOrBuilder() { + if (triggerBuilder_ != null) { + return triggerBuilder_.getMessageOrBuilder(); + } else { + return trigger_ == null + ? com.google.cloud.dataplex.v1.Trigger.getDefaultInstance() + : trigger_; + } + } + /** + * + * + *
+       * Optional. Spec related to how often and when a scan should be triggered.
+       * If not specified, the default is OnDemand, which means the scan will not
+       * run until the user calls RunDataScan API.
+       * 
+ * + * + * .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.Trigger, + com.google.cloud.dataplex.v1.Trigger.Builder, + com.google.cloud.dataplex.v1.TriggerOrBuilder> + getTriggerFieldBuilder() { + if (triggerBuilder_ == null) { + triggerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.Trigger, + com.google.cloud.dataplex.v1.Trigger.Builder, + com.google.cloud.dataplex.v1.TriggerOrBuilder>( + getTrigger(), getParentForChildren(), isClean()); + trigger_ = null; + } + return triggerBuilder_; + } + + /** + * + * + *
+       * Immutable. The unnested field (Date or Timestamp) that contains values
+       * that monotonically increase over time.
+       * 
+ * + * string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the field field is set. + */ + @java.lang.Override + public boolean hasField() { + return incrementalCase_ == 100; + } + /** + * + * + *
+       * Immutable. The unnested field (Date or Timestamp) that contains values
+       * that monotonically increase over time.
+       * 
+ * + * string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The field. + */ + @java.lang.Override + public java.lang.String getField() { + java.lang.Object ref = ""; + if (incrementalCase_ == 100) { + ref = incremental_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (incrementalCase_ == 100) { + incremental_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Immutable. The unnested field (Date or Timestamp) that contains values
+       * that monotonically increase over time.
+       * 
+ * + * string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for field. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = ""; + if (incrementalCase_ == 100) { + ref = incremental_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (incrementalCase_ == 100) { + incremental_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Immutable. The unnested field (Date or Timestamp) that contains values
+       * that monotonically increase over time.
+       * 
+ * + * string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The field to set. + * @return This builder for chaining. + */ + public Builder setField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + incrementalCase_ = 100; + incremental_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Immutable. The unnested field (Date or Timestamp) that contains values
+       * that monotonically increase over time.
+       * 
+ * + * string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearField() { + if (incrementalCase_ == 100) { + incrementalCase_ = 0; + incremental_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Immutable. The unnested field (Date or Timestamp) that contains values
+       * that monotonically increase over time.
+       * 
+ * + * string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for field to set. + * @return This builder for chaining. + */ + public Builder setFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + incrementalCase_ = 100; + incremental_ = 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.dataplex.v1.DataScan.ExecutionSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScan.ExecutionSpec) + private static final com.google.cloud.dataplex.v1.DataScan.ExecutionSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScan.ExecutionSpec(); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan.ExecutionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ExecutionStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScan.ExecutionStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The time when the latest DataScanJob started.
+     * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + * + * @return Whether the latestJobStartTime field is set. + */ + boolean hasLatestJobStartTime(); + /** + * + * + *
+     * The time when the latest DataScanJob started.
+     * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + * + * @return The latestJobStartTime. + */ + com.google.protobuf.Timestamp getLatestJobStartTime(); + /** + * + * + *
+     * The time when the latest DataScanJob started.
+     * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getLatestJobStartTimeOrBuilder(); + + /** + * + * + *
+     * The time when the latest DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + * + * @return Whether the latestJobEndTime field is set. + */ + boolean hasLatestJobEndTime(); + /** + * + * + *
+     * The time when the latest DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + * + * @return The latestJobEndTime. + */ + com.google.protobuf.Timestamp getLatestJobEndTime(); + /** + * + * + *
+     * The time when the latest DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + */ + com.google.protobuf.TimestampOrBuilder getLatestJobEndTimeOrBuilder(); + } + /** + * + * + *
+   * Status of the data scan execution.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScan.ExecutionStatus} + */ + public static final class ExecutionStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScan.ExecutionStatus) + ExecutionStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionStatus.newBuilder() to construct. + private ExecutionStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecutionStatus() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExecutionStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_ExecutionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_ExecutionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.class, + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.Builder.class); + } + + public static final int LATEST_JOB_START_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp latestJobStartTime_; + /** + * + * + *
+     * The time when the latest DataScanJob started.
+     * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + * + * @return Whether the latestJobStartTime field is set. + */ + @java.lang.Override + public boolean hasLatestJobStartTime() { + return latestJobStartTime_ != null; + } + /** + * + * + *
+     * The time when the latest DataScanJob started.
+     * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + * + * @return The latestJobStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLatestJobStartTime() { + return latestJobStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestJobStartTime_; + } + /** + * + * + *
+     * The time when the latest DataScanJob started.
+     * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLatestJobStartTimeOrBuilder() { + return getLatestJobStartTime(); + } + + public static final int LATEST_JOB_END_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp latestJobEndTime_; + /** + * + * + *
+     * The time when the latest DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + * + * @return Whether the latestJobEndTime field is set. + */ + @java.lang.Override + public boolean hasLatestJobEndTime() { + return latestJobEndTime_ != null; + } + /** + * + * + *
+     * The time when the latest DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + * + * @return The latestJobEndTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLatestJobEndTime() { + return latestJobEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestJobEndTime_; + } + /** + * + * + *
+     * The time when the latest DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLatestJobEndTimeOrBuilder() { + return getLatestJobEndTime(); + } + + 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 (latestJobStartTime_ != null) { + output.writeMessage(4, getLatestJobStartTime()); + } + if (latestJobEndTime_ != null) { + output.writeMessage(5, getLatestJobEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (latestJobStartTime_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLatestJobStartTime()); + } + if (latestJobEndTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLatestJobEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataScan.ExecutionStatus)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus other = + (com.google.cloud.dataplex.v1.DataScan.ExecutionStatus) obj; + + if (hasLatestJobStartTime() != other.hasLatestJobStartTime()) return false; + if (hasLatestJobStartTime()) { + if (!getLatestJobStartTime().equals(other.getLatestJobStartTime())) return false; + } + if (hasLatestJobEndTime() != other.hasLatestJobEndTime()) return false; + if (hasLatestJobEndTime()) { + if (!getLatestJobEndTime().equals(other.getLatestJobEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLatestJobStartTime()) { + hash = (37 * hash) + LATEST_JOB_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLatestJobStartTime().hashCode(); + } + if (hasLatestJobEndTime()) { + hash = (37 * hash) + LATEST_JOB_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLatestJobEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionStatus 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.dataplex.v1.DataScan.ExecutionStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionStatus 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.dataplex.v1.DataScan.ExecutionStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionStatus 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.dataplex.v1.DataScan.ExecutionStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionStatus 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.dataplex.v1.DataScan.ExecutionStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionStatus 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.dataplex.v1.DataScan.ExecutionStatus 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; + } + /** + * + * + *
+     * Status of the data scan execution.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScan.ExecutionStatus} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScan.ExecutionStatus) + com.google.cloud.dataplex.v1.DataScan.ExecutionStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_ExecutionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_ExecutionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.class, + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (latestJobStartTimeBuilder_ == null) { + latestJobStartTime_ = null; + } else { + latestJobStartTime_ = null; + latestJobStartTimeBuilder_ = null; + } + if (latestJobEndTimeBuilder_ == null) { + latestJobEndTime_ = null; + } else { + latestJobEndTime_ = null; + latestJobEndTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_ExecutionStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan.ExecutionStatus getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan.ExecutionStatus build() { + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan.ExecutionStatus buildPartial() { + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus result = + new com.google.cloud.dataplex.v1.DataScan.ExecutionStatus(this); + if (latestJobStartTimeBuilder_ == null) { + result.latestJobStartTime_ = latestJobStartTime_; + } else { + result.latestJobStartTime_ = latestJobStartTimeBuilder_.build(); + } + if (latestJobEndTimeBuilder_ == null) { + result.latestJobEndTime_ = latestJobEndTime_; + } else { + result.latestJobEndTime_ = latestJobEndTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataScan.ExecutionStatus) { + return mergeFrom((com.google.cloud.dataplex.v1.DataScan.ExecutionStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScan.ExecutionStatus other) { + if (other == com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.getDefaultInstance()) + return this; + if (other.hasLatestJobStartTime()) { + mergeLatestJobStartTime(other.getLatestJobStartTime()); + } + if (other.hasLatestJobEndTime()) { + mergeLatestJobEndTime(other.getLatestJobEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 34: + { + input.readMessage( + getLatestJobStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage( + getLatestJobEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.protobuf.Timestamp latestJobStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + latestJobStartTimeBuilder_; + /** + * + * + *
+       * The time when the latest DataScanJob started.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + * + * @return Whether the latestJobStartTime field is set. + */ + public boolean hasLatestJobStartTime() { + return latestJobStartTimeBuilder_ != null || latestJobStartTime_ != null; + } + /** + * + * + *
+       * The time when the latest DataScanJob started.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + * + * @return The latestJobStartTime. + */ + public com.google.protobuf.Timestamp getLatestJobStartTime() { + if (latestJobStartTimeBuilder_ == null) { + return latestJobStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestJobStartTime_; + } else { + return latestJobStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The time when the latest DataScanJob started.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + */ + public Builder setLatestJobStartTime(com.google.protobuf.Timestamp value) { + if (latestJobStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestJobStartTime_ = value; + onChanged(); + } else { + latestJobStartTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The time when the latest DataScanJob started.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + */ + public Builder setLatestJobStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (latestJobStartTimeBuilder_ == null) { + latestJobStartTime_ = builderForValue.build(); + onChanged(); + } else { + latestJobStartTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The time when the latest DataScanJob started.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + */ + public Builder mergeLatestJobStartTime(com.google.protobuf.Timestamp value) { + if (latestJobStartTimeBuilder_ == null) { + if (latestJobStartTime_ != null) { + latestJobStartTime_ = + com.google.protobuf.Timestamp.newBuilder(latestJobStartTime_) + .mergeFrom(value) + .buildPartial(); + } else { + latestJobStartTime_ = value; + } + onChanged(); + } else { + latestJobStartTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The time when the latest DataScanJob started.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + */ + public Builder clearLatestJobStartTime() { + if (latestJobStartTimeBuilder_ == null) { + latestJobStartTime_ = null; + onChanged(); + } else { + latestJobStartTime_ = null; + latestJobStartTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The time when the latest DataScanJob started.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getLatestJobStartTimeBuilder() { + + onChanged(); + return getLatestJobStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The time when the latest DataScanJob started.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getLatestJobStartTimeOrBuilder() { + if (latestJobStartTimeBuilder_ != null) { + return latestJobStartTimeBuilder_.getMessageOrBuilder(); + } else { + return latestJobStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestJobStartTime_; + } + } + /** + * + * + *
+       * The time when the latest DataScanJob started.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_start_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLatestJobStartTimeFieldBuilder() { + if (latestJobStartTimeBuilder_ == null) { + latestJobStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLatestJobStartTime(), getParentForChildren(), isClean()); + latestJobStartTime_ = null; + } + return latestJobStartTimeBuilder_; + } + + private com.google.protobuf.Timestamp latestJobEndTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + latestJobEndTimeBuilder_; + /** + * + * + *
+       * The time when the latest DataScanJob ended.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + * + * @return Whether the latestJobEndTime field is set. + */ + public boolean hasLatestJobEndTime() { + return latestJobEndTimeBuilder_ != null || latestJobEndTime_ != null; + } + /** + * + * + *
+       * The time when the latest DataScanJob ended.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + * + * @return The latestJobEndTime. + */ + public com.google.protobuf.Timestamp getLatestJobEndTime() { + if (latestJobEndTimeBuilder_ == null) { + return latestJobEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestJobEndTime_; + } else { + return latestJobEndTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The time when the latest DataScanJob ended.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + */ + public Builder setLatestJobEndTime(com.google.protobuf.Timestamp value) { + if (latestJobEndTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestJobEndTime_ = value; + onChanged(); + } else { + latestJobEndTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * The time when the latest DataScanJob ended.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + */ + public Builder setLatestJobEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (latestJobEndTimeBuilder_ == null) { + latestJobEndTime_ = builderForValue.build(); + onChanged(); + } else { + latestJobEndTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * The time when the latest DataScanJob ended.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + */ + public Builder mergeLatestJobEndTime(com.google.protobuf.Timestamp value) { + if (latestJobEndTimeBuilder_ == null) { + if (latestJobEndTime_ != null) { + latestJobEndTime_ = + com.google.protobuf.Timestamp.newBuilder(latestJobEndTime_) + .mergeFrom(value) + .buildPartial(); + } else { + latestJobEndTime_ = value; + } + onChanged(); + } else { + latestJobEndTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * The time when the latest DataScanJob ended.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + */ + public Builder clearLatestJobEndTime() { + if (latestJobEndTimeBuilder_ == null) { + latestJobEndTime_ = null; + onChanged(); + } else { + latestJobEndTime_ = null; + latestJobEndTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * The time when the latest DataScanJob ended.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getLatestJobEndTimeBuilder() { + + onChanged(); + return getLatestJobEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The time when the latest DataScanJob ended.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getLatestJobEndTimeOrBuilder() { + if (latestJobEndTimeBuilder_ != null) { + return latestJobEndTimeBuilder_.getMessageOrBuilder(); + } else { + return latestJobEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestJobEndTime_; + } + } + /** + * + * + *
+       * The time when the latest DataScanJob ended.
+       * 
+ * + * .google.protobuf.Timestamp latest_job_end_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLatestJobEndTimeFieldBuilder() { + if (latestJobEndTimeBuilder_ == null) { + latestJobEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLatestJobEndTime(), getParentForChildren(), isClean()); + latestJobEndTime_ = null; + } + return latestJobEndTimeBuilder_; + } + + @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.dataplex.v1.DataScan.ExecutionStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScan.ExecutionStatus) + private static final com.google.cloud.dataplex.v1.DataScan.ExecutionStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScan.ExecutionStatus(); + } + + public static com.google.cloud.dataplex.v1.DataScan.ExecutionStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan.ExecutionStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int specCase_ = 0; + private java.lang.Object spec_; + + public enum SpecCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DATA_QUALITY_SPEC(100), + DATA_PROFILE_SPEC(101), + SPEC_NOT_SET(0); + private final int value; + + private SpecCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SpecCase valueOf(int value) { + return forNumber(value); + } + + public static SpecCase forNumber(int value) { + switch (value) { + case 100: + return DATA_QUALITY_SPEC; + case 101: + return DATA_PROFILE_SPEC; + case 0: + return SPEC_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SpecCase getSpecCase() { + return SpecCase.forNumber(specCase_); + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DATA_QUALITY_RESULT(200), + DATA_PROFILE_RESULT(201), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 200: + return DATA_QUALITY_RESULT; + case 201: + return DATA_PROFILE_RESULT; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The relative resource name of the scan, of the form:
+   * projects/{project}/locations/{location_id}/dataScans/{datascan_id}.
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The relative resource name of the scan, of the form:
+   * projects/{project}/locations/{location_id}/dataScans/{datascan_id}.
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * 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 UID_FIELD_NUMBER = 2; + private volatile java.lang.Object uid_; + /** + * + * + *
+   * Output only. System generated globally unique ID for the scan. This ID will
+   * be different if the scan is deleted and re-created with the same name.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. System generated globally unique ID for the scan. This ID will
+   * be different if the scan is deleted and re-created with the same name.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional. Description of the scan.
+   * * Must be between 1-1024 characters.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Description of the scan.
+   * * Must be between 1-1024 characters.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Optional. User friendly display name.
+   * * Must be between 1-256 characters.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. User friendly display name.
+   * * Must be between 1-256 characters.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 LABELS_FIELD_NUMBER = 5; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * Optional. User-defined labels for the scan.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * Optional. User-defined labels for the scan.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. User-defined labels for the scan.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. User-defined labels for the scan.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_; + /** + * + * + *
+   * Output only. Current state of the DataScan.
+   * 
+ * + * .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. Current state of the DataScan.
+   * 
+ * + * .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.State result = com.google.cloud.dataplex.v1.State.valueOf(state_); + return result == null ? com.google.cloud.dataplex.v1.State.UNRECOGNIZED : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The time when the scan was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. The time when the scan was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.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. The time when the scan was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.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 = 8; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The time when the scan was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. The time when the scan was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.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. The time when the scan was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int DATA_FIELD_NUMBER = 9; + private com.google.cloud.dataplex.v1.DataSource data_; + /** + * + * + *
+   * Required. The data source for DataScan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return data_ != null; + } + /** + * + * + *
+   * Required. The data source for DataScan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The data. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataSource getData() { + return data_ == null ? com.google.cloud.dataplex.v1.DataSource.getDefaultInstance() : data_; + } + /** + * + * + *
+   * Required. The data source for DataScan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataSourceOrBuilder getDataOrBuilder() { + return getData(); + } + + public static final int EXECUTION_SPEC_FIELD_NUMBER = 10; + private com.google.cloud.dataplex.v1.DataScan.ExecutionSpec executionSpec_; + /** + * + * + *
+   * Optional. DataScan execution settings.
+   * If not specified, the fields under it will use their default values.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executionSpec field is set. + */ + @java.lang.Override + public boolean hasExecutionSpec() { + return executionSpec_ != null; + } + /** + * + * + *
+   * Optional. DataScan execution settings.
+   * If not specified, the fields under it will use their default values.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionSpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan.ExecutionSpec getExecutionSpec() { + return executionSpec_ == null + ? com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.getDefaultInstance() + : executionSpec_; + } + /** + * + * + *
+   * Optional. DataScan execution settings.
+   * If not specified, the fields under it will use their default values.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan.ExecutionSpecOrBuilder getExecutionSpecOrBuilder() { + return getExecutionSpec(); + } + + public static final int EXECUTION_STATUS_FIELD_NUMBER = 11; + private com.google.cloud.dataplex.v1.DataScan.ExecutionStatus executionStatus_; + /** + * + * + *
+   * Output only. Status of the data scan execution.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the executionStatus field is set. + */ + @java.lang.Override + public boolean hasExecutionStatus() { + return executionStatus_ != null; + } + /** + * + * + *
+   * Output only. Status of the data scan execution.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The executionStatus. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan.ExecutionStatus getExecutionStatus() { + return executionStatus_ == null + ? com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.getDefaultInstance() + : executionStatus_; + } + /** + * + * + *
+   * Output only. Status of the data scan execution.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan.ExecutionStatusOrBuilder + getExecutionStatusOrBuilder() { + return getExecutionStatus(); + } + + public static final int TYPE_FIELD_NUMBER = 12; + private int type_; + /** + * + * + *
+   * Output only. The type of DataScan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Output only. The type of DataScan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanType result = + com.google.cloud.dataplex.v1.DataScanType.valueOf(type_); + return result == null ? com.google.cloud.dataplex.v1.DataScanType.UNRECOGNIZED : result; + } + + public static final int DATA_QUALITY_SPEC_FIELD_NUMBER = 100; + /** + * + * + *
+   * DataQualityScan related setting.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + * + * @return Whether the dataQualitySpec field is set. + */ + @java.lang.Override + public boolean hasDataQualitySpec() { + return specCase_ == 100; + } + /** + * + * + *
+   * DataQualityScan related setting.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + * + * @return The dataQualitySpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualitySpec getDataQualitySpec() { + if (specCase_ == 100) { + return (com.google.cloud.dataplex.v1.DataQualitySpec) spec_; + } + return com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } + /** + * + * + *
+   * DataQualityScan related setting.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder getDataQualitySpecOrBuilder() { + if (specCase_ == 100) { + return (com.google.cloud.dataplex.v1.DataQualitySpec) spec_; + } + return com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } + + public static final int DATA_PROFILE_SPEC_FIELD_NUMBER = 101; + /** + * + * + *
+   * DataProfileScan related setting.
+   * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + * + * @return Whether the dataProfileSpec field is set. + */ + @java.lang.Override + public boolean hasDataProfileSpec() { + return specCase_ == 101; + } + /** + * + * + *
+   * DataProfileScan related setting.
+   * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + * + * @return The dataProfileSpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileSpec getDataProfileSpec() { + if (specCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataProfileSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } + /** + * + * + *
+   * DataProfileScan related setting.
+   * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder getDataProfileSpecOrBuilder() { + if (specCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataProfileSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } + + public static final int DATA_QUALITY_RESULT_FIELD_NUMBER = 200; + /** + * + * + *
+   * Output only. The result of the data quality scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataQualityResult field is set. + */ + @java.lang.Override + public boolean hasDataQualityResult() { + return resultCase_ == 200; + } + /** + * + * + *
+   * Output only. The result of the data quality scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataQualityResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult getDataQualityResult() { + if (resultCase_ == 200) { + return (com.google.cloud.dataplex.v1.DataQualityResult) result_; + } + return com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. The result of the data quality scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResultOrBuilder getDataQualityResultOrBuilder() { + if (resultCase_ == 200) { + return (com.google.cloud.dataplex.v1.DataQualityResult) result_; + } + return com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } + + public static final int DATA_PROFILE_RESULT_FIELD_NUMBER = 201; + /** + * + * + *
+   * Output only. The result of the data profile scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataProfileResult field is set. + */ + @java.lang.Override + public boolean hasDataProfileResult() { + return resultCase_ == 201; + } + /** + * + * + *
+   * Output only. The result of the data profile scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataProfileResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult getDataProfileResult() { + if (resultCase_ == 201) { + return (com.google.cloud.dataplex.v1.DataProfileResult) result_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. The result of the data profile scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResultOrBuilder getDataProfileResultOrBuilder() { + if (resultCase_ == 201) { + return (com.google.cloud.dataplex.v1.DataProfileResult) result_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } + + 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(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + if (state_ != com.google.cloud.dataplex.v1.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (createTime_ != null) { + output.writeMessage(7, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(8, getUpdateTime()); + } + if (data_ != null) { + output.writeMessage(9, getData()); + } + if (executionSpec_ != null) { + output.writeMessage(10, getExecutionSpec()); + } + if (executionStatus_ != null) { + output.writeMessage(11, getExecutionStatus()); + } + if (type_ != com.google.cloud.dataplex.v1.DataScanType.DATA_SCAN_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(12, type_); + } + if (specCase_ == 100) { + output.writeMessage(100, (com.google.cloud.dataplex.v1.DataQualitySpec) spec_); + } + if (specCase_ == 101) { + output.writeMessage(101, (com.google.cloud.dataplex.v1.DataProfileSpec) spec_); + } + if (resultCase_ == 200) { + output.writeMessage(200, (com.google.cloud.dataplex.v1.DataQualityResult) result_); + } + if (resultCase_ == 201) { + output.writeMessage(201, (com.google.cloud.dataplex.v1.DataProfileResult) result_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + } + if (state_ != com.google.cloud.dataplex.v1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getData()); + } + if (executionSpec_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getExecutionSpec()); + } + if (executionStatus_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExecutionStatus()); + } + if (type_ != com.google.cloud.dataplex.v1.DataScanType.DATA_SCAN_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, type_); + } + if (specCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.dataplex.v1.DataQualitySpec) spec_); + } + if (specCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.dataplex.v1.DataProfileSpec) spec_); + } + if (resultCase_ == 200) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 200, (com.google.cloud.dataplex.v1.DataQualityResult) result_); + } + if (resultCase_ == 201) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 201, (com.google.cloud.dataplex.v1.DataProfileResult) result_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataScan)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataScan other = (com.google.cloud.dataplex.v1.DataScan) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) 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 (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData().equals(other.getData())) return false; + } + if (hasExecutionSpec() != other.hasExecutionSpec()) return false; + if (hasExecutionSpec()) { + if (!getExecutionSpec().equals(other.getExecutionSpec())) return false; + } + if (hasExecutionStatus() != other.hasExecutionStatus()) return false; + if (hasExecutionStatus()) { + if (!getExecutionStatus().equals(other.getExecutionStatus())) return false; + } + if (type_ != other.type_) return false; + if (!getSpecCase().equals(other.getSpecCase())) return false; + switch (specCase_) { + case 100: + if (!getDataQualitySpec().equals(other.getDataQualitySpec())) return false; + break; + case 101: + if (!getDataProfileSpec().equals(other.getDataProfileSpec())) return false; + break; + case 0: + default: + } + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 200: + if (!getDataQualityResult().equals(other.getDataQualityResult())) return false; + break; + case 201: + if (!getDataProfileResult().equals(other.getDataProfileResult())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + 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(); + } + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + if (hasExecutionSpec()) { + hash = (37 * hash) + EXECUTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getExecutionSpec().hashCode(); + } + if (hasExecutionStatus()) { + hash = (37 * hash) + EXECUTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getExecutionStatus().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + switch (specCase_) { + case 100: + hash = (37 * hash) + DATA_QUALITY_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getDataQualitySpec().hashCode(); + break; + case 101: + hash = (37 * hash) + DATA_PROFILE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getDataProfileSpec().hashCode(); + break; + case 0: + default: + } + switch (resultCase_) { + case 200: + hash = (37 * hash) + DATA_QUALITY_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getDataQualityResult().hashCode(); + break; + case 201: + hash = (37 * hash) + DATA_PROFILE_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getDataProfileResult().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataScan parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScan 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.dataplex.v1.DataScan parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScan 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.dataplex.v1.DataScan parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScan parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataScan parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScan 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.dataplex.v1.DataScan parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScan 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.dataplex.v1.DataScan parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScan 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.dataplex.v1.DataScan prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a user-visible job which provides the insights for the related
+   * data source.
+   * For examples:
+   *   - Data Quality: generates queries based on the rules and run against the
+   *     data to get data quality check results.
+   *   - Data Profile: analyzes the data in table(s) and generates insights about
+   *     the structure, content and relationships (such as null percent,
+   *     cardinality, min/max/mean, etc).
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScan} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScan) + com.google.cloud.dataplex.v1.DataScanOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 5: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScan.class, + com.google.cloud.dataplex.v1.DataScan.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataScan.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + uid_ = ""; + + description_ = ""; + + displayName_ = ""; + + internalGetMutableLabels().clear(); + state_ = 0; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + if (executionSpecBuilder_ == null) { + executionSpec_ = null; + } else { + executionSpec_ = null; + executionSpecBuilder_ = null; + } + if (executionStatusBuilder_ == null) { + executionStatus_ = null; + } else { + executionStatus_ = null; + executionStatusBuilder_ = null; + } + type_ = 0; + + if (dataQualitySpecBuilder_ != null) { + dataQualitySpecBuilder_.clear(); + } + if (dataProfileSpecBuilder_ != null) { + dataProfileSpecBuilder_.clear(); + } + if (dataQualityResultBuilder_ != null) { + dataQualityResultBuilder_.clear(); + } + if (dataProfileResultBuilder_ != null) { + dataProfileResultBuilder_.clear(); + } + specCase_ = 0; + spec_ = null; + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScan_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataScan.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan build() { + com.google.cloud.dataplex.v1.DataScan result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan buildPartial() { + com.google.cloud.dataplex.v1.DataScan result = + new com.google.cloud.dataplex.v1.DataScan(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.uid_ = uid_; + result.description_ = description_; + result.displayName_ = displayName_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.state_ = state_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + if (executionSpecBuilder_ == null) { + result.executionSpec_ = executionSpec_; + } else { + result.executionSpec_ = executionSpecBuilder_.build(); + } + if (executionStatusBuilder_ == null) { + result.executionStatus_ = executionStatus_; + } else { + result.executionStatus_ = executionStatusBuilder_.build(); + } + result.type_ = type_; + if (specCase_ == 100) { + if (dataQualitySpecBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = dataQualitySpecBuilder_.build(); + } + } + if (specCase_ == 101) { + if (dataProfileSpecBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = dataProfileSpecBuilder_.build(); + } + } + if (resultCase_ == 200) { + if (dataQualityResultBuilder_ == null) { + result.result_ = result_; + } else { + result.result_ = dataQualityResultBuilder_.build(); + } + } + if (resultCase_ == 201) { + if (dataProfileResultBuilder_ == null) { + result.result_ = result_; + } else { + result.result_ = dataProfileResultBuilder_.build(); + } + } + result.specCase_ = specCase_; + result.resultCase_ = resultCase_; + 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.dataplex.v1.DataScan) { + return mergeFrom((com.google.cloud.dataplex.v1.DataScan) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScan other) { + if (other == com.google.cloud.dataplex.v1.DataScan.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasData()) { + mergeData(other.getData()); + } + if (other.hasExecutionSpec()) { + mergeExecutionSpec(other.getExecutionSpec()); + } + if (other.hasExecutionStatus()) { + mergeExecutionStatus(other.getExecutionStatus()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + switch (other.getSpecCase()) { + case DATA_QUALITY_SPEC: + { + mergeDataQualitySpec(other.getDataQualitySpec()); + break; + } + case DATA_PROFILE_SPEC: + { + mergeDataProfileSpec(other.getDataProfileSpec()); + break; + } + case SPEC_NOT_SET: + { + break; + } + } + switch (other.getResultCase()) { + case DATA_QUALITY_RESULT: + { + mergeDataQualityResult(other.getDataQualityResult()); + break; + } + case DATA_PROFILE_RESULT: + { + mergeDataProfileResult(other.getDataProfileResult()); + break; + } + case RESULT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + input.readMessage(getDataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage(getExecutionSpecFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 90: + { + input.readMessage(getExecutionStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 90 + case 96: + { + type_ = input.readEnum(); + + break; + } // case 96 + case 802: + { + input.readMessage(getDataQualitySpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage(getDataProfileSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 101; + break; + } // case 810 + case 1602: + { + input.readMessage( + getDataQualityResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 200; + break; + } // case 1602 + case 1610: + { + input.readMessage( + getDataProfileResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 201; + break; + } // case 1610 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int specCase_ = 0; + private java.lang.Object spec_; + + public SpecCase getSpecCase() { + return SpecCase.forNumber(specCase_); + } + + public Builder clearSpec() { + specCase_ = 0; + spec_ = null; + onChanged(); + return this; + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The relative resource name of the scan, of the form:
+     * projects/{project}/locations/{location_id}/dataScans/{datascan_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The relative resource name of the scan, of the form:
+     * projects/{project}/locations/{location_id}/dataScans/{datascan_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The relative resource name of the scan, of the form:
+     * projects/{project}/locations/{location_id}/dataScans/{datascan_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative resource name of the scan, of the form:
+     * projects/{project}/locations/{location_id}/dataScans/{datascan_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative resource name of the scan, of the form:
+     * projects/{project}/locations/{location_id}/dataScans/{datascan_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * 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 uid_ = ""; + /** + * + * + *
+     * Output only. System generated globally unique ID for the scan. This ID will
+     * be different if the scan is deleted and re-created with the same name.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. System generated globally unique ID for the scan. This ID will
+     * be different if the scan is deleted and re-created with the same name.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. System generated globally unique ID for the scan. This ID will
+     * be different if the scan is deleted and re-created with the same name.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System generated globally unique ID for the scan. This ID will
+     * be different if the scan is deleted and re-created with the same name.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System generated globally unique ID for the scan. This ID will
+     * be different if the scan is deleted and re-created with the same name.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. Description of the scan.
+     * * Must be between 1-1024 characters.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Description of the scan.
+     * * Must be between 1-1024 characters.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Description of the scan.
+     * * Must be between 1-1024 characters.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description of the scan.
+     * * Must be between 1-1024 characters.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description of the scan.
+     * * Must be between 1-1024 characters.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. User friendly display name.
+     * * Must be between 1-256 characters.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. User friendly display name.
+     * * Must be between 1-256 characters.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. User friendly display name.
+     * * Must be between 1-256 characters.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. User friendly display name.
+     * * Must be between 1-256 characters.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. User friendly display name.
+     * * Must be between 1-256 characters.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. User-defined labels for the scan.
+     * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * Optional. User-defined labels for the scan.
+     * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. User-defined labels for the scan.
+     * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. User-defined labels for the scan.
+     * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. User-defined labels for the scan.
+     * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. User-defined labels for the scan.
+     * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Optional. User-defined labels for the scan.
+     * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. Current state of the DataScan.
+     * 
+ * + * .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. Current state of the DataScan.
+     * 
+ * + * .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Current state of the DataScan.
+     * 
+ * + * .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.State result = + com.google.cloud.dataplex.v1.State.valueOf(state_); + return result == null ? com.google.cloud.dataplex.v1.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. Current state of the DataScan.
+     * 
+ * + * .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataplex.v1.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Current state of the DataScan.
+     * 
+ * + * .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + 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. The time when the scan was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. The time when the scan was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. The time when the scan was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. The time when the scan was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. The time when the scan was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. The time when the scan was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the scan was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time when the scan was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. The time when the scan was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. The time when the scan was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Output only. The time when the scan was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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. The time when the scan was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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. The time when the scan was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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. The time when the scan was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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. The time when the scan was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the scan was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time when the scan was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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. The time when the scan was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.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 com.google.cloud.dataplex.v1.DataSource data_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataSource, + com.google.cloud.dataplex.v1.DataSource.Builder, + com.google.cloud.dataplex.v1.DataSourceOrBuilder> + dataBuilder_; + /** + * + * + *
+     * Required. The data source for DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the data field is set. + */ + public boolean hasData() { + return dataBuilder_ != null || data_ != null; + } + /** + * + * + *
+     * Required. The data source for DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The data. + */ + public com.google.cloud.dataplex.v1.DataSource getData() { + if (dataBuilder_ == null) { + return data_ == null ? com.google.cloud.dataplex.v1.DataSource.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The data source for DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setData(com.google.cloud.dataplex.v1.DataSource value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + dataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The data source for DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setData(com.google.cloud.dataplex.v1.DataSource.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The data source for DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeData(com.google.cloud.dataplex.v1.DataSource value) { + if (dataBuilder_ == null) { + if (data_ != null) { + data_ = + com.google.cloud.dataplex.v1.DataSource.newBuilder(data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + dataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The data source for DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = null; + onChanged(); + } else { + data_ = null; + dataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The data source for DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataplex.v1.DataSource.Builder getDataBuilder() { + + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The data source for DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataplex.v1.DataSourceOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? com.google.cloud.dataplex.v1.DataSource.getDefaultInstance() : data_; + } + } + /** + * + * + *
+     * Required. The data source for DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataSource, + com.google.cloud.dataplex.v1.DataSource.Builder, + com.google.cloud.dataplex.v1.DataSourceOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataSource, + com.google.cloud.dataplex.v1.DataSource.Builder, + com.google.cloud.dataplex.v1.DataSourceOrBuilder>( + getData(), getParentForChildren(), isClean()); + data_ = null; + } + return dataBuilder_; + } + + private com.google.cloud.dataplex.v1.DataScan.ExecutionSpec executionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec, + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.Builder, + com.google.cloud.dataplex.v1.DataScan.ExecutionSpecOrBuilder> + executionSpecBuilder_; + /** + * + * + *
+     * Optional. DataScan execution settings.
+     * If not specified, the fields under it will use their default values.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executionSpec field is set. + */ + public boolean hasExecutionSpec() { + return executionSpecBuilder_ != null || executionSpec_ != null; + } + /** + * + * + *
+     * Optional. DataScan execution settings.
+     * If not specified, the fields under it will use their default values.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionSpec. + */ + public com.google.cloud.dataplex.v1.DataScan.ExecutionSpec getExecutionSpec() { + if (executionSpecBuilder_ == null) { + return executionSpec_ == null + ? com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.getDefaultInstance() + : executionSpec_; + } else { + return executionSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. DataScan execution settings.
+     * If not specified, the fields under it will use their default values.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExecutionSpec(com.google.cloud.dataplex.v1.DataScan.ExecutionSpec value) { + if (executionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionSpec_ = value; + onChanged(); + } else { + executionSpecBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. DataScan execution settings.
+     * If not specified, the fields under it will use their default values.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExecutionSpec( + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.Builder builderForValue) { + if (executionSpecBuilder_ == null) { + executionSpec_ = builderForValue.build(); + onChanged(); + } else { + executionSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. DataScan execution settings.
+     * If not specified, the fields under it will use their default values.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExecutionSpec(com.google.cloud.dataplex.v1.DataScan.ExecutionSpec value) { + if (executionSpecBuilder_ == null) { + if (executionSpec_ != null) { + executionSpec_ = + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.newBuilder(executionSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + executionSpec_ = value; + } + onChanged(); + } else { + executionSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. DataScan execution settings.
+     * If not specified, the fields under it will use their default values.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExecutionSpec() { + if (executionSpecBuilder_ == null) { + executionSpec_ = null; + onChanged(); + } else { + executionSpec_ = null; + executionSpecBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. DataScan execution settings.
+     * If not specified, the fields under it will use their default values.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.Builder getExecutionSpecBuilder() { + + onChanged(); + return getExecutionSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. DataScan execution settings.
+     * If not specified, the fields under it will use their default values.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataplex.v1.DataScan.ExecutionSpecOrBuilder + getExecutionSpecOrBuilder() { + if (executionSpecBuilder_ != null) { + return executionSpecBuilder_.getMessageOrBuilder(); + } else { + return executionSpec_ == null + ? com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.getDefaultInstance() + : executionSpec_; + } + } + /** + * + * + *
+     * Optional. DataScan execution settings.
+     * If not specified, the fields under it will use their default values.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec, + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.Builder, + com.google.cloud.dataplex.v1.DataScan.ExecutionSpecOrBuilder> + getExecutionSpecFieldBuilder() { + if (executionSpecBuilder_ == null) { + executionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec, + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.Builder, + com.google.cloud.dataplex.v1.DataScan.ExecutionSpecOrBuilder>( + getExecutionSpec(), getParentForChildren(), isClean()); + executionSpec_ = null; + } + return executionSpecBuilder_; + } + + private com.google.cloud.dataplex.v1.DataScan.ExecutionStatus executionStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus, + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.Builder, + com.google.cloud.dataplex.v1.DataScan.ExecutionStatusOrBuilder> + executionStatusBuilder_; + /** + * + * + *
+     * Output only. Status of the data scan execution.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the executionStatus field is set. + */ + public boolean hasExecutionStatus() { + return executionStatusBuilder_ != null || executionStatus_ != null; + } + /** + * + * + *
+     * Output only. Status of the data scan execution.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The executionStatus. + */ + public com.google.cloud.dataplex.v1.DataScan.ExecutionStatus getExecutionStatus() { + if (executionStatusBuilder_ == null) { + return executionStatus_ == null + ? com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.getDefaultInstance() + : executionStatus_; + } else { + return executionStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Status of the data scan execution.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExecutionStatus(com.google.cloud.dataplex.v1.DataScan.ExecutionStatus value) { + if (executionStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionStatus_ = value; + onChanged(); + } else { + executionStatusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Status of the data scan execution.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExecutionStatus( + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.Builder builderForValue) { + if (executionStatusBuilder_ == null) { + executionStatus_ = builderForValue.build(); + onChanged(); + } else { + executionStatusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Status of the data scan execution.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExecutionStatus( + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus value) { + if (executionStatusBuilder_ == null) { + if (executionStatus_ != null) { + executionStatus_ = + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.newBuilder(executionStatus_) + .mergeFrom(value) + .buildPartial(); + } else { + executionStatus_ = value; + } + onChanged(); + } else { + executionStatusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Status of the data scan execution.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExecutionStatus() { + if (executionStatusBuilder_ == null) { + executionStatus_ = null; + onChanged(); + } else { + executionStatus_ = null; + executionStatusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Status of the data scan execution.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.Builder + getExecutionStatusBuilder() { + + onChanged(); + return getExecutionStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Status of the data scan execution.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataScan.ExecutionStatusOrBuilder + getExecutionStatusOrBuilder() { + if (executionStatusBuilder_ != null) { + return executionStatusBuilder_.getMessageOrBuilder(); + } else { + return executionStatus_ == null + ? com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.getDefaultInstance() + : executionStatus_; + } + } + /** + * + * + *
+     * Output only. Status of the data scan execution.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus, + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.Builder, + com.google.cloud.dataplex.v1.DataScan.ExecutionStatusOrBuilder> + getExecutionStatusFieldBuilder() { + if (executionStatusBuilder_ == null) { + executionStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus, + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.Builder, + com.google.cloud.dataplex.v1.DataScan.ExecutionStatusOrBuilder>( + getExecutionStatus(), getParentForChildren(), isClean()); + executionStatus_ = null; + } + return executionStatusBuilder_; + } + + private int type_ = 0; + /** + * + * + *
+     * Output only. The type of DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Output only. The type of DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The type of DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanType result = + com.google.cloud.dataplex.v1.DataScanType.valueOf(type_); + return result == null ? com.google.cloud.dataplex.v1.DataScanType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The type of DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.dataplex.v1.DataScanType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The type of DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualitySpec, + com.google.cloud.dataplex.v1.DataQualitySpec.Builder, + com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder> + dataQualitySpecBuilder_; + /** + * + * + *
+     * DataQualityScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + * + * @return Whether the dataQualitySpec field is set. + */ + @java.lang.Override + public boolean hasDataQualitySpec() { + return specCase_ == 100; + } + /** + * + * + *
+     * DataQualityScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + * + * @return The dataQualitySpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualitySpec getDataQualitySpec() { + if (dataQualitySpecBuilder_ == null) { + if (specCase_ == 100) { + return (com.google.cloud.dataplex.v1.DataQualitySpec) spec_; + } + return com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } else { + if (specCase_ == 100) { + return dataQualitySpecBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } + } + /** + * + * + *
+     * DataQualityScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + */ + public Builder setDataQualitySpec(com.google.cloud.dataplex.v1.DataQualitySpec value) { + if (dataQualitySpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + dataQualitySpecBuilder_.setMessage(value); + } + specCase_ = 100; + return this; + } + /** + * + * + *
+     * DataQualityScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + */ + public Builder setDataQualitySpec( + com.google.cloud.dataplex.v1.DataQualitySpec.Builder builderForValue) { + if (dataQualitySpecBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + dataQualitySpecBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 100; + return this; + } + /** + * + * + *
+     * DataQualityScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + */ + public Builder mergeDataQualitySpec(com.google.cloud.dataplex.v1.DataQualitySpec value) { + if (dataQualitySpecBuilder_ == null) { + if (specCase_ == 100 + && spec_ != com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance()) { + spec_ = + com.google.cloud.dataplex.v1.DataQualitySpec.newBuilder( + (com.google.cloud.dataplex.v1.DataQualitySpec) spec_) + .mergeFrom(value) + .buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 100) { + dataQualitySpecBuilder_.mergeFrom(value); + } else { + dataQualitySpecBuilder_.setMessage(value); + } + } + specCase_ = 100; + return this; + } + /** + * + * + *
+     * DataQualityScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + */ + public Builder clearDataQualitySpec() { + if (dataQualitySpecBuilder_ == null) { + if (specCase_ == 100) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 100) { + specCase_ = 0; + spec_ = null; + } + dataQualitySpecBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * DataQualityScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + */ + public com.google.cloud.dataplex.v1.DataQualitySpec.Builder getDataQualitySpecBuilder() { + return getDataQualitySpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * DataQualityScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder getDataQualitySpecOrBuilder() { + if ((specCase_ == 100) && (dataQualitySpecBuilder_ != null)) { + return dataQualitySpecBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 100) { + return (com.google.cloud.dataplex.v1.DataQualitySpec) spec_; + } + return com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } + } + /** + * + * + *
+     * DataQualityScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualitySpec, + com.google.cloud.dataplex.v1.DataQualitySpec.Builder, + com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder> + getDataQualitySpecFieldBuilder() { + if (dataQualitySpecBuilder_ == null) { + if (!(specCase_ == 100)) { + spec_ = com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } + dataQualitySpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualitySpec, + com.google.cloud.dataplex.v1.DataQualitySpec.Builder, + com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder>( + (com.google.cloud.dataplex.v1.DataQualitySpec) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 100; + onChanged(); + ; + return dataQualitySpecBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileSpec, + com.google.cloud.dataplex.v1.DataProfileSpec.Builder, + com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder> + dataProfileSpecBuilder_; + /** + * + * + *
+     * DataProfileScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + * + * @return Whether the dataProfileSpec field is set. + */ + @java.lang.Override + public boolean hasDataProfileSpec() { + return specCase_ == 101; + } + /** + * + * + *
+     * DataProfileScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + * + * @return The dataProfileSpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileSpec getDataProfileSpec() { + if (dataProfileSpecBuilder_ == null) { + if (specCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataProfileSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } else { + if (specCase_ == 101) { + return dataProfileSpecBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } + } + /** + * + * + *
+     * DataProfileScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + */ + public Builder setDataProfileSpec(com.google.cloud.dataplex.v1.DataProfileSpec value) { + if (dataProfileSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + dataProfileSpecBuilder_.setMessage(value); + } + specCase_ = 101; + return this; + } + /** + * + * + *
+     * DataProfileScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + */ + public Builder setDataProfileSpec( + com.google.cloud.dataplex.v1.DataProfileSpec.Builder builderForValue) { + if (dataProfileSpecBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + dataProfileSpecBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 101; + return this; + } + /** + * + * + *
+     * DataProfileScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + */ + public Builder mergeDataProfileSpec(com.google.cloud.dataplex.v1.DataProfileSpec value) { + if (dataProfileSpecBuilder_ == null) { + if (specCase_ == 101 + && spec_ != com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance()) { + spec_ = + com.google.cloud.dataplex.v1.DataProfileSpec.newBuilder( + (com.google.cloud.dataplex.v1.DataProfileSpec) spec_) + .mergeFrom(value) + .buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 101) { + dataProfileSpecBuilder_.mergeFrom(value); + } else { + dataProfileSpecBuilder_.setMessage(value); + } + } + specCase_ = 101; + return this; + } + /** + * + * + *
+     * DataProfileScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + */ + public Builder clearDataProfileSpec() { + if (dataProfileSpecBuilder_ == null) { + if (specCase_ == 101) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 101) { + specCase_ = 0; + spec_ = null; + } + dataProfileSpecBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * DataProfileScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + */ + public com.google.cloud.dataplex.v1.DataProfileSpec.Builder getDataProfileSpecBuilder() { + return getDataProfileSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * DataProfileScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder getDataProfileSpecOrBuilder() { + if ((specCase_ == 101) && (dataProfileSpecBuilder_ != null)) { + return dataProfileSpecBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataProfileSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } + } + /** + * + * + *
+     * DataProfileScan related setting.
+     * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileSpec, + com.google.cloud.dataplex.v1.DataProfileSpec.Builder, + com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder> + getDataProfileSpecFieldBuilder() { + if (dataProfileSpecBuilder_ == null) { + if (!(specCase_ == 101)) { + spec_ = com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } + dataProfileSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileSpec, + com.google.cloud.dataplex.v1.DataProfileSpec.Builder, + com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder>( + (com.google.cloud.dataplex.v1.DataProfileSpec) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 101; + onChanged(); + ; + return dataProfileSpecBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityResult, + com.google.cloud.dataplex.v1.DataQualityResult.Builder, + com.google.cloud.dataplex.v1.DataQualityResultOrBuilder> + dataQualityResultBuilder_; + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataQualityResult field is set. + */ + @java.lang.Override + public boolean hasDataQualityResult() { + return resultCase_ == 200; + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataQualityResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult getDataQualityResult() { + if (dataQualityResultBuilder_ == null) { + if (resultCase_ == 200) { + return (com.google.cloud.dataplex.v1.DataQualityResult) result_; + } + return com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } else { + if (resultCase_ == 200) { + return dataQualityResultBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataQualityResult(com.google.cloud.dataplex.v1.DataQualityResult value) { + if (dataQualityResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + dataQualityResultBuilder_.setMessage(value); + } + resultCase_ = 200; + return this; + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataQualityResult( + com.google.cloud.dataplex.v1.DataQualityResult.Builder builderForValue) { + if (dataQualityResultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + dataQualityResultBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 200; + return this; + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDataQualityResult(com.google.cloud.dataplex.v1.DataQualityResult value) { + if (dataQualityResultBuilder_ == null) { + if (resultCase_ == 200 + && result_ != com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance()) { + result_ = + com.google.cloud.dataplex.v1.DataQualityResult.newBuilder( + (com.google.cloud.dataplex.v1.DataQualityResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 200) { + dataQualityResultBuilder_.mergeFrom(value); + } else { + dataQualityResultBuilder_.setMessage(value); + } + } + resultCase_ = 200; + return this; + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDataQualityResult() { + if (dataQualityResultBuilder_ == null) { + if (resultCase_ == 200) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 200) { + resultCase_ = 0; + result_ = null; + } + dataQualityResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataQualityResult.Builder getDataQualityResultBuilder() { + return getDataQualityResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResultOrBuilder getDataQualityResultOrBuilder() { + if ((resultCase_ == 200) && (dataQualityResultBuilder_ != null)) { + return dataQualityResultBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 200) { + return (com.google.cloud.dataplex.v1.DataQualityResult) result_; + } + return com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityResult, + com.google.cloud.dataplex.v1.DataQualityResult.Builder, + com.google.cloud.dataplex.v1.DataQualityResultOrBuilder> + getDataQualityResultFieldBuilder() { + if (dataQualityResultBuilder_ == null) { + if (!(resultCase_ == 200)) { + result_ = com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } + dataQualityResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityResult, + com.google.cloud.dataplex.v1.DataQualityResult.Builder, + com.google.cloud.dataplex.v1.DataQualityResultOrBuilder>( + (com.google.cloud.dataplex.v1.DataQualityResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 200; + onChanged(); + ; + return dataQualityResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult, + com.google.cloud.dataplex.v1.DataProfileResult.Builder, + com.google.cloud.dataplex.v1.DataProfileResultOrBuilder> + dataProfileResultBuilder_; + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataProfileResult field is set. + */ + @java.lang.Override + public boolean hasDataProfileResult() { + return resultCase_ == 201; + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataProfileResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult getDataProfileResult() { + if (dataProfileResultBuilder_ == null) { + if (resultCase_ == 201) { + return (com.google.cloud.dataplex.v1.DataProfileResult) result_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } else { + if (resultCase_ == 201) { + return dataProfileResultBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataProfileResult(com.google.cloud.dataplex.v1.DataProfileResult value) { + if (dataProfileResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + dataProfileResultBuilder_.setMessage(value); + } + resultCase_ = 201; + return this; + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataProfileResult( + com.google.cloud.dataplex.v1.DataProfileResult.Builder builderForValue) { + if (dataProfileResultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + dataProfileResultBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 201; + return this; + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDataProfileResult(com.google.cloud.dataplex.v1.DataProfileResult value) { + if (dataProfileResultBuilder_ == null) { + if (resultCase_ == 201 + && result_ != com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance()) { + result_ = + com.google.cloud.dataplex.v1.DataProfileResult.newBuilder( + (com.google.cloud.dataplex.v1.DataProfileResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 201) { + dataProfileResultBuilder_.mergeFrom(value); + } else { + dataProfileResultBuilder_.setMessage(value); + } + } + resultCase_ = 201; + return this; + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDataProfileResult() { + if (dataProfileResultBuilder_ == null) { + if (resultCase_ == 201) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 201) { + resultCase_ = 0; + result_ = null; + } + dataProfileResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Builder getDataProfileResultBuilder() { + return getDataProfileResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResultOrBuilder getDataProfileResultOrBuilder() { + if ((resultCase_ == 201) && (dataProfileResultBuilder_ != null)) { + return dataProfileResultBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 201) { + return (com.google.cloud.dataplex.v1.DataProfileResult) result_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult, + com.google.cloud.dataplex.v1.DataProfileResult.Builder, + com.google.cloud.dataplex.v1.DataProfileResultOrBuilder> + getDataProfileResultFieldBuilder() { + if (dataProfileResultBuilder_ == null) { + if (!(resultCase_ == 201)) { + result_ = com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } + dataProfileResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult, + com.google.cloud.dataplex.v1.DataProfileResult.Builder, + com.google.cloud.dataplex.v1.DataProfileResultOrBuilder>( + (com.google.cloud.dataplex.v1.DataProfileResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 201; + onChanged(); + ; + return dataProfileResultBuilder_; + } + + @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.dataplex.v1.DataScan) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScan) + private static final com.google.cloud.dataplex.v1.DataScan DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScan(); + } + + public static com.google.cloud.dataplex.v1.DataScan getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataScan parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanEvent.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanEvent.java new file mode 100644 index 000000000000..0e1caed0938a --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanEvent.java @@ -0,0 +1,5255 @@ +/* + * 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/dataplex/v1/logs.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * These messages contain information about the execution of a datascan.
+ * The monitored resource is 'DataScan'
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent} + */ +public final class DataScanEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanEvent) + DataScanEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataScanEvent.newBuilder() to construct. + private DataScanEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataScanEvent() { + dataSource_ = ""; + jobId_ = ""; + type_ = 0; + state_ = 0; + message_ = ""; + specVersion_ = ""; + trigger_ = 0; + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataScanEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScanEvent.class, + com.google.cloud.dataplex.v1.DataScanEvent.Builder.class); + } + + /** + * + * + *
+   * The type of the data scan.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataplex.v1.DataScanEvent.ScanType} + */ + public enum ScanType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * An unspecified data scan type.
+     * 
+ * + * SCAN_TYPE_UNSPECIFIED = 0; + */ + SCAN_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Data scan for data profile.
+     * 
+ * + * DATA_PROFILE = 1; + */ + DATA_PROFILE(1), + /** + * + * + *
+     * Data scan for data quality.
+     * 
+ * + * DATA_QUALITY = 2; + */ + DATA_QUALITY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * An unspecified data scan type.
+     * 
+ * + * SCAN_TYPE_UNSPECIFIED = 0; + */ + public static final int SCAN_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Data scan for data profile.
+     * 
+ * + * DATA_PROFILE = 1; + */ + public static final int DATA_PROFILE_VALUE = 1; + /** + * + * + *
+     * Data scan for data quality.
+     * 
+ * + * DATA_QUALITY = 2; + */ + public static final int DATA_QUALITY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScanType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ScanType forNumber(int value) { + switch (value) { + case 0: + return SCAN_TYPE_UNSPECIFIED; + case 1: + return DATA_PROFILE; + case 2: + return DATA_QUALITY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ScanType findValueByNumber(int number) { + return ScanType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScanEvent.getDescriptor().getEnumTypes().get(0); + } + + private static final ScanType[] VALUES = values(); + + public static ScanType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ScanType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.ScanType) + } + + /** + * + * + *
+   * The job state of the data scan.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataplex.v1.DataScanEvent.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified job state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Data scan started.
+     * 
+ * + * STARTED = 1; + */ + STARTED(1), + /** + * + * + *
+     * Data scan successfully completed.
+     * 
+ * + * SUCCEEDED = 2; + */ + SUCCEEDED(2), + /** + * + * + *
+     * Data scan was unsuccessful.
+     * 
+ * + * FAILED = 3; + */ + FAILED(3), + /** + * + * + *
+     * Data scan was cancelled.
+     * 
+ * + * CANCELLED = 4; + */ + CANCELLED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified job state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Data scan started.
+     * 
+ * + * STARTED = 1; + */ + public static final int STARTED_VALUE = 1; + /** + * + * + *
+     * Data scan successfully completed.
+     * 
+ * + * SUCCEEDED = 2; + */ + public static final int SUCCEEDED_VALUE = 2; + /** + * + * + *
+     * Data scan was unsuccessful.
+     * 
+ * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + /** + * + * + *
+     * Data scan was cancelled.
+     * 
+ * + * CANCELLED = 4; + */ + public static final int CANCELLED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return STARTED; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + case 4: + return CANCELLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScanEvent.getDescriptor().getEnumTypes().get(1); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.State) + } + + /** + * + * + *
+   * The trigger type for the data scan.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataplex.v1.DataScanEvent.Trigger} + */ + public enum Trigger implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * An unspecified trigger type.
+     * 
+ * + * TRIGGER_UNSPECIFIED = 0; + */ + TRIGGER_UNSPECIFIED(0), + /** + * + * + *
+     * Data scan triggers on demand.
+     * 
+ * + * ON_DEMAND = 1; + */ + ON_DEMAND(1), + /** + * + * + *
+     * Data scan triggers as per schedule.
+     * 
+ * + * SCHEDULE = 2; + */ + SCHEDULE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * An unspecified trigger type.
+     * 
+ * + * TRIGGER_UNSPECIFIED = 0; + */ + public static final int TRIGGER_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Data scan triggers on demand.
+     * 
+ * + * ON_DEMAND = 1; + */ + public static final int ON_DEMAND_VALUE = 1; + /** + * + * + *
+     * Data scan triggers as per schedule.
+     * 
+ * + * SCHEDULE = 2; + */ + public static final int SCHEDULE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Trigger valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Trigger forNumber(int value) { + switch (value) { + case 0: + return TRIGGER_UNSPECIFIED; + case 1: + return ON_DEMAND; + case 2: + return SCHEDULE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Trigger findValueByNumber(int number) { + return Trigger.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScanEvent.getDescriptor().getEnumTypes().get(2); + } + + private static final Trigger[] VALUES = values(); + + public static Trigger valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Trigger(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.Trigger) + } + + /** + * + * + *
+   * The scope of job for the data scan.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataplex.v1.DataScanEvent.Scope} + */ + public enum Scope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * An unspecified scope type.
+     * 
+ * + * SCOPE_UNSPECIFIED = 0; + */ + SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Data scan runs on all of the data.
+     * 
+ * + * FULL = 1; + */ + FULL(1), + /** + * + * + *
+     * Data scan runs on incremental data.
+     * 
+ * + * INCREMENTAL = 2; + */ + INCREMENTAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * An unspecified scope type.
+     * 
+ * + * SCOPE_UNSPECIFIED = 0; + */ + public static final int SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Data scan runs on all of the data.
+     * 
+ * + * FULL = 1; + */ + public static final int FULL_VALUE = 1; + /** + * + * + *
+     * Data scan runs on incremental data.
+     * 
+ * + * INCREMENTAL = 2; + */ + public static final int INCREMENTAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Scope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Scope forNumber(int value) { + switch (value) { + case 0: + return SCOPE_UNSPECIFIED; + case 1: + return FULL; + case 2: + return INCREMENTAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Scope findValueByNumber(int number) { + return Scope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScanEvent.getDescriptor().getEnumTypes().get(3); + } + + private static final Scope[] VALUES = values(); + + public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.Scope) + } + + public interface DataProfileResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The count of rows processed in the data scan job.
+     * 
+ * + * int64 row_count = 1; + * + * @return The rowCount. + */ + long getRowCount(); + } + /** + * + * + *
+   * Data profile result for data scan job.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataProfileResult} + */ + public static final class DataProfileResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) + DataProfileResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataProfileResult.newBuilder() to construct. + private DataProfileResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataProfileResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataProfileResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.class, + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder.class); + } + + public static final int ROW_COUNT_FIELD_NUMBER = 1; + private long rowCount_; + /** + * + * + *
+     * The count of rows processed in the data scan job.
+     * 
+ * + * int64 row_count = 1; + * + * @return The rowCount. + */ + @java.lang.Override + public long getRowCount() { + return rowCount_; + } + + 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 (rowCount_ != 0L) { + output.writeInt64(1, rowCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rowCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rowCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult other = + (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) obj; + + if (getRowCount() != other.getRowCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.dataplex.v1.DataScanEvent.DataProfileResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.dataplex.v1.DataScanEvent.DataProfileResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.dataplex.v1.DataScanEvent.DataProfileResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.dataplex.v1.DataScanEvent.DataProfileResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.dataplex.v1.DataScanEvent.DataProfileResult 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; + } + /** + * + * + *
+     * Data profile result for data scan job.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataProfileResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.class, + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + rowCount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult build() { + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult buildPartial() { + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult result = + new com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult(this); + result.rowCount_ = rowCount_; + 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.dataplex.v1.DataScanEvent.DataProfileResult) { + return mergeFrom((com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult other) { + if (other + == com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance()) + return this; + if (other.getRowCount() != 0L) { + setRowCount(other.getRowCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + rowCount_ = input.readInt64(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private long rowCount_; + /** + * + * + *
+       * The count of rows processed in the data scan job.
+       * 
+ * + * int64 row_count = 1; + * + * @return The rowCount. + */ + @java.lang.Override + public long getRowCount() { + return rowCount_; + } + /** + * + * + *
+       * The count of rows processed in the data scan job.
+       * 
+ * + * int64 row_count = 1; + * + * @param value The rowCount to set. + * @return This builder for chaining. + */ + public Builder setRowCount(long value) { + + rowCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The count of rows processed in the data scan job.
+       * 
+ * + * int64 row_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearRowCount() { + + rowCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) + private static final com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult(); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataProfileResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DataQualityResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The count of rows processed in the data scan job.
+     * 
+ * + * int64 row_count = 1; + * + * @return The rowCount. + */ + long getRowCount(); + + /** + * + * + *
+     * Whether the data quality result was `pass` or not.
+     * 
+ * + * bool passed = 2; + * + * @return The passed. + */ + boolean getPassed(); + + /** + * + * + *
+     * The result of each dimension for data quality result.
+     * The key of the map is the name of the dimension.
+     * The value is the bool value depicting whether the dimension result was
+     * `pass` or not.
+     * 
+ * + * map<string, bool> dimension_passed = 3; + */ + int getDimensionPassedCount(); + /** + * + * + *
+     * The result of each dimension for data quality result.
+     * The key of the map is the name of the dimension.
+     * The value is the bool value depicting whether the dimension result was
+     * `pass` or not.
+     * 
+ * + * map<string, bool> dimension_passed = 3; + */ + boolean containsDimensionPassed(java.lang.String key); + /** Use {@link #getDimensionPassedMap()} instead. */ + @java.lang.Deprecated + java.util.Map getDimensionPassed(); + /** + * + * + *
+     * The result of each dimension for data quality result.
+     * The key of the map is the name of the dimension.
+     * The value is the bool value depicting whether the dimension result was
+     * `pass` or not.
+     * 
+ * + * map<string, bool> dimension_passed = 3; + */ + java.util.Map getDimensionPassedMap(); + /** + * + * + *
+     * The result of each dimension for data quality result.
+     * The key of the map is the name of the dimension.
+     * The value is the bool value depicting whether the dimension result was
+     * `pass` or not.
+     * 
+ * + * map<string, bool> dimension_passed = 3; + */ + boolean getDimensionPassedOrDefault(java.lang.String key, boolean defaultValue); + /** + * + * + *
+     * The result of each dimension for data quality result.
+     * The key of the map is the name of the dimension.
+     * The value is the bool value depicting whether the dimension result was
+     * `pass` or not.
+     * 
+ * + * map<string, bool> dimension_passed = 3; + */ + boolean getDimensionPassedOrThrow(java.lang.String key); + } + /** + * + * + *
+   * Data quality result for data scan job.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataQualityResult} + */ + public static final class DataQualityResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) + DataQualityResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataQualityResult.newBuilder() to construct. + private DataQualityResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataQualityResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataQualityResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetDimensionPassed(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.class, + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder.class); + } + + public static final int ROW_COUNT_FIELD_NUMBER = 1; + private long rowCount_; + /** + * + * + *
+     * The count of rows processed in the data scan job.
+     * 
+ * + * int64 row_count = 1; + * + * @return The rowCount. + */ + @java.lang.Override + public long getRowCount() { + return rowCount_; + } + + public static final int PASSED_FIELD_NUMBER = 2; + private boolean passed_; + /** + * + * + *
+     * Whether the data quality result was `pass` or not.
+     * 
+ * + * bool passed = 2; + * + * @return The passed. + */ + @java.lang.Override + public boolean getPassed() { + return passed_; + } + + public static final int DIMENSION_PASSED_FIELD_NUMBER = 3; + + private static final class DimensionPassedDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_DimensionPassedEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.BOOL, + false); + } + + private com.google.protobuf.MapField dimensionPassed_; + + private com.google.protobuf.MapField + internalGetDimensionPassed() { + if (dimensionPassed_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DimensionPassedDefaultEntryHolder.defaultEntry); + } + return dimensionPassed_; + } + + public int getDimensionPassedCount() { + return internalGetDimensionPassed().getMap().size(); + } + /** + * + * + *
+     * The result of each dimension for data quality result.
+     * The key of the map is the name of the dimension.
+     * The value is the bool value depicting whether the dimension result was
+     * `pass` or not.
+     * 
+ * + * map<string, bool> dimension_passed = 3; + */ + @java.lang.Override + public boolean containsDimensionPassed(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDimensionPassed().getMap().containsKey(key); + } + /** Use {@link #getDimensionPassedMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDimensionPassed() { + return getDimensionPassedMap(); + } + /** + * + * + *
+     * The result of each dimension for data quality result.
+     * The key of the map is the name of the dimension.
+     * The value is the bool value depicting whether the dimension result was
+     * `pass` or not.
+     * 
+ * + * map<string, bool> dimension_passed = 3; + */ + @java.lang.Override + public java.util.Map getDimensionPassedMap() { + return internalGetDimensionPassed().getMap(); + } + /** + * + * + *
+     * The result of each dimension for data quality result.
+     * The key of the map is the name of the dimension.
+     * The value is the bool value depicting whether the dimension result was
+     * `pass` or not.
+     * 
+ * + * map<string, bool> dimension_passed = 3; + */ + @java.lang.Override + public boolean getDimensionPassedOrDefault(java.lang.String key, boolean defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetDimensionPassed().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The result of each dimension for data quality result.
+     * The key of the map is the name of the dimension.
+     * The value is the bool value depicting whether the dimension result was
+     * `pass` or not.
+     * 
+ * + * map<string, bool> dimension_passed = 3; + */ + @java.lang.Override + public boolean getDimensionPassedOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetDimensionPassed().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rowCount_ != 0L) { + output.writeInt64(1, rowCount_); + } + if (passed_ != false) { + output.writeBool(2, passed_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetDimensionPassed(), DimensionPassedDefaultEntryHolder.defaultEntry, 3); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rowCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rowCount_); + } + if (passed_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, passed_); + } + for (java.util.Map.Entry entry : + internalGetDimensionPassed().getMap().entrySet()) { + com.google.protobuf.MapEntry dimensionPassed__ = + DimensionPassedDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, dimensionPassed__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult other = + (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) obj; + + if (getRowCount() != other.getRowCount()) return false; + if (getPassed() != other.getPassed()) return false; + if (!internalGetDimensionPassed().equals(other.internalGetDimensionPassed())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + hash = (37 * hash) + PASSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPassed()); + if (!internalGetDimensionPassed().getMap().isEmpty()) { + hash = (37 * hash) + DIMENSION_PASSED_FIELD_NUMBER; + hash = (53 * hash) + internalGetDimensionPassed().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult 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.dataplex.v1.DataScanEvent.DataQualityResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult 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.dataplex.v1.DataScanEvent.DataQualityResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult 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.dataplex.v1.DataScanEvent.DataQualityResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult 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.dataplex.v1.DataScanEvent.DataQualityResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult 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.dataplex.v1.DataScanEvent.DataQualityResult 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; + } + /** + * + * + *
+     * Data quality result for data scan job.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataQualityResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetDimensionPassed(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableDimensionPassed(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.class, + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + rowCount_ = 0L; + + passed_ = false; + + internalGetMutableDimensionPassed().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult + getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult build() { + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult buildPartial() { + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult result = + new com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult(this); + int from_bitField0_ = bitField0_; + result.rowCount_ = rowCount_; + result.passed_ = passed_; + result.dimensionPassed_ = internalGetDimensionPassed(); + result.dimensionPassed_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) { + return mergeFrom((com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult other) { + if (other + == com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance()) + return this; + if (other.getRowCount() != 0L) { + setRowCount(other.getRowCount()); + } + if (other.getPassed() != false) { + setPassed(other.getPassed()); + } + internalGetMutableDimensionPassed().mergeFrom(other.internalGetDimensionPassed()); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + rowCount_ = input.readInt64(); + + break; + } // case 8 + case 16: + { + passed_ = input.readBool(); + + break; + } // case 16 + case 26: + { + com.google.protobuf.MapEntry + dimensionPassed__ = + input.readMessage( + DimensionPassedDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDimensionPassed() + .getMutableMap() + .put(dimensionPassed__.getKey(), dimensionPassed__.getValue()); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long rowCount_; + /** + * + * + *
+       * The count of rows processed in the data scan job.
+       * 
+ * + * int64 row_count = 1; + * + * @return The rowCount. + */ + @java.lang.Override + public long getRowCount() { + return rowCount_; + } + /** + * + * + *
+       * The count of rows processed in the data scan job.
+       * 
+ * + * int64 row_count = 1; + * + * @param value The rowCount to set. + * @return This builder for chaining. + */ + public Builder setRowCount(long value) { + + rowCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The count of rows processed in the data scan job.
+       * 
+ * + * int64 row_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearRowCount() { + + rowCount_ = 0L; + onChanged(); + return this; + } + + private boolean passed_; + /** + * + * + *
+       * Whether the data quality result was `pass` or not.
+       * 
+ * + * bool passed = 2; + * + * @return The passed. + */ + @java.lang.Override + public boolean getPassed() { + return passed_; + } + /** + * + * + *
+       * Whether the data quality result was `pass` or not.
+       * 
+ * + * bool passed = 2; + * + * @param value The passed to set. + * @return This builder for chaining. + */ + public Builder setPassed(boolean value) { + + passed_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Whether the data quality result was `pass` or not.
+       * 
+ * + * bool passed = 2; + * + * @return This builder for chaining. + */ + public Builder clearPassed() { + + passed_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField dimensionPassed_; + + private com.google.protobuf.MapField + internalGetDimensionPassed() { + if (dimensionPassed_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DimensionPassedDefaultEntryHolder.defaultEntry); + } + return dimensionPassed_; + } + + private com.google.protobuf.MapField + internalGetMutableDimensionPassed() { + onChanged(); + ; + if (dimensionPassed_ == null) { + dimensionPassed_ = + com.google.protobuf.MapField.newMapField( + DimensionPassedDefaultEntryHolder.defaultEntry); + } + if (!dimensionPassed_.isMutable()) { + dimensionPassed_ = dimensionPassed_.copy(); + } + return dimensionPassed_; + } + + public int getDimensionPassedCount() { + return internalGetDimensionPassed().getMap().size(); + } + /** + * + * + *
+       * The result of each dimension for data quality result.
+       * The key of the map is the name of the dimension.
+       * The value is the bool value depicting whether the dimension result was
+       * `pass` or not.
+       * 
+ * + * map<string, bool> dimension_passed = 3; + */ + @java.lang.Override + public boolean containsDimensionPassed(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetDimensionPassed().getMap().containsKey(key); + } + /** Use {@link #getDimensionPassedMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDimensionPassed() { + return getDimensionPassedMap(); + } + /** + * + * + *
+       * The result of each dimension for data quality result.
+       * The key of the map is the name of the dimension.
+       * The value is the bool value depicting whether the dimension result was
+       * `pass` or not.
+       * 
+ * + * map<string, bool> dimension_passed = 3; + */ + @java.lang.Override + public java.util.Map getDimensionPassedMap() { + return internalGetDimensionPassed().getMap(); + } + /** + * + * + *
+       * The result of each dimension for data quality result.
+       * The key of the map is the name of the dimension.
+       * The value is the bool value depicting whether the dimension result was
+       * `pass` or not.
+       * 
+ * + * map<string, bool> dimension_passed = 3; + */ + @java.lang.Override + public boolean getDimensionPassedOrDefault(java.lang.String key, boolean defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetDimensionPassed().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * The result of each dimension for data quality result.
+       * The key of the map is the name of the dimension.
+       * The value is the bool value depicting whether the dimension result was
+       * `pass` or not.
+       * 
+ * + * map<string, bool> dimension_passed = 3; + */ + @java.lang.Override + public boolean getDimensionPassedOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetDimensionPassed().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDimensionPassed() { + internalGetMutableDimensionPassed().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * The result of each dimension for data quality result.
+       * The key of the map is the name of the dimension.
+       * The value is the bool value depicting whether the dimension result was
+       * `pass` or not.
+       * 
+ * + * map<string, bool> dimension_passed = 3; + */ + public Builder removeDimensionPassed(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableDimensionPassed().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableDimensionPassed() { + return internalGetMutableDimensionPassed().getMutableMap(); + } + /** + * + * + *
+       * The result of each dimension for data quality result.
+       * The key of the map is the name of the dimension.
+       * The value is the bool value depicting whether the dimension result was
+       * `pass` or not.
+       * 
+ * + * map<string, bool> dimension_passed = 3; + */ + public Builder putDimensionPassed(java.lang.String key, boolean value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableDimensionPassed().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * The result of each dimension for data quality result.
+       * The key of the map is the name of the dimension.
+       * The value is the bool value depicting whether the dimension result was
+       * `pass` or not.
+       * 
+ * + * map<string, bool> dimension_passed = 3; + */ + public Builder putAllDimensionPassed( + java.util.Map values) { + internalGetMutableDimensionPassed().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) + private static final com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult(); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataQualityResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DATA_PROFILE(101), + DATA_QUALITY(102), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 101: + return DATA_PROFILE; + case 102: + return DATA_QUALITY; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int DATA_SOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object dataSource_; + /** + * + * + *
+   * The data source of the data scan
+   * 
+ * + * string data_source = 1; + * + * @return The dataSource. + */ + @java.lang.Override + public java.lang.String getDataSource() { + java.lang.Object ref = dataSource_; + 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(); + dataSource_ = s; + return s; + } + } + /** + * + * + *
+   * The data source of the data scan
+   * 
+ * + * string data_source = 1; + * + * @return The bytes for dataSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataSourceBytes() { + java.lang.Object ref = dataSource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object jobId_; + /** + * + * + *
+   * The identifier of the specific data scan job this log entry is for.
+   * 
+ * + * string job_id = 2; + * + * @return The jobId. + */ + @java.lang.Override + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + 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(); + jobId_ = s; + return s; + } + } + /** + * + * + *
+   * The identifier of the specific data scan job this log entry is for.
+   * 
+ * + * string job_id = 2; + * + * @return The bytes for jobId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time when the data scan job started to run.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time when the data scan job started to run.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time when the data scan job started to run.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * The time when the data scan job finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * The time when the data scan job finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * The time when the data scan job finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int TYPE_FIELD_NUMBER = 5; + private int type_; + /** + * + * + *
+   * The type of the data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * The type of the data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.ScanType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanEvent.ScanType result = + com.google.cloud.dataplex.v1.DataScanEvent.ScanType.valueOf(type_); + return result == null + ? com.google.cloud.dataplex.v1.DataScanEvent.ScanType.UNRECOGNIZED + : result; + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_; + /** + * + * + *
+   * The status of the data scan job.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * The status of the data scan job.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.State state = 6; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanEvent.State result = + com.google.cloud.dataplex.v1.DataScanEvent.State.valueOf(state_); + return result == null ? com.google.cloud.dataplex.v1.DataScanEvent.State.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 7; + private volatile java.lang.Object message_; + /** + * + * + *
+   * The message describing the data scan job event.
+   * 
+ * + * string message = 7; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + * + * + *
+   * The message describing the data scan job event.
+   * 
+ * + * string message = 7; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPEC_VERSION_FIELD_NUMBER = 8; + private volatile java.lang.Object specVersion_; + /** + * + * + *
+   * A version identifier of the spec which was used to execute this job.
+   * 
+ * + * string spec_version = 8; + * + * @return The specVersion. + */ + @java.lang.Override + public java.lang.String getSpecVersion() { + java.lang.Object ref = specVersion_; + 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(); + specVersion_ = s; + return s; + } + } + /** + * + * + *
+   * A version identifier of the spec which was used to execute this job.
+   * 
+ * + * string spec_version = 8; + * + * @return The bytes for specVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpecVersionBytes() { + java.lang.Object ref = specVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + specVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRIGGER_FIELD_NUMBER = 9; + private int trigger_; + /** + * + * + *
+   * The trigger type of the data scan job.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; + * + * @return The enum numeric value on the wire for trigger. + */ + @java.lang.Override + public int getTriggerValue() { + return trigger_; + } + /** + * + * + *
+   * The trigger type of the data scan job.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; + * + * @return The trigger. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.Trigger getTrigger() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanEvent.Trigger result = + com.google.cloud.dataplex.v1.DataScanEvent.Trigger.valueOf(trigger_); + return result == null + ? com.google.cloud.dataplex.v1.DataScanEvent.Trigger.UNRECOGNIZED + : result; + } + + public static final int SCOPE_FIELD_NUMBER = 10; + private int scope_; + /** + * + * + *
+   * The scope of the data scan (e.g. full, incremental).
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * The scope of the data scan (e.g. full, incremental).
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.Scope getScope() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanEvent.Scope result = + com.google.cloud.dataplex.v1.DataScanEvent.Scope.valueOf(scope_); + return result == null ? com.google.cloud.dataplex.v1.DataScanEvent.Scope.UNRECOGNIZED : result; + } + + public static final int DATA_PROFILE_FIELD_NUMBER = 101; + /** + * + * + *
+   * Data profile result for data profile type data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + * + * @return Whether the dataProfile field is set. + */ + @java.lang.Override + public boolean hasDataProfile() { + return resultCase_ == 101; + } + /** + * + * + *
+   * Data profile result for data profile type data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + * + * @return The dataProfile. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult getDataProfile() { + if (resultCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_; + } + return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance(); + } + /** + * + * + *
+   * Data profile result for data profile type data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder + getDataProfileOrBuilder() { + if (resultCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_; + } + return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance(); + } + + public static final int DATA_QUALITY_FIELD_NUMBER = 102; + /** + * + * + *
+   * Data quality result for data quality type data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + * + * @return Whether the dataQuality field is set. + */ + @java.lang.Override + public boolean hasDataQuality() { + return resultCase_ == 102; + } + /** + * + * + *
+   * Data quality result for data quality type data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + * + * @return The dataQuality. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult getDataQuality() { + if (resultCase_ == 102) { + return (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_; + } + return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance(); + } + /** + * + * + *
+   * Data quality result for data quality type data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder + getDataQualityOrBuilder() { + if (resultCase_ == 102) { + return (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_; + } + return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance(); + } + + 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(dataSource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataSource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); + } + if (startTime_ != null) { + output.writeMessage(3, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(4, getEndTime()); + } + if (type_ + != com.google.cloud.dataplex.v1.DataScanEvent.ScanType.SCAN_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, type_); + } + if (state_ != com.google.cloud.dataplex.v1.DataScanEvent.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, specVersion_); + } + if (trigger_ + != com.google.cloud.dataplex.v1.DataScanEvent.Trigger.TRIGGER_UNSPECIFIED.getNumber()) { + output.writeEnum(9, trigger_); + } + if (scope_ != com.google.cloud.dataplex.v1.DataScanEvent.Scope.SCOPE_UNSPECIFIED.getNumber()) { + output.writeEnum(10, scope_); + } + if (resultCase_ == 101) { + output.writeMessage( + 101, (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_); + } + if (resultCase_ == 102) { + output.writeMessage( + 102, (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataSource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndTime()); + } + if (type_ + != com.google.cloud.dataplex.v1.DataScanEvent.ScanType.SCAN_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); + } + if (state_ != com.google.cloud.dataplex.v1.DataScanEvent.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, specVersion_); + } + if (trigger_ + != com.google.cloud.dataplex.v1.DataScanEvent.Trigger.TRIGGER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, trigger_); + } + if (scope_ != com.google.cloud.dataplex.v1.DataScanEvent.Scope.SCOPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, scope_); + } + if (resultCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_); + } + if (resultCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataScanEvent)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataScanEvent other = + (com.google.cloud.dataplex.v1.DataScanEvent) obj; + + if (!getDataSource().equals(other.getDataSource())) return false; + if (!getJobId().equals(other.getJobId())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (type_ != other.type_) return false; + if (state_ != other.state_) return false; + if (!getMessage().equals(other.getMessage())) return false; + if (!getSpecVersion().equals(other.getSpecVersion())) return false; + if (trigger_ != other.trigger_) return false; + if (scope_ != other.scope_) return false; + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 101: + if (!getDataProfile().equals(other.getDataProfile())) return false; + break; + case 102: + if (!getDataQuality().equals(other.getDataQuality())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDataSource().hashCode(); + hash = (37 * hash) + JOB_ID_FIELD_NUMBER; + hash = (53 * hash) + getJobId().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + SPEC_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSpecVersion().hashCode(); + hash = (37 * hash) + TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + trigger_; + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + switch (resultCase_) { + case 101: + hash = (37 * hash) + DATA_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getDataProfile().hashCode(); + break; + case 102: + hash = (37 * hash) + DATA_QUALITY_FIELD_NUMBER; + hash = (53 * hash) + getDataQuality().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataScanEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent 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.dataplex.v1.DataScanEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent 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.dataplex.v1.DataScanEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent 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.dataplex.v1.DataScanEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent 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.dataplex.v1.DataScanEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent 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.dataplex.v1.DataScanEvent 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; + } + /** + * + * + *
+   * These messages contain information about the execution of a datascan.
+   * The monitored resource is 'DataScan'
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScanEvent) + com.google.cloud.dataplex.v1.DataScanEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScanEvent.class, + com.google.cloud.dataplex.v1.DataScanEvent.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataScanEvent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + dataSource_ = ""; + + jobId_ = ""; + + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + type_ = 0; + + state_ = 0; + + message_ = ""; + + specVersion_ = ""; + + trigger_ = 0; + + scope_ = 0; + + if (dataProfileBuilder_ != null) { + dataProfileBuilder_.clear(); + } + if (dataQualityBuilder_ != null) { + dataQualityBuilder_.clear(); + } + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataScanEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent build() { + com.google.cloud.dataplex.v1.DataScanEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent buildPartial() { + com.google.cloud.dataplex.v1.DataScanEvent result = + new com.google.cloud.dataplex.v1.DataScanEvent(this); + result.dataSource_ = dataSource_; + result.jobId_ = jobId_; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.type_ = type_; + result.state_ = state_; + result.message_ = message_; + result.specVersion_ = specVersion_; + result.trigger_ = trigger_; + result.scope_ = scope_; + if (resultCase_ == 101) { + if (dataProfileBuilder_ == null) { + result.result_ = result_; + } else { + result.result_ = dataProfileBuilder_.build(); + } + } + if (resultCase_ == 102) { + if (dataQualityBuilder_ == null) { + result.result_ = result_; + } else { + result.result_ = dataQualityBuilder_.build(); + } + } + result.resultCase_ = resultCase_; + 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.dataplex.v1.DataScanEvent) { + return mergeFrom((com.google.cloud.dataplex.v1.DataScanEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScanEvent other) { + if (other == com.google.cloud.dataplex.v1.DataScanEvent.getDefaultInstance()) return this; + if (!other.getDataSource().isEmpty()) { + dataSource_ = other.dataSource_; + onChanged(); + } + if (!other.getJobId().isEmpty()) { + jobId_ = other.jobId_; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getSpecVersion().isEmpty()) { + specVersion_ = other.specVersion_; + onChanged(); + } + if (other.trigger_ != 0) { + setTriggerValue(other.getTriggerValue()); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + switch (other.getResultCase()) { + case DATA_PROFILE: + { + mergeDataProfile(other.getDataProfile()); + break; + } + case DATA_QUALITY: + { + mergeDataQuality(other.getDataQuality()); + break; + } + case RESULT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dataSource_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + jobId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 40: + { + type_ = input.readEnum(); + + break; + } // case 40 + case 48: + { + state_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + message_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + specVersion_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 72: + { + trigger_ = input.readEnum(); + + break; + } // case 72 + case 80: + { + scope_ = input.readEnum(); + + break; + } // case 80 + case 810: + { + input.readMessage(getDataProfileFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage(getDataQualityFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 102; + break; + } // case 818 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private java.lang.Object dataSource_ = ""; + /** + * + * + *
+     * The data source of the data scan
+     * 
+ * + * string data_source = 1; + * + * @return The dataSource. + */ + public java.lang.String getDataSource() { + java.lang.Object ref = dataSource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The data source of the data scan
+     * 
+ * + * string data_source = 1; + * + * @return The bytes for dataSource. + */ + public com.google.protobuf.ByteString getDataSourceBytes() { + java.lang.Object ref = dataSource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The data source of the data scan
+     * 
+ * + * string data_source = 1; + * + * @param value The dataSource to set. + * @return This builder for chaining. + */ + public Builder setDataSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataSource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The data source of the data scan
+     * 
+ * + * string data_source = 1; + * + * @return This builder for chaining. + */ + public Builder clearDataSource() { + + dataSource_ = getDefaultInstance().getDataSource(); + onChanged(); + return this; + } + /** + * + * + *
+     * The data source of the data scan
+     * 
+ * + * string data_source = 1; + * + * @param value The bytes for dataSource to set. + * @return This builder for chaining. + */ + public Builder setDataSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataSource_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobId_ = ""; + /** + * + * + *
+     * The identifier of the specific data scan job this log entry is for.
+     * 
+ * + * string job_id = 2; + * + * @return The jobId. + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The identifier of the specific data scan job this log entry is for.
+     * 
+ * + * string job_id = 2; + * + * @return The bytes for jobId. + */ + public com.google.protobuf.ByteString getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The identifier of the specific data scan job this log entry is for.
+     * 
+ * + * string job_id = 2; + * + * @param value The jobId to set. + * @return This builder for chaining. + */ + public Builder setJobId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The identifier of the specific data scan job this log entry is for.
+     * 
+ * + * string job_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearJobId() { + + jobId_ = getDefaultInstance().getJobId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The identifier of the specific data scan job this log entry is for.
+     * 
+ * + * string job_id = 2; + * + * @param value The bytes for jobId to set. + * @return This builder for chaining. + */ + public Builder setJobIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The time when the data scan job started to run.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time when the data scan job started to run.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time when the data scan job started to run.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time when the data scan job started to run.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time when the data scan job started to run.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time when the data scan job started to run.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time when the data scan job started to run.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time when the data scan job started to run.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time when the data scan job started to run.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * The time when the data scan job finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The time when the data scan job finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time when the data scan job finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time when the data scan job finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time when the data scan job finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time when the data scan job finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time when the data scan job finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time when the data scan job finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The time when the data scan job finished.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private int type_ = 0; + /** + * + * + *
+     * The type of the data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * The type of the data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of the data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.ScanType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanEvent.ScanType result = + com.google.cloud.dataplex.v1.DataScanEvent.ScanType.valueOf(type_); + return result == null + ? com.google.cloud.dataplex.v1.DataScanEvent.ScanType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The type of the data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.dataplex.v1.DataScanEvent.ScanType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of the data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * The status of the data scan job.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * The status of the data scan job.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.State state = 6; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The status of the data scan job.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.State state = 6; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanEvent.State result = + com.google.cloud.dataplex.v1.DataScanEvent.State.valueOf(state_); + return result == null + ? com.google.cloud.dataplex.v1.DataScanEvent.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The status of the data scan job.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.State state = 6; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataplex.v1.DataScanEvent.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The status of the data scan job.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.State state = 6; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + *
+     * The message describing the data scan job event.
+     * 
+ * + * string message = 7; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The message describing the data scan job event.
+     * 
+ * + * string message = 7; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The message describing the data scan job event.
+     * 
+ * + * string message = 7; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The message describing the data scan job event.
+     * 
+ * + * string message = 7; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * The message describing the data scan job event.
+     * 
+ * + * string message = 7; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private java.lang.Object specVersion_ = ""; + /** + * + * + *
+     * A version identifier of the spec which was used to execute this job.
+     * 
+ * + * string spec_version = 8; + * + * @return The specVersion. + */ + public java.lang.String getSpecVersion() { + java.lang.Object ref = specVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + specVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A version identifier of the spec which was used to execute this job.
+     * 
+ * + * string spec_version = 8; + * + * @return The bytes for specVersion. + */ + public com.google.protobuf.ByteString getSpecVersionBytes() { + java.lang.Object ref = specVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + specVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A version identifier of the spec which was used to execute this job.
+     * 
+ * + * string spec_version = 8; + * + * @param value The specVersion to set. + * @return This builder for chaining. + */ + public Builder setSpecVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + specVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A version identifier of the spec which was used to execute this job.
+     * 
+ * + * string spec_version = 8; + * + * @return This builder for chaining. + */ + public Builder clearSpecVersion() { + + specVersion_ = getDefaultInstance().getSpecVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * A version identifier of the spec which was used to execute this job.
+     * 
+ * + * string spec_version = 8; + * + * @param value The bytes for specVersion to set. + * @return This builder for chaining. + */ + public Builder setSpecVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + specVersion_ = value; + onChanged(); + return this; + } + + private int trigger_ = 0; + /** + * + * + *
+     * The trigger type of the data scan job.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; + * + * @return The enum numeric value on the wire for trigger. + */ + @java.lang.Override + public int getTriggerValue() { + return trigger_; + } + /** + * + * + *
+     * The trigger type of the data scan job.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; + * + * @param value The enum numeric value on the wire for trigger to set. + * @return This builder for chaining. + */ + public Builder setTriggerValue(int value) { + + trigger_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The trigger type of the data scan job.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; + * + * @return The trigger. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.Trigger getTrigger() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanEvent.Trigger result = + com.google.cloud.dataplex.v1.DataScanEvent.Trigger.valueOf(trigger_); + return result == null + ? com.google.cloud.dataplex.v1.DataScanEvent.Trigger.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The trigger type of the data scan job.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; + * + * @param value The trigger to set. + * @return This builder for chaining. + */ + public Builder setTrigger(com.google.cloud.dataplex.v1.DataScanEvent.Trigger value) { + if (value == null) { + throw new NullPointerException(); + } + + trigger_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The trigger type of the data scan job.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; + * + * @return This builder for chaining. + */ + public Builder clearTrigger() { + + trigger_ = 0; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * The scope of the data scan (e.g. full, incremental).
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * The scope of the data scan (e.g. full, incremental).
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The scope of the data scan (e.g. full, incremental).
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.Scope getScope() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanEvent.Scope result = + com.google.cloud.dataplex.v1.DataScanEvent.Scope.valueOf(scope_); + return result == null + ? com.google.cloud.dataplex.v1.DataScanEvent.Scope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The scope of the data scan (e.g. full, incremental).
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.cloud.dataplex.v1.DataScanEvent.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The scope of the data scan (e.g. full, incremental).
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; + * + * @return This builder for chaining. + */ + public Builder clearScope() { + + scope_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult, + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder, + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder> + dataProfileBuilder_; + /** + * + * + *
+     * Data profile result for data profile type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + * + * @return Whether the dataProfile field is set. + */ + @java.lang.Override + public boolean hasDataProfile() { + return resultCase_ == 101; + } + /** + * + * + *
+     * Data profile result for data profile type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + * + * @return The dataProfile. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult getDataProfile() { + if (dataProfileBuilder_ == null) { + if (resultCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_; + } + return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance(); + } else { + if (resultCase_ == 101) { + return dataProfileBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data profile result for data profile type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + */ + public Builder setDataProfile( + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult value) { + if (dataProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + dataProfileBuilder_.setMessage(value); + } + resultCase_ = 101; + return this; + } + /** + * + * + *
+     * Data profile result for data profile type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + */ + public Builder setDataProfile( + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder builderForValue) { + if (dataProfileBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + dataProfileBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 101; + return this; + } + /** + * + * + *
+     * Data profile result for data profile type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + */ + public Builder mergeDataProfile( + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult value) { + if (dataProfileBuilder_ == null) { + if (resultCase_ == 101 + && result_ + != com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult + .getDefaultInstance()) { + result_ = + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.newBuilder( + (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 101) { + dataProfileBuilder_.mergeFrom(value); + } else { + dataProfileBuilder_.setMessage(value); + } + } + resultCase_ = 101; + return this; + } + /** + * + * + *
+     * Data profile result for data profile type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + */ + public Builder clearDataProfile() { + if (dataProfileBuilder_ == null) { + if (resultCase_ == 101) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 101) { + resultCase_ = 0; + result_ = null; + } + dataProfileBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Data profile result for data profile type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + */ + public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder + getDataProfileBuilder() { + return getDataProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data profile result for data profile type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder + getDataProfileOrBuilder() { + if ((resultCase_ == 101) && (dataProfileBuilder_ != null)) { + return dataProfileBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_; + } + return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data profile result for data profile type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult, + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder, + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder> + getDataProfileFieldBuilder() { + if (dataProfileBuilder_ == null) { + if (!(resultCase_ == 101)) { + result_ = + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance(); + } + dataProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult, + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder, + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder>( + (com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 101; + onChanged(); + ; + return dataProfileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult, + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder, + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder> + dataQualityBuilder_; + /** + * + * + *
+     * Data quality result for data quality type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + * + * @return Whether the dataQuality field is set. + */ + @java.lang.Override + public boolean hasDataQuality() { + return resultCase_ == 102; + } + /** + * + * + *
+     * Data quality result for data quality type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + * + * @return The dataQuality. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult getDataQuality() { + if (dataQualityBuilder_ == null) { + if (resultCase_ == 102) { + return (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_; + } + return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance(); + } else { + if (resultCase_ == 102) { + return dataQualityBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data quality result for data quality type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + */ + public Builder setDataQuality( + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult value) { + if (dataQualityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + dataQualityBuilder_.setMessage(value); + } + resultCase_ = 102; + return this; + } + /** + * + * + *
+     * Data quality result for data quality type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + */ + public Builder setDataQuality( + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder builderForValue) { + if (dataQualityBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + dataQualityBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 102; + return this; + } + /** + * + * + *
+     * Data quality result for data quality type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + */ + public Builder mergeDataQuality( + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult value) { + if (dataQualityBuilder_ == null) { + if (resultCase_ == 102 + && result_ + != com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult + .getDefaultInstance()) { + result_ = + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.newBuilder( + (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 102) { + dataQualityBuilder_.mergeFrom(value); + } else { + dataQualityBuilder_.setMessage(value); + } + } + resultCase_ = 102; + return this; + } + /** + * + * + *
+     * Data quality result for data quality type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + */ + public Builder clearDataQuality() { + if (dataQualityBuilder_ == null) { + if (resultCase_ == 102) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 102) { + resultCase_ = 0; + result_ = null; + } + dataQualityBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Data quality result for data quality type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + */ + public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder + getDataQualityBuilder() { + return getDataQualityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data quality result for data quality type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder + getDataQualityOrBuilder() { + if ((resultCase_ == 102) && (dataQualityBuilder_ != null)) { + return dataQualityBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 102) { + return (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_; + } + return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data quality result for data quality type data scan.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult, + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder, + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder> + getDataQualityFieldBuilder() { + if (dataQualityBuilder_ == null) { + if (!(resultCase_ == 102)) { + result_ = + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.getDefaultInstance(); + } + dataQualityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult, + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder, + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder>( + (com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 102; + onChanged(); + ; + return dataQualityBuilder_; + } + + @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.dataplex.v1.DataScanEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScanEvent) + private static final com.google.cloud.dataplex.v1.DataScanEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScanEvent(); + } + + public static com.google.cloud.dataplex.v1.DataScanEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataScanEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanEventOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanEventOrBuilder.java new file mode 100644 index 000000000000..98739bc1af7d --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanEventOrBuilder.java @@ -0,0 +1,367 @@ +/* + * 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/dataplex/v1/logs.proto + +package com.google.cloud.dataplex.v1; + +public interface DataScanEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScanEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The data source of the data scan
+   * 
+ * + * string data_source = 1; + * + * @return The dataSource. + */ + java.lang.String getDataSource(); + /** + * + * + *
+   * The data source of the data scan
+   * 
+ * + * string data_source = 1; + * + * @return The bytes for dataSource. + */ + com.google.protobuf.ByteString getDataSourceBytes(); + + /** + * + * + *
+   * The identifier of the specific data scan job this log entry is for.
+   * 
+ * + * string job_id = 2; + * + * @return The jobId. + */ + java.lang.String getJobId(); + /** + * + * + *
+   * The identifier of the specific data scan job this log entry is for.
+   * 
+ * + * string job_id = 2; + * + * @return The bytes for jobId. + */ + com.google.protobuf.ByteString getJobIdBytes(); + + /** + * + * + *
+   * The time when the data scan job started to run.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * The time when the data scan job started to run.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The time when the data scan job started to run.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The time when the data scan job finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * The time when the data scan job finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * The time when the data scan job finished.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * The type of the data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * The type of the data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; + * + * @return The type. + */ + com.google.cloud.dataplex.v1.DataScanEvent.ScanType getType(); + + /** + * + * + *
+   * The status of the data scan job.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * The status of the data scan job.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.State state = 6; + * + * @return The state. + */ + com.google.cloud.dataplex.v1.DataScanEvent.State getState(); + + /** + * + * + *
+   * The message describing the data scan job event.
+   * 
+ * + * string message = 7; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
+   * The message describing the data scan job event.
+   * 
+ * + * string message = 7; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+   * A version identifier of the spec which was used to execute this job.
+   * 
+ * + * string spec_version = 8; + * + * @return The specVersion. + */ + java.lang.String getSpecVersion(); + /** + * + * + *
+   * A version identifier of the spec which was used to execute this job.
+   * 
+ * + * string spec_version = 8; + * + * @return The bytes for specVersion. + */ + com.google.protobuf.ByteString getSpecVersionBytes(); + + /** + * + * + *
+   * The trigger type of the data scan job.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; + * + * @return The enum numeric value on the wire for trigger. + */ + int getTriggerValue(); + /** + * + * + *
+   * The trigger type of the data scan job.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; + * + * @return The trigger. + */ + com.google.cloud.dataplex.v1.DataScanEvent.Trigger getTrigger(); + + /** + * + * + *
+   * The scope of the data scan (e.g. full, incremental).
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * The scope of the data scan (e.g. full, incremental).
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; + * + * @return The scope. + */ + com.google.cloud.dataplex.v1.DataScanEvent.Scope getScope(); + + /** + * + * + *
+   * Data profile result for data profile type data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + * + * @return Whether the dataProfile field is set. + */ + boolean hasDataProfile(); + /** + * + * + *
+   * Data profile result for data profile type data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + * + * @return The dataProfile. + */ + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult getDataProfile(); + /** + * + * + *
+   * Data profile result for data profile type data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + */ + com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder getDataProfileOrBuilder(); + + /** + * + * + *
+   * Data quality result for data quality type data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + * + * @return Whether the dataQuality field is set. + */ + boolean hasDataQuality(); + /** + * + * + *
+   * Data quality result for data quality type data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + * + * @return The dataQuality. + */ + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult getDataQuality(); + /** + * + * + *
+   * Data quality result for data quality type data scan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + */ + com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultOrBuilder getDataQualityOrBuilder(); + + public com.google.cloud.dataplex.v1.DataScanEvent.ResultCase getResultCase(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJob.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJob.java new file mode 100644 index 000000000000..19cab69b9f6c --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJob.java @@ -0,0 +1,3547 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * A DataScanJob represents an instance of a data scan.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScanJob} + */ +public final class DataScanJob extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanJob) + DataScanJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataScanJob.newBuilder() to construct. + private DataScanJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataScanJob() { + name_ = ""; + uid_ = ""; + state_ = 0; + message_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataScanJob(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScanJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScanJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScanJob.class, + com.google.cloud.dataplex.v1.DataScanJob.Builder.class); + } + + /** + * + * + *
+   * Execution state for the DataScanJob.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataplex.v1.DataScanJob.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The DataScanJob state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The DataScanJob is running.
+     * 
+ * + * RUNNING = 1; + */ + RUNNING(1), + /** + * + * + *
+     * The DataScanJob is canceling.
+     * 
+ * + * CANCELING = 2; + */ + CANCELING(2), + /** + * + * + *
+     * The DataScanJob cancellation was successful.
+     * 
+ * + * CANCELLED = 3; + */ + CANCELLED(3), + /** + * + * + *
+     * The DataScanJob completed successfully.
+     * 
+ * + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + /** + * + * + *
+     * The DataScanJob is no longer running due to an error.
+     * 
+ * + * FAILED = 5; + */ + FAILED(5), + /** + * + * + *
+     * The DataScanJob has been created but not started to run yet.
+     * 
+ * + * PENDING = 7; + */ + PENDING(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The DataScanJob state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The DataScanJob is running.
+     * 
+ * + * RUNNING = 1; + */ + public static final int RUNNING_VALUE = 1; + /** + * + * + *
+     * The DataScanJob is canceling.
+     * 
+ * + * CANCELING = 2; + */ + public static final int CANCELING_VALUE = 2; + /** + * + * + *
+     * The DataScanJob cancellation was successful.
+     * 
+ * + * CANCELLED = 3; + */ + public static final int CANCELLED_VALUE = 3; + /** + * + * + *
+     * The DataScanJob completed successfully.
+     * 
+ * + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + /** + * + * + *
+     * The DataScanJob is no longer running due to an error.
+     * 
+ * + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + /** + * + * + *
+     * The DataScanJob has been created but not started to run yet.
+     * 
+ * + * PENDING = 7; + */ + public static final int PENDING_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return CANCELING; + case 3: + return CANCELLED; + case 4: + return SUCCEEDED; + case 5: + return FAILED; + case 7: + return PENDING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScanJob.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanJob.State) + } + + private int specCase_ = 0; + private java.lang.Object spec_; + + public enum SpecCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DATA_QUALITY_SPEC(100), + DATA_PROFILE_SPEC(101), + SPEC_NOT_SET(0); + private final int value; + + private SpecCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SpecCase valueOf(int value) { + return forNumber(value); + } + + public static SpecCase forNumber(int value) { + switch (value) { + case 100: + return DATA_QUALITY_SPEC; + case 101: + return DATA_PROFILE_SPEC; + case 0: + return SPEC_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SpecCase getSpecCase() { + return SpecCase.forNumber(specCase_); + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DATA_QUALITY_RESULT(200), + DATA_PROFILE_RESULT(201), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 200: + return DATA_QUALITY_RESULT; + case 201: + return DATA_PROFILE_RESULT; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The relative resource name of the DataScanJob, of the form:
+   * projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}.
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The relative resource name of the DataScanJob, of the form:
+   * projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}.
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * 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 UID_FIELD_NUMBER = 2; + private volatile java.lang.Object uid_; + /** + * + * + *
+   * Output only. System generated globally unique ID for the DataScanJob.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. System generated globally unique ID for the DataScanJob.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * Output only. The time when the DataScanJob was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * Output only. The time when the DataScanJob was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * Output only. The time when the DataScanJob was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. The time when the DataScanJob ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * Output only. The time when the DataScanJob ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Output only. The time when the DataScanJob ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_; + /** + * + * + *
+   * Output only. Execution state for the DataScanJob.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Output only. Execution state for the DataScanJob.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanJob.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanJob.State result = + com.google.cloud.dataplex.v1.DataScanJob.State.valueOf(state_); + return result == null ? com.google.cloud.dataplex.v1.DataScanJob.State.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 6; + private volatile java.lang.Object message_; + /** + * + * + *
+   * Output only. Additional information about the current state.
+   * 
+ * + * string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Additional information about the current state.
+   * 
+ * + * string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 7; + private int type_; + /** + * + * + *
+   * Output only. The type of the parent DataScan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Output only. The type of the parent DataScan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanType result = + com.google.cloud.dataplex.v1.DataScanType.valueOf(type_); + return result == null ? com.google.cloud.dataplex.v1.DataScanType.UNRECOGNIZED : result; + } + + public static final int DATA_QUALITY_SPEC_FIELD_NUMBER = 100; + /** + * + * + *
+   * Output only. DataQualityScan related setting.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataQualitySpec field is set. + */ + @java.lang.Override + public boolean hasDataQualitySpec() { + return specCase_ == 100; + } + /** + * + * + *
+   * Output only. DataQualityScan related setting.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataQualitySpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualitySpec getDataQualitySpec() { + if (specCase_ == 100) { + return (com.google.cloud.dataplex.v1.DataQualitySpec) spec_; + } + return com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. DataQualityScan related setting.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder getDataQualitySpecOrBuilder() { + if (specCase_ == 100) { + return (com.google.cloud.dataplex.v1.DataQualitySpec) spec_; + } + return com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } + + public static final int DATA_PROFILE_SPEC_FIELD_NUMBER = 101; + /** + * + * + *
+   * Output only. DataProfileScan related setting.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataProfileSpec field is set. + */ + @java.lang.Override + public boolean hasDataProfileSpec() { + return specCase_ == 101; + } + /** + * + * + *
+   * Output only. DataProfileScan related setting.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataProfileSpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileSpec getDataProfileSpec() { + if (specCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataProfileSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. DataProfileScan related setting.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder getDataProfileSpecOrBuilder() { + if (specCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataProfileSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } + + public static final int DATA_QUALITY_RESULT_FIELD_NUMBER = 200; + /** + * + * + *
+   * Output only. The result of the data quality scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataQualityResult field is set. + */ + @java.lang.Override + public boolean hasDataQualityResult() { + return resultCase_ == 200; + } + /** + * + * + *
+   * Output only. The result of the data quality scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataQualityResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult getDataQualityResult() { + if (resultCase_ == 200) { + return (com.google.cloud.dataplex.v1.DataQualityResult) result_; + } + return com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. The result of the data quality scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResultOrBuilder getDataQualityResultOrBuilder() { + if (resultCase_ == 200) { + return (com.google.cloud.dataplex.v1.DataQualityResult) result_; + } + return com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } + + public static final int DATA_PROFILE_RESULT_FIELD_NUMBER = 201; + /** + * + * + *
+   * Output only. The result of the data profile scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataProfileResult field is set. + */ + @java.lang.Override + public boolean hasDataProfileResult() { + return resultCase_ == 201; + } + /** + * + * + *
+   * Output only. The result of the data profile scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataProfileResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult getDataProfileResult() { + if (resultCase_ == 201) { + return (com.google.cloud.dataplex.v1.DataProfileResult) result_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } + /** + * + * + *
+   * Output only. The result of the data profile scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResultOrBuilder getDataProfileResultOrBuilder() { + if (resultCase_ == 201) { + return (com.google.cloud.dataplex.v1.DataProfileResult) result_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } + + 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(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); + } + if (startTime_ != null) { + output.writeMessage(3, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(4, getEndTime()); + } + if (state_ != com.google.cloud.dataplex.v1.DataScanJob.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_); + } + if (type_ != com.google.cloud.dataplex.v1.DataScanType.DATA_SCAN_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, type_); + } + if (specCase_ == 100) { + output.writeMessage(100, (com.google.cloud.dataplex.v1.DataQualitySpec) spec_); + } + if (specCase_ == 101) { + output.writeMessage(101, (com.google.cloud.dataplex.v1.DataProfileSpec) spec_); + } + if (resultCase_ == 200) { + output.writeMessage(200, (com.google.cloud.dataplex.v1.DataQualityResult) result_); + } + if (resultCase_ == 201) { + output.writeMessage(201, (com.google.cloud.dataplex.v1.DataProfileResult) result_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndTime()); + } + if (state_ != com.google.cloud.dataplex.v1.DataScanJob.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, message_); + } + if (type_ != com.google.cloud.dataplex.v1.DataScanType.DATA_SCAN_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, type_); + } + if (specCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.dataplex.v1.DataQualitySpec) spec_); + } + if (specCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.dataplex.v1.DataProfileSpec) spec_); + } + if (resultCase_ == 200) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 200, (com.google.cloud.dataplex.v1.DataQualityResult) result_); + } + if (resultCase_ == 201) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 201, (com.google.cloud.dataplex.v1.DataProfileResult) result_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataScanJob)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataScanJob other = (com.google.cloud.dataplex.v1.DataScanJob) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (state_ != other.state_) return false; + if (!getMessage().equals(other.getMessage())) return false; + if (type_ != other.type_) return false; + if (!getSpecCase().equals(other.getSpecCase())) return false; + switch (specCase_) { + case 100: + if (!getDataQualitySpec().equals(other.getDataQualitySpec())) return false; + break; + case 101: + if (!getDataProfileSpec().equals(other.getDataProfileSpec())) return false; + break; + case 0: + default: + } + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 200: + if (!getDataQualityResult().equals(other.getDataQualityResult())) return false; + break; + case 201: + if (!getDataProfileResult().equals(other.getDataProfileResult())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + switch (specCase_) { + case 100: + hash = (37 * hash) + DATA_QUALITY_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getDataQualitySpec().hashCode(); + break; + case 101: + hash = (37 * hash) + DATA_PROFILE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getDataProfileSpec().hashCode(); + break; + case 0: + default: + } + switch (resultCase_) { + case 200: + hash = (37 * hash) + DATA_QUALITY_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getDataQualityResult().hashCode(); + break; + case 201: + hash = (37 * hash) + DATA_PROFILE_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getDataProfileResult().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataScanJob parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScanJob 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.dataplex.v1.DataScanJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScanJob 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.dataplex.v1.DataScanJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataScanJob parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataScanJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScanJob 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.dataplex.v1.DataScanJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScanJob 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.dataplex.v1.DataScanJob parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataScanJob 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.dataplex.v1.DataScanJob 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 DataScanJob represents an instance of a data scan.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataScanJob} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScanJob) + com.google.cloud.dataplex.v1.DataScanJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScanJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScanJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataScanJob.class, + com.google.cloud.dataplex.v1.DataScanJob.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataScanJob.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + uid_ = ""; + + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + state_ = 0; + + message_ = ""; + + type_ = 0; + + if (dataQualitySpecBuilder_ != null) { + dataQualitySpecBuilder_.clear(); + } + if (dataProfileSpecBuilder_ != null) { + dataProfileSpecBuilder_.clear(); + } + if (dataQualityResultBuilder_ != null) { + dataQualityResultBuilder_.clear(); + } + if (dataProfileResultBuilder_ != null) { + dataProfileResultBuilder_.clear(); + } + specCase_ = 0; + spec_ = null; + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DataScanJob_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanJob getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataScanJob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanJob build() { + com.google.cloud.dataplex.v1.DataScanJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanJob buildPartial() { + com.google.cloud.dataplex.v1.DataScanJob result = + new com.google.cloud.dataplex.v1.DataScanJob(this); + result.name_ = name_; + result.uid_ = uid_; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.state_ = state_; + result.message_ = message_; + result.type_ = type_; + if (specCase_ == 100) { + if (dataQualitySpecBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = dataQualitySpecBuilder_.build(); + } + } + if (specCase_ == 101) { + if (dataProfileSpecBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = dataProfileSpecBuilder_.build(); + } + } + if (resultCase_ == 200) { + if (dataQualityResultBuilder_ == null) { + result.result_ = result_; + } else { + result.result_ = dataQualityResultBuilder_.build(); + } + } + if (resultCase_ == 201) { + if (dataProfileResultBuilder_ == null) { + result.result_ = result_; + } else { + result.result_ = dataProfileResultBuilder_.build(); + } + } + result.specCase_ = specCase_; + result.resultCase_ = resultCase_; + 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.dataplex.v1.DataScanJob) { + return mergeFrom((com.google.cloud.dataplex.v1.DataScanJob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScanJob other) { + if (other == com.google.cloud.dataplex.v1.DataScanJob.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + switch (other.getSpecCase()) { + case DATA_QUALITY_SPEC: + { + mergeDataQualitySpec(other.getDataQualitySpec()); + break; + } + case DATA_PROFILE_SPEC: + { + mergeDataProfileSpec(other.getDataProfileSpec()); + break; + } + case SPEC_NOT_SET: + { + break; + } + } + switch (other.getResultCase()) { + case DATA_QUALITY_RESULT: + { + mergeDataQualityResult(other.getDataQualityResult()); + break; + } + case DATA_PROFILE_RESULT: + { + mergeDataProfileResult(other.getDataProfileResult()); + break; + } + case RESULT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + message_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 56: + { + type_ = input.readEnum(); + + break; + } // case 56 + case 802: + { + input.readMessage(getDataQualitySpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage(getDataProfileSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 101; + break; + } // case 810 + case 1602: + { + input.readMessage( + getDataQualityResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 200; + break; + } // case 1602 + case 1610: + { + input.readMessage( + getDataProfileResultFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 201; + break; + } // case 1610 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int specCase_ = 0; + private java.lang.Object spec_; + + public SpecCase getSpecCase() { + return SpecCase.forNumber(specCase_); + } + + public Builder clearSpec() { + specCase_ = 0; + spec_ = null; + onChanged(); + return this; + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The relative resource name of the DataScanJob, of the form:
+     * projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The relative resource name of the DataScanJob, of the form:
+     * projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The relative resource name of the DataScanJob, of the form:
+     * projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative resource name of the DataScanJob, of the form:
+     * projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative resource name of the DataScanJob, of the form:
+     * projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * 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 uid_ = ""; + /** + * + * + *
+     * Output only. System generated globally unique ID for the DataScanJob.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. System generated globally unique ID for the DataScanJob.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. System generated globally unique ID for the DataScanJob.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System generated globally unique ID for the DataScanJob.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. System generated globally unique ID for the DataScanJob.
+     * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * Output only. The time when the DataScanJob was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * Output only. The time when the DataScanJob was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time when the DataScanJob was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the DataScanJob was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the DataScanJob was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the DataScanJob was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the DataScanJob was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time when the DataScanJob was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * Output only. The time when the DataScanJob was started.
+     * 
+ * + * .google.protobuf.Timestamp start_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> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * Output only. The time when the DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * Output only. The time when the DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The time when the DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time when the DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time when the DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Output only. The time when the DataScanJob ended.
+     * 
+ * + * .google.protobuf.Timestamp end_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> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * Output only. Execution state for the DataScanJob.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Output only. Execution state for the DataScanJob.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Execution state for the DataScanJob.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanJob.State getState() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanJob.State result = + com.google.cloud.dataplex.v1.DataScanJob.State.valueOf(state_); + return result == null ? com.google.cloud.dataplex.v1.DataScanJob.State.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. Execution state for the DataScanJob.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataplex.v1.DataScanJob.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Execution state for the DataScanJob.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + *
+     * Output only. Additional information about the current state.
+     * 
+ * + * string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Additional information about the current state.
+     * 
+ * + * string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Additional information about the current state.
+     * 
+ * + * string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Additional information about the current state.
+     * 
+ * + * string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Additional information about the current state.
+     * 
+ * + * string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Output only. The type of the parent DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Output only. The type of the parent DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The type of the parent DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanType getType() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.DataScanType result = + com.google.cloud.dataplex.v1.DataScanType.valueOf(type_); + return result == null ? com.google.cloud.dataplex.v1.DataScanType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The type of the parent DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.dataplex.v1.DataScanType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The type of the parent DataScan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualitySpec, + com.google.cloud.dataplex.v1.DataQualitySpec.Builder, + com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder> + dataQualitySpecBuilder_; + /** + * + * + *
+     * Output only. DataQualityScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataQualitySpec field is set. + */ + @java.lang.Override + public boolean hasDataQualitySpec() { + return specCase_ == 100; + } + /** + * + * + *
+     * Output only. DataQualityScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataQualitySpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualitySpec getDataQualitySpec() { + if (dataQualitySpecBuilder_ == null) { + if (specCase_ == 100) { + return (com.google.cloud.dataplex.v1.DataQualitySpec) spec_; + } + return com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } else { + if (specCase_ == 100) { + return dataQualitySpecBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. DataQualityScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataQualitySpec(com.google.cloud.dataplex.v1.DataQualitySpec value) { + if (dataQualitySpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + dataQualitySpecBuilder_.setMessage(value); + } + specCase_ = 100; + return this; + } + /** + * + * + *
+     * Output only. DataQualityScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataQualitySpec( + com.google.cloud.dataplex.v1.DataQualitySpec.Builder builderForValue) { + if (dataQualitySpecBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + dataQualitySpecBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 100; + return this; + } + /** + * + * + *
+     * Output only. DataQualityScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDataQualitySpec(com.google.cloud.dataplex.v1.DataQualitySpec value) { + if (dataQualitySpecBuilder_ == null) { + if (specCase_ == 100 + && spec_ != com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance()) { + spec_ = + com.google.cloud.dataplex.v1.DataQualitySpec.newBuilder( + (com.google.cloud.dataplex.v1.DataQualitySpec) spec_) + .mergeFrom(value) + .buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 100) { + dataQualitySpecBuilder_.mergeFrom(value); + } else { + dataQualitySpecBuilder_.setMessage(value); + } + } + specCase_ = 100; + return this; + } + /** + * + * + *
+     * Output only. DataQualityScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDataQualitySpec() { + if (dataQualitySpecBuilder_ == null) { + if (specCase_ == 100) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 100) { + specCase_ = 0; + spec_ = null; + } + dataQualitySpecBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. DataQualityScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataQualitySpec.Builder getDataQualitySpecBuilder() { + return getDataQualitySpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. DataQualityScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder getDataQualitySpecOrBuilder() { + if ((specCase_ == 100) && (dataQualitySpecBuilder_ != null)) { + return dataQualitySpecBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 100) { + return (com.google.cloud.dataplex.v1.DataQualitySpec) spec_; + } + return com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. DataQualityScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualitySpec, + com.google.cloud.dataplex.v1.DataQualitySpec.Builder, + com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder> + getDataQualitySpecFieldBuilder() { + if (dataQualitySpecBuilder_ == null) { + if (!(specCase_ == 100)) { + spec_ = com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance(); + } + dataQualitySpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualitySpec, + com.google.cloud.dataplex.v1.DataQualitySpec.Builder, + com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder>( + (com.google.cloud.dataplex.v1.DataQualitySpec) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 100; + onChanged(); + ; + return dataQualitySpecBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileSpec, + com.google.cloud.dataplex.v1.DataProfileSpec.Builder, + com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder> + dataProfileSpecBuilder_; + /** + * + * + *
+     * Output only. DataProfileScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataProfileSpec field is set. + */ + @java.lang.Override + public boolean hasDataProfileSpec() { + return specCase_ == 101; + } + /** + * + * + *
+     * Output only. DataProfileScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataProfileSpec. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileSpec getDataProfileSpec() { + if (dataProfileSpecBuilder_ == null) { + if (specCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataProfileSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } else { + if (specCase_ == 101) { + return dataProfileSpecBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. DataProfileScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataProfileSpec(com.google.cloud.dataplex.v1.DataProfileSpec value) { + if (dataProfileSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + dataProfileSpecBuilder_.setMessage(value); + } + specCase_ = 101; + return this; + } + /** + * + * + *
+     * Output only. DataProfileScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataProfileSpec( + com.google.cloud.dataplex.v1.DataProfileSpec.Builder builderForValue) { + if (dataProfileSpecBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + dataProfileSpecBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 101; + return this; + } + /** + * + * + *
+     * Output only. DataProfileScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDataProfileSpec(com.google.cloud.dataplex.v1.DataProfileSpec value) { + if (dataProfileSpecBuilder_ == null) { + if (specCase_ == 101 + && spec_ != com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance()) { + spec_ = + com.google.cloud.dataplex.v1.DataProfileSpec.newBuilder( + (com.google.cloud.dataplex.v1.DataProfileSpec) spec_) + .mergeFrom(value) + .buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 101) { + dataProfileSpecBuilder_.mergeFrom(value); + } else { + dataProfileSpecBuilder_.setMessage(value); + } + } + specCase_ = 101; + return this; + } + /** + * + * + *
+     * Output only. DataProfileScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDataProfileSpec() { + if (dataProfileSpecBuilder_ == null) { + if (specCase_ == 101) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 101) { + specCase_ = 0; + spec_ = null; + } + dataProfileSpecBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. DataProfileScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataProfileSpec.Builder getDataProfileSpecBuilder() { + return getDataProfileSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. DataProfileScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder getDataProfileSpecOrBuilder() { + if ((specCase_ == 101) && (dataProfileSpecBuilder_ != null)) { + return dataProfileSpecBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 101) { + return (com.google.cloud.dataplex.v1.DataProfileSpec) spec_; + } + return com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. DataProfileScan related setting.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileSpec, + com.google.cloud.dataplex.v1.DataProfileSpec.Builder, + com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder> + getDataProfileSpecFieldBuilder() { + if (dataProfileSpecBuilder_ == null) { + if (!(specCase_ == 101)) { + spec_ = com.google.cloud.dataplex.v1.DataProfileSpec.getDefaultInstance(); + } + dataProfileSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileSpec, + com.google.cloud.dataplex.v1.DataProfileSpec.Builder, + com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder>( + (com.google.cloud.dataplex.v1.DataProfileSpec) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 101; + onChanged(); + ; + return dataProfileSpecBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityResult, + com.google.cloud.dataplex.v1.DataQualityResult.Builder, + com.google.cloud.dataplex.v1.DataQualityResultOrBuilder> + dataQualityResultBuilder_; + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataQualityResult field is set. + */ + @java.lang.Override + public boolean hasDataQualityResult() { + return resultCase_ == 200; + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataQualityResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResult getDataQualityResult() { + if (dataQualityResultBuilder_ == null) { + if (resultCase_ == 200) { + return (com.google.cloud.dataplex.v1.DataQualityResult) result_; + } + return com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } else { + if (resultCase_ == 200) { + return dataQualityResultBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataQualityResult(com.google.cloud.dataplex.v1.DataQualityResult value) { + if (dataQualityResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + dataQualityResultBuilder_.setMessage(value); + } + resultCase_ = 200; + return this; + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataQualityResult( + com.google.cloud.dataplex.v1.DataQualityResult.Builder builderForValue) { + if (dataQualityResultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + dataQualityResultBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 200; + return this; + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDataQualityResult(com.google.cloud.dataplex.v1.DataQualityResult value) { + if (dataQualityResultBuilder_ == null) { + if (resultCase_ == 200 + && result_ != com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance()) { + result_ = + com.google.cloud.dataplex.v1.DataQualityResult.newBuilder( + (com.google.cloud.dataplex.v1.DataQualityResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 200) { + dataQualityResultBuilder_.mergeFrom(value); + } else { + dataQualityResultBuilder_.setMessage(value); + } + } + resultCase_ = 200; + return this; + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDataQualityResult() { + if (dataQualityResultBuilder_ == null) { + if (resultCase_ == 200) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 200) { + resultCase_ = 0; + result_ = null; + } + dataQualityResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataQualityResult.Builder getDataQualityResultBuilder() { + return getDataQualityResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataQualityResultOrBuilder getDataQualityResultOrBuilder() { + if ((resultCase_ == 200) && (dataQualityResultBuilder_ != null)) { + return dataQualityResultBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 200) { + return (com.google.cloud.dataplex.v1.DataQualityResult) result_; + } + return com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The result of the data quality scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityResult, + com.google.cloud.dataplex.v1.DataQualityResult.Builder, + com.google.cloud.dataplex.v1.DataQualityResultOrBuilder> + getDataQualityResultFieldBuilder() { + if (dataQualityResultBuilder_ == null) { + if (!(resultCase_ == 200)) { + result_ = com.google.cloud.dataplex.v1.DataQualityResult.getDefaultInstance(); + } + dataQualityResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataQualityResult, + com.google.cloud.dataplex.v1.DataQualityResult.Builder, + com.google.cloud.dataplex.v1.DataQualityResultOrBuilder>( + (com.google.cloud.dataplex.v1.DataQualityResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 200; + onChanged(); + ; + return dataQualityResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult, + com.google.cloud.dataplex.v1.DataProfileResult.Builder, + com.google.cloud.dataplex.v1.DataProfileResultOrBuilder> + dataProfileResultBuilder_; + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataProfileResult field is set. + */ + @java.lang.Override + public boolean hasDataProfileResult() { + return resultCase_ == 201; + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataProfileResult. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResult getDataProfileResult() { + if (dataProfileResultBuilder_ == null) { + if (resultCase_ == 201) { + return (com.google.cloud.dataplex.v1.DataProfileResult) result_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } else { + if (resultCase_ == 201) { + return dataProfileResultBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataProfileResult(com.google.cloud.dataplex.v1.DataProfileResult value) { + if (dataProfileResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + dataProfileResultBuilder_.setMessage(value); + } + resultCase_ = 201; + return this; + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataProfileResult( + com.google.cloud.dataplex.v1.DataProfileResult.Builder builderForValue) { + if (dataProfileResultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + dataProfileResultBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 201; + return this; + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDataProfileResult(com.google.cloud.dataplex.v1.DataProfileResult value) { + if (dataProfileResultBuilder_ == null) { + if (resultCase_ == 201 + && result_ != com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance()) { + result_ = + com.google.cloud.dataplex.v1.DataProfileResult.newBuilder( + (com.google.cloud.dataplex.v1.DataProfileResult) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 201) { + dataProfileResultBuilder_.mergeFrom(value); + } else { + dataProfileResultBuilder_.setMessage(value); + } + } + resultCase_ = 201; + return this; + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDataProfileResult() { + if (dataProfileResultBuilder_ == null) { + if (resultCase_ == 201) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 201) { + resultCase_ = 0; + result_ = null; + } + dataProfileResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataplex.v1.DataProfileResult.Builder getDataProfileResultBuilder() { + return getDataProfileResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataProfileResultOrBuilder getDataProfileResultOrBuilder() { + if ((resultCase_ == 201) && (dataProfileResultBuilder_ != null)) { + return dataProfileResultBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 201) { + return (com.google.cloud.dataplex.v1.DataProfileResult) result_; + } + return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Output only. The result of the data profile scan.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult, + com.google.cloud.dataplex.v1.DataProfileResult.Builder, + com.google.cloud.dataplex.v1.DataProfileResultOrBuilder> + getDataProfileResultFieldBuilder() { + if (dataProfileResultBuilder_ == null) { + if (!(resultCase_ == 201)) { + result_ = com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance(); + } + dataProfileResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataProfileResult, + com.google.cloud.dataplex.v1.DataProfileResult.Builder, + com.google.cloud.dataplex.v1.DataProfileResultOrBuilder>( + (com.google.cloud.dataplex.v1.DataProfileResult) result_, + getParentForChildren(), + isClean()); + result_ = null; + } + resultCase_ = 201; + onChanged(); + ; + return dataProfileResultBuilder_; + } + + @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.dataplex.v1.DataScanJob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScanJob) + private static final com.google.cloud.dataplex.v1.DataScanJob DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScanJob(); + } + + public static com.google.cloud.dataplex.v1.DataScanJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataScanJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobName.java new file mode 100644 index 000000000000..592e6bc7a77d --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DataScanJobName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATASCAN_JOB = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataScans/{dataScan}/jobs/{job}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dataScan; + private final String job; + + @Deprecated + protected DataScanJobName() { + project = null; + location = null; + dataScan = null; + job = null; + } + + private DataScanJobName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataScan = Preconditions.checkNotNull(builder.getDataScan()); + job = Preconditions.checkNotNull(builder.getJob()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataScan() { + return dataScan; + } + + public String getJob() { + return job; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DataScanJobName of(String project, String location, String dataScan, String job) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataScan(dataScan) + .setJob(job) + .build(); + } + + public static String format(String project, String location, String dataScan, String job) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataScan(dataScan) + .setJob(job) + .build() + .toString(); + } + + public static DataScanJobName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DATASCAN_JOB.validatedMatch( + formattedString, "DataScanJobName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("dataScan"), + matchMap.get("job")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DataScanJobName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATASCAN_JOB.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataScan != null) { + fieldMapBuilder.put("dataScan", dataScan); + } + if (job != null) { + fieldMapBuilder.put("job", job); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DATASCAN_JOB.instantiate( + "project", project, "location", location, "dataScan", dataScan, "job", job); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + DataScanJobName that = ((DataScanJobName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataScan, that.dataScan) + && Objects.equals(this.job, that.job); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataScan); + h *= 1000003; + h ^= Objects.hashCode(job); + return h; + } + + /** Builder for projects/{project}/locations/{location}/dataScans/{dataScan}/jobs/{job}. */ + public static class Builder { + private String project; + private String location; + private String dataScan; + private String job; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataScan() { + return dataScan; + } + + public String getJob() { + return job; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataScan(String dataScan) { + this.dataScan = dataScan; + return this; + } + + public Builder setJob(String job) { + this.job = job; + return this; + } + + private Builder(DataScanJobName dataScanJobName) { + this.project = dataScanJobName.project; + this.location = dataScanJobName.location; + this.dataScan = dataScanJobName.dataScan; + this.job = dataScanJobName.job; + } + + public DataScanJobName build() { + return new DataScanJobName(this); + } + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobOrBuilder.java new file mode 100644 index 000000000000..e68081de8de3 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanJobOrBuilder.java @@ -0,0 +1,408 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface DataScanJobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScanJob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The relative resource name of the DataScanJob, of the form:
+   * projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}.
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The relative resource name of the DataScanJob, of the form:
+   * projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}.
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. System generated globally unique ID for the DataScanJob.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+   * Output only. System generated globally unique ID for the DataScanJob.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. The time when the DataScanJob was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * Output only. The time when the DataScanJob was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * Output only. The time when the DataScanJob was started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time when the DataScanJob ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. The time when the DataScanJob ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. The time when the DataScanJob ended.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Execution state for the DataScanJob.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. Execution state for the DataScanJob.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataplex.v1.DataScanJob.State getState(); + + /** + * + * + *
+   * Output only. Additional information about the current state.
+   * 
+ * + * string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
+   * Output only. Additional information about the current state.
+   * 
+ * + * string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+   * Output only. The type of the parent DataScan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Output only. The type of the parent DataScan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.dataplex.v1.DataScanType getType(); + + /** + * + * + *
+   * Output only. DataQualityScan related setting.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataQualitySpec field is set. + */ + boolean hasDataQualitySpec(); + /** + * + * + *
+   * Output only. DataQualityScan related setting.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataQualitySpec. + */ + com.google.cloud.dataplex.v1.DataQualitySpec getDataQualitySpec(); + /** + * + * + *
+   * Output only. DataQualityScan related setting.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder getDataQualitySpecOrBuilder(); + + /** + * + * + *
+   * Output only. DataProfileScan related setting.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataProfileSpec field is set. + */ + boolean hasDataProfileSpec(); + /** + * + * + *
+   * Output only. DataProfileScan related setting.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataProfileSpec. + */ + com.google.cloud.dataplex.v1.DataProfileSpec getDataProfileSpec(); + /** + * + * + *
+   * Output only. DataProfileScan related setting.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder getDataProfileSpecOrBuilder(); + + /** + * + * + *
+   * Output only. The result of the data quality scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataQualityResult field is set. + */ + boolean hasDataQualityResult(); + /** + * + * + *
+   * Output only. The result of the data quality scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataQualityResult. + */ + com.google.cloud.dataplex.v1.DataQualityResult getDataQualityResult(); + /** + * + * + *
+   * Output only. The result of the data quality scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataQualityResultOrBuilder getDataQualityResultOrBuilder(); + + /** + * + * + *
+   * Output only. The result of the data profile scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataProfileResult field is set. + */ + boolean hasDataProfileResult(); + /** + * + * + *
+   * Output only. The result of the data profile scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataProfileResult. + */ + com.google.cloud.dataplex.v1.DataProfileResult getDataProfileResult(); + /** + * + * + *
+   * Output only. The result of the data profile scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataProfileResultOrBuilder getDataProfileResultOrBuilder(); + + public com.google.cloud.dataplex.v1.DataScanJob.SpecCase getSpecCase(); + + public com.google.cloud.dataplex.v1.DataScanJob.ResultCase getResultCase(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanName.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanName.java new file mode 100644 index 000000000000..5e82468df797 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DataScanName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATASCAN = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataScans/{dataScan}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dataScan; + + @Deprecated + protected DataScanName() { + project = null; + location = null; + dataScan = null; + } + + private DataScanName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataScan = Preconditions.checkNotNull(builder.getDataScan()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataScan() { + return dataScan; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DataScanName of(String project, String location, String dataScan) { + return newBuilder().setProject(project).setLocation(location).setDataScan(dataScan).build(); + } + + public static String format(String project, String location, String dataScan) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataScan(dataScan) + .build() + .toString(); + } + + public static DataScanName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DATASCAN.validatedMatch( + formattedString, "DataScanName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("dataScan")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DataScanName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATASCAN.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataScan != null) { + fieldMapBuilder.put("dataScan", dataScan); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DATASCAN.instantiate( + "project", project, "location", location, "dataScan", dataScan); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + DataScanName that = ((DataScanName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataScan, that.dataScan); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataScan); + return h; + } + + /** Builder for projects/{project}/locations/{location}/dataScans/{dataScan}. */ + public static class Builder { + private String project; + private String location; + private String dataScan; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataScan() { + return dataScan; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataScan(String dataScan) { + this.dataScan = dataScan; + return this; + } + + private Builder(DataScanName dataScanName) { + this.project = dataScanName.project; + this.location = dataScanName.location; + this.dataScan = dataScanName.dataScan; + } + + public DataScanName build() { + return new DataScanName(this); + } + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanOrBuilder.java new file mode 100644 index 000000000000..c720d56060db --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanOrBuilder.java @@ -0,0 +1,607 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface DataScanOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScan) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The relative resource name of the scan, of the form:
+   * projects/{project}/locations/{location_id}/dataScans/{datascan_id}.
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The relative resource name of the scan, of the form:
+   * projects/{project}/locations/{location_id}/dataScans/{datascan_id}.
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. System generated globally unique ID for the scan. This ID will
+   * be different if the scan is deleted and re-created with the same name.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+   * Output only. System generated globally unique ID for the scan. This ID will
+   * be different if the scan is deleted and re-created with the same name.
+   * 
+ * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Optional. Description of the scan.
+   * * Must be between 1-1024 characters.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. Description of the scan.
+   * * Must be between 1-1024 characters.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. User friendly display name.
+   * * Must be between 1-256 characters.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. User friendly display name.
+   * * Must be between 1-256 characters.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. User-defined labels for the scan.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. User-defined labels for the scan.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. User-defined labels for the scan.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. User-defined labels for the scan.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. User-defined labels for the scan.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Current state of the DataScan.
+   * 
+ * + * .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Output only. Current state of the DataScan.
+   * 
+ * + * .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataplex.v1.State getState(); + + /** + * + * + *
+   * Output only. The time when the scan was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The time when the scan was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The time when the scan was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time when the scan was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The time when the scan was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The time when the scan was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Required. The data source for DataScan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * + * + *
+   * Required. The data source for DataScan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The data. + */ + com.google.cloud.dataplex.v1.DataSource getData(); + /** + * + * + *
+   * Required. The data source for DataScan.
+   * 
+ * + * .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataplex.v1.DataSourceOrBuilder getDataOrBuilder(); + + /** + * + * + *
+   * Optional. DataScan execution settings.
+   * If not specified, the fields under it will use their default values.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executionSpec field is set. + */ + boolean hasExecutionSpec(); + /** + * + * + *
+   * Optional. DataScan execution settings.
+   * If not specified, the fields under it will use their default values.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionSpec. + */ + com.google.cloud.dataplex.v1.DataScan.ExecutionSpec getExecutionSpec(); + /** + * + * + *
+   * Optional. DataScan execution settings.
+   * If not specified, the fields under it will use their default values.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataplex.v1.DataScan.ExecutionSpecOrBuilder getExecutionSpecOrBuilder(); + + /** + * + * + *
+   * Output only. Status of the data scan execution.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the executionStatus field is set. + */ + boolean hasExecutionStatus(); + /** + * + * + *
+   * Output only. Status of the data scan execution.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The executionStatus. + */ + com.google.cloud.dataplex.v1.DataScan.ExecutionStatus getExecutionStatus(); + /** + * + * + *
+   * Output only. Status of the data scan execution.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataScan.ExecutionStatusOrBuilder getExecutionStatusOrBuilder(); + + /** + * + * + *
+   * Output only. The type of DataScan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Output only. The type of DataScan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.dataplex.v1.DataScanType getType(); + + /** + * + * + *
+   * DataQualityScan related setting.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + * + * @return Whether the dataQualitySpec field is set. + */ + boolean hasDataQualitySpec(); + /** + * + * + *
+   * DataQualityScan related setting.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + * + * @return The dataQualitySpec. + */ + com.google.cloud.dataplex.v1.DataQualitySpec getDataQualitySpec(); + /** + * + * + *
+   * DataQualityScan related setting.
+   * 
+ * + * .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + */ + com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder getDataQualitySpecOrBuilder(); + + /** + * + * + *
+   * DataProfileScan related setting.
+   * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + * + * @return Whether the dataProfileSpec field is set. + */ + boolean hasDataProfileSpec(); + /** + * + * + *
+   * DataProfileScan related setting.
+   * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + * + * @return The dataProfileSpec. + */ + com.google.cloud.dataplex.v1.DataProfileSpec getDataProfileSpec(); + /** + * + * + *
+   * DataProfileScan related setting.
+   * 
+ * + * .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + */ + com.google.cloud.dataplex.v1.DataProfileSpecOrBuilder getDataProfileSpecOrBuilder(); + + /** + * + * + *
+   * Output only. The result of the data quality scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataQualityResult field is set. + */ + boolean hasDataQualityResult(); + /** + * + * + *
+   * Output only. The result of the data quality scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataQualityResult. + */ + com.google.cloud.dataplex.v1.DataQualityResult getDataQualityResult(); + /** + * + * + *
+   * Output only. The result of the data quality scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataQualityResultOrBuilder getDataQualityResultOrBuilder(); + + /** + * + * + *
+   * Output only. The result of the data profile scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataProfileResult field is set. + */ + boolean hasDataProfileResult(); + /** + * + * + *
+   * Output only. The result of the data profile scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataProfileResult. + */ + com.google.cloud.dataplex.v1.DataProfileResult getDataProfileResult(); + /** + * + * + *
+   * Output only. The result of the data profile scan.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataplex.v1.DataProfileResultOrBuilder getDataProfileResultOrBuilder(); + + public com.google.cloud.dataplex.v1.DataScan.SpecCase getSpecCase(); + + public com.google.cloud.dataplex.v1.DataScan.ResultCase getResultCase(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanType.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanType.java new file mode 100644 index 000000000000..bbaa5d4683b8 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanType.java @@ -0,0 +1,176 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * The type of DataScan.
+ * 
+ * + * Protobuf enum {@code google.cloud.dataplex.v1.DataScanType} + */ +public enum DataScanType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The DataScan Type is unspecified.
+   * 
+ * + * DATA_SCAN_TYPE_UNSPECIFIED = 0; + */ + DATA_SCAN_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Data Quality Scan.
+   * 
+ * + * DATA_QUALITY = 1; + */ + DATA_QUALITY(1), + /** + * + * + *
+   * Data Profile Scan.
+   * 
+ * + * DATA_PROFILE = 2; + */ + DATA_PROFILE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * The DataScan Type is unspecified.
+   * 
+ * + * DATA_SCAN_TYPE_UNSPECIFIED = 0; + */ + public static final int DATA_SCAN_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Data Quality Scan.
+   * 
+ * + * DATA_QUALITY = 1; + */ + public static final int DATA_QUALITY_VALUE = 1; + /** + * + * + *
+   * Data Profile Scan.
+   * 
+ * + * DATA_PROFILE = 2; + */ + public static final int DATA_PROFILE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataScanType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DataScanType forNumber(int value) { + switch (value) { + case 0: + return DATA_SCAN_TYPE_UNSPECIFIED; + case 1: + return DATA_QUALITY; + case 2: + return DATA_PROFILE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataScanType findValueByNumber(int number) { + return DataScanType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto.getDescriptor().getEnumTypes().get(0); + } + + private static final DataScanType[] VALUES = values(); + + public static DataScanType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DataScanType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanType) +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScansProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScansProto.java new file mode 100644 index 000000000000..c4b76c25847d --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScansProto.java @@ -0,0 +1,456 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public final class DataScansProto { + private DataScansProto() {} + + 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_dataplex_v1_CreateDataScanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_CreateDataScanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_UpdateDataScanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_UpdateDataScanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DeleteDataScanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DeleteDataScanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_GetDataScanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_GetDataScanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_ListDataScansRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_ListDataScansRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_ListDataScansResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_ListDataScansResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_RunDataScanRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_RunDataScanRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_RunDataScanResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_RunDataScanResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_GetDataScanJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_GetDataScanJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_ListDataScanJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_ListDataScanJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_ListDataScanJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_ListDataScanJobsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataScan_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataScan_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataScan_ExecutionStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataScan_ExecutionStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataScan_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataScan_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataScanJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataScanJob_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/dataplex/v1/datascans.pro" + + "to\022\030google.cloud.dataplex.v1\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032+google/cloud/da" + + "taplex/v1/data_profile.proto\032+google/clo" + + "ud/dataplex/v1/data_quality.proto\032)googl" + + "e/cloud/dataplex/v1/processing.proto\032(go" + + "ogle/cloud/dataplex/v1/resources.proto\032#" + + "google/longrunning/operations.proto\032 goo" + + "gle/protobuf/field_mask.proto\032\037google/pr" + + "otobuf/timestamp.proto\"\251\001\n\025CreateDataSca" + + "nRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locati" + + "ons.googleapis.com/Location\022:\n\tdata_scan" + + "\030\002 \001(\0132\".google.cloud.dataplex.v1.DataSc" + + "anB\003\340A\002\022\031\n\014data_scan_id\030\003 \001(\tB\003\340A\002\"\211\001\n\025U" + + "pdateDataScanRequest\022:\n\tdata_scan\030\001 \001(\0132" + + "\".google.cloud.dataplex.v1.DataScanB\003\340A\002" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\"O\n\025DeleteDataScanRequest\022" + + "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n dataplex.googleap" + + "is.com/DataScan\"\337\001\n\022GetDataScanRequest\0226" + + "\n\004name\030\001 \001(\tB(\340A\002\372A\"\n dataplex.googleapi" + + "s.com/DataScan\022L\n\004view\030\002 \001(\01629.google.cl" + + "oud.dataplex.v1.GetDataScanRequest.DataS" + + "canViewB\003\340A\001\"C\n\014DataScanView\022\036\n\032DATA_SCA" + + "N_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020" + + "\n\"\256\001\n\024ListDataScansRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010o" + + "rder_by\030\005 \001(\tB\003\340A\001\"}\n\025ListDataScansRespo" + + "nse\0226\n\ndata_scans\030\001 \003(\0132\".google.cloud.d" + + "ataplex.v1.DataScan\022\027\n\017next_page_token\030\002" + + " \001(\t\022\023\n\013unreachable\030\003 \003(\t\"L\n\022RunDataScan" + + "Request\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n dataplex." + + "googleapis.com/DataScan\"I\n\023RunDataScanRe" + + "sponse\0222\n\003job\030\001 \001(\0132%.google.cloud.datap" + + "lex.v1.DataScanJob\"\362\001\n\025GetDataScanJobReq" + + "uest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#dataplex.goo" + + "gleapis.com/DataScanJob\022R\n\004view\030\002 \001(\0162?." + + "google.cloud.dataplex.v1.GetDataScanJobR" + + "equest.DataScanJobViewB\003\340A\001\"J\n\017DataScanJ" + + "obView\022\"\n\036DATA_SCAN_JOB_VIEW_UNSPECIFIED" + + "\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\n\"\204\001\n\027ListDataScan" + + "JobsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n dat" + + "aplex.googleapis.com/DataScan\022\026\n\tpage_si" + + "ze\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"r" + + "\n\030ListDataScanJobsResponse\022=\n\016data_scan_" + + "jobs\030\001 \003(\0132%.google.cloud.dataplex.v1.Da" + + "taScanJob\022\027\n\017next_page_token\030\002 \001(\t\"\261\n\n\010D" + + "ataScan\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB" + + "\003\340A\003\022\030\n\013description\030\003 \001(\tB\003\340A\001\022\031\n\014displa" + + "y_name\030\004 \001(\tB\003\340A\001\022C\n\006labels\030\005 \003(\0132..goog" + + "le.cloud.dataplex.v1.DataScan.LabelsEntr" + + "yB\003\340A\001\0223\n\005state\030\006 \001(\0162\037.google.cloud.dat" + + "aplex.v1.StateB\003\340A\003\0224\n\013create_time\030\007 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\010 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0227\n\004data\030\t \001(\0132$.google.cloud.dat" + + "aplex.v1.DataSourceB\003\340A\002\022M\n\016execution_sp" + + "ec\030\n \001(\01320.google.cloud.dataplex.v1.Data" + + "Scan.ExecutionSpecB\003\340A\001\022Q\n\020execution_sta" + + "tus\030\013 \001(\01322.google.cloud.dataplex.v1.Dat" + + "aScan.ExecutionStatusB\003\340A\003\0229\n\004type\030\014 \001(\016" + + "2&.google.cloud.dataplex.v1.DataScanType" + + "B\003\340A\003\022F\n\021data_quality_spec\030d \001(\0132).googl" + + "e.cloud.dataplex.v1.DataQualitySpecH\000\022F\n" + + "\021data_profile_spec\030e \001(\0132).google.cloud." + + "dataplex.v1.DataProfileSpecH\000\022P\n\023data_qu" + + "ality_result\030\310\001 \001(\0132+.google.cloud.datap" + + "lex.v1.DataQualityResultB\003\340A\003H\001\022P\n\023data_" + + "profile_result\030\311\001 \001(\0132+.google.cloud.dat" + + "aplex.v1.DataProfileResultB\003\340A\003H\001\032m\n\rExe" + + "cutionSpec\0227\n\007trigger\030\001 \001(\0132!.google.clo" + + "ud.dataplex.v1.TriggerB\003\340A\001\022\024\n\005field\030d \001" + + "(\tB\003\340A\005H\000B\r\n\013incremental\032\205\001\n\017ExecutionSt" + + "atus\0229\n\025latest_job_start_time\030\004 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\0227\n\023latest_job_en" + + "d_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001:c\352A`\n dataplex.googleapis.com/Da" + + "taScan\022\202\323\344\223\002/\022-/v1/{parent=projects/*/locat" + + "ions/*}/dataScans\332A\006parent\022\257\001\n\013RunDataSc" + + "an\022,.google.cloud.dataplex.v1.RunDataSca" + + "nRequest\032-.google.cloud.dataplex.v1.RunD" + + "ataScanResponse\"C\202\323\344\223\0026\"1/v1/{name=proje" + + "cts/*/locations/*/dataScans/*}:run:\001*\332A\004" + + "name\022\255\001\n\016GetDataScanJob\022/.google.cloud.d" + + "ataplex.v1.GetDataScanJobRequest\032%.googl" + + "e.cloud.dataplex.v1.DataScanJob\"C\202\323\344\223\0026\022" + + "4/v1/{name=projects/*/locations/*/dataSc" + + "ans/*/jobs/*}\332A\004name\022\300\001\n\020ListDataScanJob" + + "s\0221.google.cloud.dataplex.v1.ListDataSca" + + "nJobsRequest\0322.google.cloud.dataplex.v1." + + "ListDataScanJobsResponse\"E\202\323\344\223\0026\0224/v1/{p" + + "arent=projects/*/locations/*/dataScans/*" + + "}/jobs\332A\006parent\032K\312A\027dataplex.googleapis." + + "com\322A.https://www.googleapis.com/auth/cl" + + "oud-platformBr\n\034com.google.cloud.dataple" + + "x.v1B\016DataScansProtoP\001Z@google.golang.or" + + "g/genproto/googleapis/cloud/dataplex/v1;" + + "dataplexb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.dataplex.v1.DataProfileProto.getDescriptor(), + com.google.cloud.dataplex.v1.DataQualityProto.getDescriptor(), + com.google.cloud.dataplex.v1.ProcessingProto.getDescriptor(), + com.google.cloud.dataplex.v1.ResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_dataplex_v1_CreateDataScanRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataplex_v1_CreateDataScanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_CreateDataScanRequest_descriptor, + new java.lang.String[] { + "Parent", "DataScan", "DataScanId", + }); + internal_static_google_cloud_dataplex_v1_UpdateDataScanRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataplex_v1_UpdateDataScanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_UpdateDataScanRequest_descriptor, + new java.lang.String[] { + "DataScan", "UpdateMask", + }); + internal_static_google_cloud_dataplex_v1_DeleteDataScanRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataplex_v1_DeleteDataScanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DeleteDataScanRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataplex_v1_GetDataScanRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataplex_v1_GetDataScanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_GetDataScanRequest_descriptor, + new java.lang.String[] { + "Name", "View", + }); + internal_static_google_cloud_dataplex_v1_ListDataScansRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_dataplex_v1_ListDataScansRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_ListDataScansRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_dataplex_v1_ListDataScansResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_dataplex_v1_ListDataScansResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_ListDataScansResponse_descriptor, + new java.lang.String[] { + "DataScans", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_dataplex_v1_RunDataScanRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_dataplex_v1_RunDataScanRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_RunDataScanRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_dataplex_v1_RunDataScanResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_dataplex_v1_RunDataScanResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_RunDataScanResponse_descriptor, + new java.lang.String[] { + "Job", + }); + internal_static_google_cloud_dataplex_v1_GetDataScanJobRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_dataplex_v1_GetDataScanJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_GetDataScanJobRequest_descriptor, + new java.lang.String[] { + "Name", "View", + }); + internal_static_google_cloud_dataplex_v1_ListDataScanJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dataplex_v1_ListDataScanJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_ListDataScanJobsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_dataplex_v1_ListDataScanJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dataplex_v1_ListDataScanJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_ListDataScanJobsResponse_descriptor, + new java.lang.String[] { + "DataScanJobs", "NextPageToken", + }); + internal_static_google_cloud_dataplex_v1_DataScan_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dataplex_v1_DataScan_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataScan_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "Description", + "DisplayName", + "Labels", + "State", + "CreateTime", + "UpdateTime", + "Data", + "ExecutionSpec", + "ExecutionStatus", + "Type", + "DataQualitySpec", + "DataProfileSpec", + "DataQualityResult", + "DataProfileResult", + "Spec", + "Result", + }); + internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_descriptor = + internal_static_google_cloud_dataplex_v1_DataScan_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_descriptor, + new java.lang.String[] { + "Trigger", "Field", "Incremental", + }); + internal_static_google_cloud_dataplex_v1_DataScan_ExecutionStatus_descriptor = + internal_static_google_cloud_dataplex_v1_DataScan_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataplex_v1_DataScan_ExecutionStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataScan_ExecutionStatus_descriptor, + new java.lang.String[] { + "LatestJobStartTime", "LatestJobEndTime", + }); + internal_static_google_cloud_dataplex_v1_DataScan_LabelsEntry_descriptor = + internal_static_google_cloud_dataplex_v1_DataScan_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_dataplex_v1_DataScan_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataScan_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dataplex_v1_DataScanJob_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_dataplex_v1_DataScanJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataScanJob_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "StartTime", + "EndTime", + "State", + "Message", + "Type", + "DataQualitySpec", + "DataProfileSpec", + "DataQualityResult", + "DataProfileResult", + "Spec", + "Result", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.dataplex.v1.DataProfileProto.getDescriptor(); + com.google.cloud.dataplex.v1.DataQualityProto.getDescriptor(); + com.google.cloud.dataplex.v1.ProcessingProto.getDescriptor(); + com.google.cloud.dataplex.v1.ResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSource.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSource.java new file mode 100644 index 000000000000..e31cf099b7eb --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSource.java @@ -0,0 +1,780 @@ +/* + * 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/dataplex/v1/processing.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * The data source for DataScan.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataSource} + */ +public final class DataSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataSource) + DataSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataSource.newBuilder() to construct. + private DataSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataSource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataSource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_DataSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_DataSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataSource.class, + com.google.cloud.dataplex.v1.DataSource.Builder.class); + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ENTITY(100), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 100: + return ENTITY; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int ENTITY_FIELD_NUMBER = 100; + /** + * + * + *
+   * Immutable. The dataplex entity that contains the data for DataScan, of
+   * the form:
+   * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
+   * 
+ * + * + * string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the entity field is set. + */ + public boolean hasEntity() { + return sourceCase_ == 100; + } + /** + * + * + *
+   * Immutable. The dataplex entity that contains the data for DataScan, of
+   * the form:
+   * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
+   * 
+ * + * + * string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The entity. + */ + public java.lang.String getEntity() { + java.lang.Object ref = ""; + if (sourceCase_ == 100) { + ref = source_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 100) { + source_ = s; + } + return s; + } + } + /** + * + * + *
+   * Immutable. The dataplex entity that contains the data for DataScan, of
+   * the form:
+   * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
+   * 
+ * + * + * string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entity. + */ + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 100) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 100) { + source_ = 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 (sourceCase_ == 100) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 100) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DataSource)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DataSource other = (com.google.cloud.dataplex.v1.DataSource) obj; + + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 100: + if (!getEntity().equals(other.getEntity())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (sourceCase_) { + case 100: + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DataSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataSource 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.dataplex.v1.DataSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataSource 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.dataplex.v1.DataSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DataSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DataSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataSource 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.dataplex.v1.DataSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataSource 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.dataplex.v1.DataSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DataSource 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.dataplex.v1.DataSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The data source for DataScan.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DataSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataSource) + com.google.cloud.dataplex.v1.DataSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_DataSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_DataSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DataSource.class, + com.google.cloud.dataplex.v1.DataSource.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DataSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_DataSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataSource getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DataSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataSource build() { + com.google.cloud.dataplex.v1.DataSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataSource buildPartial() { + com.google.cloud.dataplex.v1.DataSource result = + new com.google.cloud.dataplex.v1.DataSource(this); + if (sourceCase_ == 100) { + result.source_ = source_; + } + result.sourceCase_ = sourceCase_; + 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.dataplex.v1.DataSource) { + return mergeFrom((com.google.cloud.dataplex.v1.DataSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DataSource other) { + if (other == com.google.cloud.dataplex.v1.DataSource.getDefaultInstance()) return this; + switch (other.getSourceCase()) { + case ENTITY: + { + sourceCase_ = 100; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 100; + source_ = s; + break; + } // case 802 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+     * Immutable. The dataplex entity that contains the data for DataScan, of
+     * the form:
+     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
+     * 
+ * + * + * string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the entity field is set. + */ + @java.lang.Override + public boolean hasEntity() { + return sourceCase_ == 100; + } + /** + * + * + *
+     * Immutable. The dataplex entity that contains the data for DataScan, of
+     * the form:
+     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
+     * 
+ * + * + * string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The entity. + */ + @java.lang.Override + public java.lang.String getEntity() { + java.lang.Object ref = ""; + if (sourceCase_ == 100) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 100) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The dataplex entity that contains the data for DataScan, of
+     * the form:
+     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
+     * 
+ * + * + * string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 100) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 100) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The dataplex entity that contains the data for DataScan, of
+     * the form:
+     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
+     * 
+ * + * + * string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The entity to set. + * @return This builder for chaining. + */ + public Builder setEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 100; + source_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The dataplex entity that contains the data for DataScan, of
+     * the form:
+     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
+     * 
+ * + * + * string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEntity() { + if (sourceCase_ == 100) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Immutable. The dataplex entity that contains the data for DataScan, of
+     * the form:
+     * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
+     * 
+ * + * + * string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for entity to set. + * @return This builder for chaining. + */ + public Builder setEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 100; + source_ = 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.dataplex.v1.DataSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataSource) + private static final com.google.cloud.dataplex.v1.DataSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataSource(); + } + + public static com.google.cloud.dataplex.v1.DataSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DataSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSourceOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSourceOrBuilder.java new file mode 100644 index 000000000000..e226d53ed508 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataSourceOrBuilder.java @@ -0,0 +1,76 @@ +/* + * 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/dataplex/v1/processing.proto + +package com.google.cloud.dataplex.v1; + +public interface DataSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. The dataplex entity that contains the data for DataScan, of
+   * the form:
+   * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
+   * 
+ * + * + * string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the entity field is set. + */ + boolean hasEntity(); + /** + * + * + *
+   * Immutable. The dataplex entity that contains the data for DataScan, of
+   * the form:
+   * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
+   * 
+ * + * + * string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The entity. + */ + java.lang.String getEntity(); + /** + * + * + *
+   * Immutable. The dataplex entity that contains the data for DataScan, of
+   * the form:
+   * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`.
+   * 
+ * + * + * string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for entity. + */ + com.google.protobuf.ByteString getEntityBytes(); + + public com.google.cloud.dataplex.v1.DataSource.SourceCase getSourceCase(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteDataScanRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteDataScanRequest.java new file mode 100644 index 000000000000..2517900a48eb --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteDataScanRequest.java @@ -0,0 +1,650 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * Delete dataScan request.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DeleteDataScanRequest} + */ +public final class DeleteDataScanRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DeleteDataScanRequest) + DeleteDataScanRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteDataScanRequest.newBuilder() to construct. + private DeleteDataScanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDataScanRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDataScanRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DeleteDataScanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DeleteDataScanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DeleteDataScanRequest.class, + com.google.cloud.dataplex.v1.DeleteDataScanRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the dataScan:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the dataScan:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.DeleteDataScanRequest)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.DeleteDataScanRequest other = + (com.google.cloud.dataplex.v1.DeleteDataScanRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.DeleteDataScanRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DeleteDataScanRequest 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.dataplex.v1.DeleteDataScanRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DeleteDataScanRequest 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.dataplex.v1.DeleteDataScanRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.DeleteDataScanRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.DeleteDataScanRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DeleteDataScanRequest 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.dataplex.v1.DeleteDataScanRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DeleteDataScanRequest 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.dataplex.v1.DeleteDataScanRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.DeleteDataScanRequest 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.dataplex.v1.DeleteDataScanRequest 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; + } + /** + * + * + *
+   * Delete dataScan request.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.DeleteDataScanRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DeleteDataScanRequest) + com.google.cloud.dataplex.v1.DeleteDataScanRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DeleteDataScanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DeleteDataScanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.DeleteDataScanRequest.class, + com.google.cloud.dataplex.v1.DeleteDataScanRequest.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.DeleteDataScanRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_DeleteDataScanRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DeleteDataScanRequest getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.DeleteDataScanRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DeleteDataScanRequest build() { + com.google.cloud.dataplex.v1.DeleteDataScanRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DeleteDataScanRequest buildPartial() { + com.google.cloud.dataplex.v1.DeleteDataScanRequest result = + new com.google.cloud.dataplex.v1.DeleteDataScanRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.DeleteDataScanRequest) { + return mergeFrom((com.google.cloud.dataplex.v1.DeleteDataScanRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.DeleteDataScanRequest other) { + if (other == com.google.cloud.dataplex.v1.DeleteDataScanRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the dataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the dataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the dataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the dataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the dataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DeleteDataScanRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DeleteDataScanRequest) + private static final com.google.cloud.dataplex.v1.DeleteDataScanRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DeleteDataScanRequest(); + } + + public static com.google.cloud.dataplex.v1.DeleteDataScanRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDataScanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.DeleteDataScanRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteDataScanRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteDataScanRequestOrBuilder.java new file mode 100644 index 000000000000..7dfbbd99eb33 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteDataScanRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface DeleteDataScanRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DeleteDataScanRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the dataScan:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the dataScan:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteEntityRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteEntityRequest.java index 929958ce0673..f3aa39e323ad 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteEntityRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteEntityRequest.java @@ -129,8 +129,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required. The etag associated with the entity, which can be retrieved with a
-   * [GetEntity][] request.
+   * Required. The etag associated with the entity, which can be retrieved with
+   * a [GetEntity][] request.
    * 
* * string etag = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -153,8 +153,8 @@ public java.lang.String getEtag() { * * *
-   * Required. The etag associated with the entity, which can be retrieved with a
-   * [GetEntity][] request.
+   * Required. The etag associated with the entity, which can be retrieved with
+   * a [GetEntity][] request.
    * 
* * string etag = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -652,8 +652,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The etag associated with the entity, which can be retrieved with a
-     * [GetEntity][] request.
+     * Required. The etag associated with the entity, which can be retrieved with
+     * a [GetEntity][] request.
      * 
* * string etag = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -675,8 +675,8 @@ public java.lang.String getEtag() { * * *
-     * Required. The etag associated with the entity, which can be retrieved with a
-     * [GetEntity][] request.
+     * Required. The etag associated with the entity, which can be retrieved with
+     * a [GetEntity][] request.
      * 
* * string etag = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -698,8 +698,8 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-     * Required. The etag associated with the entity, which can be retrieved with a
-     * [GetEntity][] request.
+     * Required. The etag associated with the entity, which can be retrieved with
+     * a [GetEntity][] request.
      * 
* * string etag = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -720,8 +720,8 @@ public Builder setEtag(java.lang.String value) { * * *
-     * Required. The etag associated with the entity, which can be retrieved with a
-     * [GetEntity][] request.
+     * Required. The etag associated with the entity, which can be retrieved with
+     * a [GetEntity][] request.
      * 
* * string etag = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -738,8 +738,8 @@ public Builder clearEtag() { * * *
-     * Required. The etag associated with the entity, which can be retrieved with a
-     * [GetEntity][] request.
+     * Required. The etag associated with the entity, which can be retrieved with
+     * a [GetEntity][] request.
      * 
* * string etag = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteEntityRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteEntityRequestOrBuilder.java index a79d5ef83462..acc5e13c38a8 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteEntityRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeleteEntityRequestOrBuilder.java @@ -58,8 +58,8 @@ public interface DeleteEntityRequestOrBuilder * * *
-   * Required. The etag associated with the entity, which can be retrieved with a
-   * [GetEntity][] request.
+   * Required. The etag associated with the entity, which can be retrieved with
+   * a [GetEntity][] request.
    * 
* * string etag = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -71,8 +71,8 @@ public interface DeleteEntityRequestOrBuilder * * *
-   * Required. The etag associated with the entity, which can be retrieved with a
-   * [GetEntity][] request.
+   * Required. The etag associated with the entity, which can be retrieved with
+   * a [GetEntity][] request.
    * 
* * string etag = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeletePartitionRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeletePartitionRequest.java index 70dccba14c30..06c1acaaf430 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeletePartitionRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeletePartitionRequest.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getNameBytes() { * string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.DeletePartitionRequest.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=327 + * google/cloud/dataplex/v1/metadata.proto;l=318 * @return The etag. */ @java.lang.Override @@ -167,7 +167,7 @@ public java.lang.String getEtag() { * string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.DeletePartitionRequest.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=327 + * google/cloud/dataplex/v1/metadata.proto;l=318 * @return The bytes for etag. */ @java.lang.Override @@ -683,7 +683,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.DeletePartitionRequest.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=327 + * google/cloud/dataplex/v1/metadata.proto;l=318 * @return The etag. */ @java.lang.Deprecated @@ -708,7 +708,7 @@ public java.lang.String getEtag() { * string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.DeletePartitionRequest.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=327 + * google/cloud/dataplex/v1/metadata.proto;l=318 * @return The bytes for etag. */ @java.lang.Deprecated @@ -733,7 +733,7 @@ public com.google.protobuf.ByteString getEtagBytes() { * string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.DeletePartitionRequest.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=327 + * google/cloud/dataplex/v1/metadata.proto;l=318 * @param value The etag to set. * @return This builder for chaining. */ @@ -757,7 +757,7 @@ public Builder setEtag(java.lang.String value) { * string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.DeletePartitionRequest.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=327 + * google/cloud/dataplex/v1/metadata.proto;l=318 * @return This builder for chaining. */ @java.lang.Deprecated @@ -777,7 +777,7 @@ public Builder clearEtag() { * string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.DeletePartitionRequest.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=327 + * google/cloud/dataplex/v1/metadata.proto;l=318 * @param value The bytes for etag to set. * @return This builder for chaining. */ diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeletePartitionRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeletePartitionRequestOrBuilder.java index 1064ba0857ba..528d07439021 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeletePartitionRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DeletePartitionRequestOrBuilder.java @@ -70,7 +70,7 @@ public interface DeletePartitionRequestOrBuilder * string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.DeletePartitionRequest.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=327 + * google/cloud/dataplex/v1/metadata.proto;l=318 * @return The etag. */ @java.lang.Deprecated @@ -85,7 +85,7 @@ public interface DeletePartitionRequestOrBuilder * string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.DeletePartitionRequest.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=327 + * google/cloud/dataplex/v1/metadata.proto;l=318 * @return The bytes for etag. */ @java.lang.Deprecated diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Entity.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Entity.java index d642986956ca..4211a86a193b 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Entity.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Entity.java @@ -379,8 +379,8 @@ public interface CompatibilityOrBuilder * * *
-       * Output only. Whether the entity is compatible and can be represented in the metadata
-       * store.
+       * Output only. Whether the entity is compatible and can be represented in
+       * the metadata store.
        * 
* * bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -393,8 +393,8 @@ public interface CompatibilityOrBuilder * * *
-       * Output only. Provides additional detail if the entity is incompatible with the
-       * metadata store.
+       * Output only. Provides additional detail if the entity is incompatible
+       * with the metadata store.
        * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -406,8 +406,8 @@ public interface CompatibilityOrBuilder * * *
-       * Output only. Provides additional detail if the entity is incompatible with the
-       * metadata store.
+       * Output only. Provides additional detail if the entity is incompatible
+       * with the metadata store.
        * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -472,8 +472,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * Output only. Whether the entity is compatible and can be represented in the metadata
-       * store.
+       * Output only. Whether the entity is compatible and can be represented in
+       * the metadata store.
        * 
* * bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -491,8 +491,8 @@ public boolean getCompatible() { * * *
-       * Output only. Provides additional detail if the entity is incompatible with the
-       * metadata store.
+       * Output only. Provides additional detail if the entity is incompatible
+       * with the metadata store.
        * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -515,8 +515,8 @@ public java.lang.String getReason() { * * *
-       * Output only. Provides additional detail if the entity is incompatible with the
-       * metadata store.
+       * Output only. Provides additional detail if the entity is incompatible
+       * with the metadata store.
        * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -910,8 +910,8 @@ public Builder mergeFrom( * * *
-         * Output only. Whether the entity is compatible and can be represented in the metadata
-         * store.
+         * Output only. Whether the entity is compatible and can be represented in
+         * the metadata store.
          * 
* * bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -926,8 +926,8 @@ public boolean getCompatible() { * * *
-         * Output only. Whether the entity is compatible and can be represented in the metadata
-         * store.
+         * Output only. Whether the entity is compatible and can be represented in
+         * the metadata store.
          * 
* * bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -945,8 +945,8 @@ public Builder setCompatible(boolean value) { * * *
-         * Output only. Whether the entity is compatible and can be represented in the metadata
-         * store.
+         * Output only. Whether the entity is compatible and can be represented in
+         * the metadata store.
          * 
* * bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -965,8 +965,8 @@ public Builder clearCompatible() { * * *
-         * Output only. Provides additional detail if the entity is incompatible with the
-         * metadata store.
+         * Output only. Provides additional detail if the entity is incompatible
+         * with the metadata store.
          * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -988,8 +988,8 @@ public java.lang.String getReason() { * * *
-         * Output only. Provides additional detail if the entity is incompatible with the
-         * metadata store.
+         * Output only. Provides additional detail if the entity is incompatible
+         * with the metadata store.
          * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1011,8 +1011,8 @@ public com.google.protobuf.ByteString getReasonBytes() { * * *
-         * Output only. Provides additional detail if the entity is incompatible with the
-         * metadata store.
+         * Output only. Provides additional detail if the entity is incompatible
+         * with the metadata store.
          * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1033,8 +1033,8 @@ public Builder setReason(java.lang.String value) { * * *
-         * Output only. Provides additional detail if the entity is incompatible with the
-         * metadata store.
+         * Output only. Provides additional detail if the entity is incompatible
+         * with the metadata store.
          * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1051,8 +1051,8 @@ public Builder clearReason() { * * *
-         * Output only. Provides additional detail if the entity is incompatible with the
-         * metadata store.
+         * Output only. Provides additional detail if the entity is incompatible
+         * with the metadata store.
          * 
* * string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2232,8 +2232,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Optional. User friendly longer description text. Must be shorter than or equal to
-   * 1024 characters.
+   * Optional. User friendly longer description text. Must be shorter than or
+   * equal to 1024 characters.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -2256,8 +2256,8 @@ public java.lang.String getDescription() { * * *
-   * Optional. User friendly longer description text. Must be shorter than or equal to
-   * 1024 characters.
+   * Optional. User friendly longer description text. Must be shorter than or
+   * equal to 1024 characters.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -2440,8 +2440,8 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-   * Optional. The etag associated with the entity, which can be retrieved with a
-   * [GetEntity][] request. Required for update and delete requests.
+   * Optional. The etag associated with the entity, which can be retrieved with
+   * a [GetEntity][] request. Required for update and delete requests.
    * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2464,8 +2464,8 @@ public java.lang.String getEtag() { * * *
-   * Optional. The etag associated with the entity, which can be retrieved with a
-   * [GetEntity][] request. Required for update and delete requests.
+   * Optional. The etag associated with the entity, which can be retrieved with
+   * a [GetEntity][] request. Required for update and delete requests.
    * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2531,8 +2531,9 @@ public com.google.cloud.dataplex.v1.Entity.Type getType() { * * *
-   * Required. Immutable. The ID of the asset associated with the storage location containing the
-   * entity data. The entity must be with in the same zone with the asset.
+   * Required. Immutable. The ID of the asset associated with the storage
+   * location containing the entity data. The entity must be with in the same
+   * zone with the asset.
    * 
* * @@ -2557,8 +2558,9 @@ public java.lang.String getAsset() { * * *
-   * Required. Immutable. The ID of the asset associated with the storage location containing the
-   * entity data. The entity must be with in the same zone with the asset.
+   * Required. Immutable. The ID of the asset associated with the storage
+   * location containing the entity data. The entity must be with in the same
+   * zone with the asset.
    * 
* * @@ -2647,9 +2649,9 @@ public com.google.protobuf.ByteString getDataPathBytes() { * * *
-   * Optional. The set of items within the data path constituting the data in the entity,
-   * represented as a glob path.
-   * Example: `gs://bucket/path/to/data/**/*.csv`.
+   * Optional. The set of items within the data path constituting the data in
+   * the entity, represented as a glob path. Example:
+   * `gs://bucket/path/to/data/**/*.csv`.
    * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -2672,9 +2674,9 @@ public java.lang.String getDataPathPattern() { * * *
-   * Optional. The set of items within the data path constituting the data in the entity,
-   * represented as a glob path.
-   * Example: `gs://bucket/path/to/data/**/*.csv`.
+   * Optional. The set of items within the data path constituting the data in
+   * the entity, represented as a glob path. Example:
+   * `gs://bucket/path/to/data/**/*.csv`.
    * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -3898,8 +3900,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. User friendly longer description text. Must be shorter than or equal to
-     * 1024 characters.
+     * Optional. User friendly longer description text. Must be shorter than or
+     * equal to 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -3921,8 +3923,8 @@ public java.lang.String getDescription() { * * *
-     * Optional. User friendly longer description text. Must be shorter than or equal to
-     * 1024 characters.
+     * Optional. User friendly longer description text. Must be shorter than or
+     * equal to 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -3944,8 +3946,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-     * Optional. User friendly longer description text. Must be shorter than or equal to
-     * 1024 characters.
+     * Optional. User friendly longer description text. Must be shorter than or
+     * equal to 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -3966,8 +3968,8 @@ public Builder setDescription(java.lang.String value) { * * *
-     * Optional. User friendly longer description text. Must be shorter than or equal to
-     * 1024 characters.
+     * Optional. User friendly longer description text. Must be shorter than or
+     * equal to 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -3984,8 +3986,8 @@ public Builder clearDescription() { * * *
-     * Optional. User friendly longer description text. Must be shorter than or equal to
-     * 1024 characters.
+     * Optional. User friendly longer description text. Must be shorter than or
+     * equal to 1024 characters.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -4542,8 +4544,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The etag associated with the entity, which can be retrieved with a
-     * [GetEntity][] request. Required for update and delete requests.
+     * Optional. The etag associated with the entity, which can be retrieved with
+     * a [GetEntity][] request. Required for update and delete requests.
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4565,8 +4567,8 @@ public java.lang.String getEtag() { * * *
-     * Optional. The etag associated with the entity, which can be retrieved with a
-     * [GetEntity][] request. Required for update and delete requests.
+     * Optional. The etag associated with the entity, which can be retrieved with
+     * a [GetEntity][] request. Required for update and delete requests.
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4588,8 +4590,8 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-     * Optional. The etag associated with the entity, which can be retrieved with a
-     * [GetEntity][] request. Required for update and delete requests.
+     * Optional. The etag associated with the entity, which can be retrieved with
+     * a [GetEntity][] request. Required for update and delete requests.
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4610,8 +4612,8 @@ public Builder setEtag(java.lang.String value) { * * *
-     * Optional. The etag associated with the entity, which can be retrieved with a
-     * [GetEntity][] request. Required for update and delete requests.
+     * Optional. The etag associated with the entity, which can be retrieved with
+     * a [GetEntity][] request. Required for update and delete requests.
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4628,8 +4630,8 @@ public Builder clearEtag() { * * *
-     * Optional. The etag associated with the entity, which can be retrieved with a
-     * [GetEntity][] request. Required for update and delete requests.
+     * Optional. The etag associated with the entity, which can be retrieved with
+     * a [GetEntity][] request. Required for update and delete requests.
      * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4754,8 +4756,9 @@ public Builder clearType() { * * *
-     * Required. Immutable. The ID of the asset associated with the storage location containing the
-     * entity data. The entity must be with in the same zone with the asset.
+     * Required. Immutable. The ID of the asset associated with the storage
+     * location containing the entity data. The entity must be with in the same
+     * zone with the asset.
      * 
* * @@ -4779,8 +4782,9 @@ public java.lang.String getAsset() { * * *
-     * Required. Immutable. The ID of the asset associated with the storage location containing the
-     * entity data. The entity must be with in the same zone with the asset.
+     * Required. Immutable. The ID of the asset associated with the storage
+     * location containing the entity data. The entity must be with in the same
+     * zone with the asset.
      * 
* * @@ -4804,8 +4808,9 @@ public com.google.protobuf.ByteString getAssetBytes() { * * *
-     * Required. Immutable. The ID of the asset associated with the storage location containing the
-     * entity data. The entity must be with in the same zone with the asset.
+     * Required. Immutable. The ID of the asset associated with the storage
+     * location containing the entity data. The entity must be with in the same
+     * zone with the asset.
      * 
* * @@ -4828,8 +4833,9 @@ public Builder setAsset(java.lang.String value) { * * *
-     * Required. Immutable. The ID of the asset associated with the storage location containing the
-     * entity data. The entity must be with in the same zone with the asset.
+     * Required. Immutable. The ID of the asset associated with the storage
+     * location containing the entity data. The entity must be with in the same
+     * zone with the asset.
      * 
* * @@ -4848,8 +4854,9 @@ public Builder clearAsset() { * * *
-     * Required. Immutable. The ID of the asset associated with the storage location containing the
-     * entity data. The entity must be with in the same zone with the asset.
+     * Required. Immutable. The ID of the asset associated with the storage
+     * location containing the entity data. The entity must be with in the same
+     * zone with the asset.
      * 
* * @@ -5011,9 +5018,9 @@ public Builder setDataPathBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The set of items within the data path constituting the data in the entity,
-     * represented as a glob path.
-     * Example: `gs://bucket/path/to/data/**/*.csv`.
+     * Optional. The set of items within the data path constituting the data in
+     * the entity, represented as a glob path. Example:
+     * `gs://bucket/path/to/data/**/*.csv`.
      * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -5035,9 +5042,9 @@ public java.lang.String getDataPathPattern() { * * *
-     * Optional. The set of items within the data path constituting the data in the entity,
-     * represented as a glob path.
-     * Example: `gs://bucket/path/to/data/**/*.csv`.
+     * Optional. The set of items within the data path constituting the data in
+     * the entity, represented as a glob path. Example:
+     * `gs://bucket/path/to/data/**/*.csv`.
      * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -5059,9 +5066,9 @@ public com.google.protobuf.ByteString getDataPathPatternBytes() { * * *
-     * Optional. The set of items within the data path constituting the data in the entity,
-     * represented as a glob path.
-     * Example: `gs://bucket/path/to/data/**/*.csv`.
+     * Optional. The set of items within the data path constituting the data in
+     * the entity, represented as a glob path. Example:
+     * `gs://bucket/path/to/data/**/*.csv`.
      * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -5082,9 +5089,9 @@ public Builder setDataPathPattern(java.lang.String value) { * * *
-     * Optional. The set of items within the data path constituting the data in the entity,
-     * represented as a glob path.
-     * Example: `gs://bucket/path/to/data/**/*.csv`.
+     * Optional. The set of items within the data path constituting the data in
+     * the entity, represented as a glob path. Example:
+     * `gs://bucket/path/to/data/**/*.csv`.
      * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -5101,9 +5108,9 @@ public Builder clearDataPathPattern() { * * *
-     * Optional. The set of items within the data path constituting the data in the entity,
-     * represented as a glob path.
-     * Example: `gs://bucket/path/to/data/**/*.csv`.
+     * Optional. The set of items within the data path constituting the data in
+     * the entity, represented as a glob path. Example:
+     * `gs://bucket/path/to/data/**/*.csv`.
      * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntityOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntityOrBuilder.java index c03c7cfc4d11..5a25b196a256 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntityOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntityOrBuilder.java @@ -83,8 +83,8 @@ public interface EntityOrBuilder * * *
-   * Optional. User friendly longer description text. Must be shorter than or equal to
-   * 1024 characters.
+   * Optional. User friendly longer description text. Must be shorter than or
+   * equal to 1024 characters.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -96,8 +96,8 @@ public interface EntityOrBuilder * * *
-   * Optional. User friendly longer description text. Must be shorter than or equal to
-   * 1024 characters.
+   * Optional. User friendly longer description text. Must be shorter than or
+   * equal to 1024 characters.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -221,8 +221,8 @@ public interface EntityOrBuilder * * *
-   * Optional. The etag associated with the entity, which can be retrieved with a
-   * [GetEntity][] request. Required for update and delete requests.
+   * Optional. The etag associated with the entity, which can be retrieved with
+   * a [GetEntity][] request. Required for update and delete requests.
    * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -234,8 +234,8 @@ public interface EntityOrBuilder * * *
-   * Optional. The etag associated with the entity, which can be retrieved with a
-   * [GetEntity][] request. Required for update and delete requests.
+   * Optional. The etag associated with the entity, which can be retrieved with
+   * a [GetEntity][] request. Required for update and delete requests.
    * 
* * string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -277,8 +277,9 @@ public interface EntityOrBuilder * * *
-   * Required. Immutable. The ID of the asset associated with the storage location containing the
-   * entity data. The entity must be with in the same zone with the asset.
+   * Required. Immutable. The ID of the asset associated with the storage
+   * location containing the entity data. The entity must be with in the same
+   * zone with the asset.
    * 
* * @@ -292,8 +293,9 @@ public interface EntityOrBuilder * * *
-   * Required. Immutable. The ID of the asset associated with the storage location containing the
-   * entity data. The entity must be with in the same zone with the asset.
+   * Required. Immutable. The ID of the asset associated with the storage
+   * location containing the entity data. The entity must be with in the same
+   * zone with the asset.
    * 
* * @@ -345,9 +347,9 @@ public interface EntityOrBuilder * * *
-   * Optional. The set of items within the data path constituting the data in the entity,
-   * represented as a glob path.
-   * Example: `gs://bucket/path/to/data/**/*.csv`.
+   * Optional. The set of items within the data path constituting the data in
+   * the entity, represented as a glob path. Example:
+   * `gs://bucket/path/to/data/**/*.csv`.
    * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -359,9 +361,9 @@ public interface EntityOrBuilder * * *
-   * Optional. The set of items within the data path constituting the data in the entity,
-   * represented as a glob path.
-   * Example: `gs://bucket/path/to/data/**/*.csv`.
+   * Optional. The set of items within the data path constituting the data in
+   * the entity, represented as a glob path. Example:
+   * `gs://bucket/path/to/data/**/*.csv`.
    * 
* * string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Environment.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Environment.java index 9fc2bbea6013..6c4075f15ca6 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Environment.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Environment.java @@ -134,7 +134,8 @@ public interface InfrastructureSpecOrBuilder * * *
-     * Required. Software Runtime Configuration for analyze interactive workloads.
+     * Required. Software Runtime Configuration for analyze interactive
+     * workloads.
      * 
* * @@ -148,7 +149,8 @@ public interface InfrastructureSpecOrBuilder * * *
-     * Required. Software Runtime Configuration for analyze interactive workloads.
+     * Required. Software Runtime Configuration for analyze interactive
+     * workloads.
      * 
* * @@ -162,7 +164,8 @@ public interface InfrastructureSpecOrBuilder * * *
-     * Required. Software Runtime Configuration for analyze interactive workloads.
+     * Required. Software Runtime Configuration for analyze interactive
+     * workloads.
      * 
* * @@ -246,7 +249,8 @@ public interface ComputeResourcesOrBuilder * * *
-       * Optional. Total number of nodes in the sessions created for this environment.
+       * Optional. Total number of nodes in the sessions created for this
+       * environment.
        * 
* * int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -342,7 +346,8 @@ public int getDiskSizeGb() { * * *
-       * Optional. Total number of nodes in the sessions created for this environment.
+       * Optional. Total number of nodes in the sessions created for this
+       * environment.
        * 
* * int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -832,7 +837,8 @@ public Builder clearDiskSizeGb() { * * *
-         * Optional. Total number of nodes in the sessions created for this environment.
+         * Optional. Total number of nodes in the sessions created for this
+         * environment.
          * 
* * int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -847,7 +853,8 @@ public int getNodeCount() { * * *
-         * Optional. Total number of nodes in the sessions created for this environment.
+         * Optional. Total number of nodes in the sessions created for this
+         * environment.
          * 
* * int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -865,7 +872,8 @@ public Builder setNodeCount(int value) { * * *
-         * Optional. Total number of nodes in the sessions created for this environment.
+         * Optional. Total number of nodes in the sessions created for this
+         * environment.
          * 
* * int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1155,10 +1163,10 @@ public interface OsImageRuntimeOrBuilder * * *
-       * Optional. Spark properties to provide configuration for use in sessions created
-       * for this environment. The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format.
-       * The prefix must be "spark".
+       * Optional. Spark properties to provide configuration for use in sessions
+       * created for this environment. The properties to set on daemon config
+       * files. Property keys are specified in `prefix:property` format. The
+       * prefix must be "spark".
        * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1169,10 +1177,10 @@ public interface OsImageRuntimeOrBuilder * * *
-       * Optional. Spark properties to provide configuration for use in sessions created
-       * for this environment. The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format.
-       * The prefix must be "spark".
+       * Optional. Spark properties to provide configuration for use in sessions
+       * created for this environment. The properties to set on daemon config
+       * files. Property keys are specified in `prefix:property` format. The
+       * prefix must be "spark".
        * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1186,10 +1194,10 @@ public interface OsImageRuntimeOrBuilder * * *
-       * Optional. Spark properties to provide configuration for use in sessions created
-       * for this environment. The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format.
-       * The prefix must be "spark".
+       * Optional. Spark properties to provide configuration for use in sessions
+       * created for this environment. The properties to set on daemon config
+       * files. Property keys are specified in `prefix:property` format. The
+       * prefix must be "spark".
        * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1200,10 +1208,10 @@ public interface OsImageRuntimeOrBuilder * * *
-       * Optional. Spark properties to provide configuration for use in sessions created
-       * for this environment. The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format.
-       * The prefix must be "spark".
+       * Optional. Spark properties to provide configuration for use in sessions
+       * created for this environment. The properties to set on daemon config
+       * files. Property keys are specified in `prefix:property` format. The
+       * prefix must be "spark".
        * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1219,10 +1227,10 @@ java.lang.String getPropertiesOrDefault( * * *
-       * Optional. Spark properties to provide configuration for use in sessions created
-       * for this environment. The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format.
-       * The prefix must be "spark".
+       * Optional. Spark properties to provide configuration for use in sessions
+       * created for this environment. The properties to set on daemon config
+       * files. Property keys are specified in `prefix:property` format. The
+       * prefix must be "spark".
        * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1511,10 +1519,10 @@ public int getPropertiesCount() { * * *
-       * Optional. Spark properties to provide configuration for use in sessions created
-       * for this environment. The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format.
-       * The prefix must be "spark".
+       * Optional. Spark properties to provide configuration for use in sessions
+       * created for this environment. The properties to set on daemon config
+       * files. Property keys are specified in `prefix:property` format. The
+       * prefix must be "spark".
        * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1537,10 +1545,10 @@ public java.util.Map getProperties() { * * *
-       * Optional. Spark properties to provide configuration for use in sessions created
-       * for this environment. The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format.
-       * The prefix must be "spark".
+       * Optional. Spark properties to provide configuration for use in sessions
+       * created for this environment. The properties to set on daemon config
+       * files. Property keys are specified in `prefix:property` format. The
+       * prefix must be "spark".
        * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1554,10 +1562,10 @@ public java.util.Map getPropertiesMap() { * * *
-       * Optional. Spark properties to provide configuration for use in sessions created
-       * for this environment. The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format.
-       * The prefix must be "spark".
+       * Optional. Spark properties to provide configuration for use in sessions
+       * created for this environment. The properties to set on daemon config
+       * files. Property keys are specified in `prefix:property` format. The
+       * prefix must be "spark".
        * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1576,10 +1584,10 @@ public java.lang.String getPropertiesOrDefault( * * *
-       * Optional. Spark properties to provide configuration for use in sessions created
-       * for this environment. The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format.
-       * The prefix must be "spark".
+       * Optional. Spark properties to provide configuration for use in sessions
+       * created for this environment. The properties to set on daemon config
+       * files. Property keys are specified in `prefix:property` format. The
+       * prefix must be "spark".
        * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2617,10 +2625,10 @@ public int getPropertiesCount() { * * *
-         * Optional. Spark properties to provide configuration for use in sessions created
-         * for this environment. The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format.
-         * The prefix must be "spark".
+         * Optional. Spark properties to provide configuration for use in sessions
+         * created for this environment. The properties to set on daemon config
+         * files. Property keys are specified in `prefix:property` format. The
+         * prefix must be "spark".
          * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2643,10 +2651,10 @@ public java.util.Map getProperties() { * * *
-         * Optional. Spark properties to provide configuration for use in sessions created
-         * for this environment. The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format.
-         * The prefix must be "spark".
+         * Optional. Spark properties to provide configuration for use in sessions
+         * created for this environment. The properties to set on daemon config
+         * files. Property keys are specified in `prefix:property` format. The
+         * prefix must be "spark".
          * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2660,10 +2668,10 @@ public java.util.Map getPropertiesMap() { * * *
-         * Optional. Spark properties to provide configuration for use in sessions created
-         * for this environment. The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format.
-         * The prefix must be "spark".
+         * Optional. Spark properties to provide configuration for use in sessions
+         * created for this environment. The properties to set on daemon config
+         * files. Property keys are specified in `prefix:property` format. The
+         * prefix must be "spark".
          * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2682,10 +2690,10 @@ public java.lang.String getPropertiesOrDefault( * * *
-         * Optional. Spark properties to provide configuration for use in sessions created
-         * for this environment. The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format.
-         * The prefix must be "spark".
+         * Optional. Spark properties to provide configuration for use in sessions
+         * created for this environment. The properties to set on daemon config
+         * files. Property keys are specified in `prefix:property` format. The
+         * prefix must be "spark".
          * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2711,10 +2719,10 @@ public Builder clearProperties() { * * *
-         * Optional. Spark properties to provide configuration for use in sessions created
-         * for this environment. The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format.
-         * The prefix must be "spark".
+         * Optional. Spark properties to provide configuration for use in sessions
+         * created for this environment. The properties to set on daemon config
+         * files. Property keys are specified in `prefix:property` format. The
+         * prefix must be "spark".
          * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2736,10 +2744,10 @@ public java.util.Map getMutableProperties() * * *
-         * Optional. Spark properties to provide configuration for use in sessions created
-         * for this environment. The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format.
-         * The prefix must be "spark".
+         * Optional. Spark properties to provide configuration for use in sessions
+         * created for this environment. The properties to set on daemon config
+         * files. Property keys are specified in `prefix:property` format. The
+         * prefix must be "spark".
          * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2760,10 +2768,10 @@ public Builder putProperties(java.lang.String key, java.lang.String value) { * * *
-         * Optional. Spark properties to provide configuration for use in sessions created
-         * for this environment. The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format.
-         * The prefix must be "spark".
+         * Optional. Spark properties to provide configuration for use in sessions
+         * created for this environment. The properties to set on daemon config
+         * files. Property keys are specified in `prefix:property` format. The
+         * prefix must be "spark".
          * 
* * map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2999,7 +3007,8 @@ public boolean hasCompute() { * * *
-     * Required. Software Runtime Configuration for analyze interactive workloads.
+     * Required. Software Runtime Configuration for analyze interactive
+     * workloads.
      * 
* * @@ -3016,7 +3025,8 @@ public boolean hasOsImage() { * * *
-     * Required. Software Runtime Configuration for analyze interactive workloads.
+     * Required. Software Runtime Configuration for analyze interactive
+     * workloads.
      * 
* * @@ -3038,7 +3048,8 @@ public com.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntim * * *
-     * Required. Software Runtime Configuration for analyze interactive workloads.
+     * Required. Software Runtime Configuration for analyze interactive
+     * workloads.
      * 
* * @@ -3774,7 +3785,8 @@ public Builder clearCompute() { * * *
-       * Required. Software Runtime Configuration for analyze interactive workloads.
+       * Required. Software Runtime Configuration for analyze interactive
+       * workloads.
        * 
* * @@ -3791,7 +3803,8 @@ public boolean hasOsImage() { * * *
-       * Required. Software Runtime Configuration for analyze interactive workloads.
+       * Required. Software Runtime Configuration for analyze interactive
+       * workloads.
        * 
* * @@ -3822,7 +3835,8 @@ public boolean hasOsImage() { * * *
-       * Required. Software Runtime Configuration for analyze interactive workloads.
+       * Required. Software Runtime Configuration for analyze interactive
+       * workloads.
        * 
* * @@ -3847,7 +3861,8 @@ public Builder setOsImage( * * *
-       * Required. Software Runtime Configuration for analyze interactive workloads.
+       * Required. Software Runtime Configuration for analyze interactive
+       * workloads.
        * 
* * @@ -3870,7 +3885,8 @@ public Builder setOsImage( * * *
-       * Required. Software Runtime Configuration for analyze interactive workloads.
+       * Required. Software Runtime Configuration for analyze interactive
+       * workloads.
        * 
* * @@ -3909,7 +3925,8 @@ public Builder mergeOsImage( * * *
-       * Required. Software Runtime Configuration for analyze interactive workloads.
+       * Required. Software Runtime Configuration for analyze interactive
+       * workloads.
        * 
* * @@ -3936,7 +3953,8 @@ public Builder clearOsImage() { * * *
-       * Required. Software Runtime Configuration for analyze interactive workloads.
+       * Required. Software Runtime Configuration for analyze interactive
+       * workloads.
        * 
* * @@ -3951,7 +3969,8 @@ public Builder clearOsImage() { * * *
-       * Required. Software Runtime Configuration for analyze interactive workloads.
+       * Required. Software Runtime Configuration for analyze interactive
+       * workloads.
        * 
* * @@ -3976,7 +3995,8 @@ public Builder clearOsImage() { * * *
-       * Required. Software Runtime Configuration for analyze interactive workloads.
+       * Required. Software Runtime Configuration for analyze interactive
+       * workloads.
        * 
* * @@ -4131,11 +4151,11 @@ public interface SessionSpecOrBuilder * * *
-     * Optional. If True, this causes sessions to be pre-created and available for faster
-     * startup to enable interactive exploration use-cases. This defaults to
-     * False to avoid additional billed charges.
-     * These can only be set to True for the environment with name set to
-     * "default", and with default configuration.
+     * Optional. If True, this causes sessions to be pre-created and available
+     * for faster startup to enable interactive exploration use-cases. This
+     * defaults to False to avoid additional billed charges. These can only be
+     * set to True for the environment with name set to "default", and with
+     * default configuration.
      * 
* * bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4246,11 +4266,11 @@ public com.google.protobuf.DurationOrBuilder getMaxIdleDurationOrBuilder() { * * *
-     * Optional. If True, this causes sessions to be pre-created and available for faster
-     * startup to enable interactive exploration use-cases. This defaults to
-     * False to avoid additional billed charges.
-     * These can only be set to True for the environment with name set to
-     * "default", and with default configuration.
+     * Optional. If True, this causes sessions to be pre-created and available
+     * for faster startup to enable interactive exploration use-cases. This
+     * defaults to False to avoid additional billed charges. These can only be
+     * set to True for the environment with name set to "default", and with
+     * default configuration.
      * 
* * bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4840,11 +4860,11 @@ public com.google.protobuf.DurationOrBuilder getMaxIdleDurationOrBuilder() { * * *
-       * Optional. If True, this causes sessions to be pre-created and available for faster
-       * startup to enable interactive exploration use-cases. This defaults to
-       * False to avoid additional billed charges.
-       * These can only be set to True for the environment with name set to
-       * "default", and with default configuration.
+       * Optional. If True, this causes sessions to be pre-created and available
+       * for faster startup to enable interactive exploration use-cases. This
+       * defaults to False to avoid additional billed charges. These can only be
+       * set to True for the environment with name set to "default", and with
+       * default configuration.
        * 
* * bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4859,11 +4879,11 @@ public boolean getEnableFastStartup() { * * *
-       * Optional. If True, this causes sessions to be pre-created and available for faster
-       * startup to enable interactive exploration use-cases. This defaults to
-       * False to avoid additional billed charges.
-       * These can only be set to True for the environment with name set to
-       * "default", and with default configuration.
+       * Optional. If True, this causes sessions to be pre-created and available
+       * for faster startup to enable interactive exploration use-cases. This
+       * defaults to False to avoid additional billed charges. These can only be
+       * set to True for the environment with name set to "default", and with
+       * default configuration.
        * 
* * bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4881,11 +4901,11 @@ public Builder setEnableFastStartup(boolean value) { * * *
-       * Optional. If True, this causes sessions to be pre-created and available for faster
-       * startup to enable interactive exploration use-cases. This defaults to
-       * False to avoid additional billed charges.
-       * These can only be set to True for the environment with name set to
-       * "default", and with default configuration.
+       * Optional. If True, this causes sessions to be pre-created and available
+       * for faster startup to enable interactive exploration use-cases. This
+       * defaults to False to avoid additional billed charges. These can only be
+       * set to True for the environment with name set to "default", and with
+       * default configuration.
        * 
* * bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4972,8 +4992,8 @@ public interface SessionStatusOrBuilder * * *
-     * Output only. Queries over sessions to mark whether the environment is currently
-     * active or not
+     * Output only. Queries over sessions to mark whether the environment is
+     * currently active or not
      * 
* * bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5027,8 +5047,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Output only. Queries over sessions to mark whether the environment is currently
-     * active or not
+     * Output only. Queries over sessions to mark whether the environment is
+     * currently active or not
      * 
* * bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5371,8 +5391,8 @@ public Builder mergeFrom( * * *
-       * Output only. Queries over sessions to mark whether the environment is currently
-       * active or not
+       * Output only. Queries over sessions to mark whether the environment is
+       * currently active or not
        * 
* * bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5387,8 +5407,8 @@ public boolean getActive() { * * *
-       * Output only. Queries over sessions to mark whether the environment is currently
-       * active or not
+       * Output only. Queries over sessions to mark whether the environment is
+       * currently active or not
        * 
* * bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5406,8 +5426,8 @@ public Builder setActive(boolean value) { * * *
-       * Output only. Queries over sessions to mark whether the environment is currently
-       * active or not
+       * Output only. Queries over sessions to mark whether the environment is
+       * currently active or not
        * 
* * bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6414,8 +6434,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Output only. System generated globally unique ID for the environment. This ID will be
-   * different if the environment is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the environment. This
+   * ID will be different if the environment is deleted and re-created with the
+   * same name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6438,8 +6459,9 @@ public java.lang.String getUid() { * * *
-   * Output only. System generated globally unique ID for the environment. This ID will be
-   * different if the environment is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the environment. This
+   * ID will be different if the environment is deleted and re-created with the
+   * same name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6911,7 +6933,8 @@ public com.google.cloud.dataplex.v1.Environment.SessionStatus getSessionStatus() * * *
-   * Output only. URI Endpoints to access sessions associated with the Environment.
+   * Output only. URI Endpoints to access sessions associated with the
+   * Environment.
    * 
* * @@ -6928,7 +6951,8 @@ public boolean hasEndpoints() { * * *
-   * Output only. URI Endpoints to access sessions associated with the Environment.
+   * Output only. URI Endpoints to access sessions associated with the
+   * Environment.
    * 
* * @@ -6947,7 +6971,8 @@ public com.google.cloud.dataplex.v1.Environment.Endpoints getEndpoints() { * * *
-   * Output only. URI Endpoints to access sessions associated with the Environment.
+   * Output only. URI Endpoints to access sessions associated with the
+   * Environment.
    * 
* * @@ -7868,8 +7893,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. System generated globally unique ID for the environment. This ID will be
-     * different if the environment is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the environment. This
+     * ID will be different if the environment is deleted and re-created with the
+     * same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -7891,8 +7917,9 @@ public java.lang.String getUid() { * * *
-     * Output only. System generated globally unique ID for the environment. This ID will be
-     * different if the environment is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the environment. This
+     * ID will be different if the environment is deleted and re-created with the
+     * same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -7914,8 +7941,9 @@ public com.google.protobuf.ByteString getUidBytes() { * * *
-     * Output only. System generated globally unique ID for the environment. This ID will be
-     * different if the environment is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the environment. This
+     * ID will be different if the environment is deleted and re-created with the
+     * same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -7936,8 +7964,9 @@ public Builder setUid(java.lang.String value) { * * *
-     * Output only. System generated globally unique ID for the environment. This ID will be
-     * different if the environment is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the environment. This
+     * ID will be different if the environment is deleted and re-created with the
+     * same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -7954,8 +7983,9 @@ public Builder clearUid() { * * *
-     * Output only. System generated globally unique ID for the environment. This ID will be
-     * different if the environment is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the environment. This
+     * ID will be different if the environment is deleted and re-created with the
+     * same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9366,7 +9396,8 @@ public Builder clearSessionStatus() { * * *
-     * Output only. URI Endpoints to access sessions associated with the Environment.
+     * Output only. URI Endpoints to access sessions associated with the
+     * Environment.
      * 
* * @@ -9382,7 +9413,8 @@ public boolean hasEndpoints() { * * *
-     * Output only. URI Endpoints to access sessions associated with the Environment.
+     * Output only. URI Endpoints to access sessions associated with the
+     * Environment.
      * 
* * @@ -9404,7 +9436,8 @@ public com.google.cloud.dataplex.v1.Environment.Endpoints getEndpoints() { * * *
-     * Output only. URI Endpoints to access sessions associated with the Environment.
+     * Output only. URI Endpoints to access sessions associated with the
+     * Environment.
      * 
* * @@ -9428,7 +9461,8 @@ public Builder setEndpoints(com.google.cloud.dataplex.v1.Environment.Endpoints v * * *
-     * Output only. URI Endpoints to access sessions associated with the Environment.
+     * Output only. URI Endpoints to access sessions associated with the
+     * Environment.
      * 
* * @@ -9450,7 +9484,8 @@ public Builder setEndpoints( * * *
-     * Output only. URI Endpoints to access sessions associated with the Environment.
+     * Output only. URI Endpoints to access sessions associated with the
+     * Environment.
      * 
* * @@ -9478,7 +9513,8 @@ public Builder mergeEndpoints(com.google.cloud.dataplex.v1.Environment.Endpoints * * *
-     * Output only. URI Endpoints to access sessions associated with the Environment.
+     * Output only. URI Endpoints to access sessions associated with the
+     * Environment.
      * 
* * @@ -9500,7 +9536,8 @@ public Builder clearEndpoints() { * * *
-     * Output only. URI Endpoints to access sessions associated with the Environment.
+     * Output only. URI Endpoints to access sessions associated with the
+     * Environment.
      * 
* * @@ -9516,7 +9553,8 @@ public com.google.cloud.dataplex.v1.Environment.Endpoints.Builder getEndpointsBu * * *
-     * Output only. URI Endpoints to access sessions associated with the Environment.
+     * Output only. URI Endpoints to access sessions associated with the
+     * Environment.
      * 
* * @@ -9536,7 +9574,8 @@ public com.google.cloud.dataplex.v1.Environment.EndpointsOrBuilder getEndpointsO * * *
-     * Output only. URI Endpoints to access sessions associated with the Environment.
+     * Output only. URI Endpoints to access sessions associated with the
+     * Environment.
      * 
* * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EnvironmentOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EnvironmentOrBuilder.java index fc4039d2ddcd..5d0c65f15b8d 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EnvironmentOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EnvironmentOrBuilder.java @@ -83,8 +83,9 @@ public interface EnvironmentOrBuilder * * *
-   * Output only. System generated globally unique ID for the environment. This ID will be
-   * different if the environment is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the environment. This
+   * ID will be different if the environment is deleted and re-created with the
+   * same name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -96,8 +97,9 @@ public interface EnvironmentOrBuilder * * *
-   * Output only. System generated globally unique ID for the environment. This ID will be
-   * different if the environment is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the environment. This
+   * ID will be different if the environment is deleted and re-created with the
+   * same name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -421,7 +423,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. URI Endpoints to access sessions associated with the Environment.
+   * Output only. URI Endpoints to access sessions associated with the
+   * Environment.
    * 
* * @@ -435,7 +438,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. URI Endpoints to access sessions associated with the Environment.
+   * Output only. URI Endpoints to access sessions associated with the
+   * Environment.
    * 
* * @@ -449,7 +453,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. URI Endpoints to access sessions associated with the Environment.
+   * Output only. URI Endpoints to access sessions associated with the
+   * Environment.
    * 
* * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GetDataScanJobRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GetDataScanJobRequest.java new file mode 100644 index 000000000000..0bb897cde676 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GetDataScanJobRequest.java @@ -0,0 +1,992 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * Get DataScanJob request.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.GetDataScanJobRequest} + */ +public final class GetDataScanJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.GetDataScanJobRequest) + GetDataScanJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataScanJobRequest.newBuilder() to construct. + private GetDataScanJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDataScanJobRequest() { + name_ = ""; + view_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDataScanJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_GetDataScanJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_GetDataScanJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.GetDataScanJobRequest.class, + com.google.cloud.dataplex.v1.GetDataScanJobRequest.Builder.class); + } + + /** + * + * + *
+   * DataScanJob views for getting a partial dataScanJob.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView} + */ + public enum DataScanJobView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The API will default to the `BASIC` view.
+     * 
+ * + * DATA_SCAN_JOB_VIEW_UNSPECIFIED = 0; + */ + DATA_SCAN_JOB_VIEW_UNSPECIFIED(0), + /** + * + * + *
+     * Basic view that does not include spec and result.
+     * 
+ * + * BASIC = 1; + */ + BASIC(1), + /** + * + * + *
+     * Include everything.
+     * 
+ * + * FULL = 10; + */ + FULL(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The API will default to the `BASIC` view.
+     * 
+ * + * DATA_SCAN_JOB_VIEW_UNSPECIFIED = 0; + */ + public static final int DATA_SCAN_JOB_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Basic view that does not include spec and result.
+     * 
+ * + * BASIC = 1; + */ + public static final int BASIC_VALUE = 1; + /** + * + * + *
+     * Include everything.
+     * 
+ * + * FULL = 10; + */ + public static final int FULL_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataScanJobView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DataScanJobView forNumber(int value) { + switch (value) { + case 0: + return DATA_SCAN_JOB_VIEW_UNSPECIFIED; + case 1: + return BASIC; + case 10: + return FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataScanJobView findValueByNumber(int number) { + return DataScanJobView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataplex.v1.GetDataScanJobRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DataScanJobView[] VALUES = values(); + + public static DataScanJobView valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DataScanJobView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the DataScanJob:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the DataScanJob:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 2; + private int view_; + /** + * + * + *
+   * Optional. Used to select the subset of DataScan information to return.
+   * Defaults to `BASIC`.
+   * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * Optional. Used to select the subset of DataScan information to return.
+   * Defaults to `BASIC`.
+   * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView getView() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView result = + com.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView.valueOf(view_); + return result == null + ? com.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView.UNRECOGNIZED + : result; + } + + 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 (view_ + != com.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView + .DATA_SCAN_JOB_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, view_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (view_ + != com.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView + .DATA_SCAN_JOB_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.GetDataScanJobRequest)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.GetDataScanJobRequest other = + (com.google.cloud.dataplex.v1.GetDataScanJobRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (view_ != other.view_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.GetDataScanJobRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.GetDataScanJobRequest 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.dataplex.v1.GetDataScanJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.GetDataScanJobRequest 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.dataplex.v1.GetDataScanJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.GetDataScanJobRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.GetDataScanJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.GetDataScanJobRequest 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.dataplex.v1.GetDataScanJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.GetDataScanJobRequest 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.dataplex.v1.GetDataScanJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.GetDataScanJobRequest 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.dataplex.v1.GetDataScanJobRequest 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; + } + /** + * + * + *
+   * Get DataScanJob request.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.GetDataScanJobRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.GetDataScanJobRequest) + com.google.cloud.dataplex.v1.GetDataScanJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_GetDataScanJobRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_GetDataScanJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.GetDataScanJobRequest.class, + com.google.cloud.dataplex.v1.GetDataScanJobRequest.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.GetDataScanJobRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + view_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_GetDataScanJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.GetDataScanJobRequest getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.GetDataScanJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.GetDataScanJobRequest build() { + com.google.cloud.dataplex.v1.GetDataScanJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.GetDataScanJobRequest buildPartial() { + com.google.cloud.dataplex.v1.GetDataScanJobRequest result = + new com.google.cloud.dataplex.v1.GetDataScanJobRequest(this); + result.name_ = name_; + result.view_ = view_; + 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.dataplex.v1.GetDataScanJobRequest) { + return mergeFrom((com.google.cloud.dataplex.v1.GetDataScanJobRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.GetDataScanJobRequest other) { + if (other == com.google.cloud.dataplex.v1.GetDataScanJobRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + view_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the DataScanJob:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the DataScanJob:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the DataScanJob:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the DataScanJob:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the DataScanJob:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int view_ = 0; + /** + * + * + *
+     * Optional. Used to select the subset of DataScan information to return.
+     * Defaults to `BASIC`.
+     * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * Optional. Used to select the subset of DataScan information to return.
+     * Defaults to `BASIC`.
+     * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + + view_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Used to select the subset of DataScan information to return.
+     * Defaults to `BASIC`.
+     * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView getView() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView result = + com.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView.valueOf(view_); + return result == null + ? com.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Used to select the subset of DataScan information to return.
+     * Defaults to `BASIC`.
+     * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView( + com.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView value) { + if (value == null) { + throw new NullPointerException(); + } + + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Used to select the subset of DataScan information to return.
+     * Defaults to `BASIC`.
+     * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + + view_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.GetDataScanJobRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.GetDataScanJobRequest) + private static final com.google.cloud.dataplex.v1.GetDataScanJobRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.GetDataScanJobRequest(); + } + + public static com.google.cloud.dataplex.v1.GetDataScanJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataScanJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.GetDataScanJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GetDataScanJobRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GetDataScanJobRequestOrBuilder.java new file mode 100644 index 000000000000..779b37875041 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GetDataScanJobRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface GetDataScanJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.GetDataScanJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the DataScanJob:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the DataScanJob:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Used to select the subset of DataScan information to return.
+   * Defaults to `BASIC`.
+   * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * Optional. Used to select the subset of DataScan information to return.
+   * Defaults to `BASIC`.
+   * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView getView(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GetDataScanRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GetDataScanRequest.java new file mode 100644 index 000000000000..2465884cd4b0 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GetDataScanRequest.java @@ -0,0 +1,985 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * Get dataScan request.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.GetDataScanRequest} + */ +public final class GetDataScanRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.GetDataScanRequest) + GetDataScanRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataScanRequest.newBuilder() to construct. + private GetDataScanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDataScanRequest() { + name_ = ""; + view_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDataScanRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_GetDataScanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_GetDataScanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.GetDataScanRequest.class, + com.google.cloud.dataplex.v1.GetDataScanRequest.Builder.class); + } + + /** + * + * + *
+   * DataScan views for getting a partial dataScan.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataplex.v1.GetDataScanRequest.DataScanView} + */ + public enum DataScanView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The API will default to the `BASIC` view.
+     * 
+ * + * DATA_SCAN_VIEW_UNSPECIFIED = 0; + */ + DATA_SCAN_VIEW_UNSPECIFIED(0), + /** + * + * + *
+     * Basic view that does not include spec and result.
+     * 
+ * + * BASIC = 1; + */ + BASIC(1), + /** + * + * + *
+     * Include everything.
+     * 
+ * + * FULL = 10; + */ + FULL(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The API will default to the `BASIC` view.
+     * 
+ * + * DATA_SCAN_VIEW_UNSPECIFIED = 0; + */ + public static final int DATA_SCAN_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Basic view that does not include spec and result.
+     * 
+ * + * BASIC = 1; + */ + public static final int BASIC_VALUE = 1; + /** + * + * + *
+     * Include everything.
+     * 
+ * + * FULL = 10; + */ + public static final int FULL_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataScanView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DataScanView forNumber(int value) { + switch (value) { + case 0: + return DATA_SCAN_VIEW_UNSPECIFIED; + case 1: + return BASIC; + case 10: + return FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataScanView findValueByNumber(int number) { + return DataScanView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataplex.v1.GetDataScanRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final DataScanView[] VALUES = values(); + + public static DataScanView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DataScanView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.GetDataScanRequest.DataScanView) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the dataScan:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the dataScan:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 2; + private int view_; + /** + * + * + *
+   * Optional. Used to select the subset of DataScan information to return.
+   * Defaults to `BASIC`.
+   * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * Optional. Used to select the subset of DataScan information to return.
+   * Defaults to `BASIC`.
+   * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.GetDataScanRequest.DataScanView getView() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.GetDataScanRequest.DataScanView result = + com.google.cloud.dataplex.v1.GetDataScanRequest.DataScanView.valueOf(view_); + return result == null + ? com.google.cloud.dataplex.v1.GetDataScanRequest.DataScanView.UNRECOGNIZED + : result; + } + + 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 (view_ + != com.google.cloud.dataplex.v1.GetDataScanRequest.DataScanView.DATA_SCAN_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, view_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (view_ + != com.google.cloud.dataplex.v1.GetDataScanRequest.DataScanView.DATA_SCAN_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.GetDataScanRequest)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.GetDataScanRequest other = + (com.google.cloud.dataplex.v1.GetDataScanRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (view_ != other.view_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.GetDataScanRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.GetDataScanRequest 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.dataplex.v1.GetDataScanRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.GetDataScanRequest 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.dataplex.v1.GetDataScanRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.GetDataScanRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.GetDataScanRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.GetDataScanRequest 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.dataplex.v1.GetDataScanRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.GetDataScanRequest 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.dataplex.v1.GetDataScanRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.GetDataScanRequest 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.dataplex.v1.GetDataScanRequest 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; + } + /** + * + * + *
+   * Get dataScan request.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.GetDataScanRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.GetDataScanRequest) + com.google.cloud.dataplex.v1.GetDataScanRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_GetDataScanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_GetDataScanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.GetDataScanRequest.class, + com.google.cloud.dataplex.v1.GetDataScanRequest.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.GetDataScanRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + view_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_GetDataScanRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.GetDataScanRequest getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.GetDataScanRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.GetDataScanRequest build() { + com.google.cloud.dataplex.v1.GetDataScanRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.GetDataScanRequest buildPartial() { + com.google.cloud.dataplex.v1.GetDataScanRequest result = + new com.google.cloud.dataplex.v1.GetDataScanRequest(this); + result.name_ = name_; + result.view_ = view_; + 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.dataplex.v1.GetDataScanRequest) { + return mergeFrom((com.google.cloud.dataplex.v1.GetDataScanRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.GetDataScanRequest other) { + if (other == com.google.cloud.dataplex.v1.GetDataScanRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + view_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the dataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the dataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the dataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the dataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the dataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int view_ = 0; + /** + * + * + *
+     * Optional. Used to select the subset of DataScan information to return.
+     * Defaults to `BASIC`.
+     * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * Optional. Used to select the subset of DataScan information to return.
+     * Defaults to `BASIC`.
+     * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + + view_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Used to select the subset of DataScan information to return.
+     * Defaults to `BASIC`.
+     * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.GetDataScanRequest.DataScanView getView() { + @SuppressWarnings("deprecation") + com.google.cloud.dataplex.v1.GetDataScanRequest.DataScanView result = + com.google.cloud.dataplex.v1.GetDataScanRequest.DataScanView.valueOf(view_); + return result == null + ? com.google.cloud.dataplex.v1.GetDataScanRequest.DataScanView.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Used to select the subset of DataScan information to return.
+     * Defaults to `BASIC`.
+     * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.dataplex.v1.GetDataScanRequest.DataScanView value) { + if (value == null) { + throw new NullPointerException(); + } + + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Used to select the subset of DataScan information to return.
+     * Defaults to `BASIC`.
+     * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + + view_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.GetDataScanRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.GetDataScanRequest) + private static final com.google.cloud.dataplex.v1.GetDataScanRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.GetDataScanRequest(); + } + + public static com.google.cloud.dataplex.v1.GetDataScanRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataScanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.GetDataScanRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GetDataScanRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GetDataScanRequestOrBuilder.java new file mode 100644 index 000000000000..59d59c8cccfb --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GetDataScanRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface GetDataScanRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.GetDataScanRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the dataScan:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the dataScan:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Used to select the subset of DataScan information to return.
+   * Defaults to `BASIC`.
+   * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * Optional. Used to select the subset of DataScan information to return.
+   * Defaults to `BASIC`.
+   * 
+ * + * + * .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.dataplex.v1.GetDataScanRequest.DataScanView getView(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Job.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Job.java index e85083aa72ef..a299910f88f8 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Job.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Job.java @@ -742,7 +742,8 @@ public com.google.cloud.dataplex.v1.Job.Service getService() { * * *
-   * Output only. The full resource name for the job run under a particular service.
+   * Output only. The full resource name for the job run under a particular
+   * service.
    * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -765,7 +766,8 @@ public java.lang.String getServiceJob() { * * *
-   * Output only. The full resource name for the job run under a particular service.
+   * Output only. The full resource name for the job run under a particular
+   * service.
    * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2222,7 +2224,8 @@ public Builder clearService() { * * *
-     * Output only. The full resource name for the job run under a particular service.
+     * Output only. The full resource name for the job run under a particular
+     * service.
      * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2244,7 +2247,8 @@ public java.lang.String getServiceJob() { * * *
-     * Output only. The full resource name for the job run under a particular service.
+     * Output only. The full resource name for the job run under a particular
+     * service.
      * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2266,7 +2270,8 @@ public com.google.protobuf.ByteString getServiceJobBytes() { * * *
-     * Output only. The full resource name for the job run under a particular service.
+     * Output only. The full resource name for the job run under a particular
+     * service.
      * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2287,7 +2292,8 @@ public Builder setServiceJob(java.lang.String value) { * * *
-     * Output only. The full resource name for the job run under a particular service.
+     * Output only. The full resource name for the job run under a particular
+     * service.
      * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2304,7 +2310,8 @@ public Builder clearServiceJob() { * * *
-     * Output only. The full resource name for the job run under a particular service.
+     * Output only. The full resource name for the job run under a particular
+     * service.
      * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/JobOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/JobOrBuilder.java index c103e53a0737..1a99e2fade9e 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/JobOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/JobOrBuilder.java @@ -231,7 +231,8 @@ public interface JobOrBuilder * * *
-   * Output only. The full resource name for the job run under a particular service.
+   * Output only. The full resource name for the job run under a particular
+   * service.
    * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -243,7 +244,8 @@ public interface JobOrBuilder * * *
-   * Output only. The full resource name for the job run under a particular service.
+   * Output only. The full resource name for the job run under a particular
+   * service.
    * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Lake.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Lake.java index a4d2a75a8b28..624959ea4753 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Lake.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Lake.java @@ -2378,8 +2378,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Output only. System generated globally unique ID for the lake. This ID will be
-   * different if the lake is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the lake. This ID will
+   * be different if the lake is deleted and re-created with the same name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2402,8 +2402,8 @@ public java.lang.String getUid() { * * *
-   * Output only. System generated globally unique ID for the lake. This ID will be
-   * different if the lake is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the lake. This ID will
+   * be different if the lake is deleted and re-created with the same name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2711,8 +2711,9 @@ public com.google.cloud.dataplex.v1.State getState() { * * *
-   * Output only. Service account associated with this lake. This service account must be
-   * authorized to access or operate on resources managed by the lake.
+   * Output only. Service account associated with this lake. This service
+   * account must be authorized to access or operate on resources managed by the
+   * lake.
    * 
* * string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2735,8 +2736,9 @@ public java.lang.String getServiceAccount() { * * *
-   * Output only. Service account associated with this lake. This service account must be
-   * authorized to access or operate on resources managed by the lake.
+   * Output only. Service account associated with this lake. This service
+   * account must be authorized to access or operate on resources managed by the
+   * lake.
    * 
* * string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3820,8 +3822,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. System generated globally unique ID for the lake. This ID will be
-     * different if the lake is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the lake. This ID will
+     * be different if the lake is deleted and re-created with the same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3843,8 +3845,8 @@ public java.lang.String getUid() { * * *
-     * Output only. System generated globally unique ID for the lake. This ID will be
-     * different if the lake is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the lake. This ID will
+     * be different if the lake is deleted and re-created with the same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3866,8 +3868,8 @@ public com.google.protobuf.ByteString getUidBytes() { * * *
-     * Output only. System generated globally unique ID for the lake. This ID will be
-     * different if the lake is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the lake. This ID will
+     * be different if the lake is deleted and re-created with the same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3888,8 +3890,8 @@ public Builder setUid(java.lang.String value) { * * *
-     * Output only. System generated globally unique ID for the lake. This ID will be
-     * different if the lake is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the lake. This ID will
+     * be different if the lake is deleted and re-created with the same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3906,8 +3908,8 @@ public Builder clearUid() { * * *
-     * Output only. System generated globally unique ID for the lake. This ID will be
-     * different if the lake is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the lake. This ID will
+     * be different if the lake is deleted and re-created with the same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4693,8 +4695,9 @@ public Builder clearState() { * * *
-     * Output only. Service account associated with this lake. This service account must be
-     * authorized to access or operate on resources managed by the lake.
+     * Output only. Service account associated with this lake. This service
+     * account must be authorized to access or operate on resources managed by the
+     * lake.
      * 
* * string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4716,8 +4719,9 @@ public java.lang.String getServiceAccount() { * * *
-     * Output only. Service account associated with this lake. This service account must be
-     * authorized to access or operate on resources managed by the lake.
+     * Output only. Service account associated with this lake. This service
+     * account must be authorized to access or operate on resources managed by the
+     * lake.
      * 
* * string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4739,8 +4743,9 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
-     * Output only. Service account associated with this lake. This service account must be
-     * authorized to access or operate on resources managed by the lake.
+     * Output only. Service account associated with this lake. This service
+     * account must be authorized to access or operate on resources managed by the
+     * lake.
      * 
* * string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4761,8 +4766,9 @@ public Builder setServiceAccount(java.lang.String value) { * * *
-     * Output only. Service account associated with this lake. This service account must be
-     * authorized to access or operate on resources managed by the lake.
+     * Output only. Service account associated with this lake. This service
+     * account must be authorized to access or operate on resources managed by the
+     * lake.
      * 
* * string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4779,8 +4785,9 @@ public Builder clearServiceAccount() { * * *
-     * Output only. Service account associated with this lake. This service account must be
-     * authorized to access or operate on resources managed by the lake.
+     * Output only. Service account associated with this lake. This service
+     * account must be authorized to access or operate on resources managed by the
+     * lake.
      * 
* * string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LakeOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LakeOrBuilder.java index 18352cab71b0..254e382f47a6 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LakeOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LakeOrBuilder.java @@ -83,8 +83,8 @@ public interface LakeOrBuilder * * *
-   * Output only. System generated globally unique ID for the lake. This ID will be
-   * different if the lake is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the lake. This ID will
+   * be different if the lake is deleted and re-created with the same name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -96,8 +96,8 @@ public interface LakeOrBuilder * * *
-   * Output only. System generated globally unique ID for the lake. This ID will be
-   * different if the lake is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the lake. This ID will
+   * be different if the lake is deleted and re-created with the same name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -297,8 +297,9 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Service account associated with this lake. This service account must be
-   * authorized to access or operate on resources managed by the lake.
+   * Output only. Service account associated with this lake. This service
+   * account must be authorized to access or operate on resources managed by the
+   * lake.
    * 
* * string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -310,8 +311,9 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Service account associated with this lake. This service account must be
-   * authorized to access or operate on resources managed by the lake.
+   * Output only. Service account associated with this lake. This service
+   * account must be authorized to access or operate on resources managed by the
+   * lake.
    * 
* * string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetActionsRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetActionsRequest.java index 33a441d8ee4e..1673db76d341 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetActionsRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetActionsRequest.java @@ -129,9 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Maximum number of actions to return. The service may return fewer than this
-   * value. If unspecified, at most 10 actions will be returned. The maximum
-   * value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of actions to return. The service may return fewer
+   * than this value. If unspecified, at most 10 actions will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -149,10 +149,10 @@ public int getPageSize() { * * *
-   * Optional. Page token received from a previous `ListAssetActions` call. Provide this
-   * to retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListAssetActions` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListAssetActions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListAssetActions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -175,10 +175,10 @@ public java.lang.String getPageToken() { * * *
-   * Optional. Page token received from a previous `ListAssetActions` call. Provide this
-   * to retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListAssetActions` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListAssetActions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListAssetActions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -697,9 +697,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Maximum number of actions to return. The service may return fewer than this
-     * value. If unspecified, at most 10 actions will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of actions to return. The service may return fewer
+     * than this value. If unspecified, at most 10 actions will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -714,9 +714,9 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of actions to return. The service may return fewer than this
-     * value. If unspecified, at most 10 actions will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of actions to return. The service may return fewer
+     * than this value. If unspecified, at most 10 actions will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -734,9 +734,9 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of actions to return. The service may return fewer than this
-     * value. If unspecified, at most 10 actions will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of actions to return. The service may return fewer
+     * than this value. If unspecified, at most 10 actions will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -755,10 +755,10 @@ public Builder clearPageSize() { * * *
-     * Optional. Page token received from a previous `ListAssetActions` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListAssetActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListAssetActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListAssetActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -780,10 +780,10 @@ public java.lang.String getPageToken() { * * *
-     * Optional. Page token received from a previous `ListAssetActions` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListAssetActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListAssetActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListAssetActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -805,10 +805,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. Page token received from a previous `ListAssetActions` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListAssetActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListAssetActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListAssetActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -829,10 +829,10 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. Page token received from a previous `ListAssetActions` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListAssetActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListAssetActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListAssetActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -849,10 +849,10 @@ public Builder clearPageToken() { * * *
-     * Optional. Page token received from a previous `ListAssetActions` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListAssetActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListAssetActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListAssetActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetActionsRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetActionsRequestOrBuilder.java index 1e3a17b91f85..e2d2d56bcdaf 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetActionsRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetActionsRequestOrBuilder.java @@ -58,9 +58,9 @@ public interface ListAssetActionsRequestOrBuilder * * *
-   * Optional. Maximum number of actions to return. The service may return fewer than this
-   * value. If unspecified, at most 10 actions will be returned. The maximum
-   * value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of actions to return. The service may return fewer
+   * than this value. If unspecified, at most 10 actions will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -73,10 +73,10 @@ public interface ListAssetActionsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListAssetActions` call. Provide this
-   * to retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListAssetActions` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListAssetActions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListAssetActions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -88,10 +88,10 @@ public interface ListAssetActionsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListAssetActions` call. Provide this
-   * to retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListAssetActions` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListAssetActions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListAssetActions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetsRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetsRequest.java index bdbf3d67c891..9aede11eaad9 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetsRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetsRequest.java @@ -131,8 +131,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Maximum number of asset to return. The service may return fewer than
-   * this value. If unspecified, at most 10 assets will be returned. The
+   * Optional. Maximum number of asset to return. The service may return fewer
+   * than this value. If unspecified, at most 10 assets will be returned. The
    * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* @@ -151,8 +151,8 @@ public int getPageSize() { * * *
-   * Optional. Page token received from a previous `ListAssets` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListAssets` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListAssets` must match the call that provided the page
    * token.
    * 
@@ -177,8 +177,8 @@ public java.lang.String getPageToken() { * * *
-   * Optional. Page token received from a previous `ListAssets` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListAssets` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListAssets` must match the call that provided the page
    * token.
    * 
@@ -840,8 +840,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Maximum number of asset to return. The service may return fewer than
-     * this value. If unspecified, at most 10 assets will be returned. The
+     * Optional. Maximum number of asset to return. The service may return fewer
+     * than this value. If unspecified, at most 10 assets will be returned. The
      * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* @@ -857,8 +857,8 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of asset to return. The service may return fewer than
-     * this value. If unspecified, at most 10 assets will be returned. The
+     * Optional. Maximum number of asset to return. The service may return fewer
+     * than this value. If unspecified, at most 10 assets will be returned. The
      * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* @@ -877,8 +877,8 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of asset to return. The service may return fewer than
-     * this value. If unspecified, at most 10 assets will be returned. The
+     * Optional. Maximum number of asset to return. The service may return fewer
+     * than this value. If unspecified, at most 10 assets will be returned. The
      * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* @@ -898,8 +898,8 @@ public Builder clearPageSize() { * * *
-     * Optional. Page token received from a previous `ListAssets` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListAssets` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListAssets` must match the call that provided the page
      * token.
      * 
@@ -923,8 +923,8 @@ public java.lang.String getPageToken() { * * *
-     * Optional. Page token received from a previous `ListAssets` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListAssets` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListAssets` must match the call that provided the page
      * token.
      * 
@@ -948,8 +948,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. Page token received from a previous `ListAssets` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListAssets` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListAssets` must match the call that provided the page
      * token.
      * 
@@ -972,8 +972,8 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. Page token received from a previous `ListAssets` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListAssets` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListAssets` must match the call that provided the page
      * token.
      * 
@@ -992,8 +992,8 @@ public Builder clearPageToken() { * * *
-     * Optional. Page token received from a previous `ListAssets` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListAssets` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListAssets` must match the call that provided the page
      * token.
      * 
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetsRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetsRequestOrBuilder.java index 9da97a8bac5f..3db57a4059cb 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetsRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListAssetsRequestOrBuilder.java @@ -58,8 +58,8 @@ public interface ListAssetsRequestOrBuilder * * *
-   * Optional. Maximum number of asset to return. The service may return fewer than
-   * this value. If unspecified, at most 10 assets will be returned. The
+   * Optional. Maximum number of asset to return. The service may return fewer
+   * than this value. If unspecified, at most 10 assets will be returned. The
    * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* @@ -73,8 +73,8 @@ public interface ListAssetsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListAssets` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListAssets` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListAssets` must match the call that provided the page
    * token.
    * 
@@ -88,8 +88,8 @@ public interface ListAssetsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListAssets` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListAssets` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListAssets` must match the call that provided the page
    * token.
    * 
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListContentRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListContentRequest.java index ad34841cb9fe..323a008cd57a 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListContentRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListContentRequest.java @@ -130,8 +130,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Maximum number of content to return. The service may return fewer than
-   * this value. If unspecified, at most 10 content will be returned. The
+   * Optional. Maximum number of content to return. The service may return fewer
+   * than this value. If unspecified, at most 10 content will be returned. The
    * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* @@ -150,8 +150,8 @@ public int getPageSize() { * * *
-   * Optional. Page token received from a previous `ListContent` call. Provide this
-   * to retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListContent` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListContent` must match the call that provided the page
    * token.
    * 
@@ -176,8 +176,8 @@ public java.lang.String getPageToken() { * * *
-   * Optional. Page token received from a previous `ListContent` call. Provide this
-   * to retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListContent` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListContent` must match the call that provided the page
    * token.
    * 
@@ -781,8 +781,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Maximum number of content to return. The service may return fewer than
-     * this value. If unspecified, at most 10 content will be returned. The
+     * Optional. Maximum number of content to return. The service may return fewer
+     * than this value. If unspecified, at most 10 content will be returned. The
      * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* @@ -798,8 +798,8 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of content to return. The service may return fewer than
-     * this value. If unspecified, at most 10 content will be returned. The
+     * Optional. Maximum number of content to return. The service may return fewer
+     * than this value. If unspecified, at most 10 content will be returned. The
      * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* @@ -818,8 +818,8 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of content to return. The service may return fewer than
-     * this value. If unspecified, at most 10 content will be returned. The
+     * Optional. Maximum number of content to return. The service may return fewer
+     * than this value. If unspecified, at most 10 content will be returned. The
      * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* @@ -839,8 +839,8 @@ public Builder clearPageSize() { * * *
-     * Optional. Page token received from a previous `ListContent` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListContent` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListContent` must match the call that provided the page
      * token.
      * 
@@ -864,8 +864,8 @@ public java.lang.String getPageToken() { * * *
-     * Optional. Page token received from a previous `ListContent` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListContent` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListContent` must match the call that provided the page
      * token.
      * 
@@ -889,8 +889,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. Page token received from a previous `ListContent` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListContent` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListContent` must match the call that provided the page
      * token.
      * 
@@ -913,8 +913,8 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. Page token received from a previous `ListContent` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListContent` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListContent` must match the call that provided the page
      * token.
      * 
@@ -933,8 +933,8 @@ public Builder clearPageToken() { * * *
-     * Optional. Page token received from a previous `ListContent` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListContent` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListContent` must match the call that provided the page
      * token.
      * 
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListContentRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListContentRequestOrBuilder.java index 941944d163af..48105a5f1aef 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListContentRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListContentRequestOrBuilder.java @@ -58,8 +58,8 @@ public interface ListContentRequestOrBuilder * * *
-   * Optional. Maximum number of content to return. The service may return fewer than
-   * this value. If unspecified, at most 10 content will be returned. The
+   * Optional. Maximum number of content to return. The service may return fewer
+   * than this value. If unspecified, at most 10 content will be returned. The
    * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* @@ -73,8 +73,8 @@ public interface ListContentRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListContent` call. Provide this
-   * to retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListContent` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListContent` must match the call that provided the page
    * token.
    * 
@@ -88,8 +88,8 @@ public interface ListContentRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListContent` call. Provide this
-   * to retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListContent` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListContent` must match the call that provided the page
    * token.
    * 
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScanJobsRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScanJobsRequest.java new file mode 100644 index 000000000000..6a0169c7cf49 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScanJobsRequest.java @@ -0,0 +1,952 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * List DataScanJobs request.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.ListDataScanJobsRequest} + */ +public final class ListDataScanJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.ListDataScanJobsRequest) + ListDataScanJobsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDataScanJobsRequest.newBuilder() to construct. + private ListDataScanJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataScanJobsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataScanJobsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScanJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScanJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.ListDataScanJobsRequest.class, + com.google.cloud.dataplex.v1.ListDataScanJobsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the parent environment:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * 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 parent environment:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * Optional. Maximum number of DataScanJobs to return. The service may return
+   * fewer than this value. If unspecified, at most 10 DataScanJobs will be
+   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional. Page token received from a previous `ListDataScanJobs` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListDataScanJobs` must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. Page token received from a previous `ListDataScanJobs` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListDataScanJobs` must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.ListDataScanJobsRequest)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.ListDataScanJobsRequest other = + (com.google.cloud.dataplex.v1.ListDataScanJobsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsRequest 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.dataplex.v1.ListDataScanJobsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsRequest 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.dataplex.v1.ListDataScanJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsRequest 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.dataplex.v1.ListDataScanJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsRequest 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.dataplex.v1.ListDataScanJobsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsRequest 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.dataplex.v1.ListDataScanJobsRequest 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; + } + /** + * + * + *
+   * List DataScanJobs request.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.ListDataScanJobsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.ListDataScanJobsRequest) + com.google.cloud.dataplex.v1.ListDataScanJobsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScanJobsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScanJobsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.ListDataScanJobsRequest.class, + com.google.cloud.dataplex.v1.ListDataScanJobsRequest.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.ListDataScanJobsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScanJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScanJobsRequest getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.ListDataScanJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScanJobsRequest build() { + com.google.cloud.dataplex.v1.ListDataScanJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScanJobsRequest buildPartial() { + com.google.cloud.dataplex.v1.ListDataScanJobsRequest result = + new com.google.cloud.dataplex.v1.ListDataScanJobsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.ListDataScanJobsRequest) { + return mergeFrom((com.google.cloud.dataplex.v1.ListDataScanJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.ListDataScanJobsRequest other) { + if (other == com.google.cloud.dataplex.v1.ListDataScanJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent environment:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * 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 parent environment:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * 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 parent environment:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * 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 parent environment:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * 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 parent environment:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. Maximum number of DataScanJobs to return. The service may return
+     * fewer than this value. If unspecified, at most 10 DataScanJobs will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. Maximum number of DataScanJobs to return. The service may return
+     * fewer than this value. If unspecified, at most 10 DataScanJobs will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maximum number of DataScanJobs to return. The service may return
+     * fewer than this value. If unspecified, at most 10 DataScanJobs will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. Page token received from a previous `ListDataScanJobs` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListDataScanJobs` must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Page token received from a previous `ListDataScanJobs` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListDataScanJobs` must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Page token received from a previous `ListDataScanJobs` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListDataScanJobs` must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. Page token received from a previous `ListDataScanJobs` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListDataScanJobs` must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Page token received from a previous `ListDataScanJobs` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListDataScanJobs` must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.ListDataScanJobsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.ListDataScanJobsRequest) + private static final com.google.cloud.dataplex.v1.ListDataScanJobsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.ListDataScanJobsRequest(); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataScanJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScanJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScanJobsRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScanJobsRequestOrBuilder.java new file mode 100644 index 000000000000..ca5590b71487 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScanJobsRequestOrBuilder.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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface ListDataScanJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.ListDataScanJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the parent environment:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * 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 parent environment:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Maximum number of DataScanJobs to return. The service may return
+   * fewer than this value. If unspecified, at most 10 DataScanJobs will be
+   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. Page token received from a previous `ListDataScanJobs` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListDataScanJobs` must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. Page token received from a previous `ListDataScanJobs` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListDataScanJobs` must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScanJobsResponse.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScanJobsResponse.java new file mode 100644 index 000000000000..b16286498b62 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScanJobsResponse.java @@ -0,0 +1,1114 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * List DataScanJobs response.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.ListDataScanJobsResponse} + */ +public final class ListDataScanJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.ListDataScanJobsResponse) + ListDataScanJobsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDataScanJobsResponse.newBuilder() to construct. + private ListDataScanJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataScanJobsResponse() { + dataScanJobs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataScanJobsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScanJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScanJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.ListDataScanJobsResponse.class, + com.google.cloud.dataplex.v1.ListDataScanJobsResponse.Builder.class); + } + + public static final int DATA_SCAN_JOBS_FIELD_NUMBER = 1; + private java.util.List dataScanJobs_; + /** + * + * + *
+   * DataScanJobs (metadata only) under a given dataScan.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + @java.lang.Override + public java.util.List getDataScanJobsList() { + return dataScanJobs_; + } + /** + * + * + *
+   * DataScanJobs (metadata only) under a given dataScan.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + @java.lang.Override + public java.util.List + getDataScanJobsOrBuilderList() { + return dataScanJobs_; + } + /** + * + * + *
+   * DataScanJobs (metadata only) under a given dataScan.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + @java.lang.Override + public int getDataScanJobsCount() { + return dataScanJobs_.size(); + } + /** + * + * + *
+   * DataScanJobs (metadata only) under a given dataScan.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanJob getDataScanJobs(int index) { + return dataScanJobs_.get(index); + } + /** + * + * + *
+   * DataScanJobs (metadata only) under a given dataScan.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanJobOrBuilder getDataScanJobsOrBuilder(int index) { + return dataScanJobs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * 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 < dataScanJobs_.size(); i++) { + output.writeMessage(1, dataScanJobs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dataScanJobs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataScanJobs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.ListDataScanJobsResponse)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.ListDataScanJobsResponse other = + (com.google.cloud.dataplex.v1.ListDataScanJobsResponse) obj; + + if (!getDataScanJobsList().equals(other.getDataScanJobsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDataScanJobsCount() > 0) { + hash = (37 * hash) + DATA_SCAN_JOBS_FIELD_NUMBER; + hash = (53 * hash) + getDataScanJobsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsResponse 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.dataplex.v1.ListDataScanJobsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsResponse 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.dataplex.v1.ListDataScanJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsResponse 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.dataplex.v1.ListDataScanJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsResponse 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.dataplex.v1.ListDataScanJobsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsResponse 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.dataplex.v1.ListDataScanJobsResponse 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; + } + /** + * + * + *
+   * List DataScanJobs response.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.ListDataScanJobsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.ListDataScanJobsResponse) + com.google.cloud.dataplex.v1.ListDataScanJobsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScanJobsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScanJobsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.ListDataScanJobsResponse.class, + com.google.cloud.dataplex.v1.ListDataScanJobsResponse.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.ListDataScanJobsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataScanJobsBuilder_ == null) { + dataScanJobs_ = java.util.Collections.emptyList(); + } else { + dataScanJobs_ = null; + dataScanJobsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScanJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScanJobsResponse getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.ListDataScanJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScanJobsResponse build() { + com.google.cloud.dataplex.v1.ListDataScanJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScanJobsResponse buildPartial() { + com.google.cloud.dataplex.v1.ListDataScanJobsResponse result = + new com.google.cloud.dataplex.v1.ListDataScanJobsResponse(this); + int from_bitField0_ = bitField0_; + if (dataScanJobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataScanJobs_ = java.util.Collections.unmodifiableList(dataScanJobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataScanJobs_ = dataScanJobs_; + } else { + result.dataScanJobs_ = dataScanJobsBuilder_.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.dataplex.v1.ListDataScanJobsResponse) { + return mergeFrom((com.google.cloud.dataplex.v1.ListDataScanJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.ListDataScanJobsResponse other) { + if (other == com.google.cloud.dataplex.v1.ListDataScanJobsResponse.getDefaultInstance()) + return this; + if (dataScanJobsBuilder_ == null) { + if (!other.dataScanJobs_.isEmpty()) { + if (dataScanJobs_.isEmpty()) { + dataScanJobs_ = other.dataScanJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataScanJobsIsMutable(); + dataScanJobs_.addAll(other.dataScanJobs_); + } + onChanged(); + } + } else { + if (!other.dataScanJobs_.isEmpty()) { + if (dataScanJobsBuilder_.isEmpty()) { + dataScanJobsBuilder_.dispose(); + dataScanJobsBuilder_ = null; + dataScanJobs_ = other.dataScanJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + dataScanJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataScanJobsFieldBuilder() + : null; + } else { + dataScanJobsBuilder_.addAllMessages(other.dataScanJobs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataplex.v1.DataScanJob m = + input.readMessage( + com.google.cloud.dataplex.v1.DataScanJob.parser(), extensionRegistry); + if (dataScanJobsBuilder_ == null) { + ensureDataScanJobsIsMutable(); + dataScanJobs_.add(m); + } else { + dataScanJobsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List dataScanJobs_ = + java.util.Collections.emptyList(); + + private void ensureDataScanJobsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataScanJobs_ = + new java.util.ArrayList(dataScanJobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanJob, + com.google.cloud.dataplex.v1.DataScanJob.Builder, + com.google.cloud.dataplex.v1.DataScanJobOrBuilder> + dataScanJobsBuilder_; + + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public java.util.List getDataScanJobsList() { + if (dataScanJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataScanJobs_); + } else { + return dataScanJobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public int getDataScanJobsCount() { + if (dataScanJobsBuilder_ == null) { + return dataScanJobs_.size(); + } else { + return dataScanJobsBuilder_.getCount(); + } + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public com.google.cloud.dataplex.v1.DataScanJob getDataScanJobs(int index) { + if (dataScanJobsBuilder_ == null) { + return dataScanJobs_.get(index); + } else { + return dataScanJobsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public Builder setDataScanJobs(int index, com.google.cloud.dataplex.v1.DataScanJob value) { + if (dataScanJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataScanJobsIsMutable(); + dataScanJobs_.set(index, value); + onChanged(); + } else { + dataScanJobsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public Builder setDataScanJobs( + int index, com.google.cloud.dataplex.v1.DataScanJob.Builder builderForValue) { + if (dataScanJobsBuilder_ == null) { + ensureDataScanJobsIsMutable(); + dataScanJobs_.set(index, builderForValue.build()); + onChanged(); + } else { + dataScanJobsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public Builder addDataScanJobs(com.google.cloud.dataplex.v1.DataScanJob value) { + if (dataScanJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataScanJobsIsMutable(); + dataScanJobs_.add(value); + onChanged(); + } else { + dataScanJobsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public Builder addDataScanJobs(int index, com.google.cloud.dataplex.v1.DataScanJob value) { + if (dataScanJobsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataScanJobsIsMutable(); + dataScanJobs_.add(index, value); + onChanged(); + } else { + dataScanJobsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public Builder addDataScanJobs( + com.google.cloud.dataplex.v1.DataScanJob.Builder builderForValue) { + if (dataScanJobsBuilder_ == null) { + ensureDataScanJobsIsMutable(); + dataScanJobs_.add(builderForValue.build()); + onChanged(); + } else { + dataScanJobsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public Builder addDataScanJobs( + int index, com.google.cloud.dataplex.v1.DataScanJob.Builder builderForValue) { + if (dataScanJobsBuilder_ == null) { + ensureDataScanJobsIsMutable(); + dataScanJobs_.add(index, builderForValue.build()); + onChanged(); + } else { + dataScanJobsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public Builder addAllDataScanJobs( + java.lang.Iterable values) { + if (dataScanJobsBuilder_ == null) { + ensureDataScanJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataScanJobs_); + onChanged(); + } else { + dataScanJobsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public Builder clearDataScanJobs() { + if (dataScanJobsBuilder_ == null) { + dataScanJobs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataScanJobsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public Builder removeDataScanJobs(int index) { + if (dataScanJobsBuilder_ == null) { + ensureDataScanJobsIsMutable(); + dataScanJobs_.remove(index); + onChanged(); + } else { + dataScanJobsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public com.google.cloud.dataplex.v1.DataScanJob.Builder getDataScanJobsBuilder(int index) { + return getDataScanJobsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public com.google.cloud.dataplex.v1.DataScanJobOrBuilder getDataScanJobsOrBuilder(int index) { + if (dataScanJobsBuilder_ == null) { + return dataScanJobs_.get(index); + } else { + return dataScanJobsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public java.util.List + getDataScanJobsOrBuilderList() { + if (dataScanJobsBuilder_ != null) { + return dataScanJobsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataScanJobs_); + } + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public com.google.cloud.dataplex.v1.DataScanJob.Builder addDataScanJobsBuilder() { + return getDataScanJobsFieldBuilder() + .addBuilder(com.google.cloud.dataplex.v1.DataScanJob.getDefaultInstance()); + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public com.google.cloud.dataplex.v1.DataScanJob.Builder addDataScanJobsBuilder(int index) { + return getDataScanJobsFieldBuilder() + .addBuilder(index, com.google.cloud.dataplex.v1.DataScanJob.getDefaultInstance()); + } + /** + * + * + *
+     * DataScanJobs (metadata only) under a given dataScan.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + public java.util.List + getDataScanJobsBuilderList() { + return getDataScanJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanJob, + com.google.cloud.dataplex.v1.DataScanJob.Builder, + com.google.cloud.dataplex.v1.DataScanJobOrBuilder> + getDataScanJobsFieldBuilder() { + if (dataScanJobsBuilder_ == null) { + dataScanJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanJob, + com.google.cloud.dataplex.v1.DataScanJob.Builder, + com.google.cloud.dataplex.v1.DataScanJobOrBuilder>( + dataScanJobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dataScanJobs_ = null; + } + return dataScanJobsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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.dataplex.v1.ListDataScanJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.ListDataScanJobsResponse) + private static final com.google.cloud.dataplex.v1.ListDataScanJobsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.ListDataScanJobsResponse(); + } + + public static com.google.cloud.dataplex.v1.ListDataScanJobsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataScanJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScanJobsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScanJobsResponseOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScanJobsResponseOrBuilder.java new file mode 100644 index 000000000000..21bc4fa5f157 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScanJobsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface ListDataScanJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.ListDataScanJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * DataScanJobs (metadata only) under a given dataScan.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + java.util.List getDataScanJobsList(); + /** + * + * + *
+   * DataScanJobs (metadata only) under a given dataScan.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + com.google.cloud.dataplex.v1.DataScanJob getDataScanJobs(int index); + /** + * + * + *
+   * DataScanJobs (metadata only) under a given dataScan.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + int getDataScanJobsCount(); + /** + * + * + *
+   * DataScanJobs (metadata only) under a given dataScan.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + java.util.List + getDataScanJobsOrBuilderList(); + /** + * + * + *
+   * DataScanJobs (metadata only) under a given dataScan.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + com.google.cloud.dataplex.v1.DataScanJobOrBuilder getDataScanJobsOrBuilder(int index); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScansRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScansRequest.java new file mode 100644 index 000000000000..2b6c593ae63b --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScansRequest.java @@ -0,0 +1,1304 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * List dataScans request.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.ListDataScansRequest} + */ +public final class ListDataScansRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.ListDataScansRequest) + ListDataScansRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDataScansRequest.newBuilder() to construct. + private ListDataScansRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataScansRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataScansRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScansRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScansRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.ListDataScansRequest.class, + com.google.cloud.dataplex.v1.ListDataScansRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. projects/{project}/locations/{location_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * 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. projects/{project}/locations/{location_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * Optional. Maximum number of dataScans to return. The service may return
+   * fewer than this value. If unspecified, at most 10 scans will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional. Page token received from a previous `ListDataScans` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
+   * provided to `ListDataScans` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. Page token received from a previous `ListDataScans` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
+   * provided to `ListDataScans` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Optional. Filter request.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. Filter request.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + * + * + *
+   * Optional. Order by fields (name or create_time) for the result.
+   * If not specified, the ordering is undefined.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. Order by fields (name or create_time) for the result.
+   * If not specified, the ordering is undefined.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.ListDataScansRequest)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.ListDataScansRequest other = + (com.google.cloud.dataplex.v1.ListDataScansRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.ListDataScansRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ListDataScansRequest 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.dataplex.v1.ListDataScansRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ListDataScansRequest 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.dataplex.v1.ListDataScansRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ListDataScansRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.ListDataScansRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ListDataScansRequest 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.dataplex.v1.ListDataScansRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ListDataScansRequest 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.dataplex.v1.ListDataScansRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ListDataScansRequest 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.dataplex.v1.ListDataScansRequest 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; + } + /** + * + * + *
+   * List dataScans request.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.ListDataScansRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.ListDataScansRequest) + com.google.cloud.dataplex.v1.ListDataScansRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScansRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScansRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.ListDataScansRequest.class, + com.google.cloud.dataplex.v1.ListDataScansRequest.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.ListDataScansRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScansRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScansRequest getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.ListDataScansRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScansRequest build() { + com.google.cloud.dataplex.v1.ListDataScansRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScansRequest buildPartial() { + com.google.cloud.dataplex.v1.ListDataScansRequest result = + new com.google.cloud.dataplex.v1.ListDataScansRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + 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.dataplex.v1.ListDataScansRequest) { + return mergeFrom((com.google.cloud.dataplex.v1.ListDataScansRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.ListDataScansRequest other) { + if (other == com.google.cloud.dataplex.v1.ListDataScansRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. projects/{project}/locations/{location_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * 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. projects/{project}/locations/{location_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * 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. projects/{project}/locations/{location_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * 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. projects/{project}/locations/{location_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * 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. projects/{project}/locations/{location_id}
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. Maximum number of dataScans to return. The service may return
+     * fewer than this value. If unspecified, at most 10 scans will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. Maximum number of dataScans to return. The service may return
+     * fewer than this value. If unspecified, at most 10 scans will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maximum number of dataScans to return. The service may return
+     * fewer than this value. If unspecified, at most 10 scans will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. Page token received from a previous `ListDataScans` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
+     * provided to `ListDataScans` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Page token received from a previous `ListDataScans` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
+     * provided to `ListDataScans` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Page token received from a previous `ListDataScans` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
+     * provided to `ListDataScans` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. Page token received from a previous `ListDataScans` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
+     * provided to `ListDataScans` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Page token received from a previous `ListDataScans` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
+     * provided to `ListDataScans` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. Filter request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Filter request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Filter request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. Filter request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filter request.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional. Order by fields (name or create_time) for the result.
+     * If not specified, the ordering is undefined.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Order by fields (name or create_time) for the result.
+     * If not specified, the ordering is undefined.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. Order by fields (name or create_time) for the result.
+     * If not specified, the ordering is undefined.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. Order by fields (name or create_time) for the result.
+     * If not specified, the ordering is undefined.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Order by fields (name or create_time) for the result.
+     * If not specified, the ordering is undefined.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.dataplex.v1.ListDataScansRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.ListDataScansRequest) + private static final com.google.cloud.dataplex.v1.ListDataScansRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.ListDataScansRequest(); + } + + public static com.google.cloud.dataplex.v1.ListDataScansRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataScansRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScansRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScansRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScansRequestOrBuilder.java new file mode 100644 index 000000000000..6b36eae208dd --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScansRequestOrBuilder.java @@ -0,0 +1,156 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface ListDataScansRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.ListDataScansRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. projects/{project}/locations/{location_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. projects/{project}/locations/{location_id}
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Maximum number of dataScans to return. The service may return
+   * fewer than this value. If unspecified, at most 10 scans will be returned.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. Page token received from a previous `ListDataScans` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
+   * provided to `ListDataScans` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. Page token received from a previous `ListDataScans` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
+   * provided to `ListDataScans` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter request.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. Filter request.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Order by fields (name or create_time) for the result.
+   * If not specified, the ordering is undefined.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional. Order by fields (name or create_time) for the result.
+   * If not specified, the ordering is undefined.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScansResponse.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScansResponse.java new file mode 100644 index 000000000000..d350eb99c60b --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScansResponse.java @@ -0,0 +1,1380 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * List dataScans response.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.ListDataScansResponse} + */ +public final class ListDataScansResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.ListDataScansResponse) + ListDataScansResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDataScansResponse.newBuilder() to construct. + private ListDataScansResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataScansResponse() { + dataScans_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataScansResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScansResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScansResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.ListDataScansResponse.class, + com.google.cloud.dataplex.v1.ListDataScansResponse.Builder.class); + } + + public static final int DATA_SCANS_FIELD_NUMBER = 1; + private java.util.List dataScans_; + /** + * + * + *
+   * DataScans (metadata only) under the given parent location.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + @java.lang.Override + public java.util.List getDataScansList() { + return dataScans_; + } + /** + * + * + *
+   * DataScans (metadata only) under the given parent location.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + @java.lang.Override + public java.util.List + getDataScansOrBuilderList() { + return dataScans_; + } + /** + * + * + *
+   * DataScans (metadata only) under the given parent location.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + @java.lang.Override + public int getDataScansCount() { + return dataScans_.size(); + } + /** + * + * + *
+   * DataScans (metadata only) under the given parent location.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan getDataScans(int index) { + return dataScans_.get(index); + } + /** + * + * + *
+   * DataScans (metadata only) under the given parent location.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanOrBuilder getDataScansOrBuilder(int index) { + return dataScans_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dataScans_.size(); i++) { + output.writeMessage(1, dataScans_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dataScans_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataScans_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.ListDataScansResponse)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.ListDataScansResponse other = + (com.google.cloud.dataplex.v1.ListDataScansResponse) obj; + + if (!getDataScansList().equals(other.getDataScansList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDataScansCount() > 0) { + hash = (37 * hash) + DATA_SCANS_FIELD_NUMBER; + hash = (53 * hash) + getDataScansList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.ListDataScansResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ListDataScansResponse 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.dataplex.v1.ListDataScansResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ListDataScansResponse 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.dataplex.v1.ListDataScansResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ListDataScansResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.ListDataScansResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ListDataScansResponse 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.dataplex.v1.ListDataScansResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ListDataScansResponse 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.dataplex.v1.ListDataScansResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ListDataScansResponse 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.dataplex.v1.ListDataScansResponse 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; + } + /** + * + * + *
+   * List dataScans response.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.ListDataScansResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.ListDataScansResponse) + com.google.cloud.dataplex.v1.ListDataScansResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScansResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScansResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.ListDataScansResponse.class, + com.google.cloud.dataplex.v1.ListDataScansResponse.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.ListDataScansResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataScansBuilder_ == null) { + dataScans_ = java.util.Collections.emptyList(); + } else { + dataScans_ = null; + dataScansBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_ListDataScansResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScansResponse getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.ListDataScansResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScansResponse build() { + com.google.cloud.dataplex.v1.ListDataScansResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScansResponse buildPartial() { + com.google.cloud.dataplex.v1.ListDataScansResponse result = + new com.google.cloud.dataplex.v1.ListDataScansResponse(this); + int from_bitField0_ = bitField0_; + if (dataScansBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataScans_ = java.util.Collections.unmodifiableList(dataScans_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataScans_ = dataScans_; + } else { + result.dataScans_ = dataScansBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + 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.dataplex.v1.ListDataScansResponse) { + return mergeFrom((com.google.cloud.dataplex.v1.ListDataScansResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.ListDataScansResponse other) { + if (other == com.google.cloud.dataplex.v1.ListDataScansResponse.getDefaultInstance()) + return this; + if (dataScansBuilder_ == null) { + if (!other.dataScans_.isEmpty()) { + if (dataScans_.isEmpty()) { + dataScans_ = other.dataScans_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataScansIsMutable(); + dataScans_.addAll(other.dataScans_); + } + onChanged(); + } + } else { + if (!other.dataScans_.isEmpty()) { + if (dataScansBuilder_.isEmpty()) { + dataScansBuilder_.dispose(); + dataScansBuilder_ = null; + dataScans_ = other.dataScans_; + bitField0_ = (bitField0_ & ~0x00000001); + dataScansBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataScansFieldBuilder() + : null; + } else { + dataScansBuilder_.addAllMessages(other.dataScans_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dataplex.v1.DataScan m = + input.readMessage( + com.google.cloud.dataplex.v1.DataScan.parser(), extensionRegistry); + if (dataScansBuilder_ == null) { + ensureDataScansIsMutable(); + dataScans_.add(m); + } else { + dataScansBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List dataScans_ = + java.util.Collections.emptyList(); + + private void ensureDataScansIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataScans_ = new java.util.ArrayList(dataScans_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan, + com.google.cloud.dataplex.v1.DataScan.Builder, + com.google.cloud.dataplex.v1.DataScanOrBuilder> + dataScansBuilder_; + + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public java.util.List getDataScansList() { + if (dataScansBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataScans_); + } else { + return dataScansBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public int getDataScansCount() { + if (dataScansBuilder_ == null) { + return dataScans_.size(); + } else { + return dataScansBuilder_.getCount(); + } + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public com.google.cloud.dataplex.v1.DataScan getDataScans(int index) { + if (dataScansBuilder_ == null) { + return dataScans_.get(index); + } else { + return dataScansBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public Builder setDataScans(int index, com.google.cloud.dataplex.v1.DataScan value) { + if (dataScansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataScansIsMutable(); + dataScans_.set(index, value); + onChanged(); + } else { + dataScansBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public Builder setDataScans( + int index, com.google.cloud.dataplex.v1.DataScan.Builder builderForValue) { + if (dataScansBuilder_ == null) { + ensureDataScansIsMutable(); + dataScans_.set(index, builderForValue.build()); + onChanged(); + } else { + dataScansBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public Builder addDataScans(com.google.cloud.dataplex.v1.DataScan value) { + if (dataScansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataScansIsMutable(); + dataScans_.add(value); + onChanged(); + } else { + dataScansBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public Builder addDataScans(int index, com.google.cloud.dataplex.v1.DataScan value) { + if (dataScansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataScansIsMutable(); + dataScans_.add(index, value); + onChanged(); + } else { + dataScansBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public Builder addDataScans(com.google.cloud.dataplex.v1.DataScan.Builder builderForValue) { + if (dataScansBuilder_ == null) { + ensureDataScansIsMutable(); + dataScans_.add(builderForValue.build()); + onChanged(); + } else { + dataScansBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public Builder addDataScans( + int index, com.google.cloud.dataplex.v1.DataScan.Builder builderForValue) { + if (dataScansBuilder_ == null) { + ensureDataScansIsMutable(); + dataScans_.add(index, builderForValue.build()); + onChanged(); + } else { + dataScansBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public Builder addAllDataScans( + java.lang.Iterable values) { + if (dataScansBuilder_ == null) { + ensureDataScansIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataScans_); + onChanged(); + } else { + dataScansBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public Builder clearDataScans() { + if (dataScansBuilder_ == null) { + dataScans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataScansBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public Builder removeDataScans(int index) { + if (dataScansBuilder_ == null) { + ensureDataScansIsMutable(); + dataScans_.remove(index); + onChanged(); + } else { + dataScansBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public com.google.cloud.dataplex.v1.DataScan.Builder getDataScansBuilder(int index) { + return getDataScansFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public com.google.cloud.dataplex.v1.DataScanOrBuilder getDataScansOrBuilder(int index) { + if (dataScansBuilder_ == null) { + return dataScans_.get(index); + } else { + return dataScansBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public java.util.List + getDataScansOrBuilderList() { + if (dataScansBuilder_ != null) { + return dataScansBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataScans_); + } + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public com.google.cloud.dataplex.v1.DataScan.Builder addDataScansBuilder() { + return getDataScansFieldBuilder() + .addBuilder(com.google.cloud.dataplex.v1.DataScan.getDefaultInstance()); + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public com.google.cloud.dataplex.v1.DataScan.Builder addDataScansBuilder(int index) { + return getDataScansFieldBuilder() + .addBuilder(index, com.google.cloud.dataplex.v1.DataScan.getDefaultInstance()); + } + /** + * + * + *
+     * DataScans (metadata only) under the given parent location.
+     * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + public java.util.List getDataScansBuilderList() { + return getDataScansFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan, + com.google.cloud.dataplex.v1.DataScan.Builder, + com.google.cloud.dataplex.v1.DataScanOrBuilder> + getDataScansFieldBuilder() { + if (dataScansBuilder_ == null) { + dataScansBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan, + com.google.cloud.dataplex.v1.DataScan.Builder, + com.google.cloud.dataplex.v1.DataScanOrBuilder>( + dataScans_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dataScans_ = null; + } + return dataScansBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(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.dataplex.v1.ListDataScansResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.ListDataScansResponse) + private static final com.google.cloud.dataplex.v1.ListDataScansResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.ListDataScansResponse(); + } + + public static com.google.cloud.dataplex.v1.ListDataScansResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataScansResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ListDataScansResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScansResponseOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScansResponseOrBuilder.java new file mode 100644 index 000000000000..40d7de786949 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListDataScansResponseOrBuilder.java @@ -0,0 +1,155 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface ListDataScansResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.ListDataScansResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * DataScans (metadata only) under the given parent location.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + java.util.List getDataScansList(); + /** + * + * + *
+   * DataScans (metadata only) under the given parent location.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + com.google.cloud.dataplex.v1.DataScan getDataScans(int index); + /** + * + * + *
+   * DataScans (metadata only) under the given parent location.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + int getDataScansCount(); + /** + * + * + *
+   * DataScans (metadata only) under the given parent location.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + java.util.List + getDataScansOrBuilderList(); + /** + * + * + *
+   * DataScans (metadata only) under the given parent location.
+   * 
+ * + * repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + com.google.cloud.dataplex.v1.DataScanOrBuilder getDataScansOrBuilder(int index); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntitiesRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntitiesRequest.java index 1cebef95e769..e335b729b462 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntitiesRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntitiesRequest.java @@ -332,9 +332,10 @@ public com.google.cloud.dataplex.v1.ListEntitiesRequest.EntityView getView() { * * *
-   * Optional. Maximum number of entities to return. The service may return fewer than
-   * this value. If unspecified, 100 entities will be returned by default. The
-   * maximum value is 500; larger values will will be truncated to 500.
+   * Optional. Maximum number of entities to return. The service may return
+   * fewer than this value. If unspecified, 100 entities will be returned by
+   * default. The maximum value is 500; larger values will will be truncated to
+   * 500.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -407,8 +408,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * Optional. The following filter parameters can be added to the URL to limit the
-   * entities returned by the API:
+   * Optional. The following filter parameters can be added to the URL to limit
+   * the entities returned by the API:
    * - Entity ID: ?filter="id=entityID"
    * - Asset ID: ?filter="asset=assetID"
    * - Data path ?filter="data_path=gs://my-bucket"
@@ -436,8 +437,8 @@ public java.lang.String getFilter() {
    *
    *
    * 
-   * Optional. The following filter parameters can be added to the URL to limit the
-   * entities returned by the API:
+   * Optional. The following filter parameters can be added to the URL to limit
+   * the entities returned by the API:
    * - Entity ID: ?filter="id=entityID"
    * - Asset ID: ?filter="asset=assetID"
    * - Data path ?filter="data_path=gs://my-bucket"
@@ -1111,9 +1112,10 @@ public Builder clearView() {
      *
      *
      * 
-     * Optional. Maximum number of entities to return. The service may return fewer than
-     * this value. If unspecified, 100 entities will be returned by default. The
-     * maximum value is 500; larger values will will be truncated to 500.
+     * Optional. Maximum number of entities to return. The service may return
+     * fewer than this value. If unspecified, 100 entities will be returned by
+     * default. The maximum value is 500; larger values will will be truncated to
+     * 500.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1128,9 +1130,10 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of entities to return. The service may return fewer than
-     * this value. If unspecified, 100 entities will be returned by default. The
-     * maximum value is 500; larger values will will be truncated to 500.
+     * Optional. Maximum number of entities to return. The service may return
+     * fewer than this value. If unspecified, 100 entities will be returned by
+     * default. The maximum value is 500; larger values will will be truncated to
+     * 500.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1148,9 +1151,10 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of entities to return. The service may return fewer than
-     * this value. If unspecified, 100 entities will be returned by default. The
-     * maximum value is 500; larger values will will be truncated to 500.
+     * Optional. Maximum number of entities to return. The service may return
+     * fewer than this value. If unspecified, 100 entities will be returned by
+     * default. The maximum value is 500; larger values will will be truncated to
+     * 500.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1290,8 +1294,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The following filter parameters can be added to the URL to limit the
-     * entities returned by the API:
+     * Optional. The following filter parameters can be added to the URL to limit
+     * the entities returned by the API:
      * - Entity ID: ?filter="id=entityID"
      * - Asset ID: ?filter="asset=assetID"
      * - Data path ?filter="data_path=gs://my-bucket"
@@ -1318,8 +1322,8 @@ public java.lang.String getFilter() {
      *
      *
      * 
-     * Optional. The following filter parameters can be added to the URL to limit the
-     * entities returned by the API:
+     * Optional. The following filter parameters can be added to the URL to limit
+     * the entities returned by the API:
      * - Entity ID: ?filter="id=entityID"
      * - Asset ID: ?filter="asset=assetID"
      * - Data path ?filter="data_path=gs://my-bucket"
@@ -1346,8 +1350,8 @@ public com.google.protobuf.ByteString getFilterBytes() {
      *
      *
      * 
-     * Optional. The following filter parameters can be added to the URL to limit the
-     * entities returned by the API:
+     * Optional. The following filter parameters can be added to the URL to limit
+     * the entities returned by the API:
      * - Entity ID: ?filter="id=entityID"
      * - Asset ID: ?filter="asset=assetID"
      * - Data path ?filter="data_path=gs://my-bucket"
@@ -1373,8 +1377,8 @@ public Builder setFilter(java.lang.String value) {
      *
      *
      * 
-     * Optional. The following filter parameters can be added to the URL to limit the
-     * entities returned by the API:
+     * Optional. The following filter parameters can be added to the URL to limit
+     * the entities returned by the API:
      * - Entity ID: ?filter="id=entityID"
      * - Asset ID: ?filter="asset=assetID"
      * - Data path ?filter="data_path=gs://my-bucket"
@@ -1396,8 +1400,8 @@ public Builder clearFilter() {
      *
      *
      * 
-     * Optional. The following filter parameters can be added to the URL to limit the
-     * entities returned by the API:
+     * Optional. The following filter parameters can be added to the URL to limit
+     * the entities returned by the API:
      * - Entity ID: ?filter="id=entityID"
      * - Asset ID: ?filter="asset=assetID"
      * - Data path ?filter="data_path=gs://my-bucket"
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntitiesRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntitiesRequestOrBuilder.java
index 3aea77381cd6..130eac7a3378 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntitiesRequestOrBuilder.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEntitiesRequestOrBuilder.java
@@ -87,9 +87,10 @@ public interface ListEntitiesRequestOrBuilder
    *
    *
    * 
-   * Optional. Maximum number of entities to return. The service may return fewer than
-   * this value. If unspecified, 100 entities will be returned by default. The
-   * maximum value is 500; larger values will will be truncated to 500.
+   * Optional. Maximum number of entities to return. The service may return
+   * fewer than this value. If unspecified, 100 entities will be returned by
+   * default. The maximum value is 500; larger values will will be truncated to
+   * 500.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -133,8 +134,8 @@ public interface ListEntitiesRequestOrBuilder * * *
-   * Optional. The following filter parameters can be added to the URL to limit the
-   * entities returned by the API:
+   * Optional. The following filter parameters can be added to the URL to limit
+   * the entities returned by the API:
    * - Entity ID: ?filter="id=entityID"
    * - Asset ID: ?filter="asset=assetID"
    * - Data path ?filter="data_path=gs://my-bucket"
@@ -151,8 +152,8 @@ public interface ListEntitiesRequestOrBuilder
    *
    *
    * 
-   * Optional. The following filter parameters can be added to the URL to limit the
-   * entities returned by the API:
+   * Optional. The following filter parameters can be added to the URL to limit
+   * the entities returned by the API:
    * - Entity ID: ?filter="id=entityID"
    * - Asset ID: ?filter="asset=assetID"
    * - Data path ?filter="data_path=gs://my-bucket"
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEnvironmentsRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEnvironmentsRequest.java
index 7ecfdc19ddc5..1064b42f02f6 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEnvironmentsRequest.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEnvironmentsRequest.java
@@ -131,9 +131,10 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    *
    * 
-   * Optional. Maximum number of environments to return. The service may return fewer than
-   * this value. If unspecified, at most 10 environments will be returned. The
-   * maximum value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of environments to return. The service may return
+   * fewer than this value. If unspecified, at most 10 environments will be
+   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -151,10 +152,10 @@ public int getPageSize() { * * *
-   * Optional. Page token received from a previous `ListEnvironments` call. Provide this
-   * to retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListEnvironments` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListEnvironments` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListEnvironments` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -177,10 +178,10 @@ public java.lang.String getPageToken() { * * *
-   * Optional. Page token received from a previous `ListEnvironments` call. Provide this
-   * to retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListEnvironments` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListEnvironments` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListEnvironments` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -841,9 +842,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Maximum number of environments to return. The service may return fewer than
-     * this value. If unspecified, at most 10 environments will be returned. The
-     * maximum value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of environments to return. The service may return
+     * fewer than this value. If unspecified, at most 10 environments will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -858,9 +860,10 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of environments to return. The service may return fewer than
-     * this value. If unspecified, at most 10 environments will be returned. The
-     * maximum value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of environments to return. The service may return
+     * fewer than this value. If unspecified, at most 10 environments will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -878,9 +881,10 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of environments to return. The service may return fewer than
-     * this value. If unspecified, at most 10 environments will be returned. The
-     * maximum value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of environments to return. The service may return
+     * fewer than this value. If unspecified, at most 10 environments will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -899,10 +903,10 @@ public Builder clearPageSize() { * * *
-     * Optional. Page token received from a previous `ListEnvironments` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListEnvironments` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListEnvironments` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListEnvironments` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -924,10 +928,10 @@ public java.lang.String getPageToken() { * * *
-     * Optional. Page token received from a previous `ListEnvironments` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListEnvironments` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListEnvironments` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListEnvironments` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -949,10 +953,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. Page token received from a previous `ListEnvironments` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListEnvironments` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListEnvironments` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListEnvironments` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -973,10 +977,10 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. Page token received from a previous `ListEnvironments` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListEnvironments` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListEnvironments` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListEnvironments` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -993,10 +997,10 @@ public Builder clearPageToken() { * * *
-     * Optional. Page token received from a previous `ListEnvironments` call. Provide this
-     * to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListEnvironments` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListEnvironments` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListEnvironments` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEnvironmentsRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEnvironmentsRequestOrBuilder.java index 88ec409c568a..f8690bc204f2 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEnvironmentsRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListEnvironmentsRequestOrBuilder.java @@ -58,9 +58,10 @@ public interface ListEnvironmentsRequestOrBuilder * * *
-   * Optional. Maximum number of environments to return. The service may return fewer than
-   * this value. If unspecified, at most 10 environments will be returned. The
-   * maximum value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of environments to return. The service may return
+   * fewer than this value. If unspecified, at most 10 environments will be
+   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -73,10 +74,10 @@ public interface ListEnvironmentsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListEnvironments` call. Provide this
-   * to retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListEnvironments` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListEnvironments` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListEnvironments` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -88,10 +89,10 @@ public interface ListEnvironmentsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListEnvironments` call. Provide this
-   * to retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListEnvironments` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListEnvironments` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListEnvironments` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListJobsRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListJobsRequest.java index 065d3d375200..fea3e2afbbfb 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListJobsRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListJobsRequest.java @@ -129,8 +129,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Maximum number of jobs to return. The service may return fewer than
-   * this value. If unspecified, at most 10 jobs will be returned. The
+   * Optional. Maximum number of jobs to return. The service may return fewer
+   * than this value. If unspecified, at most 10 jobs will be returned. The
    * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* @@ -149,8 +149,8 @@ public int getPageSize() { * * *
-   * Optional. Page token received from a previous `ListJobs` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListJobs` call. Provide this
+   * to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListJobs` must match the call that provided the page
    * token.
    * 
@@ -175,8 +175,8 @@ public java.lang.String getPageToken() { * * *
-   * Optional. Page token received from a previous `ListJobs` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListJobs` call. Provide this
+   * to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListJobs` must match the call that provided the page
    * token.
    * 
@@ -696,8 +696,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Maximum number of jobs to return. The service may return fewer than
-     * this value. If unspecified, at most 10 jobs will be returned. The
+     * Optional. Maximum number of jobs to return. The service may return fewer
+     * than this value. If unspecified, at most 10 jobs will be returned. The
      * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* @@ -713,8 +713,8 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of jobs to return. The service may return fewer than
-     * this value. If unspecified, at most 10 jobs will be returned. The
+     * Optional. Maximum number of jobs to return. The service may return fewer
+     * than this value. If unspecified, at most 10 jobs will be returned. The
      * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* @@ -733,8 +733,8 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of jobs to return. The service may return fewer than
-     * this value. If unspecified, at most 10 jobs will be returned. The
+     * Optional. Maximum number of jobs to return. The service may return fewer
+     * than this value. If unspecified, at most 10 jobs will be returned. The
      * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* @@ -754,8 +754,8 @@ public Builder clearPageSize() { * * *
-     * Optional. Page token received from a previous `ListJobs` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListJobs` call. Provide this
+     * to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListJobs` must match the call that provided the page
      * token.
      * 
@@ -779,8 +779,8 @@ public java.lang.String getPageToken() { * * *
-     * Optional. Page token received from a previous `ListJobs` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListJobs` call. Provide this
+     * to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListJobs` must match the call that provided the page
      * token.
      * 
@@ -804,8 +804,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. Page token received from a previous `ListJobs` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListJobs` call. Provide this
+     * to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListJobs` must match the call that provided the page
      * token.
      * 
@@ -828,8 +828,8 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. Page token received from a previous `ListJobs` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListJobs` call. Provide this
+     * to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListJobs` must match the call that provided the page
      * token.
      * 
@@ -848,8 +848,8 @@ public Builder clearPageToken() { * * *
-     * Optional. Page token received from a previous `ListJobs` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListJobs` call. Provide this
+     * to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListJobs` must match the call that provided the page
      * token.
      * 
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListJobsRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListJobsRequestOrBuilder.java index 3120e2a33666..814a55d7543f 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListJobsRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListJobsRequestOrBuilder.java @@ -58,8 +58,8 @@ public interface ListJobsRequestOrBuilder * * *
-   * Optional. Maximum number of jobs to return. The service may return fewer than
-   * this value. If unspecified, at most 10 jobs will be returned. The
+   * Optional. Maximum number of jobs to return. The service may return fewer
+   * than this value. If unspecified, at most 10 jobs will be returned. The
    * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* @@ -73,8 +73,8 @@ public interface ListJobsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListJobs` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListJobs` call. Provide this
+   * to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListJobs` must match the call that provided the page
    * token.
    * 
@@ -88,8 +88,8 @@ public interface ListJobsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListJobs` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListJobs` call. Provide this
+   * to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListJobs` must match the call that provided the page
    * token.
    * 
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakeActionsRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakeActionsRequest.java index 457e38376712..d3a785864755 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakeActionsRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakeActionsRequest.java @@ -129,9 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Maximum number of actions to return. The service may return fewer than this
-   * value. If unspecified, at most 10 actions will be returned. The maximum
-   * value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of actions to return. The service may return fewer
+   * than this value. If unspecified, at most 10 actions will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -149,10 +149,10 @@ public int getPageSize() { * * *
-   * Optional. Page token received from a previous `ListLakeActions` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListLakeActions` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListLakeActions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListLakeActions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -175,10 +175,10 @@ public java.lang.String getPageToken() { * * *
-   * Optional. Page token received from a previous `ListLakeActions` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListLakeActions` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListLakeActions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListLakeActions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -697,9 +697,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Maximum number of actions to return. The service may return fewer than this
-     * value. If unspecified, at most 10 actions will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of actions to return. The service may return fewer
+     * than this value. If unspecified, at most 10 actions will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -714,9 +714,9 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of actions to return. The service may return fewer than this
-     * value. If unspecified, at most 10 actions will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of actions to return. The service may return fewer
+     * than this value. If unspecified, at most 10 actions will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -734,9 +734,9 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of actions to return. The service may return fewer than this
-     * value. If unspecified, at most 10 actions will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of actions to return. The service may return fewer
+     * than this value. If unspecified, at most 10 actions will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -755,10 +755,10 @@ public Builder clearPageSize() { * * *
-     * Optional. Page token received from a previous `ListLakeActions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListLakeActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListLakeActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListLakeActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -780,10 +780,10 @@ public java.lang.String getPageToken() { * * *
-     * Optional. Page token received from a previous `ListLakeActions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListLakeActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListLakeActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListLakeActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -805,10 +805,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. Page token received from a previous `ListLakeActions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListLakeActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListLakeActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListLakeActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -829,10 +829,10 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. Page token received from a previous `ListLakeActions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListLakeActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListLakeActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListLakeActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -849,10 +849,10 @@ public Builder clearPageToken() { * * *
-     * Optional. Page token received from a previous `ListLakeActions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListLakeActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListLakeActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListLakeActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakeActionsRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakeActionsRequestOrBuilder.java index 679c7117c06f..cf447d28374d 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakeActionsRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakeActionsRequestOrBuilder.java @@ -58,9 +58,9 @@ public interface ListLakeActionsRequestOrBuilder * * *
-   * Optional. Maximum number of actions to return. The service may return fewer than this
-   * value. If unspecified, at most 10 actions will be returned. The maximum
-   * value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of actions to return. The service may return fewer
+   * than this value. If unspecified, at most 10 actions will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -73,10 +73,10 @@ public interface ListLakeActionsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListLakeActions` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListLakeActions` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListLakeActions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListLakeActions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -88,10 +88,10 @@ public interface ListLakeActionsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListLakeActions` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListLakeActions` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListLakeActions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListLakeActions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakesRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakesRequest.java index 9a86b392297d..1147edf002da 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakesRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakesRequest.java @@ -133,9 +133,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Maximum number of Lakes to return. The service may return fewer than this
-   * value. If unspecified, at most 10 lakes will be returned. The maximum
-   * value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of Lakes to return. The service may return fewer
+   * than this value. If unspecified, at most 10 lakes will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -153,8 +153,8 @@ public int getPageSize() { * * *
-   * Optional. Page token received from a previous `ListLakes` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListLakes` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListLakes` must match the call that provided the page token.
    * 
* @@ -178,8 +178,8 @@ public java.lang.String getPageToken() { * * *
-   * Optional. Page token received from a previous `ListLakes` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListLakes` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListLakes` must match the call that provided the page token.
    * 
* @@ -845,9 +845,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Maximum number of Lakes to return. The service may return fewer than this
-     * value. If unspecified, at most 10 lakes will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of Lakes to return. The service may return fewer
+     * than this value. If unspecified, at most 10 lakes will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -862,9 +862,9 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of Lakes to return. The service may return fewer than this
-     * value. If unspecified, at most 10 lakes will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of Lakes to return. The service may return fewer
+     * than this value. If unspecified, at most 10 lakes will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -882,9 +882,9 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of Lakes to return. The service may return fewer than this
-     * value. If unspecified, at most 10 lakes will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of Lakes to return. The service may return fewer
+     * than this value. If unspecified, at most 10 lakes will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -903,8 +903,8 @@ public Builder clearPageSize() { * * *
-     * Optional. Page token received from a previous `ListLakes` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListLakes` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListLakes` must match the call that provided the page token.
      * 
* @@ -927,8 +927,8 @@ public java.lang.String getPageToken() { * * *
-     * Optional. Page token received from a previous `ListLakes` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListLakes` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListLakes` must match the call that provided the page token.
      * 
* @@ -951,8 +951,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. Page token received from a previous `ListLakes` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListLakes` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListLakes` must match the call that provided the page token.
      * 
* @@ -974,8 +974,8 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. Page token received from a previous `ListLakes` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListLakes` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListLakes` must match the call that provided the page token.
      * 
* @@ -993,8 +993,8 @@ public Builder clearPageToken() { * * *
-     * Optional. Page token received from a previous `ListLakes` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListLakes` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListLakes` must match the call that provided the page token.
      * 
* diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakesRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakesRequestOrBuilder.java index 3728e3a357ad..bd84a9e80be8 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakesRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListLakesRequestOrBuilder.java @@ -60,9 +60,9 @@ public interface ListLakesRequestOrBuilder * * *
-   * Optional. Maximum number of Lakes to return. The service may return fewer than this
-   * value. If unspecified, at most 10 lakes will be returned. The maximum
-   * value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of Lakes to return. The service may return fewer
+   * than this value. If unspecified, at most 10 lakes will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -75,8 +75,8 @@ public interface ListLakesRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListLakes` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListLakes` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListLakes` must match the call that provided the page token.
    * 
* @@ -89,8 +89,8 @@ public interface ListLakesRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListLakes` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListLakes` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListLakes` must match the call that provided the page token.
    * 
* diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListPartitionsRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListPartitionsRequest.java index 5bb99e2e739b..40b635a7fe74 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListPartitionsRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListPartitionsRequest.java @@ -130,9 +130,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Maximum number of partitions to return. The service may return fewer than
-   * this value. If unspecified, 100 partitions will be returned by default. The
-   * maximum page size is 500; larger values will will be truncated to 500.
+   * Optional. Maximum number of partitions to return. The service may return
+   * fewer than this value. If unspecified, 100 partitions will be returned by
+   * default. The maximum page size is 500; larger values will will be truncated
+   * to 500.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -150,10 +151,10 @@ public int getPageSize() { * * *
-   * Optional. Page token received from a previous `ListPartitions` call. Provide
-   * this to retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListPartitions` must match the call that provided the
-   * page token.
+   * Optional. Page token received from a previous `ListPartitions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListPartitions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -176,10 +177,10 @@ public java.lang.String getPageToken() { * * *
-   * Optional. Page token received from a previous `ListPartitions` call. Provide
-   * this to retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListPartitions` must match the call that provided the
-   * page token.
+   * Optional. Page token received from a previous `ListPartitions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListPartitions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -205,8 +206,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * Optional. Filter the partitions returned to the caller using a key value pair
-   * expression. Supported operators and syntax:
+   * Optional. Filter the partitions returned to the caller using a key value
+   * pair expression. Supported operators and syntax:
    * - logic operators: AND, OR
    * - comparison operators: <, >, >=, <= ,=, !=
    * - LIKE operators:
@@ -242,8 +243,8 @@ public java.lang.String getFilter() {
    *
    *
    * 
-   * Optional. Filter the partitions returned to the caller using a key value pair
-   * expression. Supported operators and syntax:
+   * Optional. Filter the partitions returned to the caller using a key value
+   * pair expression. Supported operators and syntax:
    * - logic operators: AND, OR
    * - comparison operators: <, >, >=, <= ,=, !=
    * - LIKE operators:
@@ -797,9 +798,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. Maximum number of partitions to return. The service may return fewer than
-     * this value. If unspecified, 100 partitions will be returned by default. The
-     * maximum page size is 500; larger values will will be truncated to 500.
+     * Optional. Maximum number of partitions to return. The service may return
+     * fewer than this value. If unspecified, 100 partitions will be returned by
+     * default. The maximum page size is 500; larger values will will be truncated
+     * to 500.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -814,9 +816,10 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of partitions to return. The service may return fewer than
-     * this value. If unspecified, 100 partitions will be returned by default. The
-     * maximum page size is 500; larger values will will be truncated to 500.
+     * Optional. Maximum number of partitions to return. The service may return
+     * fewer than this value. If unspecified, 100 partitions will be returned by
+     * default. The maximum page size is 500; larger values will will be truncated
+     * to 500.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -834,9 +837,10 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of partitions to return. The service may return fewer than
-     * this value. If unspecified, 100 partitions will be returned by default. The
-     * maximum page size is 500; larger values will will be truncated to 500.
+     * Optional. Maximum number of partitions to return. The service may return
+     * fewer than this value. If unspecified, 100 partitions will be returned by
+     * default. The maximum page size is 500; larger values will will be truncated
+     * to 500.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -855,10 +859,10 @@ public Builder clearPageSize() { * * *
-     * Optional. Page token received from a previous `ListPartitions` call. Provide
-     * this to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListPartitions` must match the call that provided the
-     * page token.
+     * Optional. Page token received from a previous `ListPartitions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListPartitions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -880,10 +884,10 @@ public java.lang.String getPageToken() { * * *
-     * Optional. Page token received from a previous `ListPartitions` call. Provide
-     * this to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListPartitions` must match the call that provided the
-     * page token.
+     * Optional. Page token received from a previous `ListPartitions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListPartitions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -905,10 +909,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. Page token received from a previous `ListPartitions` call. Provide
-     * this to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListPartitions` must match the call that provided the
-     * page token.
+     * Optional. Page token received from a previous `ListPartitions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListPartitions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -929,10 +933,10 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. Page token received from a previous `ListPartitions` call. Provide
-     * this to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListPartitions` must match the call that provided the
-     * page token.
+     * Optional. Page token received from a previous `ListPartitions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListPartitions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -949,10 +953,10 @@ public Builder clearPageToken() { * * *
-     * Optional. Page token received from a previous `ListPartitions` call. Provide
-     * this to retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListPartitions` must match the call that provided the
-     * page token.
+     * Optional. Page token received from a previous `ListPartitions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListPartitions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -976,8 +980,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Filter the partitions returned to the caller using a key value pair
-     * expression. Supported operators and syntax:
+     * Optional. Filter the partitions returned to the caller using a key value
+     * pair expression. Supported operators and syntax:
      * - logic operators: AND, OR
      * - comparison operators: <, >, >=, <= ,=, !=
      * - LIKE operators:
@@ -1012,8 +1016,8 @@ public java.lang.String getFilter() {
      *
      *
      * 
-     * Optional. Filter the partitions returned to the caller using a key value pair
-     * expression. Supported operators and syntax:
+     * Optional. Filter the partitions returned to the caller using a key value
+     * pair expression. Supported operators and syntax:
      * - logic operators: AND, OR
      * - comparison operators: <, >, >=, <= ,=, !=
      * - LIKE operators:
@@ -1048,8 +1052,8 @@ public com.google.protobuf.ByteString getFilterBytes() {
      *
      *
      * 
-     * Optional. Filter the partitions returned to the caller using a key value pair
-     * expression. Supported operators and syntax:
+     * Optional. Filter the partitions returned to the caller using a key value
+     * pair expression. Supported operators and syntax:
      * - logic operators: AND, OR
      * - comparison operators: <, >, >=, <= ,=, !=
      * - LIKE operators:
@@ -1083,8 +1087,8 @@ public Builder setFilter(java.lang.String value) {
      *
      *
      * 
-     * Optional. Filter the partitions returned to the caller using a key value pair
-     * expression. Supported operators and syntax:
+     * Optional. Filter the partitions returned to the caller using a key value
+     * pair expression. Supported operators and syntax:
      * - logic operators: AND, OR
      * - comparison operators: <, >, >=, <= ,=, !=
      * - LIKE operators:
@@ -1114,8 +1118,8 @@ public Builder clearFilter() {
      *
      *
      * 
-     * Optional. Filter the partitions returned to the caller using a key value pair
-     * expression. Supported operators and syntax:
+     * Optional. Filter the partitions returned to the caller using a key value
+     * pair expression. Supported operators and syntax:
      * - logic operators: AND, OR
      * - comparison operators: <, >, >=, <= ,=, !=
      * - LIKE operators:
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListPartitionsRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListPartitionsRequestOrBuilder.java
index 2f644da8d011..7721242ffe5e 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListPartitionsRequestOrBuilder.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListPartitionsRequestOrBuilder.java
@@ -58,9 +58,10 @@ public interface ListPartitionsRequestOrBuilder
    *
    *
    * 
-   * Optional. Maximum number of partitions to return. The service may return fewer than
-   * this value. If unspecified, 100 partitions will be returned by default. The
-   * maximum page size is 500; larger values will will be truncated to 500.
+   * Optional. Maximum number of partitions to return. The service may return
+   * fewer than this value. If unspecified, 100 partitions will be returned by
+   * default. The maximum page size is 500; larger values will will be truncated
+   * to 500.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -73,10 +74,10 @@ public interface ListPartitionsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListPartitions` call. Provide
-   * this to retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListPartitions` must match the call that provided the
-   * page token.
+   * Optional. Page token received from a previous `ListPartitions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListPartitions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -88,10 +89,10 @@ public interface ListPartitionsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListPartitions` call. Provide
-   * this to retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListPartitions` must match the call that provided the
-   * page token.
+   * Optional. Page token received from a previous `ListPartitions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListPartitions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -104,8 +105,8 @@ public interface ListPartitionsRequestOrBuilder * * *
-   * Optional. Filter the partitions returned to the caller using a key value pair
-   * expression. Supported operators and syntax:
+   * Optional. Filter the partitions returned to the caller using a key value
+   * pair expression. Supported operators and syntax:
    * - logic operators: AND, OR
    * - comparison operators: <, >, >=, <= ,=, !=
    * - LIKE operators:
@@ -130,8 +131,8 @@ public interface ListPartitionsRequestOrBuilder
    *
    *
    * 
-   * Optional. Filter the partitions returned to the caller using a key value pair
-   * expression. Supported operators and syntax:
+   * Optional. Filter the partitions returned to the caller using a key value
+   * pair expression. Supported operators and syntax:
    * - logic operators: AND, OR
    * - comparison operators: <, >, >=, <= ,=, !=
    * - LIKE operators:
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListSessionsRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListSessionsRequest.java
index c39e491a2688..1a3b35ef2988 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListSessionsRequest.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListSessionsRequest.java
@@ -130,9 +130,10 @@ public com.google.protobuf.ByteString getParentBytes() {
    *
    *
    * 
-   * Optional. Maximum number of sessions to return. The service may return fewer than
-   * this value. If unspecified, at most 10 sessions will be returned. The
-   * maximum value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of sessions to return. The service may return
+   * fewer than this value. If unspecified, at most 10 sessions will be
+   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -150,8 +151,8 @@ public int getPageSize() { * * *
-   * Optional. Page token received from a previous `ListSessions` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListSessions` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListSessions` must match the call that provided the page
    * token.
    * 
@@ -176,8 +177,8 @@ public java.lang.String getPageToken() { * * *
-   * Optional. Page token received from a previous `ListSessions` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListSessions` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListSessions` must match the call that provided the page
    * token.
    * 
@@ -205,13 +206,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * Optional. Filter request. The following `mode` filter is supported to return only the
-   * sessions belonging to the requester when the mode is USER and return
-   * sessions of all the users when the mode is ADMIN. When no filter is sent
-   * default to USER mode.
-   * NOTE: When the mode is ADMIN, the requester should have
-   * `dataplex.environments.listAllSessions` permission to list all sessions,
-   * in absence of the permission, the request fails.
+   * Optional. Filter request. The following `mode` filter is supported to
+   * return only the sessions belonging to the requester when the mode is USER
+   * and return sessions of all the users when the mode is ADMIN. When no filter
+   * is sent default to USER mode. NOTE: When the mode is ADMIN, the requester
+   * should have `dataplex.environments.listAllSessions` permission to list all
+   * sessions, in absence of the permission, the request fails.
    * mode = ADMIN | USER
    * 
* @@ -235,13 +235,12 @@ public java.lang.String getFilter() { * * *
-   * Optional. Filter request. The following `mode` filter is supported to return only the
-   * sessions belonging to the requester when the mode is USER and return
-   * sessions of all the users when the mode is ADMIN. When no filter is sent
-   * default to USER mode.
-   * NOTE: When the mode is ADMIN, the requester should have
-   * `dataplex.environments.listAllSessions` permission to list all sessions,
-   * in absence of the permission, the request fails.
+   * Optional. Filter request. The following `mode` filter is supported to
+   * return only the sessions belonging to the requester when the mode is USER
+   * and return sessions of all the users when the mode is ADMIN. When no filter
+   * is sent default to USER mode. NOTE: When the mode is ADMIN, the requester
+   * should have `dataplex.environments.listAllSessions` permission to list all
+   * sessions, in absence of the permission, the request fails.
    * mode = ADMIN | USER
    * 
* @@ -783,9 +782,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Maximum number of sessions to return. The service may return fewer than
-     * this value. If unspecified, at most 10 sessions will be returned. The
-     * maximum value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of sessions to return. The service may return
+     * fewer than this value. If unspecified, at most 10 sessions will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -800,9 +800,10 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of sessions to return. The service may return fewer than
-     * this value. If unspecified, at most 10 sessions will be returned. The
-     * maximum value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of sessions to return. The service may return
+     * fewer than this value. If unspecified, at most 10 sessions will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -820,9 +821,10 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of sessions to return. The service may return fewer than
-     * this value. If unspecified, at most 10 sessions will be returned. The
-     * maximum value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of sessions to return. The service may return
+     * fewer than this value. If unspecified, at most 10 sessions will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -841,8 +843,8 @@ public Builder clearPageSize() { * * *
-     * Optional. Page token received from a previous `ListSessions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListSessions` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListSessions` must match the call that provided the page
      * token.
      * 
@@ -866,8 +868,8 @@ public java.lang.String getPageToken() { * * *
-     * Optional. Page token received from a previous `ListSessions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListSessions` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListSessions` must match the call that provided the page
      * token.
      * 
@@ -891,8 +893,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. Page token received from a previous `ListSessions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListSessions` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListSessions` must match the call that provided the page
      * token.
      * 
@@ -915,8 +917,8 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. Page token received from a previous `ListSessions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListSessions` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListSessions` must match the call that provided the page
      * token.
      * 
@@ -935,8 +937,8 @@ public Builder clearPageToken() { * * *
-     * Optional. Page token received from a previous `ListSessions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListSessions` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListSessions` must match the call that provided the page
      * token.
      * 
@@ -962,13 +964,12 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Filter request. The following `mode` filter is supported to return only the
-     * sessions belonging to the requester when the mode is USER and return
-     * sessions of all the users when the mode is ADMIN. When no filter is sent
-     * default to USER mode.
-     * NOTE: When the mode is ADMIN, the requester should have
-     * `dataplex.environments.listAllSessions` permission to list all sessions,
-     * in absence of the permission, the request fails.
+     * Optional. Filter request. The following `mode` filter is supported to
+     * return only the sessions belonging to the requester when the mode is USER
+     * and return sessions of all the users when the mode is ADMIN. When no filter
+     * is sent default to USER mode. NOTE: When the mode is ADMIN, the requester
+     * should have `dataplex.environments.listAllSessions` permission to list all
+     * sessions, in absence of the permission, the request fails.
      * mode = ADMIN | USER
      * 
* @@ -991,13 +992,12 @@ public java.lang.String getFilter() { * * *
-     * Optional. Filter request. The following `mode` filter is supported to return only the
-     * sessions belonging to the requester when the mode is USER and return
-     * sessions of all the users when the mode is ADMIN. When no filter is sent
-     * default to USER mode.
-     * NOTE: When the mode is ADMIN, the requester should have
-     * `dataplex.environments.listAllSessions` permission to list all sessions,
-     * in absence of the permission, the request fails.
+     * Optional. Filter request. The following `mode` filter is supported to
+     * return only the sessions belonging to the requester when the mode is USER
+     * and return sessions of all the users when the mode is ADMIN. When no filter
+     * is sent default to USER mode. NOTE: When the mode is ADMIN, the requester
+     * should have `dataplex.environments.listAllSessions` permission to list all
+     * sessions, in absence of the permission, the request fails.
      * mode = ADMIN | USER
      * 
* @@ -1020,13 +1020,12 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * Optional. Filter request. The following `mode` filter is supported to return only the
-     * sessions belonging to the requester when the mode is USER and return
-     * sessions of all the users when the mode is ADMIN. When no filter is sent
-     * default to USER mode.
-     * NOTE: When the mode is ADMIN, the requester should have
-     * `dataplex.environments.listAllSessions` permission to list all sessions,
-     * in absence of the permission, the request fails.
+     * Optional. Filter request. The following `mode` filter is supported to
+     * return only the sessions belonging to the requester when the mode is USER
+     * and return sessions of all the users when the mode is ADMIN. When no filter
+     * is sent default to USER mode. NOTE: When the mode is ADMIN, the requester
+     * should have `dataplex.environments.listAllSessions` permission to list all
+     * sessions, in absence of the permission, the request fails.
      * mode = ADMIN | USER
      * 
* @@ -1048,13 +1047,12 @@ public Builder setFilter(java.lang.String value) { * * *
-     * Optional. Filter request. The following `mode` filter is supported to return only the
-     * sessions belonging to the requester when the mode is USER and return
-     * sessions of all the users when the mode is ADMIN. When no filter is sent
-     * default to USER mode.
-     * NOTE: When the mode is ADMIN, the requester should have
-     * `dataplex.environments.listAllSessions` permission to list all sessions,
-     * in absence of the permission, the request fails.
+     * Optional. Filter request. The following `mode` filter is supported to
+     * return only the sessions belonging to the requester when the mode is USER
+     * and return sessions of all the users when the mode is ADMIN. When no filter
+     * is sent default to USER mode. NOTE: When the mode is ADMIN, the requester
+     * should have `dataplex.environments.listAllSessions` permission to list all
+     * sessions, in absence of the permission, the request fails.
      * mode = ADMIN | USER
      * 
* @@ -1072,13 +1070,12 @@ public Builder clearFilter() { * * *
-     * Optional. Filter request. The following `mode` filter is supported to return only the
-     * sessions belonging to the requester when the mode is USER and return
-     * sessions of all the users when the mode is ADMIN. When no filter is sent
-     * default to USER mode.
-     * NOTE: When the mode is ADMIN, the requester should have
-     * `dataplex.environments.listAllSessions` permission to list all sessions,
-     * in absence of the permission, the request fails.
+     * Optional. Filter request. The following `mode` filter is supported to
+     * return only the sessions belonging to the requester when the mode is USER
+     * and return sessions of all the users when the mode is ADMIN. When no filter
+     * is sent default to USER mode. NOTE: When the mode is ADMIN, the requester
+     * should have `dataplex.environments.listAllSessions` permission to list all
+     * sessions, in absence of the permission, the request fails.
      * mode = ADMIN | USER
      * 
* diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListSessionsRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListSessionsRequestOrBuilder.java index 9e2318ddeb53..cbbd4cfa4e9e 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListSessionsRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListSessionsRequestOrBuilder.java @@ -58,9 +58,10 @@ public interface ListSessionsRequestOrBuilder * * *
-   * Optional. Maximum number of sessions to return. The service may return fewer than
-   * this value. If unspecified, at most 10 sessions will be returned. The
-   * maximum value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of sessions to return. The service may return
+   * fewer than this value. If unspecified, at most 10 sessions will be
+   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -73,8 +74,8 @@ public interface ListSessionsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListSessions` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListSessions` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListSessions` must match the call that provided the page
    * token.
    * 
@@ -88,8 +89,8 @@ public interface ListSessionsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListSessions` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListSessions` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListSessions` must match the call that provided the page
    * token.
    * 
@@ -104,13 +105,12 @@ public interface ListSessionsRequestOrBuilder * * *
-   * Optional. Filter request. The following `mode` filter is supported to return only the
-   * sessions belonging to the requester when the mode is USER and return
-   * sessions of all the users when the mode is ADMIN. When no filter is sent
-   * default to USER mode.
-   * NOTE: When the mode is ADMIN, the requester should have
-   * `dataplex.environments.listAllSessions` permission to list all sessions,
-   * in absence of the permission, the request fails.
+   * Optional. Filter request. The following `mode` filter is supported to
+   * return only the sessions belonging to the requester when the mode is USER
+   * and return sessions of all the users when the mode is ADMIN. When no filter
+   * is sent default to USER mode. NOTE: When the mode is ADMIN, the requester
+   * should have `dataplex.environments.listAllSessions` permission to list all
+   * sessions, in absence of the permission, the request fails.
    * mode = ADMIN | USER
    * 
* @@ -123,13 +123,12 @@ public interface ListSessionsRequestOrBuilder * * *
-   * Optional. Filter request. The following `mode` filter is supported to return only the
-   * sessions belonging to the requester when the mode is USER and return
-   * sessions of all the users when the mode is ADMIN. When no filter is sent
-   * default to USER mode.
-   * NOTE: When the mode is ADMIN, the requester should have
-   * `dataplex.environments.listAllSessions` permission to list all sessions,
-   * in absence of the permission, the request fails.
+   * Optional. Filter request. The following `mode` filter is supported to
+   * return only the sessions belonging to the requester when the mode is USER
+   * and return sessions of all the users when the mode is ADMIN. When no filter
+   * is sent default to USER mode. NOTE: When the mode is ADMIN, the requester
+   * should have `dataplex.environments.listAllSessions` permission to list all
+   * sessions, in absence of the permission, the request fails.
    * mode = ADMIN | USER
    * 
* diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListTasksRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListTasksRequest.java index 084537427380..b770edaffac5 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListTasksRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListTasksRequest.java @@ -131,9 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Maximum number of tasks to return. The service may return fewer than this
-   * value. If unspecified, at most 10 tasks will be returned. The maximum
-   * value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of tasks to return. The service may return fewer
+   * than this value. If unspecified, at most 10 tasks will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -151,8 +151,8 @@ public int getPageSize() { * * *
-   * Optional. Page token received from a previous `ListZones` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListZones` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListZones` must match the call that provided the page token.
    * 
* @@ -176,8 +176,8 @@ public java.lang.String getPageToken() { * * *
-   * Optional. Page token received from a previous `ListZones` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListZones` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListZones` must match the call that provided the page token.
    * 
* @@ -838,9 +838,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Maximum number of tasks to return. The service may return fewer than this
-     * value. If unspecified, at most 10 tasks will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of tasks to return. The service may return fewer
+     * than this value. If unspecified, at most 10 tasks will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -855,9 +855,9 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of tasks to return. The service may return fewer than this
-     * value. If unspecified, at most 10 tasks will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of tasks to return. The service may return fewer
+     * than this value. If unspecified, at most 10 tasks will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -875,9 +875,9 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of tasks to return. The service may return fewer than this
-     * value. If unspecified, at most 10 tasks will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of tasks to return. The service may return fewer
+     * than this value. If unspecified, at most 10 tasks will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -896,8 +896,8 @@ public Builder clearPageSize() { * * *
-     * Optional. Page token received from a previous `ListZones` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListZones` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListZones` must match the call that provided the page token.
      * 
* @@ -920,8 +920,8 @@ public java.lang.String getPageToken() { * * *
-     * Optional. Page token received from a previous `ListZones` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListZones` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListZones` must match the call that provided the page token.
      * 
* @@ -944,8 +944,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. Page token received from a previous `ListZones` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListZones` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListZones` must match the call that provided the page token.
      * 
* @@ -967,8 +967,8 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. Page token received from a previous `ListZones` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListZones` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListZones` must match the call that provided the page token.
      * 
* @@ -986,8 +986,8 @@ public Builder clearPageToken() { * * *
-     * Optional. Page token received from a previous `ListZones` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListZones` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListZones` must match the call that provided the page token.
      * 
* diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListTasksRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListTasksRequestOrBuilder.java index 0c10dd8e545c..30e74cee5312 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListTasksRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListTasksRequestOrBuilder.java @@ -58,9 +58,9 @@ public interface ListTasksRequestOrBuilder * * *
-   * Optional. Maximum number of tasks to return. The service may return fewer than this
-   * value. If unspecified, at most 10 tasks will be returned. The maximum
-   * value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of tasks to return. The service may return fewer
+   * than this value. If unspecified, at most 10 tasks will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -73,8 +73,8 @@ public interface ListTasksRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListZones` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListZones` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListZones` must match the call that provided the page token.
    * 
* @@ -87,8 +87,8 @@ public interface ListTasksRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListZones` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListZones` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListZones` must match the call that provided the page token.
    * 
* diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZoneActionsRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZoneActionsRequest.java index 674cdcebc0b4..fcf5ff96b50c 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZoneActionsRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZoneActionsRequest.java @@ -129,9 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Maximum number of actions to return. The service may return fewer than this
-   * value. If unspecified, at most 10 actions will be returned. The maximum
-   * value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of actions to return. The service may return fewer
+   * than this value. If unspecified, at most 10 actions will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -149,10 +149,10 @@ public int getPageSize() { * * *
-   * Optional. Page token received from a previous `ListZoneActions` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListZoneActions` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListZoneActions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListZoneActions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -175,10 +175,10 @@ public java.lang.String getPageToken() { * * *
-   * Optional. Page token received from a previous `ListZoneActions` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListZoneActions` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListZoneActions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListZoneActions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -697,9 +697,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Maximum number of actions to return. The service may return fewer than this
-     * value. If unspecified, at most 10 actions will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of actions to return. The service may return fewer
+     * than this value. If unspecified, at most 10 actions will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -714,9 +714,9 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of actions to return. The service may return fewer than this
-     * value. If unspecified, at most 10 actions will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of actions to return. The service may return fewer
+     * than this value. If unspecified, at most 10 actions will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -734,9 +734,9 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of actions to return. The service may return fewer than this
-     * value. If unspecified, at most 10 actions will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of actions to return. The service may return fewer
+     * than this value. If unspecified, at most 10 actions will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -755,10 +755,10 @@ public Builder clearPageSize() { * * *
-     * Optional. Page token received from a previous `ListZoneActions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListZoneActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListZoneActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListZoneActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -780,10 +780,10 @@ public java.lang.String getPageToken() { * * *
-     * Optional. Page token received from a previous `ListZoneActions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListZoneActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListZoneActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListZoneActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -805,10 +805,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. Page token received from a previous `ListZoneActions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListZoneActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListZoneActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListZoneActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -829,10 +829,10 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. Page token received from a previous `ListZoneActions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListZoneActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListZoneActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListZoneActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -849,10 +849,10 @@ public Builder clearPageToken() { * * *
-     * Optional. Page token received from a previous `ListZoneActions` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
-     * provided to `ListZoneActions` must match the call that provided the page
-     * token.
+     * Optional. Page token received from a previous `ListZoneActions` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `ListZoneActions` must match the call that provided
+     * the page token.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZoneActionsRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZoneActionsRequestOrBuilder.java index 5c3ab3844e60..dc069bc2d3ee 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZoneActionsRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZoneActionsRequestOrBuilder.java @@ -58,9 +58,9 @@ public interface ListZoneActionsRequestOrBuilder * * *
-   * Optional. Maximum number of actions to return. The service may return fewer than this
-   * value. If unspecified, at most 10 actions will be returned. The maximum
-   * value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of actions to return. The service may return fewer
+   * than this value. If unspecified, at most 10 actions will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -73,10 +73,10 @@ public interface ListZoneActionsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListZoneActions` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListZoneActions` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListZoneActions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListZoneActions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -88,10 +88,10 @@ public interface ListZoneActionsRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListZoneActions` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
-   * provided to `ListZoneActions` must match the call that provided the page
-   * token.
+   * Optional. Page token received from a previous `ListZoneActions` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `ListZoneActions` must match the call that provided
+   * the page token.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZonesRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZonesRequest.java index 84f644df42e9..025806348541 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZonesRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZonesRequest.java @@ -131,9 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Maximum number of zones to return. The service may return fewer than this
-   * value. If unspecified, at most 10 zones will be returned. The maximum
-   * value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of zones to return. The service may return fewer
+   * than this value. If unspecified, at most 10 zones will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -151,8 +151,8 @@ public int getPageSize() { * * *
-   * Optional. Page token received from a previous `ListZones` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListZones` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListZones` must match the call that provided the page token.
    * 
* @@ -176,8 +176,8 @@ public java.lang.String getPageToken() { * * *
-   * Optional. Page token received from a previous `ListZones` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListZones` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListZones` must match the call that provided the page token.
    * 
* @@ -838,9 +838,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Maximum number of zones to return. The service may return fewer than this
-     * value. If unspecified, at most 10 zones will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of zones to return. The service may return fewer
+     * than this value. If unspecified, at most 10 zones will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -855,9 +855,9 @@ public int getPageSize() { * * *
-     * Optional. Maximum number of zones to return. The service may return fewer than this
-     * value. If unspecified, at most 10 zones will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of zones to return. The service may return fewer
+     * than this value. If unspecified, at most 10 zones will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -875,9 +875,9 @@ public Builder setPageSize(int value) { * * *
-     * Optional. Maximum number of zones to return. The service may return fewer than this
-     * value. If unspecified, at most 10 zones will be returned. The maximum
-     * value is 1000; values above 1000 will be coerced to 1000.
+     * Optional. Maximum number of zones to return. The service may return fewer
+     * than this value. If unspecified, at most 10 zones will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -896,8 +896,8 @@ public Builder clearPageSize() { * * *
-     * Optional. Page token received from a previous `ListZones` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListZones` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListZones` must match the call that provided the page token.
      * 
* @@ -920,8 +920,8 @@ public java.lang.String getPageToken() { * * *
-     * Optional. Page token received from a previous `ListZones` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListZones` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListZones` must match the call that provided the page token.
      * 
* @@ -944,8 +944,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. Page token received from a previous `ListZones` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListZones` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListZones` must match the call that provided the page token.
      * 
* @@ -967,8 +967,8 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. Page token received from a previous `ListZones` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListZones` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListZones` must match the call that provided the page token.
      * 
* @@ -986,8 +986,8 @@ public Builder clearPageToken() { * * *
-     * Optional. Page token received from a previous `ListZones` call. Provide this to
-     * retrieve the subsequent page. When paginating, all other parameters
+     * Optional. Page token received from a previous `ListZones` call. Provide
+     * this to retrieve the subsequent page. When paginating, all other parameters
      * provided to `ListZones` must match the call that provided the page token.
      * 
* diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZonesRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZonesRequestOrBuilder.java index a253f4f74cab..d054cac8ddd5 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZonesRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ListZonesRequestOrBuilder.java @@ -58,9 +58,9 @@ public interface ListZonesRequestOrBuilder * * *
-   * Optional. Maximum number of zones to return. The service may return fewer than this
-   * value. If unspecified, at most 10 zones will be returned. The maximum
-   * value is 1000; values above 1000 will be coerced to 1000.
+   * Optional. Maximum number of zones to return. The service may return fewer
+   * than this value. If unspecified, at most 10 zones will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -73,8 +73,8 @@ public interface ListZonesRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListZones` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListZones` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListZones` must match the call that provided the page token.
    * 
* @@ -87,8 +87,8 @@ public interface ListZonesRequestOrBuilder * * *
-   * Optional. Page token received from a previous `ListZones` call. Provide this to
-   * retrieve the subsequent page. When paginating, all other parameters
+   * Optional. Page token received from a previous `ListZones` call. Provide
+   * this to retrieve the subsequent page. When paginating, all other parameters
    * provided to `ListZones` must match the call that provided the page token.
    * 
* diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LogsProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LogsProto.java index 8022d16572e4..8d274906ed48 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LogsProto.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LogsProto.java @@ -63,6 +63,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataplex_v1_SessionEvent_QueryDetail_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataplex_v1_SessionEvent_QueryDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataScanEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_DimensionPassedEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_DimensionPassedEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -136,10 +152,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e\022\026\n\022ENGINE_UNSPECIFIED\020\000\022\r\n\tSPARK_SQL\020\001" + "\022\014\n\010BIGQUERY\020\002\"S\n\tEventType\022\032\n\026EVENT_TYP" + "E_UNSPECIFIED\020\000\022\t\n\005START\020\001\022\010\n\004STOP\020\002\022\t\n\005" - + "QUERY\020\003\022\n\n\006CREATE\020\004B\010\n\006detailBm\n\034com.goo" - + "gle.cloud.dataplex.v1B\tLogsProtoP\001Z@goog" - + "le.golang.org/genproto/googleapis/cloud/" - + "dataplex/v1;dataplexb\006proto3" + + "QUERY\020\003\022\n\n\006CREATE\020\004B\010\n\006detail\"\210\t\n\rDataSc" + + "anEvent\022\023\n\013data_source\030\001 \001(\t\022\016\n\006job_id\030\002" + + " \001(\t\022.\n\nstart_time\030\003 \001(\0132\032.google.protob" + + "uf.Timestamp\022,\n\010end_time\030\004 \001(\0132\032.google." + + "protobuf.Timestamp\022>\n\004type\030\005 \001(\01620.googl" + + "e.cloud.dataplex.v1.DataScanEvent.ScanTy" + + "pe\022<\n\005state\030\006 \001(\0162-.google.cloud.dataple" + + "x.v1.DataScanEvent.State\022\017\n\007message\030\007 \001(" + + "\t\022\024\n\014spec_version\030\010 \001(\t\022@\n\007trigger\030\t \001(\016" + + "2/.google.cloud.dataplex.v1.DataScanEven" + + "t.Trigger\022<\n\005scope\030\n \001(\0162-.google.cloud." + + "dataplex.v1.DataScanEvent.Scope\022Q\n\014data_" + + "profile\030e \001(\01329.google.cloud.dataplex.v1" + + ".DataScanEvent.DataProfileResultH\000\022Q\n\014da" + + "ta_quality\030f \001(\01329.google.cloud.dataplex" + + ".v1.DataScanEvent.DataQualityResultH\000\032&\n" + + "\021DataProfileResult\022\021\n\trow_count\030\001 \001(\003\032\330\001" + + "\n\021DataQualityResult\022\021\n\trow_count\030\001 \001(\003\022\016" + + "\n\006passed\030\002 \001(\010\022h\n\020dimension_passed\030\003 \003(\013" + + "2N.google.cloud.dataplex.v1.DataScanEven" + + "t.DataQualityResult.DimensionPassedEntry" + + "\0326\n\024DimensionPassedEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\010:\0028\001\"I\n\010ScanType\022\031\n\025SCAN_TYP" + + "E_UNSPECIFIED\020\000\022\020\n\014DATA_PROFILE\020\001\022\020\n\014DAT" + + "A_QUALITY\020\002\"U\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\013\n\007STARTED\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILE" + + "D\020\003\022\r\n\tCANCELLED\020\004\"?\n\007Trigger\022\027\n\023TRIGGER" + + "_UNSPECIFIED\020\000\022\r\n\tON_DEMAND\020\001\022\014\n\010SCHEDUL" + + "E\020\002\"9\n\005Scope\022\025\n\021SCOPE_UNSPECIFIED\020\000\022\010\n\004F" + + "ULL\020\001\022\017\n\013INCREMENTAL\020\002B\010\n\006resultBm\n\034com." + + "google.cloud.dataplex.v1B\tLogsProtoP\001Z@g" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/dataplex/v1;dataplexb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -249,6 +294,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "QueryId", "QueryText", "Engine", "Duration", "ResultSizeBytes", "DataProcessedBytes", }); + internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_dataplex_v1_DataScanEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor, + new java.lang.String[] { + "DataSource", + "JobId", + "StartTime", + "EndTime", + "Type", + "State", + "Message", + "SpecVersion", + "Trigger", + "Scope", + "DataProfile", + "DataQuality", + "Result", + }); + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_descriptor = + internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_descriptor, + new java.lang.String[] { + "RowCount", + }); + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_descriptor = + internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_descriptor, + new java.lang.String[] { + "RowCount", "Passed", "DimensionPassed", + }); + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_DimensionPassedEntry_descriptor = + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_DimensionPassedEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_DimensionPassedEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataProto.java index 3337b9f9904a..d3f176b37619 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataProto.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataProto.java @@ -111,6 +111,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataplex_v1_StorageFormat_JsonOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataplex_v1_StorageFormat_JsonOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_StorageFormat_IcebergOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_StorageFormat_IcebergOptions_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -225,7 +229,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "D\020\016\022\010\n\004NULL\020d\"F\n\004Mode\022\024\n\020MODE_UNSPECIFIE" + "D\020\000\022\014\n\010REQUIRED\020\001\022\014\n\010NULLABLE\020\002\022\014\n\010REPEA" + "TED\020\003\"F\n\016PartitionStyle\022\037\n\033PARTITION_STY" - + "LE_UNSPECIFIED\020\000\022\023\n\017HIVE_COMPATIBLE\020\001\"\362\005" + + "LE_UNSPECIFIED\020\000\022\023\n\017HIVE_COMPATIBLE\020\001\"\364\006" + "\n\rStorageFormat\022C\n\006format\030\001 \001(\0162..google" + ".cloud.dataplex.v1.StorageFormat.FormatB" + "\003\340A\003\022Z\n\022compression_format\030\002 \001(\01629.googl" @@ -234,68 +238,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022F\n\003csv\030\n \001(\01322.google.cloud.dataplex.v1" + ".StorageFormat.CsvOptionsB\003\340A\001H\000\022H\n\004json" + "\030\013 \001(\01323.google.cloud.dataplex.v1.Storag" - + "eFormat.JsonOptionsB\003\340A\001H\000\032i\n\nCsvOptions" + + "eFormat.JsonOptionsB\003\340A\001H\000\022N\n\007iceberg\030\014 " + + "\001(\01326.google.cloud.dataplex.v1.StorageFo" + + "rmat.IcebergOptionsB\003\340A\001H\000\032i\n\nCsvOptions" + "\022\025\n\010encoding\030\001 \001(\tB\003\340A\001\022\030\n\013header_rows\030\002" + " \001(\005B\003\340A\001\022\026\n\tdelimiter\030\003 \001(\tB\003\340A\001\022\022\n\005quo" + "te\030\004 \001(\tB\003\340A\001\032$\n\013JsonOptions\022\025\n\010encoding" - + "\030\001 \001(\tB\003\340A\001\"\253\001\n\006Format\022\026\n\022FORMAT_UNSPECI" - + "FIED\020\000\022\013\n\007PARQUET\020\001\022\010\n\004AVRO\020\002\022\007\n\003ORC\020\003\022\007" - + "\n\003CSV\020d\022\010\n\004JSON\020e\022\n\n\005IMAGE\020\310\001\022\n\n\005AUDIO\020\311" - + "\001\022\n\n\005VIDEO\020\312\001\022\t\n\004TEXT\020\313\001\022\r\n\010TFRECORD\020\314\001\022" - + "\n\n\005OTHER\020\350\007\022\014\n\007UNKNOWN\020\351\007\"L\n\021Compression" - + "Format\022\"\n\036COMPRESSION_FORMAT_UNSPECIFIED" - + "\020\000\022\010\n\004GZIP\020\002\022\t\n\005BZIP2\020\003B\t\n\007options*P\n\rSt" - + "orageSystem\022\036\n\032STORAGE_SYSTEM_UNSPECIFIE" - + "D\020\000\022\021\n\rCLOUD_STORAGE\020\001\022\014\n\010BIGQUERY\020\0022\211\016\n" - + "\017MetadataService\022\275\001\n\014CreateEntity\022-.goog" - + "le.cloud.dataplex.v1.CreateEntityRequest" - + "\032 .google.cloud.dataplex.v1.Entity\"\\\202\323\344\223" - + "\002F\"*\022\022*\022\022 * Output only. Identifies whether the user has requested cancellation * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. *
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1583,8 +1584,9 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1601,8 +1603,9 @@ public boolean getRequestedCancellation() { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1622,8 +1625,9 @@ public Builder setRequestedCancellation(boolean value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/OperationMetadataOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/OperationMetadataOrBuilder.java index 242e02b2f719..578878d2b616 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/OperationMetadataOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/OperationMetadataOrBuilder.java @@ -180,8 +180,9 @@ public interface OperationMetadataOrBuilder *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Partition.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Partition.java index af5d7dba912d..28c062b2d69e 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Partition.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Partition.java @@ -137,8 +137,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required. Immutable. The set of values representing the partition, which correspond to the
-   * partition schema defined in the parent entity.
+   * Required. Immutable. The set of values representing the partition, which
+   * correspond to the partition schema defined in the parent entity.
    * 
* * @@ -154,8 +154,8 @@ public com.google.protobuf.ProtocolStringList getValuesList() { * * *
-   * Required. Immutable. The set of values representing the partition, which correspond to the
-   * partition schema defined in the parent entity.
+   * Required. Immutable. The set of values representing the partition, which
+   * correspond to the partition schema defined in the parent entity.
    * 
* * @@ -171,8 +171,8 @@ public int getValuesCount() { * * *
-   * Required. Immutable. The set of values representing the partition, which correspond to the
-   * partition schema defined in the parent entity.
+   * Required. Immutable. The set of values representing the partition, which
+   * correspond to the partition schema defined in the parent entity.
    * 
* * @@ -189,8 +189,8 @@ public java.lang.String getValues(int index) { * * *
-   * Required. Immutable. The set of values representing the partition, which correspond to the
-   * partition schema defined in the parent entity.
+   * Required. Immutable. The set of values representing the partition, which
+   * correspond to the partition schema defined in the parent entity.
    * 
* * @@ -210,9 +210,9 @@ public com.google.protobuf.ByteString getValuesBytes(int index) { * * *
-   * Required. Immutable. The location of the entity data within the partition, for example,
-   * `gs://bucket/path/to/entity/key1=value1/key2=value2`.
-   * Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
+   * Required. Immutable. The location of the entity data within the partition,
+   * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
+   * `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
    * 
* * @@ -237,9 +237,9 @@ public java.lang.String getLocation() { * * *
-   * Required. Immutable. The location of the entity data within the partition, for example,
-   * `gs://bucket/path/to/entity/key1=value1/key2=value2`.
-   * Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
+   * Required. Immutable. The location of the entity data within the partition,
+   * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
+   * `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
    * 
* * @@ -273,7 +273,7 @@ public com.google.protobuf.ByteString getLocationBytes() { * string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.Partition.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=515 + * google/cloud/dataplex/v1/metadata.proto;l=506 * @return The etag. */ @java.lang.Override @@ -299,7 +299,7 @@ public java.lang.String getEtag() { * string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.Partition.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=515 + * google/cloud/dataplex/v1/metadata.proto;l=506 * @return The bytes for etag. */ @java.lang.Override @@ -880,8 +880,8 @@ private void ensureValuesIsMutable() { * * *
-     * Required. Immutable. The set of values representing the partition, which correspond to the
-     * partition schema defined in the parent entity.
+     * Required. Immutable. The set of values representing the partition, which
+     * correspond to the partition schema defined in the parent entity.
      * 
* * @@ -897,8 +897,8 @@ public com.google.protobuf.ProtocolStringList getValuesList() { * * *
-     * Required. Immutable. The set of values representing the partition, which correspond to the
-     * partition schema defined in the parent entity.
+     * Required. Immutable. The set of values representing the partition, which
+     * correspond to the partition schema defined in the parent entity.
      * 
* * @@ -914,8 +914,8 @@ public int getValuesCount() { * * *
-     * Required. Immutable. The set of values representing the partition, which correspond to the
-     * partition schema defined in the parent entity.
+     * Required. Immutable. The set of values representing the partition, which
+     * correspond to the partition schema defined in the parent entity.
      * 
* * @@ -932,8 +932,8 @@ public java.lang.String getValues(int index) { * * *
-     * Required. Immutable. The set of values representing the partition, which correspond to the
-     * partition schema defined in the parent entity.
+     * Required. Immutable. The set of values representing the partition, which
+     * correspond to the partition schema defined in the parent entity.
      * 
* * @@ -950,8 +950,8 @@ public com.google.protobuf.ByteString getValuesBytes(int index) { * * *
-     * Required. Immutable. The set of values representing the partition, which correspond to the
-     * partition schema defined in the parent entity.
+     * Required. Immutable. The set of values representing the partition, which
+     * correspond to the partition schema defined in the parent entity.
      * 
* * @@ -975,8 +975,8 @@ public Builder setValues(int index, java.lang.String value) { * * *
-     * Required. Immutable. The set of values representing the partition, which correspond to the
-     * partition schema defined in the parent entity.
+     * Required. Immutable. The set of values representing the partition, which
+     * correspond to the partition schema defined in the parent entity.
      * 
* * @@ -999,8 +999,8 @@ public Builder addValues(java.lang.String value) { * * *
-     * Required. Immutable. The set of values representing the partition, which correspond to the
-     * partition schema defined in the parent entity.
+     * Required. Immutable. The set of values representing the partition, which
+     * correspond to the partition schema defined in the parent entity.
      * 
* * @@ -1020,8 +1020,8 @@ public Builder addAllValues(java.lang.Iterable values) { * * *
-     * Required. Immutable. The set of values representing the partition, which correspond to the
-     * partition schema defined in the parent entity.
+     * Required. Immutable. The set of values representing the partition, which
+     * correspond to the partition schema defined in the parent entity.
      * 
* * @@ -1040,8 +1040,8 @@ public Builder clearValues() { * * *
-     * Required. Immutable. The set of values representing the partition, which correspond to the
-     * partition schema defined in the parent entity.
+     * Required. Immutable. The set of values representing the partition, which
+     * correspond to the partition schema defined in the parent entity.
      * 
* * @@ -1067,9 +1067,9 @@ public Builder addValuesBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Immutable. The location of the entity data within the partition, for example,
-     * `gs://bucket/path/to/entity/key1=value1/key2=value2`.
-     * Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
+     * Required. Immutable. The location of the entity data within the partition,
+     * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
+     * `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
      * 
* * @@ -1093,9 +1093,9 @@ public java.lang.String getLocation() { * * *
-     * Required. Immutable. The location of the entity data within the partition, for example,
-     * `gs://bucket/path/to/entity/key1=value1/key2=value2`.
-     * Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
+     * Required. Immutable. The location of the entity data within the partition,
+     * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
+     * `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
      * 
* * @@ -1119,9 +1119,9 @@ public com.google.protobuf.ByteString getLocationBytes() { * * *
-     * Required. Immutable. The location of the entity data within the partition, for example,
-     * `gs://bucket/path/to/entity/key1=value1/key2=value2`.
-     * Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
+     * Required. Immutable. The location of the entity data within the partition,
+     * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
+     * `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
      * 
* * @@ -1144,9 +1144,9 @@ public Builder setLocation(java.lang.String value) { * * *
-     * Required. Immutable. The location of the entity data within the partition, for example,
-     * `gs://bucket/path/to/entity/key1=value1/key2=value2`.
-     * Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
+     * Required. Immutable. The location of the entity data within the partition,
+     * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
+     * `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
      * 
* * @@ -1165,9 +1165,9 @@ public Builder clearLocation() { * * *
-     * Required. Immutable. The location of the entity data within the partition, for example,
-     * `gs://bucket/path/to/entity/key1=value1/key2=value2`.
-     * Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
+     * Required. Immutable. The location of the entity data within the partition,
+     * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
+     * `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
      * 
* * @@ -1199,7 +1199,7 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { * string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.Partition.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=515 + * google/cloud/dataplex/v1/metadata.proto;l=506 * @return The etag. */ @java.lang.Deprecated @@ -1224,7 +1224,7 @@ public java.lang.String getEtag() { * string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.Partition.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=515 + * google/cloud/dataplex/v1/metadata.proto;l=506 * @return The bytes for etag. */ @java.lang.Deprecated @@ -1249,7 +1249,7 @@ public com.google.protobuf.ByteString getEtagBytes() { * string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.Partition.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=515 + * google/cloud/dataplex/v1/metadata.proto;l=506 * @param value The etag to set. * @return This builder for chaining. */ @@ -1273,7 +1273,7 @@ public Builder setEtag(java.lang.String value) { * string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.Partition.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=515 + * google/cloud/dataplex/v1/metadata.proto;l=506 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1293,7 +1293,7 @@ public Builder clearEtag() { * string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.Partition.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=515 + * google/cloud/dataplex/v1/metadata.proto;l=506 * @param value The bytes for etag to set. * @return This builder for chaining. */ diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/PartitionOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/PartitionOrBuilder.java index 32e890d97078..c31d3e38cfa5 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/PartitionOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/PartitionOrBuilder.java @@ -64,8 +64,8 @@ public interface PartitionOrBuilder * * *
-   * Required. Immutable. The set of values representing the partition, which correspond to the
-   * partition schema defined in the parent entity.
+   * Required. Immutable. The set of values representing the partition, which
+   * correspond to the partition schema defined in the parent entity.
    * 
* * @@ -79,8 +79,8 @@ public interface PartitionOrBuilder * * *
-   * Required. Immutable. The set of values representing the partition, which correspond to the
-   * partition schema defined in the parent entity.
+   * Required. Immutable. The set of values representing the partition, which
+   * correspond to the partition schema defined in the parent entity.
    * 
* * @@ -94,8 +94,8 @@ public interface PartitionOrBuilder * * *
-   * Required. Immutable. The set of values representing the partition, which correspond to the
-   * partition schema defined in the parent entity.
+   * Required. Immutable. The set of values representing the partition, which
+   * correspond to the partition schema defined in the parent entity.
    * 
* * @@ -110,8 +110,8 @@ public interface PartitionOrBuilder * * *
-   * Required. Immutable. The set of values representing the partition, which correspond to the
-   * partition schema defined in the parent entity.
+   * Required. Immutable. The set of values representing the partition, which
+   * correspond to the partition schema defined in the parent entity.
    * 
* * @@ -127,9 +127,9 @@ public interface PartitionOrBuilder * * *
-   * Required. Immutable. The location of the entity data within the partition, for example,
-   * `gs://bucket/path/to/entity/key1=value1/key2=value2`.
-   * Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
+   * Required. Immutable. The location of the entity data within the partition,
+   * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
+   * `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
    * 
* * @@ -143,9 +143,9 @@ public interface PartitionOrBuilder * * *
-   * Required. Immutable. The location of the entity data within the partition, for example,
-   * `gs://bucket/path/to/entity/key1=value1/key2=value2`.
-   * Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
+   * Required. Immutable. The location of the entity data within the partition,
+   * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
+   * `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
    * 
* * @@ -166,7 +166,7 @@ public interface PartitionOrBuilder * string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.Partition.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=515 + * google/cloud/dataplex/v1/metadata.proto;l=506 * @return The etag. */ @java.lang.Deprecated @@ -181,7 +181,7 @@ public interface PartitionOrBuilder * string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.dataplex.v1.Partition.etag is deprecated. See - * google/cloud/dataplex/v1/metadata.proto;l=515 + * google/cloud/dataplex/v1/metadata.proto;l=506 * @return The bytes for etag. */ @java.lang.Deprecated diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ProcessingProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ProcessingProto.java new file mode 100644 index 000000000000..fca1262ec942 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ProcessingProto.java @@ -0,0 +1,146 @@ +/* + * 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/dataplex/v1/processing.proto + +package com.google.cloud.dataplex.v1; + +public final class ProcessingProto { + private ProcessingProto() {} + + 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_dataplex_v1_Trigger_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_Trigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_Trigger_OnDemand_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_Trigger_OnDemand_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_Trigger_Schedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_Trigger_Schedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_DataSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_DataSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_ScannedData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_ScannedData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_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/dataplex/v1/processing.pr" + + "oto\022\030google.cloud.dataplex.v1\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resou" + + "rce.proto\"\275\001\n\007Trigger\022?\n\ton_demand\030d \001(\013" + + "2*.google.cloud.dataplex.v1.Trigger.OnDe" + + "mandH\000\022>\n\010schedule\030e \001(\0132*.google.cloud." + + "dataplex.v1.Trigger.ScheduleH\000\032\n\n\010OnDema" + + "nd\032\035\n\010Schedule\022\021\n\004cron\030\001 \001(\tB\003\340A\002B\006\n\004mod" + + "e\"P\n\nDataSource\0228\n\006entity\030d \001(\tB&\340A\005\372A \n" + + "\036dataplex.googleapis.com/EntityH\000B\010\n\006sou" + + "rce\"\257\001\n\013ScannedData\022S\n\021incremental_field" + + "\030\001 \001(\01326.google.cloud.dataplex.v1.Scanne" + + "dData.IncrementalFieldH\000\032=\n\020IncrementalF" + + "ield\022\r\n\005field\030\001 \001(\t\022\r\n\005start\030\002 \001(\t\022\013\n\003en" + + "d\030\003 \001(\tB\014\n\ndata_rangeBs\n\034com.google.clou" + + "d.dataplex.v1B\017ProcessingProtoP\001Z@google" + + ".golang.org/genproto/googleapis/cloud/da" + + "taplex/v1;dataplexb\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(), + }); + internal_static_google_cloud_dataplex_v1_Trigger_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dataplex_v1_Trigger_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_Trigger_descriptor, + new java.lang.String[] { + "OnDemand", "Schedule", "Mode", + }); + internal_static_google_cloud_dataplex_v1_Trigger_OnDemand_descriptor = + internal_static_google_cloud_dataplex_v1_Trigger_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataplex_v1_Trigger_OnDemand_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_Trigger_OnDemand_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dataplex_v1_Trigger_Schedule_descriptor = + internal_static_google_cloud_dataplex_v1_Trigger_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_dataplex_v1_Trigger_Schedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_Trigger_Schedule_descriptor, + new java.lang.String[] { + "Cron", + }); + internal_static_google_cloud_dataplex_v1_DataSource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_dataplex_v1_DataSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_DataSource_descriptor, + new java.lang.String[] { + "Entity", "Source", + }); + internal_static_google_cloud_dataplex_v1_ScannedData_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_dataplex_v1_ScannedData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_ScannedData_descriptor, + new java.lang.String[] { + "IncrementalField", "DataRange", + }); + internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_descriptor = + internal_static_google_cloud_dataplex_v1_ScannedData_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_descriptor, + new java.lang.String[] { + "Field", "Start", "End", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/RunDataScanRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/RunDataScanRequest.java new file mode 100644 index 000000000000..70fff12639f8 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/RunDataScanRequest.java @@ -0,0 +1,657 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * Run DataScan Request
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.RunDataScanRequest} + */ +public final class RunDataScanRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.RunDataScanRequest) + RunDataScanRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunDataScanRequest.newBuilder() to construct. + private RunDataScanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunDataScanRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunDataScanRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_RunDataScanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_RunDataScanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.RunDataScanRequest.class, + com.google.cloud.dataplex.v1.RunDataScanRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the DataScan:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}.
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * Only on-demand DataScans are allowed.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the DataScan:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}.
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * Only on-demand DataScans are allowed.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.RunDataScanRequest)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.RunDataScanRequest other = + (com.google.cloud.dataplex.v1.RunDataScanRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.RunDataScanRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.RunDataScanRequest 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.dataplex.v1.RunDataScanRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.RunDataScanRequest 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.dataplex.v1.RunDataScanRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.RunDataScanRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.RunDataScanRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.RunDataScanRequest 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.dataplex.v1.RunDataScanRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.RunDataScanRequest 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.dataplex.v1.RunDataScanRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.RunDataScanRequest 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.dataplex.v1.RunDataScanRequest 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; + } + /** + * + * + *
+   * Run DataScan Request
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.RunDataScanRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.RunDataScanRequest) + com.google.cloud.dataplex.v1.RunDataScanRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_RunDataScanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_RunDataScanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.RunDataScanRequest.class, + com.google.cloud.dataplex.v1.RunDataScanRequest.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.RunDataScanRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_RunDataScanRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.RunDataScanRequest getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.RunDataScanRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.RunDataScanRequest build() { + com.google.cloud.dataplex.v1.RunDataScanRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.RunDataScanRequest buildPartial() { + com.google.cloud.dataplex.v1.RunDataScanRequest result = + new com.google.cloud.dataplex.v1.RunDataScanRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.RunDataScanRequest) { + return mergeFrom((com.google.cloud.dataplex.v1.RunDataScanRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.RunDataScanRequest other) { + if (other == com.google.cloud.dataplex.v1.RunDataScanRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the DataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * Only on-demand DataScans are allowed.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the DataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * Only on-demand DataScans are allowed.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the DataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * Only on-demand DataScans are allowed.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the DataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * Only on-demand DataScans are allowed.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the DataScan:
+     * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}.
+     * where `{project}` refers to a project_id or project_number and
+     * `location_id` refers to a GCP region.
+     * Only on-demand DataScans are allowed.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.RunDataScanRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.RunDataScanRequest) + private static final com.google.cloud.dataplex.v1.RunDataScanRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.RunDataScanRequest(); + } + + public static com.google.cloud.dataplex.v1.RunDataScanRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunDataScanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.RunDataScanRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/RunDataScanRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/RunDataScanRequestOrBuilder.java new file mode 100644 index 000000000000..33df5181caaa --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/RunDataScanRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface RunDataScanRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.RunDataScanRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the DataScan:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}.
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * Only on-demand DataScans are allowed.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the DataScan:
+   * projects/{project}/locations/{location_id}/dataScans/{data_scan_id}.
+   * where `{project}` refers to a project_id or project_number and
+   * `location_id` refers to a GCP region.
+   * Only on-demand DataScans are allowed.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/RunDataScanResponse.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/RunDataScanResponse.java new file mode 100644 index 000000000000..6a091bed7d30 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/RunDataScanResponse.java @@ -0,0 +1,697 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * Run DataScan Response.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.RunDataScanResponse} + */ +public final class RunDataScanResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.RunDataScanResponse) + RunDataScanResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunDataScanResponse.newBuilder() to construct. + private RunDataScanResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunDataScanResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunDataScanResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_RunDataScanResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_RunDataScanResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.RunDataScanResponse.class, + com.google.cloud.dataplex.v1.RunDataScanResponse.Builder.class); + } + + public static final int JOB_FIELD_NUMBER = 1; + private com.google.cloud.dataplex.v1.DataScanJob job_; + /** + * + * + *
+   * DataScanJob created by RunDataScan API.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + * + * @return Whether the job field is set. + */ + @java.lang.Override + public boolean hasJob() { + return job_ != null; + } + /** + * + * + *
+   * DataScanJob created by RunDataScan API.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + * + * @return The job. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanJob getJob() { + return job_ == null ? com.google.cloud.dataplex.v1.DataScanJob.getDefaultInstance() : job_; + } + /** + * + * + *
+   * DataScanJob created by RunDataScan API.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanJobOrBuilder getJobOrBuilder() { + return getJob(); + } + + 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 (job_ != null) { + output.writeMessage(1, getJob()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (job_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.RunDataScanResponse)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.RunDataScanResponse other = + (com.google.cloud.dataplex.v1.RunDataScanResponse) obj; + + if (hasJob() != other.hasJob()) return false; + if (hasJob()) { + if (!getJob().equals(other.getJob())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJob()) { + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.RunDataScanResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.RunDataScanResponse 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.dataplex.v1.RunDataScanResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.RunDataScanResponse 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.dataplex.v1.RunDataScanResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.RunDataScanResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.RunDataScanResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.RunDataScanResponse 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.dataplex.v1.RunDataScanResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.RunDataScanResponse 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.dataplex.v1.RunDataScanResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.RunDataScanResponse 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.dataplex.v1.RunDataScanResponse 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; + } + /** + * + * + *
+   * Run DataScan Response.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.RunDataScanResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.RunDataScanResponse) + com.google.cloud.dataplex.v1.RunDataScanResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_RunDataScanResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_RunDataScanResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.RunDataScanResponse.class, + com.google.cloud.dataplex.v1.RunDataScanResponse.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.RunDataScanResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (jobBuilder_ == null) { + job_ = null; + } else { + job_ = null; + jobBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_RunDataScanResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.RunDataScanResponse getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.RunDataScanResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.RunDataScanResponse build() { + com.google.cloud.dataplex.v1.RunDataScanResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.RunDataScanResponse buildPartial() { + com.google.cloud.dataplex.v1.RunDataScanResponse result = + new com.google.cloud.dataplex.v1.RunDataScanResponse(this); + if (jobBuilder_ == null) { + result.job_ = job_; + } else { + result.job_ = jobBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.RunDataScanResponse) { + return mergeFrom((com.google.cloud.dataplex.v1.RunDataScanResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.RunDataScanResponse other) { + if (other == com.google.cloud.dataplex.v1.RunDataScanResponse.getDefaultInstance()) + return this; + if (other.hasJob()) { + mergeJob(other.getJob()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.cloud.dataplex.v1.DataScanJob job_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanJob, + com.google.cloud.dataplex.v1.DataScanJob.Builder, + com.google.cloud.dataplex.v1.DataScanJobOrBuilder> + jobBuilder_; + /** + * + * + *
+     * DataScanJob created by RunDataScan API.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + * + * @return Whether the job field is set. + */ + public boolean hasJob() { + return jobBuilder_ != null || job_ != null; + } + /** + * + * + *
+     * DataScanJob created by RunDataScan API.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + * + * @return The job. + */ + public com.google.cloud.dataplex.v1.DataScanJob getJob() { + if (jobBuilder_ == null) { + return job_ == null ? com.google.cloud.dataplex.v1.DataScanJob.getDefaultInstance() : job_; + } else { + return jobBuilder_.getMessage(); + } + } + /** + * + * + *
+     * DataScanJob created by RunDataScan API.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + */ + public Builder setJob(com.google.cloud.dataplex.v1.DataScanJob value) { + if (jobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + job_ = value; + onChanged(); + } else { + jobBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * DataScanJob created by RunDataScan API.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + */ + public Builder setJob(com.google.cloud.dataplex.v1.DataScanJob.Builder builderForValue) { + if (jobBuilder_ == null) { + job_ = builderForValue.build(); + onChanged(); + } else { + jobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * DataScanJob created by RunDataScan API.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + */ + public Builder mergeJob(com.google.cloud.dataplex.v1.DataScanJob value) { + if (jobBuilder_ == null) { + if (job_ != null) { + job_ = + com.google.cloud.dataplex.v1.DataScanJob.newBuilder(job_) + .mergeFrom(value) + .buildPartial(); + } else { + job_ = value; + } + onChanged(); + } else { + jobBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * DataScanJob created by RunDataScan API.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + */ + public Builder clearJob() { + if (jobBuilder_ == null) { + job_ = null; + onChanged(); + } else { + job_ = null; + jobBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * DataScanJob created by RunDataScan API.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + */ + public com.google.cloud.dataplex.v1.DataScanJob.Builder getJobBuilder() { + + onChanged(); + return getJobFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * DataScanJob created by RunDataScan API.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + */ + public com.google.cloud.dataplex.v1.DataScanJobOrBuilder getJobOrBuilder() { + if (jobBuilder_ != null) { + return jobBuilder_.getMessageOrBuilder(); + } else { + return job_ == null ? com.google.cloud.dataplex.v1.DataScanJob.getDefaultInstance() : job_; + } + } + /** + * + * + *
+     * DataScanJob created by RunDataScan API.
+     * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanJob, + com.google.cloud.dataplex.v1.DataScanJob.Builder, + com.google.cloud.dataplex.v1.DataScanJobOrBuilder> + getJobFieldBuilder() { + if (jobBuilder_ == null) { + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScanJob, + com.google.cloud.dataplex.v1.DataScanJob.Builder, + com.google.cloud.dataplex.v1.DataScanJobOrBuilder>( + getJob(), getParentForChildren(), isClean()); + job_ = null; + } + return jobBuilder_; + } + + @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.dataplex.v1.RunDataScanResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.RunDataScanResponse) + private static final com.google.cloud.dataplex.v1.RunDataScanResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.RunDataScanResponse(); + } + + public static com.google.cloud.dataplex.v1.RunDataScanResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunDataScanResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.RunDataScanResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/RunDataScanResponseOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/RunDataScanResponseOrBuilder.java new file mode 100644 index 000000000000..b448f3526097 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/RunDataScanResponseOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface RunDataScanResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.RunDataScanResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * DataScanJob created by RunDataScan API.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + * + * @return Whether the job field is set. + */ + boolean hasJob(); + /** + * + * + *
+   * DataScanJob created by RunDataScan API.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + * + * @return The job. + */ + com.google.cloud.dataplex.v1.DataScanJob getJob(); + /** + * + * + *
+   * DataScanJob created by RunDataScan API.
+   * 
+ * + * .google.cloud.dataplex.v1.DataScanJob job = 1; + */ + com.google.cloud.dataplex.v1.DataScanJobOrBuilder getJobOrBuilder(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ScannedData.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ScannedData.java new file mode 100644 index 000000000000..4006565f9f77 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ScannedData.java @@ -0,0 +1,1864 @@ +/* + * 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/dataplex/v1/processing.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * The data scanned during processing (e.g. in incremental DataScan)
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.ScannedData} + */ +public final class ScannedData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.ScannedData) + ScannedDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ScannedData.newBuilder() to construct. + private ScannedData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ScannedData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ScannedData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_ScannedData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_ScannedData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.ScannedData.class, + com.google.cloud.dataplex.v1.ScannedData.Builder.class); + } + + public interface IncrementalFieldOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.ScannedData.IncrementalField) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The field that contains values which monotonically increases over time
+     * (e.g. timestamp).
+     * 
+ * + * string field = 1; + * + * @return The field. + */ + java.lang.String getField(); + /** + * + * + *
+     * The field that contains values which monotonically increases over time
+     * (e.g. timestamp).
+     * 
+ * + * string field = 1; + * + * @return The bytes for field. + */ + com.google.protobuf.ByteString getFieldBytes(); + + /** + * + * + *
+     * Value that marks the start of the range
+     * 
+ * + * string start = 2; + * + * @return The start. + */ + java.lang.String getStart(); + /** + * + * + *
+     * Value that marks the start of the range
+     * 
+ * + * string start = 2; + * + * @return The bytes for start. + */ + com.google.protobuf.ByteString getStartBytes(); + + /** + * + * + *
+     * Value that marks the end of the range
+     * 
+ * + * string end = 3; + * + * @return The end. + */ + java.lang.String getEnd(); + /** + * + * + *
+     * Value that marks the end of the range
+     * 
+ * + * string end = 3; + * + * @return The bytes for end. + */ + com.google.protobuf.ByteString getEndBytes(); + } + /** + * + * + *
+   * A data range denoted by a pair of start/end values of a field.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.ScannedData.IncrementalField} + */ + public static final class IncrementalField extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.ScannedData.IncrementalField) + IncrementalFieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use IncrementalField.newBuilder() to construct. + private IncrementalField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IncrementalField() { + field_ = ""; + start_ = ""; + end_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IncrementalField(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.ScannedData.IncrementalField.class, + com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder.class); + } + + public static final int FIELD_FIELD_NUMBER = 1; + private volatile java.lang.Object field_; + /** + * + * + *
+     * The field that contains values which monotonically increases over time
+     * (e.g. timestamp).
+     * 
+ * + * string field = 1; + * + * @return The field. + */ + @java.lang.Override + public java.lang.String getField() { + java.lang.Object ref = field_; + 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(); + field_ = s; + return s; + } + } + /** + * + * + *
+     * The field that contains values which monotonically increases over time
+     * (e.g. timestamp).
+     * 
+ * + * string field = 1; + * + * @return The bytes for field. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_FIELD_NUMBER = 2; + private volatile java.lang.Object start_; + /** + * + * + *
+     * Value that marks the start of the range
+     * 
+ * + * string start = 2; + * + * @return The start. + */ + @java.lang.Override + public java.lang.String getStart() { + java.lang.Object ref = start_; + 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(); + start_ = s; + return s; + } + } + /** + * + * + *
+     * Value that marks the start of the range
+     * 
+ * + * string start = 2; + * + * @return The bytes for start. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartBytes() { + java.lang.Object ref = start_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + start_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int END_FIELD_NUMBER = 3; + private volatile java.lang.Object end_; + /** + * + * + *
+     * Value that marks the end of the range
+     * 
+ * + * string end = 3; + * + * @return The end. + */ + @java.lang.Override + public java.lang.String getEnd() { + java.lang.Object ref = end_; + 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(); + end_ = s; + return s; + } + } + /** + * + * + *
+     * Value that marks the end of the range
+     * 
+ * + * string end = 3; + * + * @return The bytes for end. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndBytes() { + java.lang.Object ref = end_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + end_ = 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(field_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(start_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, start_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(end_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, end_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(start_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, start_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(end_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, end_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.ScannedData.IncrementalField)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.ScannedData.IncrementalField other = + (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) obj; + + if (!getField().equals(other.getField())) return false; + if (!getStart().equals(other.getStart())) return false; + if (!getEnd().equals(other.getEnd())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + getStart().hashCode(); + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + getEnd().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField 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.dataplex.v1.ScannedData.IncrementalField parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField 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.dataplex.v1.ScannedData.IncrementalField parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField 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.dataplex.v1.ScannedData.IncrementalField parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField 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.dataplex.v1.ScannedData.IncrementalField parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField 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.dataplex.v1.ScannedData.IncrementalField 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 data range denoted by a pair of start/end values of a field.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.ScannedData.IncrementalField} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.ScannedData.IncrementalField) + com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.ScannedData.IncrementalField.class, + com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.ScannedData.IncrementalField.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + field_ = ""; + + start_ = ""; + + end_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData.IncrementalField getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData.IncrementalField build() { + com.google.cloud.dataplex.v1.ScannedData.IncrementalField result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData.IncrementalField buildPartial() { + com.google.cloud.dataplex.v1.ScannedData.IncrementalField result = + new com.google.cloud.dataplex.v1.ScannedData.IncrementalField(this); + result.field_ = field_; + result.start_ = start_; + result.end_ = end_; + 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.dataplex.v1.ScannedData.IncrementalField) { + return mergeFrom((com.google.cloud.dataplex.v1.ScannedData.IncrementalField) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.ScannedData.IncrementalField other) { + if (other == com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance()) + return this; + if (!other.getField().isEmpty()) { + field_ = other.field_; + onChanged(); + } + if (!other.getStart().isEmpty()) { + start_ = other.start_; + onChanged(); + } + if (!other.getEnd().isEmpty()) { + end_ = other.end_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + field_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + start_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + end_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object field_ = ""; + /** + * + * + *
+       * The field that contains values which monotonically increases over time
+       * (e.g. timestamp).
+       * 
+ * + * string field = 1; + * + * @return The field. + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The field that contains values which monotonically increases over time
+       * (e.g. timestamp).
+       * 
+ * + * string field = 1; + * + * @return The bytes for field. + */ + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The field that contains values which monotonically increases over time
+       * (e.g. timestamp).
+       * 
+ * + * string field = 1; + * + * @param value The field to set. + * @return This builder for chaining. + */ + public Builder setField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + field_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The field that contains values which monotonically increases over time
+       * (e.g. timestamp).
+       * 
+ * + * string field = 1; + * + * @return This builder for chaining. + */ + public Builder clearField() { + + field_ = getDefaultInstance().getField(); + onChanged(); + return this; + } + /** + * + * + *
+       * The field that contains values which monotonically increases over time
+       * (e.g. timestamp).
+       * 
+ * + * string field = 1; + * + * @param value The bytes for field to set. + * @return This builder for chaining. + */ + public Builder setFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + field_ = value; + onChanged(); + return this; + } + + private java.lang.Object start_ = ""; + /** + * + * + *
+       * Value that marks the start of the range
+       * 
+ * + * string start = 2; + * + * @return The start. + */ + public java.lang.String getStart() { + java.lang.Object ref = start_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + start_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Value that marks the start of the range
+       * 
+ * + * string start = 2; + * + * @return The bytes for start. + */ + public com.google.protobuf.ByteString getStartBytes() { + java.lang.Object ref = start_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + start_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Value that marks the start of the range
+       * 
+ * + * string start = 2; + * + * @param value The start to set. + * @return This builder for chaining. + */ + public Builder setStart(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + start_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Value that marks the start of the range
+       * 
+ * + * string start = 2; + * + * @return This builder for chaining. + */ + public Builder clearStart() { + + start_ = getDefaultInstance().getStart(); + onChanged(); + return this; + } + /** + * + * + *
+       * Value that marks the start of the range
+       * 
+ * + * string start = 2; + * + * @param value The bytes for start to set. + * @return This builder for chaining. + */ + public Builder setStartBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + start_ = value; + onChanged(); + return this; + } + + private java.lang.Object end_ = ""; + /** + * + * + *
+       * Value that marks the end of the range
+       * 
+ * + * string end = 3; + * + * @return The end. + */ + public java.lang.String getEnd() { + java.lang.Object ref = end_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + end_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Value that marks the end of the range
+       * 
+ * + * string end = 3; + * + * @return The bytes for end. + */ + public com.google.protobuf.ByteString getEndBytes() { + java.lang.Object ref = end_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + end_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Value that marks the end of the range
+       * 
+ * + * string end = 3; + * + * @param value The end to set. + * @return This builder for chaining. + */ + public Builder setEnd(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + end_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Value that marks the end of the range
+       * 
+ * + * string end = 3; + * + * @return This builder for chaining. + */ + public Builder clearEnd() { + + end_ = getDefaultInstance().getEnd(); + onChanged(); + return this; + } + /** + * + * + *
+       * Value that marks the end of the range
+       * 
+ * + * string end = 3; + * + * @param value The bytes for end to set. + * @return This builder for chaining. + */ + public Builder setEndBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + end_ = 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.dataplex.v1.ScannedData.IncrementalField) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.ScannedData.IncrementalField) + private static final com.google.cloud.dataplex.v1.ScannedData.IncrementalField DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.ScannedData.IncrementalField(); + } + + public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IncrementalField parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData.IncrementalField getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int dataRangeCase_ = 0; + private java.lang.Object dataRange_; + + public enum DataRangeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INCREMENTAL_FIELD(1), + DATARANGE_NOT_SET(0); + private final int value; + + private DataRangeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataRangeCase valueOf(int value) { + return forNumber(value); + } + + public static DataRangeCase forNumber(int value) { + switch (value) { + case 1: + return INCREMENTAL_FIELD; + case 0: + return DATARANGE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataRangeCase getDataRangeCase() { + return DataRangeCase.forNumber(dataRangeCase_); + } + + public static final int INCREMENTAL_FIELD_FIELD_NUMBER = 1; + /** + * + * + *
+   * The range denoted by values of an incremental field
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + * + * @return Whether the incrementalField field is set. + */ + @java.lang.Override + public boolean hasIncrementalField() { + return dataRangeCase_ == 1; + } + /** + * + * + *
+   * The range denoted by values of an incremental field
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + * + * @return The incrementalField. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData.IncrementalField getIncrementalField() { + if (dataRangeCase_ == 1) { + return (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_; + } + return com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance(); + } + /** + * + * + *
+   * The range denoted by values of an incremental field
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder + getIncrementalFieldOrBuilder() { + if (dataRangeCase_ == 1) { + return (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_; + } + return com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance(); + } + + 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 (dataRangeCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataRangeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.ScannedData)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.ScannedData other = (com.google.cloud.dataplex.v1.ScannedData) obj; + + if (!getDataRangeCase().equals(other.getDataRangeCase())) return false; + switch (dataRangeCase_) { + case 1: + if (!getIncrementalField().equals(other.getIncrementalField())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (dataRangeCase_) { + case 1: + hash = (37 * hash) + INCREMENTAL_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getIncrementalField().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.ScannedData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ScannedData 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.dataplex.v1.ScannedData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ScannedData 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.dataplex.v1.ScannedData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.ScannedData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.ScannedData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ScannedData 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.dataplex.v1.ScannedData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ScannedData 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.dataplex.v1.ScannedData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.ScannedData 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.dataplex.v1.ScannedData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The data scanned during processing (e.g. in incremental DataScan)
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.ScannedData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.ScannedData) + com.google.cloud.dataplex.v1.ScannedDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_ScannedData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_ScannedData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.ScannedData.class, + com.google.cloud.dataplex.v1.ScannedData.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.ScannedData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (incrementalFieldBuilder_ != null) { + incrementalFieldBuilder_.clear(); + } + dataRangeCase_ = 0; + dataRange_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_ScannedData_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData build() { + com.google.cloud.dataplex.v1.ScannedData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData buildPartial() { + com.google.cloud.dataplex.v1.ScannedData result = + new com.google.cloud.dataplex.v1.ScannedData(this); + if (dataRangeCase_ == 1) { + if (incrementalFieldBuilder_ == null) { + result.dataRange_ = dataRange_; + } else { + result.dataRange_ = incrementalFieldBuilder_.build(); + } + } + result.dataRangeCase_ = dataRangeCase_; + 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.dataplex.v1.ScannedData) { + return mergeFrom((com.google.cloud.dataplex.v1.ScannedData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.ScannedData other) { + if (other == com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance()) return this; + switch (other.getDataRangeCase()) { + case INCREMENTAL_FIELD: + { + mergeIncrementalField(other.getIncrementalField()); + break; + } + case DATARANGE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getIncrementalFieldFieldBuilder().getBuilder(), extensionRegistry); + dataRangeCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int dataRangeCase_ = 0; + private java.lang.Object dataRange_; + + public DataRangeCase getDataRangeCase() { + return DataRangeCase.forNumber(dataRangeCase_); + } + + public Builder clearDataRange() { + dataRangeCase_ = 0; + dataRange_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.ScannedData.IncrementalField, + com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder, + com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder> + incrementalFieldBuilder_; + /** + * + * + *
+     * The range denoted by values of an incremental field
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + * + * @return Whether the incrementalField field is set. + */ + @java.lang.Override + public boolean hasIncrementalField() { + return dataRangeCase_ == 1; + } + /** + * + * + *
+     * The range denoted by values of an incremental field
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + * + * @return The incrementalField. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData.IncrementalField getIncrementalField() { + if (incrementalFieldBuilder_ == null) { + if (dataRangeCase_ == 1) { + return (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_; + } + return com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance(); + } else { + if (dataRangeCase_ == 1) { + return incrementalFieldBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance(); + } + } + /** + * + * + *
+     * The range denoted by values of an incremental field
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + */ + public Builder setIncrementalField( + com.google.cloud.dataplex.v1.ScannedData.IncrementalField value) { + if (incrementalFieldBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataRange_ = value; + onChanged(); + } else { + incrementalFieldBuilder_.setMessage(value); + } + dataRangeCase_ = 1; + return this; + } + /** + * + * + *
+     * The range denoted by values of an incremental field
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + */ + public Builder setIncrementalField( + com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder builderForValue) { + if (incrementalFieldBuilder_ == null) { + dataRange_ = builderForValue.build(); + onChanged(); + } else { + incrementalFieldBuilder_.setMessage(builderForValue.build()); + } + dataRangeCase_ = 1; + return this; + } + /** + * + * + *
+     * The range denoted by values of an incremental field
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + */ + public Builder mergeIncrementalField( + com.google.cloud.dataplex.v1.ScannedData.IncrementalField value) { + if (incrementalFieldBuilder_ == null) { + if (dataRangeCase_ == 1 + && dataRange_ + != com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance()) { + dataRange_ = + com.google.cloud.dataplex.v1.ScannedData.IncrementalField.newBuilder( + (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_) + .mergeFrom(value) + .buildPartial(); + } else { + dataRange_ = value; + } + onChanged(); + } else { + if (dataRangeCase_ == 1) { + incrementalFieldBuilder_.mergeFrom(value); + } else { + incrementalFieldBuilder_.setMessage(value); + } + } + dataRangeCase_ = 1; + return this; + } + /** + * + * + *
+     * The range denoted by values of an incremental field
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + */ + public Builder clearIncrementalField() { + if (incrementalFieldBuilder_ == null) { + if (dataRangeCase_ == 1) { + dataRangeCase_ = 0; + dataRange_ = null; + onChanged(); + } + } else { + if (dataRangeCase_ == 1) { + dataRangeCase_ = 0; + dataRange_ = null; + } + incrementalFieldBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The range denoted by values of an incremental field
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + */ + public com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder + getIncrementalFieldBuilder() { + return getIncrementalFieldFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The range denoted by values of an incremental field
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder + getIncrementalFieldOrBuilder() { + if ((dataRangeCase_ == 1) && (incrementalFieldBuilder_ != null)) { + return incrementalFieldBuilder_.getMessageOrBuilder(); + } else { + if (dataRangeCase_ == 1) { + return (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_; + } + return com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance(); + } + } + /** + * + * + *
+     * The range denoted by values of an incremental field
+     * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.ScannedData.IncrementalField, + com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder, + com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder> + getIncrementalFieldFieldBuilder() { + if (incrementalFieldBuilder_ == null) { + if (!(dataRangeCase_ == 1)) { + dataRange_ = + com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance(); + } + incrementalFieldBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.ScannedData.IncrementalField, + com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder, + com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder>( + (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_, + getParentForChildren(), + isClean()); + dataRange_ = null; + } + dataRangeCase_ = 1; + onChanged(); + ; + return incrementalFieldBuilder_; + } + + @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.dataplex.v1.ScannedData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.ScannedData) + private static final com.google.cloud.dataplex.v1.ScannedData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.ScannedData(); + } + + public static com.google.cloud.dataplex.v1.ScannedData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScannedData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.ScannedData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ScannedDataOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ScannedDataOrBuilder.java new file mode 100644 index 000000000000..6f7b5c114d19 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ScannedDataOrBuilder.java @@ -0,0 +1,62 @@ +/* + * 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/dataplex/v1/processing.proto + +package com.google.cloud.dataplex.v1; + +public interface ScannedDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.ScannedData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The range denoted by values of an incremental field
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + * + * @return Whether the incrementalField field is set. + */ + boolean hasIncrementalField(); + /** + * + * + *
+   * The range denoted by values of an incremental field
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + * + * @return The incrementalField. + */ + com.google.cloud.dataplex.v1.ScannedData.IncrementalField getIncrementalField(); + /** + * + * + *
+   * The range denoted by values of an incremental field
+   * 
+ * + * .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + */ + com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder getIncrementalFieldOrBuilder(); + + public com.google.cloud.dataplex.v1.ScannedData.DataRangeCase getDataRangeCase(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Schema.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Schema.java index 4e41d66024ba..3ca8990220d3 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Schema.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Schema.java @@ -870,8 +870,8 @@ public interface SchemaFieldOrBuilder * * *
-     * Optional. User friendly field description. Must be less than or equal to 1024
-     * characters.
+     * Optional. User friendly field description. Must be less than or equal to
+     * 1024 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -883,8 +883,8 @@ public interface SchemaFieldOrBuilder * * *
-     * Optional. User friendly field description. Must be less than or equal to 1024
-     * characters.
+     * Optional. User friendly field description. Must be less than or equal to
+     * 1024 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1125,8 +1125,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Optional. User friendly field description. Must be less than or equal to 1024
-     * characters.
+     * Optional. User friendly field description. Must be less than or equal to
+     * 1024 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1149,8 +1149,8 @@ public java.lang.String getDescription() { * * *
-     * Optional. User friendly field description. Must be less than or equal to 1024
-     * characters.
+     * Optional. User friendly field description. Must be less than or equal to
+     * 1024 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1919,8 +1919,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-       * Optional. User friendly field description. Must be less than or equal to 1024
-       * characters.
+       * Optional. User friendly field description. Must be less than or equal to
+       * 1024 characters.
        * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1942,8 +1942,8 @@ public java.lang.String getDescription() { * * *
-       * Optional. User friendly field description. Must be less than or equal to 1024
-       * characters.
+       * Optional. User friendly field description. Must be less than or equal to
+       * 1024 characters.
        * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1965,8 +1965,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-       * Optional. User friendly field description. Must be less than or equal to 1024
-       * characters.
+       * Optional. User friendly field description. Must be less than or equal to
+       * 1024 characters.
        * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1987,8 +1987,8 @@ public Builder setDescription(java.lang.String value) { * * *
-       * Optional. User friendly field description. Must be less than or equal to 1024
-       * characters.
+       * Optional. User friendly field description. Must be less than or equal to
+       * 1024 characters.
        * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2005,8 +2005,8 @@ public Builder clearDescription() { * * *
-       * Optional. User friendly field description. Must be less than or equal to 1024
-       * characters.
+       * Optional. User friendly field description. Must be less than or equal to
+       * 1024 characters.
        * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2689,9 +2689,9 @@ public interface PartitionFieldOrBuilder * * *
-     * Required. Partition field name must consist of letters, numbers, and underscores
-     * only, with a maximum of length of 256 characters,
-     * and must begin with a letter or underscore..
+     * Required. Partition field name must consist of letters, numbers, and
+     * underscores only, with a maximum of length of 256 characters, and must
+     * begin with a letter or underscore..
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2703,9 +2703,9 @@ public interface PartitionFieldOrBuilder * * *
-     * Required. Partition field name must consist of letters, numbers, and underscores
-     * only, with a maximum of length of 256 characters,
-     * and must begin with a letter or underscore..
+     * Required. Partition field name must consist of letters, numbers, and
+     * underscores only, with a maximum of length of 256 characters, and must
+     * begin with a letter or underscore..
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2802,9 +2802,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Required. Partition field name must consist of letters, numbers, and underscores
-     * only, with a maximum of length of 256 characters,
-     * and must begin with a letter or underscore..
+     * Required. Partition field name must consist of letters, numbers, and
+     * underscores only, with a maximum of length of 256 characters, and must
+     * begin with a letter or underscore..
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2827,9 +2827,9 @@ public java.lang.String getName() { * * *
-     * Required. Partition field name must consist of letters, numbers, and underscores
-     * only, with a maximum of length of 256 characters,
-     * and must begin with a letter or underscore..
+     * Required. Partition field name must consist of letters, numbers, and
+     * underscores only, with a maximum of length of 256 characters, and must
+     * begin with a letter or underscore..
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3252,9 +3252,9 @@ public Builder mergeFrom( * * *
-       * Required. Partition field name must consist of letters, numbers, and underscores
-       * only, with a maximum of length of 256 characters,
-       * and must begin with a letter or underscore..
+       * Required. Partition field name must consist of letters, numbers, and
+       * underscores only, with a maximum of length of 256 characters, and must
+       * begin with a letter or underscore..
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3276,9 +3276,9 @@ public java.lang.String getName() { * * *
-       * Required. Partition field name must consist of letters, numbers, and underscores
-       * only, with a maximum of length of 256 characters,
-       * and must begin with a letter or underscore..
+       * Required. Partition field name must consist of letters, numbers, and
+       * underscores only, with a maximum of length of 256 characters, and must
+       * begin with a letter or underscore..
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3300,9 +3300,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-       * Required. Partition field name must consist of letters, numbers, and underscores
-       * only, with a maximum of length of 256 characters,
-       * and must begin with a letter or underscore..
+       * Required. Partition field name must consist of letters, numbers, and
+       * underscores only, with a maximum of length of 256 characters, and must
+       * begin with a letter or underscore..
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3323,9 +3323,9 @@ public Builder setName(java.lang.String value) { * * *
-       * Required. Partition field name must consist of letters, numbers, and underscores
-       * only, with a maximum of length of 256 characters,
-       * and must begin with a letter or underscore..
+       * Required. Partition field name must consist of letters, numbers, and
+       * underscores only, with a maximum of length of 256 characters, and must
+       * begin with a letter or underscore..
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3342,9 +3342,9 @@ public Builder clearName() { * * *
-       * Required. Partition field name must consist of letters, numbers, and underscores
-       * only, with a maximum of length of 256 characters,
-       * and must begin with a letter or underscore..
+       * Required. Partition field name must consist of letters, numbers, and
+       * underscores only, with a maximum of length of 256 characters, and must
+       * begin with a letter or underscore..
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3534,8 +3534,8 @@ public com.google.cloud.dataplex.v1.Schema.PartitionField getDefaultInstanceForT * * *
-   * Required. Set to `true` if user-managed or `false` if managed by Dataplex. The
-   * default is `false` (managed by Dataplex).
+   * Required. Set to `true` if user-managed or `false` if managed by Dataplex.
+   * The default is `false` (managed by Dataplex).
    * - Set to `false`to enable Dataplex discovery to update the schema.
    *   including new data discovery, schema inference, and schema evolution.
    *   Users retain the ability to input and edit the schema. Dataplex
@@ -3646,8 +3646,8 @@ public com.google.cloud.dataplex.v1.Schema.SchemaFieldOrBuilder getFieldsOrBuild
    *
    *
    * 
-   * Optional. The sequence of fields describing the partition structure in entities.
-   * If this field is empty, there are no partitions within the data.
+   * Optional. The sequence of fields describing the partition structure in
+   * entities. If this field is empty, there are no partitions within the data.
    * 
* * @@ -3663,8 +3663,8 @@ public com.google.cloud.dataplex.v1.Schema.SchemaFieldOrBuilder getFieldsOrBuild * * *
-   * Optional. The sequence of fields describing the partition structure in entities.
-   * If this field is empty, there are no partitions within the data.
+   * Optional. The sequence of fields describing the partition structure in
+   * entities. If this field is empty, there are no partitions within the data.
    * 
* * @@ -3680,8 +3680,8 @@ public com.google.cloud.dataplex.v1.Schema.SchemaFieldOrBuilder getFieldsOrBuild * * *
-   * Optional. The sequence of fields describing the partition structure in entities.
-   * If this field is empty, there are no partitions within the data.
+   * Optional. The sequence of fields describing the partition structure in
+   * entities. If this field is empty, there are no partitions within the data.
    * 
* * @@ -3696,8 +3696,8 @@ public int getPartitionFieldsCount() { * * *
-   * Optional. The sequence of fields describing the partition structure in entities.
-   * If this field is empty, there are no partitions within the data.
+   * Optional. The sequence of fields describing the partition structure in
+   * entities. If this field is empty, there are no partitions within the data.
    * 
* * @@ -3712,8 +3712,8 @@ public com.google.cloud.dataplex.v1.Schema.PartitionField getPartitionFields(int * * *
-   * Optional. The sequence of fields describing the partition structure in entities.
-   * If this field is empty, there are no partitions within the data.
+   * Optional. The sequence of fields describing the partition structure in
+   * entities. If this field is empty, there are no partitions within the data.
    * 
* * @@ -3732,7 +3732,8 @@ public com.google.cloud.dataplex.v1.Schema.PartitionFieldOrBuilder getPartitionF * * *
-   * Optional. The structure of paths containing partition data within the entity.
+   * Optional. The structure of paths containing partition data within the
+   * entity.
    * 
* * @@ -3749,7 +3750,8 @@ public int getPartitionStyleValue() { * * *
-   * Optional. The structure of paths containing partition data within the entity.
+   * Optional. The structure of paths containing partition data within the
+   * entity.
    * 
* * @@ -4262,8 +4264,8 @@ public Builder mergeFrom( * * *
-     * Required. Set to `true` if user-managed or `false` if managed by Dataplex. The
-     * default is `false` (managed by Dataplex).
+     * Required. Set to `true` if user-managed or `false` if managed by Dataplex.
+     * The default is `false` (managed by Dataplex).
      * - Set to `false`to enable Dataplex discovery to update the schema.
      *   including new data discovery, schema inference, and schema evolution.
      *   Users retain the ability to input and edit the schema. Dataplex
@@ -4287,8 +4289,8 @@ public boolean getUserManaged() {
      *
      *
      * 
-     * Required. Set to `true` if user-managed or `false` if managed by Dataplex. The
-     * default is `false` (managed by Dataplex).
+     * Required. Set to `true` if user-managed or `false` if managed by Dataplex.
+     * The default is `false` (managed by Dataplex).
      * - Set to `false`to enable Dataplex discovery to update the schema.
      *   including new data discovery, schema inference, and schema evolution.
      *   Users retain the ability to input and edit the schema. Dataplex
@@ -4315,8 +4317,8 @@ public Builder setUserManaged(boolean value) {
      *
      *
      * 
-     * Required. Set to `true` if user-managed or `false` if managed by Dataplex. The
-     * default is `false` (managed by Dataplex).
+     * Required. Set to `true` if user-managed or `false` if managed by Dataplex.
+     * The default is `false` (managed by Dataplex).
      * - Set to `false`to enable Dataplex discovery to update the schema.
      *   including new data discovery, schema inference, and schema evolution.
      *   Users retain the ability to input and edit the schema. Dataplex
@@ -4765,8 +4767,8 @@ private void ensurePartitionFieldsIsMutable() {
      *
      *
      * 
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -4785,8 +4787,8 @@ private void ensurePartitionFieldsIsMutable() { * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -4804,8 +4806,8 @@ public int getPartitionFieldsCount() { * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -4823,8 +4825,8 @@ public com.google.cloud.dataplex.v1.Schema.PartitionField getPartitionFields(int * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -4849,8 +4851,8 @@ public Builder setPartitionFields( * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -4872,8 +4874,8 @@ public Builder setPartitionFields( * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -4897,8 +4899,8 @@ public Builder addPartitionFields(com.google.cloud.dataplex.v1.Schema.PartitionF * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -4923,8 +4925,8 @@ public Builder addPartitionFields( * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -4946,8 +4948,8 @@ public Builder addPartitionFields( * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -4969,8 +4971,8 @@ public Builder addPartitionFields( * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -4992,8 +4994,8 @@ public Builder addAllPartitionFields( * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -5014,8 +5016,8 @@ public Builder clearPartitionFields() { * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -5036,8 +5038,8 @@ public Builder removePartitionFields(int index) { * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -5052,8 +5054,8 @@ public com.google.cloud.dataplex.v1.Schema.PartitionField.Builder getPartitionFi * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -5072,8 +5074,8 @@ public com.google.cloud.dataplex.v1.Schema.PartitionFieldOrBuilder getPartitionF * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -5092,8 +5094,8 @@ public com.google.cloud.dataplex.v1.Schema.PartitionFieldOrBuilder getPartitionF * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -5108,8 +5110,8 @@ public com.google.cloud.dataplex.v1.Schema.PartitionField.Builder addPartitionFi * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -5126,8 +5128,8 @@ public com.google.cloud.dataplex.v1.Schema.PartitionField.Builder addPartitionFi * * *
-     * Optional. The sequence of fields describing the partition structure in entities.
-     * If this field is empty, there are no partitions within the data.
+     * Optional. The sequence of fields describing the partition structure in
+     * entities. If this field is empty, there are no partitions within the data.
      * 
* * @@ -5164,7 +5166,8 @@ public com.google.cloud.dataplex.v1.Schema.PartitionField.Builder addPartitionFi * * *
-     * Optional. The structure of paths containing partition data within the entity.
+     * Optional. The structure of paths containing partition data within the
+     * entity.
      * 
* * @@ -5181,7 +5184,8 @@ public int getPartitionStyleValue() { * * *
-     * Optional. The structure of paths containing partition data within the entity.
+     * Optional. The structure of paths containing partition data within the
+     * entity.
      * 
* * @@ -5201,7 +5205,8 @@ public Builder setPartitionStyleValue(int value) { * * *
-     * Optional. The structure of paths containing partition data within the entity.
+     * Optional. The structure of paths containing partition data within the
+     * entity.
      * 
* * @@ -5223,7 +5228,8 @@ public com.google.cloud.dataplex.v1.Schema.PartitionStyle getPartitionStyle() { * * *
-     * Optional. The structure of paths containing partition data within the entity.
+     * Optional. The structure of paths containing partition data within the
+     * entity.
      * 
* * @@ -5246,7 +5252,8 @@ public Builder setPartitionStyle(com.google.cloud.dataplex.v1.Schema.PartitionSt * * *
-     * Optional. The structure of paths containing partition data within the entity.
+     * Optional. The structure of paths containing partition data within the
+     * entity.
      * 
* * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SchemaOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SchemaOrBuilder.java index f7011faa7316..1dc78ea27c1a 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SchemaOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SchemaOrBuilder.java @@ -27,8 +27,8 @@ public interface SchemaOrBuilder * * *
-   * Required. Set to `true` if user-managed or `false` if managed by Dataplex. The
-   * default is `false` (managed by Dataplex).
+   * Required. Set to `true` if user-managed or `false` if managed by Dataplex.
+   * The default is `false` (managed by Dataplex).
    * - Set to `false`to enable Dataplex discovery to update the schema.
    *   including new data discovery, schema inference, and schema evolution.
    *   Users retain the ability to input and edit the schema. Dataplex
@@ -117,8 +117,8 @@ public interface SchemaOrBuilder
    *
    *
    * 
-   * Optional. The sequence of fields describing the partition structure in entities.
-   * If this field is empty, there are no partitions within the data.
+   * Optional. The sequence of fields describing the partition structure in
+   * entities. If this field is empty, there are no partitions within the data.
    * 
* * @@ -130,8 +130,8 @@ public interface SchemaOrBuilder * * *
-   * Optional. The sequence of fields describing the partition structure in entities.
-   * If this field is empty, there are no partitions within the data.
+   * Optional. The sequence of fields describing the partition structure in
+   * entities. If this field is empty, there are no partitions within the data.
    * 
* * @@ -143,8 +143,8 @@ public interface SchemaOrBuilder * * *
-   * Optional. The sequence of fields describing the partition structure in entities.
-   * If this field is empty, there are no partitions within the data.
+   * Optional. The sequence of fields describing the partition structure in
+   * entities. If this field is empty, there are no partitions within the data.
    * 
* * @@ -156,8 +156,8 @@ public interface SchemaOrBuilder * * *
-   * Optional. The sequence of fields describing the partition structure in entities.
-   * If this field is empty, there are no partitions within the data.
+   * Optional. The sequence of fields describing the partition structure in
+   * entities. If this field is empty, there are no partitions within the data.
    * 
* * @@ -170,8 +170,8 @@ public interface SchemaOrBuilder * * *
-   * Optional. The sequence of fields describing the partition structure in entities.
-   * If this field is empty, there are no partitions within the data.
+   * Optional. The sequence of fields describing the partition structure in
+   * entities. If this field is empty, there are no partitions within the data.
    * 
* * @@ -185,7 +185,8 @@ com.google.cloud.dataplex.v1.Schema.PartitionFieldOrBuilder getPartitionFieldsOr * * *
-   * Optional. The structure of paths containing partition data within the entity.
+   * Optional. The structure of paths containing partition data within the
+   * entity.
    * 
* * @@ -199,7 +200,8 @@ com.google.cloud.dataplex.v1.Schema.PartitionFieldOrBuilder getPartitionFieldsOr * * *
-   * Optional. The structure of paths containing partition data within the entity.
+   * Optional. The structure of paths containing partition data within the
+   * entity.
    * 
* * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SessionEvent.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SessionEvent.java index 1c32d6fd3c7b..ad1637989c66 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SessionEvent.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SessionEvent.java @@ -2259,8 +2259,8 @@ public boolean getEventSucceeded() { * * *
-   * If the session is associated with an Environment with fast startup enabled,
-   * and was pre-created before being assigned to a user.
+   * If the session is associated with an environment with fast startup enabled,
+   * and was created before being assigned to a user.
    * 
* * bool fast_startup_enabled = 7; @@ -3546,8 +3546,8 @@ public Builder clearEventSucceeded() { * * *
-     * If the session is associated with an Environment with fast startup enabled,
-     * and was pre-created before being assigned to a user.
+     * If the session is associated with an environment with fast startup enabled,
+     * and was created before being assigned to a user.
      * 
* * bool fast_startup_enabled = 7; @@ -3562,8 +3562,8 @@ public boolean getFastStartupEnabled() { * * *
-     * If the session is associated with an Environment with fast startup enabled,
-     * and was pre-created before being assigned to a user.
+     * If the session is associated with an environment with fast startup enabled,
+     * and was created before being assigned to a user.
      * 
* * bool fast_startup_enabled = 7; @@ -3581,8 +3581,8 @@ public Builder setFastStartupEnabled(boolean value) { * * *
-     * If the session is associated with an Environment with fast startup enabled,
-     * and was pre-created before being assigned to a user.
+     * If the session is associated with an environment with fast startup enabled,
+     * and was created before being assigned to a user.
      * 
* * bool fast_startup_enabled = 7; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SessionEventOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SessionEventOrBuilder.java index 484697b9f5b6..ae3dd21d970c 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SessionEventOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SessionEventOrBuilder.java @@ -177,8 +177,8 @@ public interface SessionEventOrBuilder * * *
-   * If the session is associated with an Environment with fast startup enabled,
-   * and was pre-created before being assigned to a user.
+   * If the session is associated with an environment with fast startup enabled,
+   * and was created before being assigned to a user.
    * 
* * bool fast_startup_enabled = 7; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/StorageFormat.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/StorageFormat.java index 64fa56f9d71b..5350699493ce 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/StorageFormat.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/StorageFormat.java @@ -615,8 +615,8 @@ public interface CsvOptionsOrBuilder * * *
-     * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8", and
-     * "ISO-8859-1". Defaults to UTF-8 if unspecified.
+     * Optional. The character encoding of the data. Accepts "US-ASCII",
+     * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
      * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -628,8 +628,8 @@ public interface CsvOptionsOrBuilder * * *
-     * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8", and
-     * "ISO-8859-1". Defaults to UTF-8 if unspecified.
+     * Optional. The character encoding of the data. Accepts "US-ASCII",
+     * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
      * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -642,8 +642,8 @@ public interface CsvOptionsOrBuilder * * *
-     * Optional. The number of rows to interpret as header rows that should be skipped
-     * when reading data rows. Defaults to 0.
+     * Optional. The number of rows to interpret as header rows that should be
+     * skipped when reading data rows. Defaults to 0.
      * 
* * int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -763,8 +763,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8", and
-     * "ISO-8859-1". Defaults to UTF-8 if unspecified.
+     * Optional. The character encoding of the data. Accepts "US-ASCII",
+     * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
      * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -787,8 +787,8 @@ public java.lang.String getEncoding() { * * *
-     * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8", and
-     * "ISO-8859-1". Defaults to UTF-8 if unspecified.
+     * Optional. The character encoding of the data. Accepts "US-ASCII",
+     * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
      * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -814,8 +814,8 @@ public com.google.protobuf.ByteString getEncodingBytes() { * * *
-     * Optional. The number of rows to interpret as header rows that should be skipped
-     * when reading data rows. Defaults to 0.
+     * Optional. The number of rows to interpret as header rows that should be
+     * skipped when reading data rows. Defaults to 0.
      * 
* * int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1334,8 +1334,8 @@ public Builder mergeFrom( * * *
-       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8", and
-       * "ISO-8859-1". Defaults to UTF-8 if unspecified.
+       * Optional. The character encoding of the data. Accepts "US-ASCII",
+       * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
        * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1357,8 +1357,8 @@ public java.lang.String getEncoding() { * * *
-       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8", and
-       * "ISO-8859-1". Defaults to UTF-8 if unspecified.
+       * Optional. The character encoding of the data. Accepts "US-ASCII",
+       * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
        * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1380,8 +1380,8 @@ public com.google.protobuf.ByteString getEncodingBytes() { * * *
-       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8", and
-       * "ISO-8859-1". Defaults to UTF-8 if unspecified.
+       * Optional. The character encoding of the data. Accepts "US-ASCII",
+       * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
        * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1402,8 +1402,8 @@ public Builder setEncoding(java.lang.String value) { * * *
-       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8", and
-       * "ISO-8859-1". Defaults to UTF-8 if unspecified.
+       * Optional. The character encoding of the data. Accepts "US-ASCII",
+       * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
        * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1420,8 +1420,8 @@ public Builder clearEncoding() { * * *
-       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8", and
-       * "ISO-8859-1". Defaults to UTF-8 if unspecified.
+       * Optional. The character encoding of the data. Accepts "US-ASCII",
+       * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified.
        * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1445,8 +1445,8 @@ public Builder setEncodingBytes(com.google.protobuf.ByteString value) { * * *
-       * Optional. The number of rows to interpret as header rows that should be skipped
-       * when reading data rows. Defaults to 0.
+       * Optional. The number of rows to interpret as header rows that should be
+       * skipped when reading data rows. Defaults to 0.
        * 
* * int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1461,8 +1461,8 @@ public int getHeaderRows() { * * *
-       * Optional. The number of rows to interpret as header rows that should be skipped
-       * when reading data rows. Defaults to 0.
+       * Optional. The number of rows to interpret as header rows that should be
+       * skipped when reading data rows. Defaults to 0.
        * 
* * int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1480,8 +1480,8 @@ public Builder setHeaderRows(int value) { * * *
-       * Optional. The number of rows to interpret as header rows that should be skipped
-       * when reading data rows. Defaults to 0.
+       * Optional. The number of rows to interpret as header rows that should be
+       * skipped when reading data rows. Defaults to 0.
        * 
* * int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1790,8 +1790,8 @@ public interface JsonOptionsOrBuilder * * *
-     * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and
-     * "ISO-8859-1". Defaults to UTF-8 if not specified.
+     * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
+     * and "ISO-8859-1". Defaults to UTF-8 if not specified.
      * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1803,8 +1803,8 @@ public interface JsonOptionsOrBuilder * * *
-     * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and
-     * "ISO-8859-1". Defaults to UTF-8 if not specified.
+     * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
+     * and "ISO-8859-1". Defaults to UTF-8 if not specified.
      * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1868,8 +1868,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and
-     * "ISO-8859-1". Defaults to UTF-8 if not specified.
+     * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
+     * and "ISO-8859-1". Defaults to UTF-8 if not specified.
      * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1892,8 +1892,8 @@ public java.lang.String getEncoding() { * * *
-     * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and
-     * "ISO-8859-1". Defaults to UTF-8 if not specified.
+     * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
+     * and "ISO-8859-1". Defaults to UTF-8 if not specified.
      * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2253,8 +2253,8 @@ public Builder mergeFrom( * * *
-       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and
-       * "ISO-8859-1". Defaults to UTF-8 if not specified.
+       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
+       * and "ISO-8859-1". Defaults to UTF-8 if not specified.
        * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2276,8 +2276,8 @@ public java.lang.String getEncoding() { * * *
-       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and
-       * "ISO-8859-1". Defaults to UTF-8 if not specified.
+       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
+       * and "ISO-8859-1". Defaults to UTF-8 if not specified.
        * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2299,8 +2299,8 @@ public com.google.protobuf.ByteString getEncodingBytes() { * * *
-       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and
-       * "ISO-8859-1". Defaults to UTF-8 if not specified.
+       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
+       * and "ISO-8859-1". Defaults to UTF-8 if not specified.
        * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2321,8 +2321,8 @@ public Builder setEncoding(java.lang.String value) { * * *
-       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and
-       * "ISO-8859-1". Defaults to UTF-8 if not specified.
+       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
+       * and "ISO-8859-1". Defaults to UTF-8 if not specified.
        * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2339,8 +2339,8 @@ public Builder clearEncoding() { * * *
-       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and
-       * "ISO-8859-1". Defaults to UTF-8 if not specified.
+       * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8"
+       * and "ISO-8859-1". Defaults to UTF-8 if not specified.
        * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2423,6 +2423,648 @@ public com.google.cloud.dataplex.v1.StorageFormat.JsonOptions getDefaultInstance } } + public interface IcebergOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.StorageFormat.IcebergOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The location of where the iceberg metadata is present, must be
+     * within the table path
+     * 
+ * + * string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataLocation. + */ + java.lang.String getMetadataLocation(); + /** + * + * + *
+     * Optional. The location of where the iceberg metadata is present, must be
+     * within the table path
+     * 
+ * + * string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataLocation. + */ + com.google.protobuf.ByteString getMetadataLocationBytes(); + } + /** + * + * + *
+   * Describes Iceberg data format.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.StorageFormat.IcebergOptions} + */ + public static final class IcebergOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.StorageFormat.IcebergOptions) + IcebergOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use IcebergOptions.newBuilder() to construct. + private IcebergOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IcebergOptions() { + metadataLocation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IcebergOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.MetadataProto + .internal_static_google_cloud_dataplex_v1_StorageFormat_IcebergOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.MetadataProto + .internal_static_google_cloud_dataplex_v1_StorageFormat_IcebergOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.class, + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder.class); + } + + public static final int METADATA_LOCATION_FIELD_NUMBER = 1; + private volatile java.lang.Object metadataLocation_; + /** + * + * + *
+     * Optional. The location of where the iceberg metadata is present, must be
+     * within the table path
+     * 
+ * + * string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataLocation. + */ + @java.lang.Override + public java.lang.String getMetadataLocation() { + java.lang.Object ref = metadataLocation_; + 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(); + metadataLocation_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The location of where the iceberg metadata is present, must be
+     * within the table path
+     * 
+ * + * string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetadataLocationBytes() { + java.lang.Object ref = metadataLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataLocation_ = 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(metadataLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metadataLocation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metadataLocation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions other = + (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) obj; + + if (!getMetadataLocation().equals(other.getMetadataLocation())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + METADATA_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getMetadataLocation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions 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.dataplex.v1.StorageFormat.IcebergOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions 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.dataplex.v1.StorageFormat.IcebergOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions 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.dataplex.v1.StorageFormat.IcebergOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions 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.dataplex.v1.StorageFormat.IcebergOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions 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.dataplex.v1.StorageFormat.IcebergOptions 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; + } + /** + * + * + *
+     * Describes Iceberg data format.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.StorageFormat.IcebergOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.StorageFormat.IcebergOptions) + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.MetadataProto + .internal_static_google_cloud_dataplex_v1_StorageFormat_IcebergOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.MetadataProto + .internal_static_google_cloud_dataplex_v1_StorageFormat_IcebergOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.class, + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + metadataLocation_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.MetadataProto + .internal_static_google_cloud_dataplex_v1_StorageFormat_IcebergOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions build() { + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions buildPartial() { + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions result = + new com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions(this); + result.metadataLocation_ = metadataLocation_; + 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.dataplex.v1.StorageFormat.IcebergOptions) { + return mergeFrom((com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions other) { + if (other == com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance()) + return this; + if (!other.getMetadataLocation().isEmpty()) { + metadataLocation_ = other.metadataLocation_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metadataLocation_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object metadataLocation_ = ""; + /** + * + * + *
+       * Optional. The location of where the iceberg metadata is present, must be
+       * within the table path
+       * 
+ * + * string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The metadataLocation. + */ + public java.lang.String getMetadataLocation() { + java.lang.Object ref = metadataLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metadataLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The location of where the iceberg metadata is present, must be
+       * within the table path
+       * 
+ * + * string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for metadataLocation. + */ + public com.google.protobuf.ByteString getMetadataLocationBytes() { + java.lang.Object ref = metadataLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metadataLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The location of where the iceberg metadata is present, must be
+       * within the table path
+       * 
+ * + * string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The metadataLocation to set. + * @return This builder for chaining. + */ + public Builder setMetadataLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metadataLocation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The location of where the iceberg metadata is present, must be
+       * within the table path
+       * 
+ * + * string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMetadataLocation() { + + metadataLocation_ = getDefaultInstance().getMetadataLocation(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The location of where the iceberg metadata is present, must be
+       * within the table path
+       * 
+ * + * string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for metadataLocation to set. + * @return This builder for chaining. + */ + public Builder setMetadataLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metadataLocation_ = 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.dataplex.v1.StorageFormat.IcebergOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.StorageFormat.IcebergOptions) + private static final com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions(); + } + + public static com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IcebergOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int optionsCase_ = 0; private java.lang.Object options_; @@ -2432,6 +3074,7 @@ public enum OptionsCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { CSV(10), JSON(11), + ICEBERG(12), OPTIONS_NOT_SET(0); private final int value; @@ -2454,6 +3097,8 @@ public static OptionsCase forNumber(int value) { return CSV; case 11: return JSON; + case 12: + return ICEBERG; case 0: return OPTIONS_NOT_SET; default: @@ -2476,8 +3121,8 @@ public OptionsCase getOptionsCase() { * * *
-   * Output only. The data format associated with the stored data, which represents
-   * content type values. The value is inferred from mime type.
+   * Output only. The data format associated with the stored data, which
+   * represents content type values. The value is inferred from mime type.
    * 
* * @@ -2494,8 +3139,8 @@ public int getFormatValue() { * * *
-   * Output only. The data format associated with the stored data, which represents
-   * content type values. The value is inferred from mime type.
+   * Output only. The data format associated with the stored data, which
+   * represents content type values. The value is inferred from mime type.
    * 
* * @@ -2568,6 +3213,9 @@ public com.google.cloud.dataplex.v1.StorageFormat.CompressionFormat getCompressi * - application/x-avro * - application/x-orc * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg * - application/json * - application/{subtypes} * - text/csv @@ -2603,6 +3251,9 @@ public java.lang.String getMimeType() { * - application/x-avro * - application/x-orc * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg * - application/json * - application/{subtypes} * - text/csv @@ -2743,6 +3394,63 @@ public com.google.cloud.dataplex.v1.StorageFormat.JsonOptionsOrBuilder getJsonOr return com.google.cloud.dataplex.v1.StorageFormat.JsonOptions.getDefaultInstance(); } + public static final int ICEBERG_FIELD_NUMBER = 12; + /** + * + * + *
+   * Optional. Additional information about iceberg tables.
+   * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iceberg field is set. + */ + @java.lang.Override + public boolean hasIceberg() { + return optionsCase_ == 12; + } + /** + * + * + *
+   * Optional. Additional information about iceberg tables.
+   * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iceberg. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions getIceberg() { + if (optionsCase_ == 12) { + return (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_; + } + return com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Additional information about iceberg tables.
+   * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder getIcebergOrBuilder() { + if (optionsCase_ == 12) { + return (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_; + } + return com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2776,6 +3484,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (optionsCase_ == 11) { output.writeMessage(11, (com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) options_); } + if (optionsCase_ == 12) { + output.writeMessage(12, (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_); + } getUnknownFields().writeTo(output); } @@ -2808,6 +3519,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 11, (com.google.cloud.dataplex.v1.StorageFormat.JsonOptions) options_); } + if (optionsCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2835,6 +3551,9 @@ public boolean equals(final java.lang.Object obj) { case 11: if (!getJson().equals(other.getJson())) return false; break; + case 12: + if (!getIceberg().equals(other.getIceberg())) return false; + break; case 0: default: } @@ -2864,6 +3583,10 @@ public int hashCode() { hash = (37 * hash) + JSON_FIELD_NUMBER; hash = (53 * hash) + getJson().hashCode(); break; + case 12: + hash = (37 * hash) + ICEBERG_FIELD_NUMBER; + hash = (53 * hash) + getIceberg().hashCode(); + break; case 0: default: } @@ -3017,6 +3740,9 @@ public Builder clear() { if (jsonBuilder_ != null) { jsonBuilder_.clear(); } + if (icebergBuilder_ != null) { + icebergBuilder_.clear(); + } optionsCase_ = 0; options_ = null; return this; @@ -3063,6 +3789,13 @@ public com.google.cloud.dataplex.v1.StorageFormat buildPartial() { result.options_ = jsonBuilder_.build(); } } + if (optionsCase_ == 12) { + if (icebergBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = icebergBuilder_.build(); + } + } result.optionsCase_ = optionsCase_; onBuilt(); return result; @@ -3134,6 +3867,11 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.StorageFormat other) { mergeJson(other.getJson()); break; } + case ICEBERG: + { + mergeIceberg(other.getIceberg()); + break; + } case OPTIONS_NOT_SET: { break; @@ -3195,6 +3933,12 @@ public Builder mergeFrom( optionsCase_ = 11; break; } // case 90 + case 98: + { + input.readMessage(getIcebergFieldBuilder().getBuilder(), extensionRegistry); + optionsCase_ = 12; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3231,8 +3975,8 @@ public Builder clearOptions() { * * *
-     * Output only. The data format associated with the stored data, which represents
-     * content type values. The value is inferred from mime type.
+     * Output only. The data format associated with the stored data, which
+     * represents content type values. The value is inferred from mime type.
      * 
* * @@ -3249,8 +3993,8 @@ public int getFormatValue() { * * *
-     * Output only. The data format associated with the stored data, which represents
-     * content type values. The value is inferred from mime type.
+     * Output only. The data format associated with the stored data, which
+     * represents content type values. The value is inferred from mime type.
      * 
* * @@ -3270,8 +4014,8 @@ public Builder setFormatValue(int value) { * * *
-     * Output only. The data format associated with the stored data, which represents
-     * content type values. The value is inferred from mime type.
+     * Output only. The data format associated with the stored data, which
+     * represents content type values. The value is inferred from mime type.
      * 
* * @@ -3293,8 +4037,8 @@ public com.google.cloud.dataplex.v1.StorageFormat.Format getFormat() { * * *
-     * Output only. The data format associated with the stored data, which represents
-     * content type values. The value is inferred from mime type.
+     * Output only. The data format associated with the stored data, which
+     * represents content type values. The value is inferred from mime type.
      * 
* * @@ -3317,8 +4061,8 @@ public Builder setFormat(com.google.cloud.dataplex.v1.StorageFormat.Format value * * *
-     * Output only. The data format associated with the stored data, which represents
-     * content type values. The value is inferred from mime type.
+     * Output only. The data format associated with the stored data, which
+     * represents content type values. The value is inferred from mime type.
      * 
* * @@ -3454,6 +4198,9 @@ public Builder clearCompressionFormat() { * - application/x-avro * - application/x-orc * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg * - application/json * - application/{subtypes} * - text/csv @@ -3488,6 +4235,9 @@ public java.lang.String getMimeType() { * - application/x-avro * - application/x-orc * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg * - application/json * - application/{subtypes} * - text/csv @@ -3522,6 +4272,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { * - application/x-avro * - application/x-orc * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg * - application/json * - application/{subtypes} * - text/csv @@ -3555,6 +4308,9 @@ public Builder setMimeType(java.lang.String value) { * - application/x-avro * - application/x-orc * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg * - application/json * - application/{subtypes} * - text/csv @@ -3584,6 +4340,9 @@ public Builder clearMimeType() { * - application/x-avro * - application/x-orc * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg * - application/json * - application/{subtypes} * - text/csv @@ -4067,6 +4826,236 @@ public com.google.cloud.dataplex.v1.StorageFormat.JsonOptionsOrBuilder getJsonOr return jsonBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions, + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder, + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder> + icebergBuilder_; + /** + * + * + *
+     * Optional. Additional information about iceberg tables.
+     * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iceberg field is set. + */ + @java.lang.Override + public boolean hasIceberg() { + return optionsCase_ == 12; + } + /** + * + * + *
+     * Optional. Additional information about iceberg tables.
+     * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iceberg. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions getIceberg() { + if (icebergBuilder_ == null) { + if (optionsCase_ == 12) { + return (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_; + } + return com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance(); + } else { + if (optionsCase_ == 12) { + return icebergBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Additional information about iceberg tables.
+     * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIceberg(com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions value) { + if (icebergBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + icebergBuilder_.setMessage(value); + } + optionsCase_ = 12; + return this; + } + /** + * + * + *
+     * Optional. Additional information about iceberg tables.
+     * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIceberg( + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder builderForValue) { + if (icebergBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + icebergBuilder_.setMessage(builderForValue.build()); + } + optionsCase_ = 12; + return this; + } + /** + * + * + *
+     * Optional. Additional information about iceberg tables.
+     * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIceberg(com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions value) { + if (icebergBuilder_ == null) { + if (optionsCase_ == 12 + && options_ + != com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance()) { + options_ = + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.newBuilder( + (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_) + .mergeFrom(value) + .buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + if (optionsCase_ == 12) { + icebergBuilder_.mergeFrom(value); + } else { + icebergBuilder_.setMessage(value); + } + } + optionsCase_ = 12; + return this; + } + /** + * + * + *
+     * Optional. Additional information about iceberg tables.
+     * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIceberg() { + if (icebergBuilder_ == null) { + if (optionsCase_ == 12) { + optionsCase_ = 0; + options_ = null; + onChanged(); + } + } else { + if (optionsCase_ == 12) { + optionsCase_ = 0; + options_ = null; + } + icebergBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Additional information about iceberg tables.
+     * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder getIcebergBuilder() { + return getIcebergFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Additional information about iceberg tables.
+     * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder + getIcebergOrBuilder() { + if ((optionsCase_ == 12) && (icebergBuilder_ != null)) { + return icebergBuilder_.getMessageOrBuilder(); + } else { + if (optionsCase_ == 12) { + return (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_; + } + return com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Additional information about iceberg tables.
+     * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions, + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder, + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder> + getIcebergFieldBuilder() { + if (icebergBuilder_ == null) { + if (!(optionsCase_ == 12)) { + options_ = com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.getDefaultInstance(); + } + icebergBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions, + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions.Builder, + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder>( + (com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions) options_, + getParentForChildren(), + isClean()); + options_ = null; + } + optionsCase_ = 12; + onChanged(); + ; + return icebergBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/StorageFormatOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/StorageFormatOrBuilder.java index 9a9539588717..79d64b0b74ef 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/StorageFormatOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/StorageFormatOrBuilder.java @@ -27,8 +27,8 @@ public interface StorageFormatOrBuilder * * *
-   * Output only. The data format associated with the stored data, which represents
-   * content type values. The value is inferred from mime type.
+   * Output only. The data format associated with the stored data, which
+   * represents content type values. The value is inferred from mime type.
    * 
* * @@ -42,8 +42,8 @@ public interface StorageFormatOrBuilder * * *
-   * Output only. The data format associated with the stored data, which represents
-   * content type values. The value is inferred from mime type.
+   * Output only. The data format associated with the stored data, which
+   * represents content type values. The value is inferred from mime type.
    * 
* * @@ -95,6 +95,9 @@ public interface StorageFormatOrBuilder * - application/x-avro * - application/x-orc * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg * - application/json * - application/{subtypes} * - text/csv @@ -119,6 +122,9 @@ public interface StorageFormatOrBuilder * - application/x-avro * - application/x-orc * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg * - application/json * - application/{subtypes} * - text/csv @@ -216,5 +222,46 @@ public interface StorageFormatOrBuilder */ com.google.cloud.dataplex.v1.StorageFormat.JsonOptionsOrBuilder getJsonOrBuilder(); + /** + * + * + *
+   * Optional. Additional information about iceberg tables.
+   * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the iceberg field is set. + */ + boolean hasIceberg(); + /** + * + * + *
+   * Optional. Additional information about iceberg tables.
+   * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The iceberg. + */ + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptions getIceberg(); + /** + * + * + *
+   * Optional. Additional information about iceberg tables.
+   * 
+ * + * + * .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsOrBuilder getIcebergOrBuilder(); + public com.google.cloud.dataplex.v1.StorageFormat.OptionsCase getOptionsCase(); } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Task.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Task.java index 8d303443f4f7..ef20d39a3edc 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Task.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Task.java @@ -1089,12 +1089,10 @@ public interface ContainerImageRuntimeOrBuilder * * *
-       * Optional. Override to common configuration of open source components installed on
-       * the Dataproc cluster.
-       * The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format, for example
-       * `core:hadoop.tmp.dir`.
-       * For more information, see [Cluster
+       * Optional. Override to common configuration of open source components
+       * installed on the Dataproc cluster. The properties to set on daemon
+       * config files. Property keys are specified in `prefix:property` format,
+       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
        * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
        * 
* @@ -1106,12 +1104,10 @@ public interface ContainerImageRuntimeOrBuilder * * *
-       * Optional. Override to common configuration of open source components installed on
-       * the Dataproc cluster.
-       * The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format, for example
-       * `core:hadoop.tmp.dir`.
-       * For more information, see [Cluster
+       * Optional. Override to common configuration of open source components
+       * installed on the Dataproc cluster. The properties to set on daemon
+       * config files. Property keys are specified in `prefix:property` format,
+       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
        * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
        * 
* @@ -1126,12 +1122,10 @@ public interface ContainerImageRuntimeOrBuilder * * *
-       * Optional. Override to common configuration of open source components installed on
-       * the Dataproc cluster.
-       * The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format, for example
-       * `core:hadoop.tmp.dir`.
-       * For more information, see [Cluster
+       * Optional. Override to common configuration of open source components
+       * installed on the Dataproc cluster. The properties to set on daemon
+       * config files. Property keys are specified in `prefix:property` format,
+       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
        * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
        * 
* @@ -1143,12 +1137,10 @@ public interface ContainerImageRuntimeOrBuilder * * *
-       * Optional. Override to common configuration of open source components installed on
-       * the Dataproc cluster.
-       * The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format, for example
-       * `core:hadoop.tmp.dir`.
-       * For more information, see [Cluster
+       * Optional. Override to common configuration of open source components
+       * installed on the Dataproc cluster. The properties to set on daemon
+       * config files. Property keys are specified in `prefix:property` format,
+       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
        * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
        * 
* @@ -1165,12 +1157,10 @@ java.lang.String getPropertiesOrDefault( * * *
-       * Optional. Override to common configuration of open source components installed on
-       * the Dataproc cluster.
-       * The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format, for example
-       * `core:hadoop.tmp.dir`.
-       * For more information, see [Cluster
+       * Optional. Override to common configuration of open source components
+       * installed on the Dataproc cluster. The properties to set on daemon
+       * config files. Property keys are specified in `prefix:property` format,
+       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
        * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
        * 
* @@ -1460,12 +1450,10 @@ public int getPropertiesCount() { * * *
-       * Optional. Override to common configuration of open source components installed on
-       * the Dataproc cluster.
-       * The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format, for example
-       * `core:hadoop.tmp.dir`.
-       * For more information, see [Cluster
+       * Optional. Override to common configuration of open source components
+       * installed on the Dataproc cluster. The properties to set on daemon
+       * config files. Property keys are specified in `prefix:property` format,
+       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
        * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
        * 
* @@ -1489,12 +1477,10 @@ public java.util.Map getProperties() { * * *
-       * Optional. Override to common configuration of open source components installed on
-       * the Dataproc cluster.
-       * The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format, for example
-       * `core:hadoop.tmp.dir`.
-       * For more information, see [Cluster
+       * Optional. Override to common configuration of open source components
+       * installed on the Dataproc cluster. The properties to set on daemon
+       * config files. Property keys are specified in `prefix:property` format,
+       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
        * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
        * 
* @@ -1509,12 +1495,10 @@ public java.util.Map getPropertiesMap() { * * *
-       * Optional. Override to common configuration of open source components installed on
-       * the Dataproc cluster.
-       * The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format, for example
-       * `core:hadoop.tmp.dir`.
-       * For more information, see [Cluster
+       * Optional. Override to common configuration of open source components
+       * installed on the Dataproc cluster. The properties to set on daemon
+       * config files. Property keys are specified in `prefix:property` format,
+       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
        * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
        * 
* @@ -1534,12 +1518,10 @@ public java.lang.String getPropertiesOrDefault( * * *
-       * Optional. Override to common configuration of open source components installed on
-       * the Dataproc cluster.
-       * The properties to set on daemon config files.
-       * Property keys are specified in `prefix:property` format, for example
-       * `core:hadoop.tmp.dir`.
-       * For more information, see [Cluster
+       * Optional. Override to common configuration of open source components
+       * installed on the Dataproc cluster. The properties to set on daemon
+       * config files. Property keys are specified in `prefix:property` format,
+       * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
        * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
        * 
* @@ -2569,12 +2551,10 @@ public int getPropertiesCount() { * * *
-         * Optional. Override to common configuration of open source components installed on
-         * the Dataproc cluster.
-         * The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format, for example
-         * `core:hadoop.tmp.dir`.
-         * For more information, see [Cluster
+         * Optional. Override to common configuration of open source components
+         * installed on the Dataproc cluster. The properties to set on daemon
+         * config files. Property keys are specified in `prefix:property` format,
+         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
          * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
          * 
* @@ -2598,12 +2578,10 @@ public java.util.Map getProperties() { * * *
-         * Optional. Override to common configuration of open source components installed on
-         * the Dataproc cluster.
-         * The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format, for example
-         * `core:hadoop.tmp.dir`.
-         * For more information, see [Cluster
+         * Optional. Override to common configuration of open source components
+         * installed on the Dataproc cluster. The properties to set on daemon
+         * config files. Property keys are specified in `prefix:property` format,
+         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
          * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
          * 
* @@ -2618,12 +2596,10 @@ public java.util.Map getPropertiesMap() { * * *
-         * Optional. Override to common configuration of open source components installed on
-         * the Dataproc cluster.
-         * The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format, for example
-         * `core:hadoop.tmp.dir`.
-         * For more information, see [Cluster
+         * Optional. Override to common configuration of open source components
+         * installed on the Dataproc cluster. The properties to set on daemon
+         * config files. Property keys are specified in `prefix:property` format,
+         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
          * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
          * 
* @@ -2643,12 +2619,10 @@ public java.lang.String getPropertiesOrDefault( * * *
-         * Optional. Override to common configuration of open source components installed on
-         * the Dataproc cluster.
-         * The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format, for example
-         * `core:hadoop.tmp.dir`.
-         * For more information, see [Cluster
+         * Optional. Override to common configuration of open source components
+         * installed on the Dataproc cluster. The properties to set on daemon
+         * config files. Property keys are specified in `prefix:property` format,
+         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
          * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
          * 
* @@ -2675,12 +2649,10 @@ public Builder clearProperties() { * * *
-         * Optional. Override to common configuration of open source components installed on
-         * the Dataproc cluster.
-         * The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format, for example
-         * `core:hadoop.tmp.dir`.
-         * For more information, see [Cluster
+         * Optional. Override to common configuration of open source components
+         * installed on the Dataproc cluster. The properties to set on daemon
+         * config files. Property keys are specified in `prefix:property` format,
+         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
          * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
          * 
* @@ -2703,12 +2675,10 @@ public java.util.Map getMutableProperties() * * *
-         * Optional. Override to common configuration of open source components installed on
-         * the Dataproc cluster.
-         * The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format, for example
-         * `core:hadoop.tmp.dir`.
-         * For more information, see [Cluster
+         * Optional. Override to common configuration of open source components
+         * installed on the Dataproc cluster. The properties to set on daemon
+         * config files. Property keys are specified in `prefix:property` format,
+         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
          * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
          * 
* @@ -2730,12 +2700,10 @@ public Builder putProperties(java.lang.String key, java.lang.String value) { * * *
-         * Optional. Override to common configuration of open source components installed on
-         * the Dataproc cluster.
-         * The properties to set on daemon config files.
-         * Property keys are specified in `prefix:property` format, for example
-         * `core:hadoop.tmp.dir`.
-         * For more information, see [Cluster
+         * Optional. Override to common configuration of open source components
+         * installed on the Dataproc cluster. The properties to set on daemon
+         * config files. Property keys are specified in `prefix:property` format,
+         * for example `core:hadoop.tmp.dir`. For more information, see [Cluster
          * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
          * 
* @@ -2825,8 +2793,8 @@ public interface VpcNetworkOrBuilder * * *
-       * Optional. The Cloud VPC network in which the job is run. By default, the Cloud
-       * VPC network named Default within the project is used.
+       * Optional. The Cloud VPC network in which the job is run. By default,
+       * the Cloud VPC network named Default within the project is used.
        * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2838,8 +2806,8 @@ public interface VpcNetworkOrBuilder * * *
-       * Optional. The Cloud VPC network in which the job is run. By default, the Cloud
-       * VPC network named Default within the project is used.
+       * Optional. The Cloud VPC network in which the job is run. By default,
+       * the Cloud VPC network named Default within the project is used.
        * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2851,8 +2819,8 @@ public interface VpcNetworkOrBuilder * * *
-       * Optional. The Cloud VPC network in which the job is run. By default, the Cloud
-       * VPC network named Default within the project is used.
+       * Optional. The Cloud VPC network in which the job is run. By default,
+       * the Cloud VPC network named Default within the project is used.
        * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3053,8 +3021,8 @@ public NetworkNameCase getNetworkNameCase() { * * *
-       * Optional. The Cloud VPC network in which the job is run. By default, the Cloud
-       * VPC network named Default within the project is used.
+       * Optional. The Cloud VPC network in which the job is run. By default,
+       * the Cloud VPC network named Default within the project is used.
        * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3068,8 +3036,8 @@ public boolean hasNetwork() { * * *
-       * Optional. The Cloud VPC network in which the job is run. By default, the Cloud
-       * VPC network named Default within the project is used.
+       * Optional. The Cloud VPC network in which the job is run. By default,
+       * the Cloud VPC network named Default within the project is used.
        * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3096,8 +3064,8 @@ public java.lang.String getNetwork() { * * *
-       * Optional. The Cloud VPC network in which the job is run. By default, the Cloud
-       * VPC network named Default within the project is used.
+       * Optional. The Cloud VPC network in which the job is run. By default,
+       * the Cloud VPC network named Default within the project is used.
        * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3712,8 +3680,8 @@ public Builder clearNetworkName() { * * *
-         * Optional. The Cloud VPC network in which the job is run. By default, the Cloud
-         * VPC network named Default within the project is used.
+         * Optional. The Cloud VPC network in which the job is run. By default,
+         * the Cloud VPC network named Default within the project is used.
          * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3728,8 +3696,8 @@ public boolean hasNetwork() { * * *
-         * Optional. The Cloud VPC network in which the job is run. By default, the Cloud
-         * VPC network named Default within the project is used.
+         * Optional. The Cloud VPC network in which the job is run. By default,
+         * the Cloud VPC network named Default within the project is used.
          * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3757,8 +3725,8 @@ public java.lang.String getNetwork() { * * *
-         * Optional. The Cloud VPC network in which the job is run. By default, the Cloud
-         * VPC network named Default within the project is used.
+         * Optional. The Cloud VPC network in which the job is run. By default,
+         * the Cloud VPC network named Default within the project is used.
          * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3786,8 +3754,8 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
-         * Optional. The Cloud VPC network in which the job is run. By default, the Cloud
-         * VPC network named Default within the project is used.
+         * Optional. The Cloud VPC network in which the job is run. By default,
+         * the Cloud VPC network named Default within the project is used.
          * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3808,8 +3776,8 @@ public Builder setNetwork(java.lang.String value) { * * *
-         * Optional. The Cloud VPC network in which the job is run. By default, the Cloud
-         * VPC network named Default within the project is used.
+         * Optional. The Cloud VPC network in which the job is run. By default,
+         * the Cloud VPC network named Default within the project is used.
          * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3828,8 +3796,8 @@ public Builder clearNetwork() { * * *
-         * Optional. The Cloud VPC network in which the job is run. By default, the Cloud
-         * VPC network named Default within the project is used.
+         * Optional. The Cloud VPC network in which the job is run. By default,
+         * the Cloud VPC network named Default within the project is used.
          * 
* * string network = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -5942,13 +5910,13 @@ public interface TriggerSpecOrBuilder * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * tasks periodically.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running tasks periodically. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
+     * string from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * This field is required for RECURRING tasks.
      * 
* @@ -5961,13 +5929,13 @@ public interface TriggerSpecOrBuilder * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * tasks periodically.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running tasks periodically. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
+     * string from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * This field is required for RECURRING tasks.
      * 
* @@ -5980,13 +5948,13 @@ public interface TriggerSpecOrBuilder * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * tasks periodically.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running tasks periodically. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
+     * string from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * This field is required for RECURRING tasks.
      * 
* @@ -6389,13 +6357,13 @@ public int getMaxRetries() { * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * tasks periodically.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running tasks periodically. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
+     * string from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * This field is required for RECURRING tasks.
      * 
* @@ -6410,13 +6378,13 @@ public boolean hasSchedule() { * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * tasks periodically.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running tasks periodically. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
+     * string from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * This field is required for RECURRING tasks.
      * 
* @@ -6444,13 +6412,13 @@ public java.lang.String getSchedule() { * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * tasks periodically.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running tasks periodically. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
+     * string from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * This field is required for RECURRING tasks.
      * 
* @@ -7380,13 +7348,13 @@ public Builder clearMaxRetries() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * tasks periodically.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running tasks periodically. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
+       * string from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * This field is required for RECURRING tasks.
        * 
* @@ -7402,13 +7370,13 @@ public boolean hasSchedule() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * tasks periodically.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running tasks periodically. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
+       * string from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * This field is required for RECURRING tasks.
        * 
* @@ -7437,13 +7405,13 @@ public java.lang.String getSchedule() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * tasks periodically.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running tasks periodically. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
+       * string from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * This field is required for RECURRING tasks.
        * 
* @@ -7472,13 +7440,13 @@ public com.google.protobuf.ByteString getScheduleBytes() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * tasks periodically.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running tasks periodically. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
+       * string from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * This field is required for RECURRING tasks.
        * 
* @@ -7500,13 +7468,13 @@ public Builder setSchedule(java.lang.String value) { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * tasks periodically.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running tasks periodically. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
+       * string from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * This field is required for RECURRING tasks.
        * 
* @@ -7526,13 +7494,13 @@ public Builder clearSchedule() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * tasks periodically.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running tasks periodically. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid
+       * string from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * This field is required for RECURRING tasks.
        * 
* @@ -7768,9 +7736,10 @@ java.lang.String getArgsOrDefault( * * *
-     * Optional. The project in which jobs are run. By default, the project containing the
-     * Lake is used. If a project is provided, the
-     * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
+     * Optional. The project in which jobs are run. By default, the project
+     * containing the Lake is used. If a project is provided, the
+     * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
+     * must belong to this project.
      * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -7782,9 +7751,10 @@ java.lang.String getArgsOrDefault( * * *
-     * Optional. The project in which jobs are run. By default, the project containing the
-     * Lake is used. If a project is provided, the
-     * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
+     * Optional. The project in which jobs are run. By default, the project
+     * containing the Lake is used. If a project is provided, the
+     * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
+     * must belong to this project.
      * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -8124,9 +8094,10 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
-     * Optional. The project in which jobs are run. By default, the project containing the
-     * Lake is used. If a project is provided, the
-     * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
+     * Optional. The project in which jobs are run. By default, the project
+     * containing the Lake is used. If a project is provided, the
+     * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
+     * must belong to this project.
      * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -8149,9 +8120,10 @@ public java.lang.String getProject() { * * *
-     * Optional. The project in which jobs are run. By default, the project containing the
-     * Lake is used. If a project is provided, the
-     * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
+     * Optional. The project in which jobs are run. By default, the project
+     * containing the Lake is used. If a project is provided, the
+     * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
+     * must belong to this project.
      * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -9100,9 +9072,10 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { * * *
-       * Optional. The project in which jobs are run. By default, the project containing the
-       * Lake is used. If a project is provided, the
-       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
+       * Optional. The project in which jobs are run. By default, the project
+       * containing the Lake is used. If a project is provided, the
+       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
+       * must belong to this project.
        * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -9124,9 +9097,10 @@ public java.lang.String getProject() { * * *
-       * Optional. The project in which jobs are run. By default, the project containing the
-       * Lake is used. If a project is provided, the
-       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
+       * Optional. The project in which jobs are run. By default, the project
+       * containing the Lake is used. If a project is provided, the
+       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
+       * must belong to this project.
        * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -9148,9 +9122,10 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
-       * Optional. The project in which jobs are run. By default, the project containing the
-       * Lake is used. If a project is provided, the
-       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
+       * Optional. The project in which jobs are run. By default, the project
+       * containing the Lake is used. If a project is provided, the
+       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
+       * must belong to this project.
        * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -9171,9 +9146,10 @@ public Builder setProject(java.lang.String value) { * * *
-       * Optional. The project in which jobs are run. By default, the project containing the
-       * Lake is used. If a project is provided, the
-       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
+       * Optional. The project in which jobs are run. By default, the project
+       * containing the Lake is used. If a project is provided, the
+       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
+       * must belong to this project.
        * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -9190,9 +9166,10 @@ public Builder clearProject() { * * *
-       * Optional. The project in which jobs are run. By default, the project containing the
-       * Lake is used. If a project is provided, the
-       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project.
+       * Optional. The project in which jobs are run. By default, the project
+       * containing the Lake is used. If a project is provided, the
+       * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
+       * must belong to this project.
        * 
* * string project = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -9823,8 +9800,8 @@ public interface SparkTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -9836,8 +9813,8 @@ public interface SparkTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -9849,8 +9826,8 @@ public interface SparkTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -9863,8 +9840,8 @@ public interface SparkTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -9878,9 +9855,9 @@ public interface SparkTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -9892,9 +9869,9 @@ public interface SparkTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -9906,9 +9883,9 @@ public interface SparkTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -9921,9 +9898,9 @@ public interface SparkTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -10477,8 +10454,8 @@ public com.google.protobuf.ByteString getSqlScriptBytes() { * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -10492,8 +10469,8 @@ public com.google.protobuf.ProtocolStringList getFileUrisList() { * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -10507,8 +10484,8 @@ public int getFileUrisCount() { * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -10523,8 +10500,8 @@ public java.lang.String getFileUris(int index) { * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -10542,9 +10519,9 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) { * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -10558,9 +10535,9 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() { * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -10574,9 +10551,9 @@ public int getArchiveUrisCount() { * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -10591,9 +10568,9 @@ public java.lang.String getArchiveUris(int index) { * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -12034,8 +12011,8 @@ private void ensureFileUrisIsMutable() { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -12049,8 +12026,8 @@ public com.google.protobuf.ProtocolStringList getFileUrisList() { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -12064,8 +12041,8 @@ public int getFileUrisCount() { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -12080,8 +12057,8 @@ public java.lang.String getFileUris(int index) { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -12096,8 +12073,8 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -12119,8 +12096,8 @@ public Builder setFileUris(int index, java.lang.String value) { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -12141,8 +12118,8 @@ public Builder addFileUris(java.lang.String value) { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -12160,8 +12137,8 @@ public Builder addAllFileUris(java.lang.Iterable values) { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -12178,8 +12155,8 @@ public Builder clearFileUris() { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -12211,9 +12188,9 @@ private void ensureArchiveUrisIsMutable() { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -12227,9 +12204,9 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -12243,9 +12220,9 @@ public int getArchiveUrisCount() { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -12260,9 +12237,9 @@ public java.lang.String getArchiveUris(int index) { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -12277,9 +12254,9 @@ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -12301,9 +12278,9 @@ public Builder setArchiveUris(int index, java.lang.String value) { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -12324,9 +12301,9 @@ public Builder addArchiveUris(java.lang.String value) { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -12344,9 +12321,9 @@ public Builder addAllArchiveUris(java.lang.Iterable values) { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -12363,9 +12340,9 @@ public Builder clearArchiveUris() { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -12665,9 +12642,9 @@ public interface NotebookTaskConfigOrBuilder * * *
-     * Required. Path to input notebook. This can be the Cloud Storage URI of the notebook
-     * file or the path to a Notebook Content. The execution args are accessible
-     * as environment variables
+     * Required. Path to input notebook. This can be the Cloud Storage URI of
+     * the notebook file or the path to a Notebook Content. The execution args
+     * are accessible as environment variables
      * (`TASK_key=value`).
      * 
* @@ -12680,9 +12657,9 @@ public interface NotebookTaskConfigOrBuilder * * *
-     * Required. Path to input notebook. This can be the Cloud Storage URI of the notebook
-     * file or the path to a Notebook Content. The execution args are accessible
-     * as environment variables
+     * Required. Path to input notebook. This can be the Cloud Storage URI of
+     * the notebook file or the path to a Notebook Content. The execution args
+     * are accessible as environment variables
      * (`TASK_key=value`).
      * 
* @@ -12737,8 +12714,8 @@ public interface NotebookTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -12750,8 +12727,8 @@ public interface NotebookTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -12763,8 +12740,8 @@ public interface NotebookTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -12777,8 +12754,8 @@ public interface NotebookTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -12792,9 +12769,9 @@ public interface NotebookTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -12806,9 +12783,9 @@ public interface NotebookTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -12820,9 +12797,9 @@ public interface NotebookTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -12835,9 +12812,9 @@ public interface NotebookTaskConfigOrBuilder * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -12904,9 +12881,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Required. Path to input notebook. This can be the Cloud Storage URI of the notebook
-     * file or the path to a Notebook Content. The execution args are accessible
-     * as environment variables
+     * Required. Path to input notebook. This can be the Cloud Storage URI of
+     * the notebook file or the path to a Notebook Content. The execution args
+     * are accessible as environment variables
      * (`TASK_key=value`).
      * 
* @@ -12930,9 +12907,9 @@ public java.lang.String getNotebook() { * * *
-     * Required. Path to input notebook. This can be the Cloud Storage URI of the notebook
-     * file or the path to a Notebook Content. The execution args are accessible
-     * as environment variables
+     * Required. Path to input notebook. This can be the Cloud Storage URI of
+     * the notebook file or the path to a Notebook Content. The execution args
+     * are accessible as environment variables
      * (`TASK_key=value`).
      * 
* @@ -13014,8 +12991,8 @@ public com.google.cloud.dataplex.v1.Task.InfrastructureSpec getInfrastructureSpe * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -13029,8 +13006,8 @@ public com.google.protobuf.ProtocolStringList getFileUrisList() { * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -13044,8 +13021,8 @@ public int getFileUrisCount() { * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -13060,8 +13037,8 @@ public java.lang.String getFileUris(int index) { * * *
-     * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-     * executor.
+     * Optional. Cloud Storage URIs of files to be placed in the working
+     * directory of each executor.
      * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -13079,9 +13056,9 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) { * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -13095,9 +13072,9 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() { * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -13111,9 +13088,9 @@ public int getArchiveUrisCount() { * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -13128,9 +13105,9 @@ public java.lang.String getArchiveUris(int index) { * * *
-     * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-     * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-     * .zip.
+     * Optional. Cloud Storage URIs of archives to be extracted into the working
+     * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+     * .tgz, and .zip.
      * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -13601,9 +13578,9 @@ public Builder mergeFrom( * * *
-       * Required. Path to input notebook. This can be the Cloud Storage URI of the notebook
-       * file or the path to a Notebook Content. The execution args are accessible
-       * as environment variables
+       * Required. Path to input notebook. This can be the Cloud Storage URI of
+       * the notebook file or the path to a Notebook Content. The execution args
+       * are accessible as environment variables
        * (`TASK_key=value`).
        * 
* @@ -13626,9 +13603,9 @@ public java.lang.String getNotebook() { * * *
-       * Required. Path to input notebook. This can be the Cloud Storage URI of the notebook
-       * file or the path to a Notebook Content. The execution args are accessible
-       * as environment variables
+       * Required. Path to input notebook. This can be the Cloud Storage URI of
+       * the notebook file or the path to a Notebook Content. The execution args
+       * are accessible as environment variables
        * (`TASK_key=value`).
        * 
* @@ -13651,9 +13628,9 @@ public com.google.protobuf.ByteString getNotebookBytes() { * * *
-       * Required. Path to input notebook. This can be the Cloud Storage URI of the notebook
-       * file or the path to a Notebook Content. The execution args are accessible
-       * as environment variables
+       * Required. Path to input notebook. This can be the Cloud Storage URI of
+       * the notebook file or the path to a Notebook Content. The execution args
+       * are accessible as environment variables
        * (`TASK_key=value`).
        * 
* @@ -13675,9 +13652,9 @@ public Builder setNotebook(java.lang.String value) { * * *
-       * Required. Path to input notebook. This can be the Cloud Storage URI of the notebook
-       * file or the path to a Notebook Content. The execution args are accessible
-       * as environment variables
+       * Required. Path to input notebook. This can be the Cloud Storage URI of
+       * the notebook file or the path to a Notebook Content. The execution args
+       * are accessible as environment variables
        * (`TASK_key=value`).
        * 
* @@ -13695,9 +13672,9 @@ public Builder clearNotebook() { * * *
-       * Required. Path to input notebook. This can be the Cloud Storage URI of the notebook
-       * file or the path to a Notebook Content. The execution args are accessible
-       * as environment variables
+       * Required. Path to input notebook. This can be the Cloud Storage URI of
+       * the notebook file or the path to a Notebook Content. The execution args
+       * are accessible as environment variables
        * (`TASK_key=value`).
        * 
* @@ -13938,8 +13915,8 @@ private void ensureFileUrisIsMutable() { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -13953,8 +13930,8 @@ public com.google.protobuf.ProtocolStringList getFileUrisList() { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -13968,8 +13945,8 @@ public int getFileUrisCount() { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -13984,8 +13961,8 @@ public java.lang.String getFileUris(int index) { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -14000,8 +13977,8 @@ public com.google.protobuf.ByteString getFileUrisBytes(int index) { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -14023,8 +14000,8 @@ public Builder setFileUris(int index, java.lang.String value) { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -14045,8 +14022,8 @@ public Builder addFileUris(java.lang.String value) { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -14064,8 +14041,8 @@ public Builder addAllFileUris(java.lang.Iterable values) { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -14082,8 +14059,8 @@ public Builder clearFileUris() { * * *
-       * Optional. Cloud Storage URIs of files to be placed in the working directory of each
-       * executor.
+       * Optional. Cloud Storage URIs of files to be placed in the working
+       * directory of each executor.
        * 
* * repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -14115,9 +14092,9 @@ private void ensureArchiveUrisIsMutable() { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -14131,9 +14108,9 @@ public com.google.protobuf.ProtocolStringList getArchiveUrisList() { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -14147,9 +14124,9 @@ public int getArchiveUrisCount() { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -14164,9 +14141,9 @@ public java.lang.String getArchiveUris(int index) { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -14181,9 +14158,9 @@ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -14205,9 +14182,9 @@ public Builder setArchiveUris(int index, java.lang.String value) { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -14228,9 +14205,9 @@ public Builder addArchiveUris(java.lang.String value) { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -14248,9 +14225,9 @@ public Builder addAllArchiveUris(java.lang.Iterable values) { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -14267,9 +14244,9 @@ public Builder clearArchiveUris() { * * *
-       * Optional. Cloud Storage URIs of archives to be extracted into the working directory
-       * of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and
-       * .zip.
+       * Optional. Cloud Storage URIs of archives to be extracted into the working
+       * directory of each executor. Supported file types: .jar, .tar, .tar.gz,
+       * .tgz, and .zip.
        * 
* * repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -15552,8 +15529,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Output only. System generated globally unique ID for the task. This ID will be
-   * different if the task is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the task. This ID will
+   * be different if the task is deleted and re-created with the same name.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -15576,8 +15553,8 @@ public java.lang.String getUid() { * * *
-   * Output only. System generated globally unique ID for the task. This ID will be
-   * different if the task is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the task. This ID will
+   * be different if the task is deleted and re-created with the same name.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -17065,8 +17042,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. System generated globally unique ID for the task. This ID will be
-     * different if the task is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the task. This ID will
+     * be different if the task is deleted and re-created with the same name.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -17088,8 +17065,8 @@ public java.lang.String getUid() { * * *
-     * Output only. System generated globally unique ID for the task. This ID will be
-     * different if the task is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the task. This ID will
+     * be different if the task is deleted and re-created with the same name.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -17111,8 +17088,8 @@ public com.google.protobuf.ByteString getUidBytes() { * * *
-     * Output only. System generated globally unique ID for the task. This ID will be
-     * different if the task is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the task. This ID will
+     * be different if the task is deleted and re-created with the same name.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -17133,8 +17110,8 @@ public Builder setUid(java.lang.String value) { * * *
-     * Output only. System generated globally unique ID for the task. This ID will be
-     * different if the task is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the task. This ID will
+     * be different if the task is deleted and re-created with the same name.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -17151,8 +17128,8 @@ public Builder clearUid() { * * *
-     * Output only. System generated globally unique ID for the task. This ID will be
-     * different if the task is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the task. This ID will
+     * be different if the task is deleted and re-created with the same name.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TaskOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TaskOrBuilder.java index 331b36caf1d3..a420f3f8316f 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TaskOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TaskOrBuilder.java @@ -60,8 +60,8 @@ public interface TaskOrBuilder * * *
-   * Output only. System generated globally unique ID for the task. This ID will be
-   * different if the task is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the task. This ID will
+   * be different if the task is deleted and re-created with the same name.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -73,8 +73,8 @@ public interface TaskOrBuilder * * *
-   * Output only. System generated globally unique ID for the task. This ID will be
-   * different if the task is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the task. This ID will
+   * be different if the task is deleted and re-created with the same name.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Trigger.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Trigger.java new file mode 100644 index 000000000000..5d5d8417c266 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Trigger.java @@ -0,0 +1,2227 @@ +/* + * 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/dataplex/v1/processing.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * DataScan scheduling and trigger settings.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.Trigger} + */ +public final class Trigger extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Trigger) + TriggerOrBuilder { + private static final long serialVersionUID = 0L; + // Use Trigger.newBuilder() to construct. + private Trigger(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Trigger() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Trigger(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.Trigger.class, + com.google.cloud.dataplex.v1.Trigger.Builder.class); + } + + public interface OnDemandOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Trigger.OnDemand) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * The scan runs one-time via RunDataScan API.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.Trigger.OnDemand} + */ + public static final class OnDemand extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Trigger.OnDemand) + OnDemandOrBuilder { + private static final long serialVersionUID = 0L; + // Use OnDemand.newBuilder() to construct. + private OnDemand(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OnDemand() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OnDemand(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_OnDemand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_OnDemand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.Trigger.OnDemand.class, + com.google.cloud.dataplex.v1.Trigger.OnDemand.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.Trigger.OnDemand)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.Trigger.OnDemand other = + (com.google.cloud.dataplex.v1.Trigger.OnDemand) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.Trigger.OnDemand parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.Trigger.OnDemand 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.dataplex.v1.Trigger.OnDemand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.Trigger.OnDemand 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.dataplex.v1.Trigger.OnDemand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.Trigger.OnDemand parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.Trigger.OnDemand parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.Trigger.OnDemand 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.dataplex.v1.Trigger.OnDemand parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.Trigger.OnDemand 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.dataplex.v1.Trigger.OnDemand parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.Trigger.OnDemand 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.dataplex.v1.Trigger.OnDemand prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The scan runs one-time via RunDataScan API.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.Trigger.OnDemand} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Trigger.OnDemand) + com.google.cloud.dataplex.v1.Trigger.OnDemandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_OnDemand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_OnDemand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.Trigger.OnDemand.class, + com.google.cloud.dataplex.v1.Trigger.OnDemand.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.Trigger.OnDemand.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_OnDemand_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.OnDemand getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.Trigger.OnDemand.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.OnDemand build() { + com.google.cloud.dataplex.v1.Trigger.OnDemand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.OnDemand buildPartial() { + com.google.cloud.dataplex.v1.Trigger.OnDemand result = + new com.google.cloud.dataplex.v1.Trigger.OnDemand(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.Trigger.OnDemand) { + return mergeFrom((com.google.cloud.dataplex.v1.Trigger.OnDemand) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.Trigger.OnDemand other) { + if (other == com.google.cloud.dataplex.v1.Trigger.OnDemand.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.Trigger.OnDemand) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Trigger.OnDemand) + private static final com.google.cloud.dataplex.v1.Trigger.OnDemand DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Trigger.OnDemand(); + } + + public static com.google.cloud.dataplex.v1.Trigger.OnDemand getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OnDemand parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.OnDemand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ScheduleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Trigger.Schedule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
+     * scans periodically.
+     * To explicitly set a timezone to the cron tab, apply a prefix in the
+     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
+     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
+     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
+     * "TZ=America/New_York 1 * * * *".
+     * This field is required for Schedule scans.
+     * 
+ * + * string cron = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cron. + */ + java.lang.String getCron(); + /** + * + * + *
+     * Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
+     * scans periodically.
+     * To explicitly set a timezone to the cron tab, apply a prefix in the
+     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
+     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
+     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
+     * "TZ=America/New_York 1 * * * *".
+     * This field is required for Schedule scans.
+     * 
+ * + * string cron = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cron. + */ + com.google.protobuf.ByteString getCronBytes(); + } + /** + * + * + *
+   * The scan is scheduled to run periodically.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.Trigger.Schedule} + */ + public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Trigger.Schedule) + ScheduleOrBuilder { + private static final long serialVersionUID = 0L; + // Use Schedule.newBuilder() to construct. + private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Schedule() { + cron_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Schedule(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.Trigger.Schedule.class, + com.google.cloud.dataplex.v1.Trigger.Schedule.Builder.class); + } + + public static final int CRON_FIELD_NUMBER = 1; + private volatile java.lang.Object cron_; + /** + * + * + *
+     * Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
+     * scans periodically.
+     * To explicitly set a timezone to the cron tab, apply a prefix in the
+     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
+     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
+     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
+     * "TZ=America/New_York 1 * * * *".
+     * This field is required for Schedule scans.
+     * 
+ * + * string cron = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cron. + */ + @java.lang.Override + public java.lang.String getCron() { + java.lang.Object ref = cron_; + 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(); + cron_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
+     * scans periodically.
+     * To explicitly set a timezone to the cron tab, apply a prefix in the
+     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
+     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
+     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
+     * "TZ=America/New_York 1 * * * *".
+     * This field is required for Schedule scans.
+     * 
+ * + * string cron = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cron. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCronBytes() { + java.lang.Object ref = cron_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cron_ = 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(cron_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cron_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cron_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cron_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.Trigger.Schedule)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.Trigger.Schedule other = + (com.google.cloud.dataplex.v1.Trigger.Schedule) obj; + + if (!getCron().equals(other.getCron())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CRON_FIELD_NUMBER; + hash = (53 * hash) + getCron().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.Trigger.Schedule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.Trigger.Schedule 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.dataplex.v1.Trigger.Schedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.Trigger.Schedule 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.dataplex.v1.Trigger.Schedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.Trigger.Schedule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.Trigger.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.Trigger.Schedule 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.dataplex.v1.Trigger.Schedule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.Trigger.Schedule 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.dataplex.v1.Trigger.Schedule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.Trigger.Schedule 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.dataplex.v1.Trigger.Schedule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The scan is scheduled to run periodically.
+     * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.Trigger.Schedule} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Trigger.Schedule) + com.google.cloud.dataplex.v1.Trigger.ScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.Trigger.Schedule.class, + com.google.cloud.dataplex.v1.Trigger.Schedule.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.Trigger.Schedule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + cron_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_Schedule_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.Schedule getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.Trigger.Schedule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.Schedule build() { + com.google.cloud.dataplex.v1.Trigger.Schedule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.Schedule buildPartial() { + com.google.cloud.dataplex.v1.Trigger.Schedule result = + new com.google.cloud.dataplex.v1.Trigger.Schedule(this); + result.cron_ = cron_; + 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.dataplex.v1.Trigger.Schedule) { + return mergeFrom((com.google.cloud.dataplex.v1.Trigger.Schedule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.Trigger.Schedule other) { + if (other == com.google.cloud.dataplex.v1.Trigger.Schedule.getDefaultInstance()) + return this; + if (!other.getCron().isEmpty()) { + cron_ = other.cron_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + cron_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object cron_ = ""; + /** + * + * + *
+       * Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
+       * scans periodically.
+       * To explicitly set a timezone to the cron tab, apply a prefix in the
+       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
+       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
+       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
+       * "TZ=America/New_York 1 * * * *".
+       * This field is required for Schedule scans.
+       * 
+ * + * string cron = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The cron. + */ + public java.lang.String getCron() { + java.lang.Object ref = cron_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cron_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
+       * scans periodically.
+       * To explicitly set a timezone to the cron tab, apply a prefix in the
+       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
+       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
+       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
+       * "TZ=America/New_York 1 * * * *".
+       * This field is required for Schedule scans.
+       * 
+ * + * string cron = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for cron. + */ + public com.google.protobuf.ByteString getCronBytes() { + java.lang.Object ref = cron_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cron_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
+       * scans periodically.
+       * To explicitly set a timezone to the cron tab, apply a prefix in the
+       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
+       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
+       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
+       * "TZ=America/New_York 1 * * * *".
+       * This field is required for Schedule scans.
+       * 
+ * + * string cron = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The cron to set. + * @return This builder for chaining. + */ + public Builder setCron(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cron_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
+       * scans periodically.
+       * To explicitly set a timezone to the cron tab, apply a prefix in the
+       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
+       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
+       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
+       * "TZ=America/New_York 1 * * * *".
+       * This field is required for Schedule scans.
+       * 
+ * + * string cron = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCron() { + + cron_ = getDefaultInstance().getCron(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
+       * scans periodically.
+       * To explicitly set a timezone to the cron tab, apply a prefix in the
+       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}".
+       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
+       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
+       * "TZ=America/New_York 1 * * * *".
+       * This field is required for Schedule scans.
+       * 
+ * + * string cron = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for cron to set. + * @return This builder for chaining. + */ + public Builder setCronBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cron_ = 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.dataplex.v1.Trigger.Schedule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Trigger.Schedule) + private static final com.google.cloud.dataplex.v1.Trigger.Schedule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Trigger.Schedule(); + } + + public static com.google.cloud.dataplex.v1.Trigger.Schedule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.Schedule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int modeCase_ = 0; + private java.lang.Object mode_; + + public enum ModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ON_DEMAND(100), + SCHEDULE(101), + MODE_NOT_SET(0); + private final int value; + + private ModeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ModeCase valueOf(int value) { + return forNumber(value); + } + + public static ModeCase forNumber(int value) { + switch (value) { + case 100: + return ON_DEMAND; + case 101: + return SCHEDULE; + case 0: + return MODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ModeCase getModeCase() { + return ModeCase.forNumber(modeCase_); + } + + public static final int ON_DEMAND_FIELD_NUMBER = 100; + /** + * + * + *
+   * The scan runs one-time shortly after DataScan Creation.
+   * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + * + * @return Whether the onDemand field is set. + */ + @java.lang.Override + public boolean hasOnDemand() { + return modeCase_ == 100; + } + /** + * + * + *
+   * The scan runs one-time shortly after DataScan Creation.
+   * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + * + * @return The onDemand. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.OnDemand getOnDemand() { + if (modeCase_ == 100) { + return (com.google.cloud.dataplex.v1.Trigger.OnDemand) mode_; + } + return com.google.cloud.dataplex.v1.Trigger.OnDemand.getDefaultInstance(); + } + /** + * + * + *
+   * The scan runs one-time shortly after DataScan Creation.
+   * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.OnDemandOrBuilder getOnDemandOrBuilder() { + if (modeCase_ == 100) { + return (com.google.cloud.dataplex.v1.Trigger.OnDemand) mode_; + } + return com.google.cloud.dataplex.v1.Trigger.OnDemand.getDefaultInstance(); + } + + public static final int SCHEDULE_FIELD_NUMBER = 101; + /** + * + * + *
+   * The scan is scheduled to run periodically.
+   * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + * + * @return Whether the schedule field is set. + */ + @java.lang.Override + public boolean hasSchedule() { + return modeCase_ == 101; + } + /** + * + * + *
+   * The scan is scheduled to run periodically.
+   * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + * + * @return The schedule. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.Schedule getSchedule() { + if (modeCase_ == 101) { + return (com.google.cloud.dataplex.v1.Trigger.Schedule) mode_; + } + return com.google.cloud.dataplex.v1.Trigger.Schedule.getDefaultInstance(); + } + /** + * + * + *
+   * The scan is scheduled to run periodically.
+   * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.ScheduleOrBuilder getScheduleOrBuilder() { + if (modeCase_ == 101) { + return (com.google.cloud.dataplex.v1.Trigger.Schedule) mode_; + } + return com.google.cloud.dataplex.v1.Trigger.Schedule.getDefaultInstance(); + } + + 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 (modeCase_ == 100) { + output.writeMessage(100, (com.google.cloud.dataplex.v1.Trigger.OnDemand) mode_); + } + if (modeCase_ == 101) { + output.writeMessage(101, (com.google.cloud.dataplex.v1.Trigger.Schedule) mode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (modeCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.dataplex.v1.Trigger.OnDemand) mode_); + } + if (modeCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.dataplex.v1.Trigger.Schedule) mode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.Trigger)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.Trigger other = (com.google.cloud.dataplex.v1.Trigger) obj; + + if (!getModeCase().equals(other.getModeCase())) return false; + switch (modeCase_) { + case 100: + if (!getOnDemand().equals(other.getOnDemand())) return false; + break; + case 101: + if (!getSchedule().equals(other.getSchedule())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (modeCase_) { + case 100: + hash = (37 * hash) + ON_DEMAND_FIELD_NUMBER; + hash = (53 * hash) + getOnDemand().hashCode(); + break; + case 101: + hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getSchedule().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.Trigger parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.Trigger 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.dataplex.v1.Trigger parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.Trigger 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.dataplex.v1.Trigger parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.Trigger parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.Trigger parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.Trigger 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.dataplex.v1.Trigger parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.Trigger 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.dataplex.v1.Trigger parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.Trigger 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.dataplex.v1.Trigger 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; + } + /** + * + * + *
+   * DataScan scheduling and trigger settings.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.Trigger} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Trigger) + com.google.cloud.dataplex.v1.TriggerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.Trigger.class, + com.google.cloud.dataplex.v1.Trigger.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.Trigger.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (onDemandBuilder_ != null) { + onDemandBuilder_.clear(); + } + if (scheduleBuilder_ != null) { + scheduleBuilder_.clear(); + } + modeCase_ = 0; + mode_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.ProcessingProto + .internal_static_google_cloud_dataplex_v1_Trigger_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.Trigger.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger build() { + com.google.cloud.dataplex.v1.Trigger result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger buildPartial() { + com.google.cloud.dataplex.v1.Trigger result = new com.google.cloud.dataplex.v1.Trigger(this); + if (modeCase_ == 100) { + if (onDemandBuilder_ == null) { + result.mode_ = mode_; + } else { + result.mode_ = onDemandBuilder_.build(); + } + } + if (modeCase_ == 101) { + if (scheduleBuilder_ == null) { + result.mode_ = mode_; + } else { + result.mode_ = scheduleBuilder_.build(); + } + } + result.modeCase_ = modeCase_; + 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.dataplex.v1.Trigger) { + return mergeFrom((com.google.cloud.dataplex.v1.Trigger) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.Trigger other) { + if (other == com.google.cloud.dataplex.v1.Trigger.getDefaultInstance()) return this; + switch (other.getModeCase()) { + case ON_DEMAND: + { + mergeOnDemand(other.getOnDemand()); + break; + } + case SCHEDULE: + { + mergeSchedule(other.getSchedule()); + break; + } + case MODE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 802: + { + input.readMessage(getOnDemandFieldBuilder().getBuilder(), extensionRegistry); + modeCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry); + modeCase_ = 101; + break; + } // case 810 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int modeCase_ = 0; + private java.lang.Object mode_; + + public ModeCase getModeCase() { + return ModeCase.forNumber(modeCase_); + } + + public Builder clearMode() { + modeCase_ = 0; + mode_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.Trigger.OnDemand, + com.google.cloud.dataplex.v1.Trigger.OnDemand.Builder, + com.google.cloud.dataplex.v1.Trigger.OnDemandOrBuilder> + onDemandBuilder_; + /** + * + * + *
+     * The scan runs one-time shortly after DataScan Creation.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + * + * @return Whether the onDemand field is set. + */ + @java.lang.Override + public boolean hasOnDemand() { + return modeCase_ == 100; + } + /** + * + * + *
+     * The scan runs one-time shortly after DataScan Creation.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + * + * @return The onDemand. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.OnDemand getOnDemand() { + if (onDemandBuilder_ == null) { + if (modeCase_ == 100) { + return (com.google.cloud.dataplex.v1.Trigger.OnDemand) mode_; + } + return com.google.cloud.dataplex.v1.Trigger.OnDemand.getDefaultInstance(); + } else { + if (modeCase_ == 100) { + return onDemandBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.Trigger.OnDemand.getDefaultInstance(); + } + } + /** + * + * + *
+     * The scan runs one-time shortly after DataScan Creation.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + */ + public Builder setOnDemand(com.google.cloud.dataplex.v1.Trigger.OnDemand value) { + if (onDemandBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mode_ = value; + onChanged(); + } else { + onDemandBuilder_.setMessage(value); + } + modeCase_ = 100; + return this; + } + /** + * + * + *
+     * The scan runs one-time shortly after DataScan Creation.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + */ + public Builder setOnDemand( + com.google.cloud.dataplex.v1.Trigger.OnDemand.Builder builderForValue) { + if (onDemandBuilder_ == null) { + mode_ = builderForValue.build(); + onChanged(); + } else { + onDemandBuilder_.setMessage(builderForValue.build()); + } + modeCase_ = 100; + return this; + } + /** + * + * + *
+     * The scan runs one-time shortly after DataScan Creation.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + */ + public Builder mergeOnDemand(com.google.cloud.dataplex.v1.Trigger.OnDemand value) { + if (onDemandBuilder_ == null) { + if (modeCase_ == 100 + && mode_ != com.google.cloud.dataplex.v1.Trigger.OnDemand.getDefaultInstance()) { + mode_ = + com.google.cloud.dataplex.v1.Trigger.OnDemand.newBuilder( + (com.google.cloud.dataplex.v1.Trigger.OnDemand) mode_) + .mergeFrom(value) + .buildPartial(); + } else { + mode_ = value; + } + onChanged(); + } else { + if (modeCase_ == 100) { + onDemandBuilder_.mergeFrom(value); + } else { + onDemandBuilder_.setMessage(value); + } + } + modeCase_ = 100; + return this; + } + /** + * + * + *
+     * The scan runs one-time shortly after DataScan Creation.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + */ + public Builder clearOnDemand() { + if (onDemandBuilder_ == null) { + if (modeCase_ == 100) { + modeCase_ = 0; + mode_ = null; + onChanged(); + } + } else { + if (modeCase_ == 100) { + modeCase_ = 0; + mode_ = null; + } + onDemandBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The scan runs one-time shortly after DataScan Creation.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + */ + public com.google.cloud.dataplex.v1.Trigger.OnDemand.Builder getOnDemandBuilder() { + return getOnDemandFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The scan runs one-time shortly after DataScan Creation.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.OnDemandOrBuilder getOnDemandOrBuilder() { + if ((modeCase_ == 100) && (onDemandBuilder_ != null)) { + return onDemandBuilder_.getMessageOrBuilder(); + } else { + if (modeCase_ == 100) { + return (com.google.cloud.dataplex.v1.Trigger.OnDemand) mode_; + } + return com.google.cloud.dataplex.v1.Trigger.OnDemand.getDefaultInstance(); + } + } + /** + * + * + *
+     * The scan runs one-time shortly after DataScan Creation.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.Trigger.OnDemand, + com.google.cloud.dataplex.v1.Trigger.OnDemand.Builder, + com.google.cloud.dataplex.v1.Trigger.OnDemandOrBuilder> + getOnDemandFieldBuilder() { + if (onDemandBuilder_ == null) { + if (!(modeCase_ == 100)) { + mode_ = com.google.cloud.dataplex.v1.Trigger.OnDemand.getDefaultInstance(); + } + onDemandBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.Trigger.OnDemand, + com.google.cloud.dataplex.v1.Trigger.OnDemand.Builder, + com.google.cloud.dataplex.v1.Trigger.OnDemandOrBuilder>( + (com.google.cloud.dataplex.v1.Trigger.OnDemand) mode_, + getParentForChildren(), + isClean()); + mode_ = null; + } + modeCase_ = 100; + onChanged(); + ; + return onDemandBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.Trigger.Schedule, + com.google.cloud.dataplex.v1.Trigger.Schedule.Builder, + com.google.cloud.dataplex.v1.Trigger.ScheduleOrBuilder> + scheduleBuilder_; + /** + * + * + *
+     * The scan is scheduled to run periodically.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + * + * @return Whether the schedule field is set. + */ + @java.lang.Override + public boolean hasSchedule() { + return modeCase_ == 101; + } + /** + * + * + *
+     * The scan is scheduled to run periodically.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + * + * @return The schedule. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.Schedule getSchedule() { + if (scheduleBuilder_ == null) { + if (modeCase_ == 101) { + return (com.google.cloud.dataplex.v1.Trigger.Schedule) mode_; + } + return com.google.cloud.dataplex.v1.Trigger.Schedule.getDefaultInstance(); + } else { + if (modeCase_ == 101) { + return scheduleBuilder_.getMessage(); + } + return com.google.cloud.dataplex.v1.Trigger.Schedule.getDefaultInstance(); + } + } + /** + * + * + *
+     * The scan is scheduled to run periodically.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + */ + public Builder setSchedule(com.google.cloud.dataplex.v1.Trigger.Schedule value) { + if (scheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mode_ = value; + onChanged(); + } else { + scheduleBuilder_.setMessage(value); + } + modeCase_ = 101; + return this; + } + /** + * + * + *
+     * The scan is scheduled to run periodically.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + */ + public Builder setSchedule( + com.google.cloud.dataplex.v1.Trigger.Schedule.Builder builderForValue) { + if (scheduleBuilder_ == null) { + mode_ = builderForValue.build(); + onChanged(); + } else { + scheduleBuilder_.setMessage(builderForValue.build()); + } + modeCase_ = 101; + return this; + } + /** + * + * + *
+     * The scan is scheduled to run periodically.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + */ + public Builder mergeSchedule(com.google.cloud.dataplex.v1.Trigger.Schedule value) { + if (scheduleBuilder_ == null) { + if (modeCase_ == 101 + && mode_ != com.google.cloud.dataplex.v1.Trigger.Schedule.getDefaultInstance()) { + mode_ = + com.google.cloud.dataplex.v1.Trigger.Schedule.newBuilder( + (com.google.cloud.dataplex.v1.Trigger.Schedule) mode_) + .mergeFrom(value) + .buildPartial(); + } else { + mode_ = value; + } + onChanged(); + } else { + if (modeCase_ == 101) { + scheduleBuilder_.mergeFrom(value); + } else { + scheduleBuilder_.setMessage(value); + } + } + modeCase_ = 101; + return this; + } + /** + * + * + *
+     * The scan is scheduled to run periodically.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + */ + public Builder clearSchedule() { + if (scheduleBuilder_ == null) { + if (modeCase_ == 101) { + modeCase_ = 0; + mode_ = null; + onChanged(); + } + } else { + if (modeCase_ == 101) { + modeCase_ = 0; + mode_ = null; + } + scheduleBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The scan is scheduled to run periodically.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + */ + public com.google.cloud.dataplex.v1.Trigger.Schedule.Builder getScheduleBuilder() { + return getScheduleFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The scan is scheduled to run periodically.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger.ScheduleOrBuilder getScheduleOrBuilder() { + if ((modeCase_ == 101) && (scheduleBuilder_ != null)) { + return scheduleBuilder_.getMessageOrBuilder(); + } else { + if (modeCase_ == 101) { + return (com.google.cloud.dataplex.v1.Trigger.Schedule) mode_; + } + return com.google.cloud.dataplex.v1.Trigger.Schedule.getDefaultInstance(); + } + } + /** + * + * + *
+     * The scan is scheduled to run periodically.
+     * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.Trigger.Schedule, + com.google.cloud.dataplex.v1.Trigger.Schedule.Builder, + com.google.cloud.dataplex.v1.Trigger.ScheduleOrBuilder> + getScheduleFieldBuilder() { + if (scheduleBuilder_ == null) { + if (!(modeCase_ == 101)) { + mode_ = com.google.cloud.dataplex.v1.Trigger.Schedule.getDefaultInstance(); + } + scheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.Trigger.Schedule, + com.google.cloud.dataplex.v1.Trigger.Schedule.Builder, + com.google.cloud.dataplex.v1.Trigger.ScheduleOrBuilder>( + (com.google.cloud.dataplex.v1.Trigger.Schedule) mode_, + getParentForChildren(), + isClean()); + mode_ = null; + } + modeCase_ = 101; + onChanged(); + ; + return scheduleBuilder_; + } + + @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.dataplex.v1.Trigger) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Trigger) + private static final com.google.cloud.dataplex.v1.Trigger DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Trigger(); + } + + public static com.google.cloud.dataplex.v1.Trigger getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Trigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.Trigger getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TriggerOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TriggerOrBuilder.java new file mode 100644 index 000000000000..624d76b60bd3 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/TriggerOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/dataplex/v1/processing.proto + +package com.google.cloud.dataplex.v1; + +public interface TriggerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Trigger) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The scan runs one-time shortly after DataScan Creation.
+   * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + * + * @return Whether the onDemand field is set. + */ + boolean hasOnDemand(); + /** + * + * + *
+   * The scan runs one-time shortly after DataScan Creation.
+   * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + * + * @return The onDemand. + */ + com.google.cloud.dataplex.v1.Trigger.OnDemand getOnDemand(); + /** + * + * + *
+   * The scan runs one-time shortly after DataScan Creation.
+   * 
+ * + * .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + */ + com.google.cloud.dataplex.v1.Trigger.OnDemandOrBuilder getOnDemandOrBuilder(); + + /** + * + * + *
+   * The scan is scheduled to run periodically.
+   * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + * + * @return Whether the schedule field is set. + */ + boolean hasSchedule(); + /** + * + * + *
+   * The scan is scheduled to run periodically.
+   * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + * + * @return The schedule. + */ + com.google.cloud.dataplex.v1.Trigger.Schedule getSchedule(); + /** + * + * + *
+   * The scan is scheduled to run periodically.
+   * 
+ * + * .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + */ + com.google.cloud.dataplex.v1.Trigger.ScheduleOrBuilder getScheduleOrBuilder(); + + public com.google.cloud.dataplex.v1.Trigger.ModeCase getModeCase(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateDataScanRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateDataScanRequest.java new file mode 100644 index 000000000000..40ea9acd0d00 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateDataScanRequest.java @@ -0,0 +1,1014 @@ +/* + * 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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +/** + * + * + *
+ * Update dataScan request.
+ * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.UpdateDataScanRequest} + */ +public final class UpdateDataScanRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.UpdateDataScanRequest) + UpdateDataScanRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDataScanRequest.newBuilder() to construct. + private UpdateDataScanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDataScanRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDataScanRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_UpdateDataScanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_UpdateDataScanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.UpdateDataScanRequest.class, + com.google.cloud.dataplex.v1.UpdateDataScanRequest.Builder.class); + } + + public static final int DATA_SCAN_FIELD_NUMBER = 1; + private com.google.cloud.dataplex.v1.DataScan dataScan_; + /** + * + * + *
+   * Required. Update description.
+   * Only fields specified in `update_mask` are updated.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataScan field is set. + */ + @java.lang.Override + public boolean hasDataScan() { + return dataScan_ != null; + } + /** + * + * + *
+   * Required. Update description.
+   * Only fields specified in `update_mask` are updated.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataScan. + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScan getDataScan() { + return dataScan_ == null + ? com.google.cloud.dataplex.v1.DataScan.getDefaultInstance() + : dataScan_; + } + /** + * + * + *
+   * Required. Update description.
+   * Only fields specified in `update_mask` are updated.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.dataplex.v1.DataScanOrBuilder getDataScanOrBuilder() { + return getDataScan(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Mask of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Mask of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Mask of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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 (dataScan_ != null) { + output.writeMessage(1, getDataScan()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataScan_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataScan()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataplex.v1.UpdateDataScanRequest)) { + return super.equals(obj); + } + com.google.cloud.dataplex.v1.UpdateDataScanRequest other = + (com.google.cloud.dataplex.v1.UpdateDataScanRequest) obj; + + if (hasDataScan() != other.hasDataScan()) return false; + if (hasDataScan()) { + if (!getDataScan().equals(other.getDataScan())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataScan()) { + hash = (37 * hash) + DATA_SCAN_FIELD_NUMBER; + hash = (53 * hash) + getDataScan().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataplex.v1.UpdateDataScanRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.UpdateDataScanRequest 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.dataplex.v1.UpdateDataScanRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.UpdateDataScanRequest 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.dataplex.v1.UpdateDataScanRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataplex.v1.UpdateDataScanRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataplex.v1.UpdateDataScanRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.UpdateDataScanRequest 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.dataplex.v1.UpdateDataScanRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.UpdateDataScanRequest 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.dataplex.v1.UpdateDataScanRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataplex.v1.UpdateDataScanRequest 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.dataplex.v1.UpdateDataScanRequest 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; + } + /** + * + * + *
+   * Update dataScan request.
+   * 
+ * + * Protobuf type {@code google.cloud.dataplex.v1.UpdateDataScanRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.UpdateDataScanRequest) + com.google.cloud.dataplex.v1.UpdateDataScanRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_UpdateDataScanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_UpdateDataScanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.UpdateDataScanRequest.class, + com.google.cloud.dataplex.v1.UpdateDataScanRequest.Builder.class); + } + + // Construct using com.google.cloud.dataplex.v1.UpdateDataScanRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataScanBuilder_ == null) { + dataScan_ = null; + } else { + dataScan_ = null; + dataScanBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataplex.v1.DataScansProto + .internal_static_google_cloud_dataplex_v1_UpdateDataScanRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.UpdateDataScanRequest getDefaultInstanceForType() { + return com.google.cloud.dataplex.v1.UpdateDataScanRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.UpdateDataScanRequest build() { + com.google.cloud.dataplex.v1.UpdateDataScanRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.UpdateDataScanRequest buildPartial() { + com.google.cloud.dataplex.v1.UpdateDataScanRequest result = + new com.google.cloud.dataplex.v1.UpdateDataScanRequest(this); + if (dataScanBuilder_ == null) { + result.dataScan_ = dataScan_; + } else { + result.dataScan_ = dataScanBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataplex.v1.UpdateDataScanRequest) { + return mergeFrom((com.google.cloud.dataplex.v1.UpdateDataScanRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataplex.v1.UpdateDataScanRequest other) { + if (other == com.google.cloud.dataplex.v1.UpdateDataScanRequest.getDefaultInstance()) + return this; + if (other.hasDataScan()) { + mergeDataScan(other.getDataScan()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getDataScanFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private com.google.cloud.dataplex.v1.DataScan dataScan_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan, + com.google.cloud.dataplex.v1.DataScan.Builder, + com.google.cloud.dataplex.v1.DataScanOrBuilder> + dataScanBuilder_; + /** + * + * + *
+     * Required. Update description.
+     * Only fields specified in `update_mask` are updated.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataScan field is set. + */ + public boolean hasDataScan() { + return dataScanBuilder_ != null || dataScan_ != null; + } + /** + * + * + *
+     * Required. Update description.
+     * Only fields specified in `update_mask` are updated.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataScan. + */ + public com.google.cloud.dataplex.v1.DataScan getDataScan() { + if (dataScanBuilder_ == null) { + return dataScan_ == null + ? com.google.cloud.dataplex.v1.DataScan.getDefaultInstance() + : dataScan_; + } else { + return dataScanBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Update description.
+     * Only fields specified in `update_mask` are updated.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataScan(com.google.cloud.dataplex.v1.DataScan value) { + if (dataScanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataScan_ = value; + onChanged(); + } else { + dataScanBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Update description.
+     * Only fields specified in `update_mask` are updated.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataScan(com.google.cloud.dataplex.v1.DataScan.Builder builderForValue) { + if (dataScanBuilder_ == null) { + dataScan_ = builderForValue.build(); + onChanged(); + } else { + dataScanBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Update description.
+     * Only fields specified in `update_mask` are updated.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataScan(com.google.cloud.dataplex.v1.DataScan value) { + if (dataScanBuilder_ == null) { + if (dataScan_ != null) { + dataScan_ = + com.google.cloud.dataplex.v1.DataScan.newBuilder(dataScan_) + .mergeFrom(value) + .buildPartial(); + } else { + dataScan_ = value; + } + onChanged(); + } else { + dataScanBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Update description.
+     * Only fields specified in `update_mask` are updated.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataScan() { + if (dataScanBuilder_ == null) { + dataScan_ = null; + onChanged(); + } else { + dataScan_ = null; + dataScanBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Update description.
+     * Only fields specified in `update_mask` are updated.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataplex.v1.DataScan.Builder getDataScanBuilder() { + + onChanged(); + return getDataScanFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Update description.
+     * Only fields specified in `update_mask` are updated.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.dataplex.v1.DataScanOrBuilder getDataScanOrBuilder() { + if (dataScanBuilder_ != null) { + return dataScanBuilder_.getMessageOrBuilder(); + } else { + return dataScan_ == null + ? com.google.cloud.dataplex.v1.DataScan.getDefaultInstance() + : dataScan_; + } + } + /** + * + * + *
+     * Required. Update description.
+     * Only fields specified in `update_mask` are updated.
+     * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan, + com.google.cloud.dataplex.v1.DataScan.Builder, + com.google.cloud.dataplex.v1.DataScanOrBuilder> + getDataScanFieldBuilder() { + if (dataScanBuilder_ == null) { + dataScanBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataplex.v1.DataScan, + com.google.cloud.dataplex.v1.DataScan.Builder, + com.google.cloud.dataplex.v1.DataScanOrBuilder>( + getDataScan(), getParentForChildren(), isClean()); + dataScan_ = null; + } + return dataScanBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Mask of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. Mask of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Mask of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Mask of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Mask of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.UpdateDataScanRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.UpdateDataScanRequest) + private static final com.google.cloud.dataplex.v1.UpdateDataScanRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.UpdateDataScanRequest(); + } + + public static com.google.cloud.dataplex.v1.UpdateDataScanRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataScanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataplex.v1.UpdateDataScanRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateDataScanRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateDataScanRequestOrBuilder.java new file mode 100644 index 000000000000..23e0938cef3f --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/UpdateDataScanRequestOrBuilder.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/dataplex/v1/datascans.proto + +package com.google.cloud.dataplex.v1; + +public interface UpdateDataScanRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.UpdateDataScanRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Update description.
+   * Only fields specified in `update_mask` are updated.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataScan field is set. + */ + boolean hasDataScan(); + /** + * + * + *
+   * Required. Update description.
+   * Only fields specified in `update_mask` are updated.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataScan. + */ + com.google.cloud.dataplex.v1.DataScan getDataScan(); + /** + * + * + *
+   * Required. Update description.
+   * Only fields specified in `update_mask` are updated.
+   * 
+ * + * + * .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.dataplex.v1.DataScanOrBuilder getDataScanOrBuilder(); + + /** + * + * + *
+   * Required. Mask of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Mask of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Mask of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Zone.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Zone.java index 72f09482eb9c..40b9612cd8f6 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Zone.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/Zone.java @@ -260,8 +260,8 @@ public interface ResourceSpecOrBuilder * * *
-     * Required. Immutable. The location type of the resources that are allowed to be attached to the
-     * assets within this zone.
+     * Required. Immutable. The location type of the resources that are allowed
+     * to be attached to the assets within this zone.
      * 
* * @@ -275,8 +275,8 @@ public interface ResourceSpecOrBuilder * * *
-     * Required. Immutable. The location type of the resources that are allowed to be attached to the
-     * assets within this zone.
+     * Required. Immutable. The location type of the resources that are allowed
+     * to be attached to the assets within this zone.
      * 
* * @@ -499,8 +499,8 @@ private LocationType(int value) { * * *
-     * Required. Immutable. The location type of the resources that are allowed to be attached to the
-     * assets within this zone.
+     * Required. Immutable. The location type of the resources that are allowed
+     * to be attached to the assets within this zone.
      * 
* * @@ -517,8 +517,8 @@ public int getLocationTypeValue() { * * *
-     * Required. Immutable. The location type of the resources that are allowed to be attached to the
-     * assets within this zone.
+     * Required. Immutable. The location type of the resources that are allowed
+     * to be attached to the assets within this zone.
      * 
* * @@ -879,8 +879,8 @@ public Builder mergeFrom( * * *
-       * Required. Immutable. The location type of the resources that are allowed to be attached to the
-       * assets within this zone.
+       * Required. Immutable. The location type of the resources that are allowed
+       * to be attached to the assets within this zone.
        * 
* * @@ -897,8 +897,8 @@ public int getLocationTypeValue() { * * *
-       * Required. Immutable. The location type of the resources that are allowed to be attached to the
-       * assets within this zone.
+       * Required. Immutable. The location type of the resources that are allowed
+       * to be attached to the assets within this zone.
        * 
* * @@ -918,8 +918,8 @@ public Builder setLocationTypeValue(int value) { * * *
-       * Required. Immutable. The location type of the resources that are allowed to be attached to the
-       * assets within this zone.
+       * Required. Immutable. The location type of the resources that are allowed
+       * to be attached to the assets within this zone.
        * 
* * @@ -941,8 +941,8 @@ public com.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType getLocationTy * * *
-       * Required. Immutable. The location type of the resources that are allowed to be attached to the
-       * assets within this zone.
+       * Required. Immutable. The location type of the resources that are allowed
+       * to be attached to the assets within this zone.
        * 
* * @@ -966,8 +966,8 @@ public Builder setLocationType( * * *
-       * Required. Immutable. The location type of the resources that are allowed to be attached to the
-       * assets within this zone.
+       * Required. Immutable. The location type of the resources that are allowed
+       * to be attached to the assets within this zone.
        * 
* * @@ -1069,11 +1069,11 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered. For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are
-     * interpreted as patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered. For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1085,11 +1085,11 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered. For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are
-     * interpreted as patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered. For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1101,11 +1101,11 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered. For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are
-     * interpreted as patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered. For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1118,11 +1118,11 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered. For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are
-     * interpreted as patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered. For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1136,9 +1136,9 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -1151,9 +1151,9 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -1166,9 +1166,9 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -1182,9 +1182,9 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -1281,15 +1281,15 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * discovery periodically. Successive discovery runs must be scheduled at
-     * least 60 minutes apart.
-     * The default value is to run discovery every 60 minutes.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running discovery periodically. Successive discovery runs must be
+     * scheduled at least 60 minutes apart. The default value is to run
+     * discovery every 60 minutes. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+     * from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -1301,15 +1301,15 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * discovery periodically. Successive discovery runs must be scheduled at
-     * least 60 minutes apart.
-     * The default value is to run discovery every 60 minutes.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running discovery periodically. Successive discovery runs must be
+     * scheduled at least 60 minutes apart. The default value is to run
+     * discovery every 60 minutes. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+     * from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -1321,15 +1321,15 @@ public interface DiscoverySpecOrBuilder * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * discovery periodically. Successive discovery runs must be scheduled at
-     * least 60 minutes apart.
-     * The default value is to run discovery every 60 minutes.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running discovery periodically. Successive discovery runs must be
+     * scheduled at least 60 minutes apart. The default value is to run
+     * discovery every 60 minutes. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+     * from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -1399,8 +1399,8 @@ public interface CsvOptionsOrBuilder * * *
-       * Optional. The number of rows to interpret as header rows that should be skipped
-       * when reading data rows.
+       * Optional. The number of rows to interpret as header rows that should be
+       * skipped when reading data rows.
        * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1413,7 +1413,8 @@ public interface CsvOptionsOrBuilder * * *
-       * Optional. The delimiter being used to separate values. This defaults to ','.
+       * Optional. The delimiter being used to separate values. This defaults to
+       * ','.
        * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1425,7 +1426,8 @@ public interface CsvOptionsOrBuilder * * *
-       * Optional. The delimiter being used to separate values. This defaults to ','.
+       * Optional. The delimiter being used to separate values. This defaults to
+       * ','.
        * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1529,8 +1531,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * Optional. The number of rows to interpret as header rows that should be skipped
-       * when reading data rows.
+       * Optional. The number of rows to interpret as header rows that should be
+       * skipped when reading data rows.
        * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1548,7 +1550,8 @@ public int getHeaderRows() { * * *
-       * Optional. The delimiter being used to separate values. This defaults to ','.
+       * Optional. The delimiter being used to separate values. This defaults to
+       * ','.
        * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1571,7 +1574,8 @@ public java.lang.String getDelimiter() { * * *
-       * Optional. The delimiter being used to separate values. This defaults to ','.
+       * Optional. The delimiter being used to separate values. This defaults to
+       * ','.
        * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2065,8 +2069,8 @@ public Builder mergeFrom( * * *
-         * Optional. The number of rows to interpret as header rows that should be skipped
-         * when reading data rows.
+         * Optional. The number of rows to interpret as header rows that should be
+         * skipped when reading data rows.
          * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2081,8 +2085,8 @@ public int getHeaderRows() { * * *
-         * Optional. The number of rows to interpret as header rows that should be skipped
-         * when reading data rows.
+         * Optional. The number of rows to interpret as header rows that should be
+         * skipped when reading data rows.
          * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2100,8 +2104,8 @@ public Builder setHeaderRows(int value) { * * *
-         * Optional. The number of rows to interpret as header rows that should be skipped
-         * when reading data rows.
+         * Optional. The number of rows to interpret as header rows that should be
+         * skipped when reading data rows.
          * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2120,7 +2124,8 @@ public Builder clearHeaderRows() { * * *
-         * Optional. The delimiter being used to separate values. This defaults to ','.
+         * Optional. The delimiter being used to separate values. This defaults to
+         * ','.
          * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2142,7 +2147,8 @@ public java.lang.String getDelimiter() { * * *
-         * Optional. The delimiter being used to separate values. This defaults to ','.
+         * Optional. The delimiter being used to separate values. This defaults to
+         * ','.
          * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2164,7 +2170,8 @@ public com.google.protobuf.ByteString getDelimiterBytes() { * * *
-         * Optional. The delimiter being used to separate values. This defaults to ','.
+         * Optional. The delimiter being used to separate values. This defaults to
+         * ','.
          * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2185,7 +2192,8 @@ public Builder setDelimiter(java.lang.String value) { * * *
-         * Optional. The delimiter being used to separate values. This defaults to ','.
+         * Optional. The delimiter being used to separate values. This defaults to
+         * ','.
          * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2202,7 +2210,8 @@ public Builder clearDelimiter() { * * *
-         * Optional. The delimiter being used to separate values. This defaults to ','.
+         * Optional. The delimiter being used to separate values. This defaults to
+         * ','.
          * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3270,11 +3279,11 @@ public boolean getEnabled() { * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered. For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are
-     * interpreted as patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered. For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3288,11 +3297,11 @@ public com.google.protobuf.ProtocolStringList getIncludePatternsList() { * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered. For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are
-     * interpreted as patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered. For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3306,11 +3315,11 @@ public int getIncludePatternsCount() { * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered. For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are
-     * interpreted as patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered. For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3325,11 +3334,11 @@ public java.lang.String getIncludePatterns(int index) { * * *
-     * Optional. The list of patterns to apply for selecting data to include during
-     * discovery if only a subset of the data should considered. For Cloud
-     * Storage bucket assets, these are interpreted as glob patterns used to
-     * match object names. For BigQuery dataset assets, these are
-     * interpreted as patterns to match table names.
+     * Optional. The list of patterns to apply for selecting data to include
+     * during discovery if only a subset of the data should considered. For
+     * Cloud Storage bucket assets, these are interpreted as glob patterns used
+     * to match object names. For BigQuery dataset assets, these are interpreted
+     * as patterns to match table names.
      * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3347,9 +3356,9 @@ public com.google.protobuf.ByteString getIncludePatternsBytes(int index) { * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -3364,9 +3373,9 @@ public com.google.protobuf.ProtocolStringList getExcludePatternsList() { * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -3381,9 +3390,9 @@ public int getExcludePatternsCount() { * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -3399,9 +3408,9 @@ public java.lang.String getExcludePatterns(int index) { * * *
-     * Optional. The list of patterns to apply for selecting data to exclude during
-     * discovery.  For Cloud Storage bucket assets, these are interpreted as
-     * glob patterns used to match object names. For BigQuery dataset assets,
+     * Optional. The list of patterns to apply for selecting data to exclude
+     * during discovery.  For Cloud Storage bucket assets, these are interpreted
+     * as glob patterns used to match object names. For BigQuery dataset assets,
      * these are interpreted as patterns to match table names.
      * 
* @@ -3529,15 +3538,15 @@ public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions getJsonOption * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * discovery periodically. Successive discovery runs must be scheduled at
-     * least 60 minutes apart.
-     * The default value is to run discovery every 60 minutes.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running discovery periodically. Successive discovery runs must be
+     * scheduled at least 60 minutes apart. The default value is to run
+     * discovery every 60 minutes. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+     * from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3551,15 +3560,15 @@ public boolean hasSchedule() { * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * discovery periodically. Successive discovery runs must be scheduled at
-     * least 60 minutes apart.
-     * The default value is to run discovery every 60 minutes.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running discovery periodically. Successive discovery runs must be
+     * scheduled at least 60 minutes apart. The default value is to run
+     * discovery every 60 minutes. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+     * from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3586,15 +3595,15 @@ public java.lang.String getSchedule() { * * *
-     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-     * discovery periodically. Successive discovery runs must be scheduled at
-     * least 60 minutes apart.
-     * The default value is to run discovery every 60 minutes.
-     * To explicitly set a timezone to the cron tab, apply a prefix in the
-     * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-     * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-     * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-     * "TZ=America/New_York 1 * * * *".
+     * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+     * running discovery periodically. Successive discovery runs must be
+     * scheduled at least 60 minutes apart. The default value is to run
+     * discovery every 60 minutes. To explicitly set a timezone to the cron
+     * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+     * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+     * from IANA time zone database. For example,
+     * `CRON_TZ=America/New_York 1 * * * *`,
+     * or `TZ=America/New_York 1 * * * *`.
      * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -4229,11 +4238,11 @@ private void ensureIncludePatternsIsMutable() { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered. For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are
-       * interpreted as patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered. For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4248,11 +4257,11 @@ public com.google.protobuf.ProtocolStringList getIncludePatternsList() { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered. For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are
-       * interpreted as patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered. For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4267,11 +4276,11 @@ public int getIncludePatternsCount() { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered. For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are
-       * interpreted as patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered. For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4287,11 +4296,11 @@ public java.lang.String getIncludePatterns(int index) { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered. For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are
-       * interpreted as patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered. For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4307,11 +4316,11 @@ public com.google.protobuf.ByteString getIncludePatternsBytes(int index) { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered. For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are
-       * interpreted as patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered. For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4334,11 +4343,11 @@ public Builder setIncludePatterns(int index, java.lang.String value) { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered. For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are
-       * interpreted as patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered. For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4360,11 +4369,11 @@ public Builder addIncludePatterns(java.lang.String value) { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered. For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are
-       * interpreted as patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered. For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4383,11 +4392,11 @@ public Builder addAllIncludePatterns(java.lang.Iterable values * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered. For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are
-       * interpreted as patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered. For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4405,11 +4414,11 @@ public Builder clearIncludePatterns() { * * *
-       * Optional. The list of patterns to apply for selecting data to include during
-       * discovery if only a subset of the data should considered. For Cloud
-       * Storage bucket assets, these are interpreted as glob patterns used to
-       * match object names. For BigQuery dataset assets, these are
-       * interpreted as patterns to match table names.
+       * Optional. The list of patterns to apply for selecting data to include
+       * during discovery if only a subset of the data should considered. For
+       * Cloud Storage bucket assets, these are interpreted as glob patterns used
+       * to match object names. For BigQuery dataset assets, these are interpreted
+       * as patterns to match table names.
        * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -4442,9 +4451,9 @@ private void ensureExcludePatternsIsMutable() { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4460,9 +4469,9 @@ public com.google.protobuf.ProtocolStringList getExcludePatternsList() { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4478,9 +4487,9 @@ public int getExcludePatternsCount() { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4497,9 +4506,9 @@ public java.lang.String getExcludePatterns(int index) { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4516,9 +4525,9 @@ public com.google.protobuf.ByteString getExcludePatternsBytes(int index) { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4542,9 +4551,9 @@ public Builder setExcludePatterns(int index, java.lang.String value) { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4567,9 +4576,9 @@ public Builder addExcludePatterns(java.lang.String value) { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4589,9 +4598,9 @@ public Builder addAllExcludePatterns(java.lang.Iterable values * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -4610,9 +4619,9 @@ public Builder clearExcludePatterns() { * * *
-       * Optional. The list of patterns to apply for selecting data to exclude during
-       * discovery.  For Cloud Storage bucket assets, these are interpreted as
-       * glob patterns used to match object names. For BigQuery dataset assets,
+       * Optional. The list of patterns to apply for selecting data to exclude
+       * during discovery.  For Cloud Storage bucket assets, these are interpreted
+       * as glob patterns used to match object names. For BigQuery dataset assets,
        * these are interpreted as patterns to match table names.
        * 
* @@ -5053,15 +5062,15 @@ public Builder clearJsonOptions() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * discovery periodically. Successive discovery runs must be scheduled at
-       * least 60 minutes apart.
-       * The default value is to run discovery every 60 minutes.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running discovery periodically. Successive discovery runs must be
+       * scheduled at least 60 minutes apart. The default value is to run
+       * discovery every 60 minutes. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+       * from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -5076,15 +5085,15 @@ public boolean hasSchedule() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * discovery periodically. Successive discovery runs must be scheduled at
-       * least 60 minutes apart.
-       * The default value is to run discovery every 60 minutes.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running discovery periodically. Successive discovery runs must be
+       * scheduled at least 60 minutes apart. The default value is to run
+       * discovery every 60 minutes. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+       * from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -5112,15 +5121,15 @@ public java.lang.String getSchedule() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * discovery periodically. Successive discovery runs must be scheduled at
-       * least 60 minutes apart.
-       * The default value is to run discovery every 60 minutes.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running discovery periodically. Successive discovery runs must be
+       * scheduled at least 60 minutes apart. The default value is to run
+       * discovery every 60 minutes. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+       * from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -5148,15 +5157,15 @@ public com.google.protobuf.ByteString getScheduleBytes() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * discovery periodically. Successive discovery runs must be scheduled at
-       * least 60 minutes apart.
-       * The default value is to run discovery every 60 minutes.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running discovery periodically. Successive discovery runs must be
+       * scheduled at least 60 minutes apart. The default value is to run
+       * discovery every 60 minutes. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+       * from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -5177,15 +5186,15 @@ public Builder setSchedule(java.lang.String value) { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * discovery periodically. Successive discovery runs must be scheduled at
-       * least 60 minutes apart.
-       * The default value is to run discovery every 60 minutes.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running discovery periodically. Successive discovery runs must be
+       * scheduled at least 60 minutes apart. The default value is to run
+       * discovery every 60 minutes. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+       * from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -5204,15 +5213,15 @@ public Builder clearSchedule() { * * *
-       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running
-       * discovery periodically. Successive discovery runs must be scheduled at
-       * least 60 minutes apart.
-       * The default value is to run discovery every 60 minutes.
-       * To explicitly set a timezone to the cron tab, apply a prefix in the
-       * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}".
-       * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone
-       * database. For example, "CRON_TZ=America/New_York 1 * * * *", or
-       * "TZ=America/New_York 1 * * * *".
+       * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
+       * running discovery periodically. Successive discovery runs must be
+       * scheduled at least 60 minutes apart. The default value is to run
+       * discovery every 60 minutes. To explicitly set a timezone to the cron
+       * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
+       * TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
+       * from IANA time zone database. For example,
+       * `CRON_TZ=America/New_York 1 * * * *`,
+       * or `TZ=America/New_York 1 * * * *`.
        * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -5405,8 +5414,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Output only. System generated globally unique ID for the zone. This ID will be
-   * different if the zone is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the zone. This ID will
+   * be different if the zone is deleted and re-created with the same name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5429,8 +5438,8 @@ public java.lang.String getUid() { * * *
-   * Output only. System generated globally unique ID for the zone. This ID will be
-   * different if the zone is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the zone. This ID will
+   * be different if the zone is deleted and re-created with the same name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5778,7 +5787,8 @@ public com.google.cloud.dataplex.v1.Zone.Type getType() { * * *
-   * Optional. Specification of the discovery feature applied to data in this zone.
+   * Optional. Specification of the discovery feature applied to data in this
+   * zone.
    * 
* * @@ -5795,7 +5805,8 @@ public boolean hasDiscoverySpec() { * * *
-   * Optional. Specification of the discovery feature applied to data in this zone.
+   * Optional. Specification of the discovery feature applied to data in this
+   * zone.
    * 
* * @@ -5814,7 +5825,8 @@ public com.google.cloud.dataplex.v1.Zone.DiscoverySpec getDiscoverySpec() { * * *
-   * Optional. Specification of the discovery feature applied to data in this zone.
+   * Optional. Specification of the discovery feature applied to data in this
+   * zone.
    * 
* * @@ -5832,8 +5844,8 @@ public com.google.cloud.dataplex.v1.Zone.DiscoverySpecOrBuilder getDiscoverySpec * * *
-   * Required. Specification of the resources that are referenced by the assets within
-   * this zone.
+   * Required. Specification of the resources that are referenced by the assets
+   * within this zone.
    * 
* * @@ -5850,8 +5862,8 @@ public boolean hasResourceSpec() { * * *
-   * Required. Specification of the resources that are referenced by the assets within
-   * this zone.
+   * Required. Specification of the resources that are referenced by the assets
+   * within this zone.
    * 
* * @@ -5870,8 +5882,8 @@ public com.google.cloud.dataplex.v1.Zone.ResourceSpec getResourceSpec() { * * *
-   * Required. Specification of the resources that are referenced by the assets within
-   * this zone.
+   * Required. Specification of the resources that are referenced by the assets
+   * within this zone.
    * 
* * @@ -6831,8 +6843,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. System generated globally unique ID for the zone. This ID will be
-     * different if the zone is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the zone. This ID will
+     * be different if the zone is deleted and re-created with the same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6854,8 +6866,8 @@ public java.lang.String getUid() { * * *
-     * Output only. System generated globally unique ID for the zone. This ID will be
-     * different if the zone is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the zone. This ID will
+     * be different if the zone is deleted and re-created with the same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6877,8 +6889,8 @@ public com.google.protobuf.ByteString getUidBytes() { * * *
-     * Output only. System generated globally unique ID for the zone. This ID will be
-     * different if the zone is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the zone. This ID will
+     * be different if the zone is deleted and re-created with the same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6899,8 +6911,8 @@ public Builder setUid(java.lang.String value) { * * *
-     * Output only. System generated globally unique ID for the zone. This ID will be
-     * different if the zone is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the zone. This ID will
+     * be different if the zone is deleted and re-created with the same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6917,8 +6929,8 @@ public Builder clearUid() { * * *
-     * Output only. System generated globally unique ID for the zone. This ID will be
-     * different if the zone is deleted and re-created with the same name.
+     * Output only. System generated globally unique ID for the zone. This ID will
+     * be different if the zone is deleted and re-created with the same name.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -7810,7 +7822,8 @@ public Builder clearType() { * * *
-     * Optional. Specification of the discovery feature applied to data in this zone.
+     * Optional. Specification of the discovery feature applied to data in this
+     * zone.
      * 
* * @@ -7826,7 +7839,8 @@ public boolean hasDiscoverySpec() { * * *
-     * Optional. Specification of the discovery feature applied to data in this zone.
+     * Optional. Specification of the discovery feature applied to data in this
+     * zone.
      * 
* * @@ -7848,7 +7862,8 @@ public com.google.cloud.dataplex.v1.Zone.DiscoverySpec getDiscoverySpec() { * * *
-     * Optional. Specification of the discovery feature applied to data in this zone.
+     * Optional. Specification of the discovery feature applied to data in this
+     * zone.
      * 
* * @@ -7872,7 +7887,8 @@ public Builder setDiscoverySpec(com.google.cloud.dataplex.v1.Zone.DiscoverySpec * * *
-     * Optional. Specification of the discovery feature applied to data in this zone.
+     * Optional. Specification of the discovery feature applied to data in this
+     * zone.
      * 
* * @@ -7894,7 +7910,8 @@ public Builder setDiscoverySpec( * * *
-     * Optional. Specification of the discovery feature applied to data in this zone.
+     * Optional. Specification of the discovery feature applied to data in this
+     * zone.
      * 
* * @@ -7922,7 +7939,8 @@ public Builder mergeDiscoverySpec(com.google.cloud.dataplex.v1.Zone.DiscoverySpe * * *
-     * Optional. Specification of the discovery feature applied to data in this zone.
+     * Optional. Specification of the discovery feature applied to data in this
+     * zone.
      * 
* * @@ -7944,7 +7962,8 @@ public Builder clearDiscoverySpec() { * * *
-     * Optional. Specification of the discovery feature applied to data in this zone.
+     * Optional. Specification of the discovery feature applied to data in this
+     * zone.
      * 
* * @@ -7960,7 +7979,8 @@ public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.Builder getDiscoverySpecB * * *
-     * Optional. Specification of the discovery feature applied to data in this zone.
+     * Optional. Specification of the discovery feature applied to data in this
+     * zone.
      * 
* * @@ -7980,7 +8000,8 @@ public com.google.cloud.dataplex.v1.Zone.DiscoverySpecOrBuilder getDiscoverySpec * * *
-     * Optional. Specification of the discovery feature applied to data in this zone.
+     * Optional. Specification of the discovery feature applied to data in this
+     * zone.
      * 
* * @@ -8014,8 +8035,8 @@ public com.google.cloud.dataplex.v1.Zone.DiscoverySpecOrBuilder getDiscoverySpec * * *
-     * Required. Specification of the resources that are referenced by the assets within
-     * this zone.
+     * Required. Specification of the resources that are referenced by the assets
+     * within this zone.
      * 
* * @@ -8031,8 +8052,8 @@ public boolean hasResourceSpec() { * * *
-     * Required. Specification of the resources that are referenced by the assets within
-     * this zone.
+     * Required. Specification of the resources that are referenced by the assets
+     * within this zone.
      * 
* * @@ -8054,8 +8075,8 @@ public com.google.cloud.dataplex.v1.Zone.ResourceSpec getResourceSpec() { * * *
-     * Required. Specification of the resources that are referenced by the assets within
-     * this zone.
+     * Required. Specification of the resources that are referenced by the assets
+     * within this zone.
      * 
* * @@ -8079,8 +8100,8 @@ public Builder setResourceSpec(com.google.cloud.dataplex.v1.Zone.ResourceSpec va * * *
-     * Required. Specification of the resources that are referenced by the assets within
-     * this zone.
+     * Required. Specification of the resources that are referenced by the assets
+     * within this zone.
      * 
* * @@ -8102,8 +8123,8 @@ public Builder setResourceSpec( * * *
-     * Required. Specification of the resources that are referenced by the assets within
-     * this zone.
+     * Required. Specification of the resources that are referenced by the assets
+     * within this zone.
      * 
* * @@ -8131,8 +8152,8 @@ public Builder mergeResourceSpec(com.google.cloud.dataplex.v1.Zone.ResourceSpec * * *
-     * Required. Specification of the resources that are referenced by the assets within
-     * this zone.
+     * Required. Specification of the resources that are referenced by the assets
+     * within this zone.
      * 
* * @@ -8154,8 +8175,8 @@ public Builder clearResourceSpec() { * * *
-     * Required. Specification of the resources that are referenced by the assets within
-     * this zone.
+     * Required. Specification of the resources that are referenced by the assets
+     * within this zone.
      * 
* * @@ -8171,8 +8192,8 @@ public com.google.cloud.dataplex.v1.Zone.ResourceSpec.Builder getResourceSpecBui * * *
-     * Required. Specification of the resources that are referenced by the assets within
-     * this zone.
+     * Required. Specification of the resources that are referenced by the assets
+     * within this zone.
      * 
* * @@ -8192,8 +8213,8 @@ public com.google.cloud.dataplex.v1.Zone.ResourceSpecOrBuilder getResourceSpecOr * * *
-     * Required. Specification of the resources that are referenced by the assets within
-     * this zone.
+     * Required. Specification of the resources that are referenced by the assets
+     * within this zone.
      * 
* * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ZoneOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ZoneOrBuilder.java index 53026cd360ce..b83ac93d0ca0 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ZoneOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/ZoneOrBuilder.java @@ -83,8 +83,8 @@ public interface ZoneOrBuilder * * *
-   * Output only. System generated globally unique ID for the zone. This ID will be
-   * different if the zone is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the zone. This ID will
+   * be different if the zone is deleted and re-created with the same name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -96,8 +96,8 @@ public interface ZoneOrBuilder * * *
-   * Output only. System generated globally unique ID for the zone. This ID will be
-   * different if the zone is deleted and re-created with the same name.
+   * Output only. System generated globally unique ID for the zone. This ID will
+   * be different if the zone is deleted and re-created with the same name.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -326,7 +326,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Specification of the discovery feature applied to data in this zone.
+   * Optional. Specification of the discovery feature applied to data in this
+   * zone.
    * 
* * @@ -340,7 +341,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Specification of the discovery feature applied to data in this zone.
+   * Optional. Specification of the discovery feature applied to data in this
+   * zone.
    * 
* * @@ -354,7 +356,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Specification of the discovery feature applied to data in this zone.
+   * Optional. Specification of the discovery feature applied to data in this
+   * zone.
    * 
* * @@ -367,8 +370,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. Specification of the resources that are referenced by the assets within
-   * this zone.
+   * Required. Specification of the resources that are referenced by the assets
+   * within this zone.
    * 
* * @@ -382,8 +385,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. Specification of the resources that are referenced by the assets within
-   * this zone.
+   * Required. Specification of the resources that are referenced by the assets
+   * within this zone.
    * 
* * @@ -397,8 +400,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. Specification of the resources that are referenced by the assets within
-   * this zone.
+   * Required. Specification of the resources that are referenced by the assets
+   * within this zone.
    * 
* * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/analyze.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/analyze.proto index 6f987fafad0d..ece76eb5a93a 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/analyze.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/analyze.proto @@ -42,7 +42,8 @@ message Environment { // Optional. Size in GB of the disk. Default is 100 GB. int32 disk_size_gb = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Total number of nodes in the sessions created for this environment. + // Optional. Total number of nodes in the sessions created for this + // environment. int32 node_count = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Max configurable nodes. @@ -58,18 +59,21 @@ message Environment { // Optional. List of Java jars to be included in the runtime environment. // Valid input includes Cloud Storage URIs to Jar binaries. // For example, gs://bucket-name/my/path/to/file.jar - repeated string java_libraries = 2 [(google.api.field_behavior) = OPTIONAL]; + repeated string java_libraries = 2 + [(google.api.field_behavior) = OPTIONAL]; // Optional. A list of python packages to be installed. // Valid formats include Cloud Storage URI to a PIP installable library. // For example, gs://bucket-name/my/path/to/lib.tar.gz - repeated string python_packages = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Spark properties to provide configuration for use in sessions created - // for this environment. The properties to set on daemon config files. - // Property keys are specified in `prefix:property` format. - // The prefix must be "spark". - map properties = 4 [(google.api.field_behavior) = OPTIONAL]; + repeated string python_packages = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Spark properties to provide configuration for use in sessions + // created for this environment. The properties to set on daemon config + // files. Property keys are specified in `prefix:property` format. The + // prefix must be "spark". + map properties = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Hardware config @@ -80,7 +84,8 @@ message Environment { // Software config oneof runtime { - // Required. Software Runtime Configuration for analyze interactive workloads. + // Required. Software Runtime Configuration for analyze interactive + // workloads. OsImageRuntime os_image = 100 [(google.api.field_behavior) = REQUIRED]; } } @@ -88,19 +93,20 @@ message Environment { message SessionSpec { // Optional. The idle time configuration of the session. The session will be // auto-terminated at the end of this period. - google.protobuf.Duration max_idle_duration = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If True, this causes sessions to be pre-created and available for faster - // startup to enable interactive exploration use-cases. This defaults to - // False to avoid additional billed charges. - // These can only be set to True for the environment with name set to - // "default", and with default configuration. + google.protobuf.Duration max_idle_duration = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If True, this causes sessions to be pre-created and available + // for faster startup to enable interactive exploration use-cases. This + // defaults to False to avoid additional billed charges. These can only be + // set to True for the environment with name set to "default", and with + // default configuration. bool enable_fast_startup = 2 [(google.api.field_behavior) = OPTIONAL]; } message SessionStatus { - // Output only. Queries over sessions to mark whether the environment is currently - // active or not + // Output only. Queries over sessions to mark whether the environment is + // currently active or not bool active = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -124,15 +130,18 @@ message Environment { // Optional. User friendly display name. string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; - // Output only. System generated globally unique ID for the environment. This ID will be - // different if the environment is deleted and re-created with the same name. + // Output only. System generated globally unique ID for the environment. This + // ID will be different if the environment is deleted and re-created with the + // same name. string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Environment creation time. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the environment was last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. User defined labels for the environment. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -144,15 +153,18 @@ message Environment { State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Infrastructure specification for the Environment. - InfrastructureSpec infrastructure_spec = 100 [(google.api.field_behavior) = REQUIRED]; + InfrastructureSpec infrastructure_spec = 100 + [(google.api.field_behavior) = REQUIRED]; // Optional. Configuration for sessions created for this environment. SessionSpec session_spec = 101 [(google.api.field_behavior) = OPTIONAL]; // Output only. Status of sessions created for this environment. - SessionStatus session_status = 102 [(google.api.field_behavior) = OUTPUT_ONLY]; + SessionStatus session_status = 102 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. URI Endpoints to access sessions associated with the Environment. + // Output only. URI Endpoints to access sessions associated with the + // Environment. Endpoints endpoints = 200 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -202,20 +214,23 @@ message Content { } ]; - // Output only. System generated globally unique ID for the content. This ID will be - // different if the content is deleted and re-created with the same name. + // Output only. System generated globally unique ID for the content. This ID + // will be different if the content is deleted and re-created with the same + // name. string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. The path for the Content file, represented as directory structure. - // Unique within a lake. - // Limited to alphanumerics, hyphens, underscores, dots and slashes. + // Required. The path for the Content file, represented as directory + // structure. Unique within a lake. Limited to alphanumerics, hyphens, + // underscores, dots and slashes. string path = 3 [(google.api.field_behavior) = REQUIRED]; // Output only. Content creation time. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the content was last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. User defined labels for the content. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -258,7 +273,8 @@ message Session { string user_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Session start time. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/content.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/content.proto index cd335a58cfd0..9064de5c32ab 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/content.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/content.proto @@ -34,7 +34,8 @@ option java_package = "com.google.cloud.dataplex.v1"; // ContentService manages Notebook and SQL Scripts for Dataplex. service ContentService { option (google.api.default_host) = "dataplex.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Create a content. rpc CreateContent(CreateContentRequest) returns (Content) { @@ -90,7 +91,8 @@ service ContentService { // // Caller must have Google IAM `dataplex.content.getIamPolicy` permission // on the resource. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { option (google.api.http) = { get: "/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:getIamPolicy" additional_bindings { @@ -105,7 +107,8 @@ service ContentService { // // Caller must have Google IAM `dataplex.content.setIamPolicy` permission // on the resource. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:setIamPolicy" body: "*" @@ -126,7 +129,8 @@ service ContentService { // Note: This operation is designed to be used for building permission-aware // UIs and command-line tools, not for authorization checking. This operation // may "fail open" without warning. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:testIamPermissions" body: "*" @@ -155,9 +159,7 @@ message CreateContentRequest { // projects/{project_id}/locations/{location_id}/lakes/{lake_id} string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; // Required. Content resource. @@ -171,7 +173,8 @@ message CreateContentRequest { // Update content request. message UpdateContentRequest { // Required. Mask of fields to update. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; // Required. Update description. // Only fields specified in `update_mask` are updated. @@ -200,18 +203,16 @@ message ListContentRequest { // projects/{project_id}/locations/{location_id}/lakes/{lake_id} string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; - // Optional. Maximum number of content to return. The service may return fewer than - // this value. If unspecified, at most 10 content will be returned. The + // Optional. Maximum number of content to return. The service may return fewer + // than this value. If unspecified, at most 10 content will be returned. The // maximum value is 1000; values above 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListContent` call. Provide this - // to retrieve the subsequent page. When paginating, all other parameters + // Optional. Page token received from a previous `ListContent` call. Provide + // this to retrieve the subsequent page. When paginating, all other parameters // provided to `ListContent` must match the call that provided the page // token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_profile.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_profile.proto new file mode 100644 index 000000000000..bb8695af09cf --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_profile.proto @@ -0,0 +1,207 @@ +// 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.dataplex.v1; + +import "google/cloud/dataplex/v1/processing.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option java_multiple_files = true; +option java_outer_classname = "DataProfileProto"; +option java_package = "com.google.cloud.dataplex.v1"; + +// DataProfileScan related setting. +message DataProfileSpec {} + +// DataProfileResult defines the output of DataProfileScan. +// Each field of the table will have field type specific profile result. +message DataProfileResult { + // Profile information describing the structure and layout of the data + // and contains the profile info. + message Profile { + // Represents a column field within a table schema. + message Field { + // ProfileInfo defines the profile information for each schema field type. + message ProfileInfo { + // StringFieldInfo defines output info for any string type field. + message StringFieldInfo { + // The minimum length of the string field in the sampled data. + // Optional if zero non-null rows. + int64 min_length = 1; + + // The maximum length of a string field in the sampled data. + // Optional if zero non-null rows. + int64 max_length = 2; + + // The average length of a string field in the sampled data. + // Optional if zero non-null rows. + double average_length = 3; + } + + // IntegerFieldInfo defines output for any integer type field. + message IntegerFieldInfo { + // The average of non-null values of integer field in the sampled + // data. Return NaN, if the field has a NaN. Optional if zero non-null + // rows. + double average = 1; + + // The standard deviation of non-null of integer field in the sampled + // data. Return NaN, if the field has a NaN. Optional if zero non-null + // rows. + double standard_deviation = 3; + + // The minimum value of an integer field in the sampled data. + // Return NaN, if the field has a NaN. Optional if zero non-null + // rows. + int64 min = 4; + + // A quartile divide the number of data points into four parts, or + // quarters, of more-or-less equal size. Three main quartiles used + // are: The first quartile (Q1) splits off the lowest 25% of data from + // the highest 75%. It is also known as the lower or 25th empirical + // quartile, as 25% of the data is below this point. The second + // quartile (Q2) is the median of a data set. So, 50% of the data lies + // below this point. The third quartile (Q3) splits off the highest + // 25% of data from the lowest 75%. It is known as the upper or 75th + // empirical quartile, as 75% of the data lies below this point. So, + // here the quartiles is provided as an ordered list of quartile + // values, occurring in order Q1, median, Q3. + repeated int64 quartiles = 6; + + // The maximum value of an integer field in the sampled data. + // Return NaN, if the field has a NaN. Optional if zero non-null + // rows. + int64 max = 5; + } + + // DoubleFieldInfo defines output for any double type field. + message DoubleFieldInfo { + // The average of non-null values of double field in the sampled data. + // Return NaN, if the field has a NaN. Optional if zero non-null rows. + double average = 1; + + // The standard deviation of non-null of double field in the sampled + // data. Return NaN, if the field has a NaN. Optional if zero non-null + // rows. + double standard_deviation = 3; + + // The minimum value of a double field in the sampled data. + // Return NaN, if the field has a NaN. Optional if zero non-null + // rows. + double min = 4; + + // A quartile divide the numebr of data points into four parts, or + // quarters, of more-or-less equal size. Three main quartiles used + // are: The first quartile (Q1) splits off the lowest 25% of data from + // the highest 75%. It is also known as the lower or 25th empirical + // quartile, as 25% of the data is below this point. The second + // quartile (Q2) is the median of a data set. So, 50% of the data lies + // below this point. The third quartile (Q3) splits off the highest + // 25% of data from the lowest 75%. It is known as the upper or 75th + // empirical quartile, as 75% of the data lies below this point. So, + // here the quartiles is provided as an ordered list of quartile + // values, occurring in order Q1, median, Q3. + repeated double quartiles = 6; + + // The maximum value of a double field in the sampled data. + // Return NaN, if the field has a NaN. Optional if zero non-null + // rows. + double max = 5; + } + + // The TopNValue defines the structure of output of top N values of a + // field. + message TopNValue { + // The value is the string value of the actual value from the field. + string value = 1; + + // The frequency count of the corresponding value in the field. + int64 count = 2; + } + + // The ratio of null rows against the rows in the sampled data. + double null_ratio = 2; + + // The ratio of rows that are distinct against the rows in the sampled + // data. + double distinct_ratio = 3; + + // The array of top N values of the field in the sampled data. + // Currently N is set as 10 or equal to distinct values in the field, + // whichever is smaller. This will be optional for complex non-groupable + // data-types such as JSON, ARRAY, JSON, STRUCT. + repeated TopNValue top_n_values = 4; + + // The corresponding profile for specific field type. + // Each field will have only one field type specific profile output. + oneof field_info { + // The corresponding string field profile. + StringFieldInfo string_profile = 101; + + // The corresponding integer field profile. + IntegerFieldInfo integer_profile = 102; + + // The corresponding double field profile. + DoubleFieldInfo double_profile = 103; + } + } + + // The name of the field. + string name = 1; + + // The field data type. Possible values include: + // + // * STRING + // * BYTE + // * INT64 + // * INT32 + // * INT16 + // * DOUBLE + // * FLOAT + // * DECIMAL + // * BOOLEAN + // * BINARY + // * TIMESTAMP + // * DATE + // * TIME + // * NULL + // * RECORD + string type = 2; + + // The mode of the field. Its value will be: + // REQUIRED, if it is a required field. + // NULLABLE, if it is an optional field. + // REPEATED, if it is a repeated field. + string mode = 3; + + // The profile information for the corresponding field. + ProfileInfo profile = 4; + } + + // The sequence of fields describing data in table entities. + repeated Field fields = 2; + } + + // The count of all rows in the sampled data. + // Return 0, if zero rows. + int64 row_count = 3; + + // This represents the profile information per field. + Profile profile = 4; + + // The data scanned for this profile. + ScannedData scanned_data = 5; +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_quality.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_quality.proto new file mode 100644 index 000000000000..b0953a0ebcfe --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_quality.proto @@ -0,0 +1,236 @@ +// 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.dataplex.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/dataplex/v1/processing.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option java_multiple_files = true; +option java_outer_classname = "DataQualityProto"; +option java_package = "com.google.cloud.dataplex.v1"; + +// DataQualityScan related setting. +message DataQualitySpec { + // The list of rules to evaluate against a data source. At least one rule is + // required. + repeated DataQualityRule rules = 1; +} + +// The output of a DataQualityScan. +message DataQualityResult { + // Overall data quality result -- `true` if all rules passed. + bool passed = 5; + + // A list of results at the dimension-level. + repeated DataQualityDimensionResult dimensions = 2; + + // A list of all the rules in a job, and their results. + repeated DataQualityRuleResult rules = 3; + + // The count of rows processed. + int64 row_count = 4; + + // The data scanned for this result. + ScannedData scanned_data = 7; +} + +// DataQualityRuleResult provides a more detailed, per-rule level view of the +// results. +message DataQualityRuleResult { + // The rule specified in the DataQualitySpec, as is. + DataQualityRule rule = 1; + + // Whether the rule passed or failed. + bool passed = 7; + + // The number of rows a rule was evaluated against. + // This field is only valid for ColumnMap type rules. + // Evaluated count can be configured to either + // (1) include all rows (default) - with null rows automatically failing rule + // evaluation OR (2) exclude null rows from the evaluated_count, by setting + // ignore_nulls = true + int64 evaluated_count = 9; + + // The number of rows which passed a rule evaluation. + // This field is only valid for ColumnMap type rules. + int64 passed_count = 8; + + // The number of rows with null values in the specified column. + int64 null_count = 5; + + // The ratio of passed_count / evaluated_count. + // This field is only valid for ColumnMap type rules. + double pass_ratio = 6; + + // The query to find rows that did not pass this rule. + // Only applies to ColumnMap and RowCondition rules. + string failing_rows_query = 10; +} + +// DataQualityDimensionResult provides a more detailed, per-dimension level view +// of the results. +message DataQualityDimensionResult { + // Whether the dimension passed or failed. + bool passed = 3; +} + +// A rule captures data quality intent about a data source. +message DataQualityRule { + // Evaluates whether each column value lies between a specified range. + message RangeExpectation { + // Optional. The minimum column value allowed for a row to pass this + // validation. At least one of min_value and max_value need to be provided. + string min_value = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum column value allowed for a row to pass this + // validation. At least one of min_value and max_value need to be provided. + string max_value = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether each value needs to be strictly greater than ('>') the + // minimum, or if equality is allowed. Only relevant if a min_value has been + // defined. Default = false. + bool strict_min_enabled = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether each value needs to be strictly lesser than ('<') the + // maximum, or if equality is allowed. Only relevant if a max_value has been + // defined. Default = false. + bool strict_max_enabled = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Evaluates whether each column value is null. + message NonNullExpectation {} + + // Evaluates whether each column value is contained by a specified set. + message SetExpectation { + repeated string values = 1; + } + + // Evaluates whether each column value matches a specified regex. + message RegexExpectation { + string regex = 1; + } + + // Evaluates whether the column has duplicates. + message UniquenessExpectation {} + + // Evaluates whether the column aggregate statistic lies between a specified + // range. + message StatisticRangeExpectation { + enum ColumnStatistic { + // Unspecified statistic type + STATISTIC_UNDEFINED = 0; + + // Evaluate the column mean + MEAN = 1; + + // Evaluate the column min + MIN = 2; + + // Evaluate the column max + MAX = 3; + } + + ColumnStatistic statistic = 1; + + // The minimum column statistic value allowed for a row to pass this + // validation. + // At least one of min_value and max_value need to be provided. + string min_value = 2; + + // The maximum column statistic value allowed for a row to pass this + // validation. + // At least one of min_value and max_value need to be provided. + string max_value = 3; + + // Whether column statistic needs to be strictly greater than ('>') + // the minimum, or if equality is allowed. Only relevant if a min_value has + // been defined. Default = false. + bool strict_min_enabled = 4; + + // Whether column statistic needs to be strictly lesser than ('<') the + // maximum, or if equality is allowed. Only relevant if a max_value has been + // defined. Default = false. + bool strict_max_enabled = 5; + } + + // Evaluates whether each row passes the specified condition. + // The SQL expression needs to use BigQuery standard SQL syntax and should + // produce a boolean per row as the result. + // Example: col1 >= 0 AND col2 < 10 + message RowConditionExpectation { + string sql_expression = 1; + } + + // Evaluates whether the provided expression is true. + // The SQL expression needs to use BigQuery standard SQL syntax and should + // produce a scalar boolean result. + // Example: MIN(col1) >= 0 + message TableConditionExpectation { + string sql_expression = 1; + } + + oneof rule_type { + // ColumnMap rule which evaluates whether each column value lies between a + // specified range. + RangeExpectation range_expectation = 1; + + // ColumnMap rule which evaluates whether each column value is null. + NonNullExpectation non_null_expectation = 2; + + // ColumnMap rule which evaluates whether each column value is contained by + // a specified set. + SetExpectation set_expectation = 3; + + // ColumnMap rule which evaluates whether each column value matches a + // specified regex. + RegexExpectation regex_expectation = 4; + + // ColumnAggregate rule which evaluates whether the column has duplicates. + UniquenessExpectation uniqueness_expectation = 100; + + // ColumnAggregate rule which evaluates whether the column aggregate + // statistic lies between a specified range. + StatisticRangeExpectation statistic_range_expectation = 101; + + // Table rule which evaluates whether each row passes the specified + // condition. + RowConditionExpectation row_condition_expectation = 200; + + // Table rule which evaluates whether the provided expression is true. + TableConditionExpectation table_condition_expectation = 201; + } + + // Optional. The unnested column which this rule is evaluated against. + string column = 500 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Rows with null values will automatically fail a rule, unless + // ignore_null is true. In that case, such null rows are trivially considered + // passing. Only applicable to ColumnMap rules. + bool ignore_null = 501 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The dimension a rule belongs to. Results are also aggregated at + // the dimension-level. Supported dimensions are ["COMPLETENESS", "ACCURACY", + // "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"] + string dimension = 502 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The minimum ratio of passing_rows / total_rows required to pass + // this rule, with a range of [0.0, 1.0] + // + // 0 indicates default value (i.e. 1.0) + double threshold = 503 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/datascans.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/datascans.proto new file mode 100644 index 000000000000..b3cc2763d2c6 --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/datascans.proto @@ -0,0 +1,535 @@ +// 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.dataplex.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dataplex/v1/data_profile.proto"; +import "google/cloud/dataplex/v1/data_quality.proto"; +import "google/cloud/dataplex/v1/processing.proto"; +import "google/cloud/dataplex/v1/resources.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option java_multiple_files = true; +option java_outer_classname = "DataScansProto"; +option java_package = "com.google.cloud.dataplex.v1"; + +service DataScanService { + option (google.api.default_host) = "dataplex.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a dataScan resource. + rpc CreateDataScan(CreateDataScanRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/dataScans" + body: "data_scan" + }; + option (google.api.method_signature) = "parent,data_scan,data_scan_id"; + option (google.longrunning.operation_info) = { + response_type: "DataScan" + metadata_type: "OperationMetadata" + }; + } + + // Update the dataScan resource. + rpc UpdateDataScan(UpdateDataScanRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{data_scan.name=projects/*/locations/*/dataScans/*}" + body: "data_scan" + }; + option (google.api.method_signature) = "data_scan,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "DataScan" + metadata_type: "OperationMetadata" + }; + } + + // Delete the dataScan resource. + rpc DeleteDataScan(DeleteDataScanRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/dataScans/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Get dataScan resource. + rpc GetDataScan(GetDataScanRequest) returns (DataScan) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/dataScans/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists dataScans. + rpc ListDataScans(ListDataScansRequest) returns (ListDataScansResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/dataScans" + }; + option (google.api.method_signature) = "parent"; + } + + // Run an on demand execution of a DataScan. + rpc RunDataScan(RunDataScanRequest) returns (RunDataScanResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/dataScans/*}:run" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Get DataScanJob resource. + rpc GetDataScanJob(GetDataScanJobRequest) returns (DataScanJob) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists DataScanJobs under the given dataScan. + rpc ListDataScanJobs(ListDataScanJobsRequest) + returns (ListDataScanJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/dataScans/*}/jobs" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Create dataScan request. +message CreateDataScanRequest { + // Required. The resource name of the parent location: + // projects/{project}/locations/{location_id} + // where `{project}` refers to a project_id or project_number and + // `location_id` refers to a GCP region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. DataScan resource. + DataScan data_scan = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. DataScan identifier. + // * Must contain only lowercase letters, numbers and hyphens. + // * Must start with a letter. + // * Must end with a number or a letter. + // * Must be between 1-63 characters. + // * Must be unique within the customer project / location. + string data_scan_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Update dataScan request. +message UpdateDataScanRequest { + // Required. Update description. + // Only fields specified in `update_mask` are updated. + DataScan data_scan = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Mask of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Delete dataScan request. +message DeleteDataScanRequest { + // Required. The resource name of the dataScan: + // projects/{project}/locations/{location_id}/dataScans/{data_scan_id} + // where `{project}` refers to a project_id or project_number and + // `location_id` refers to a GCP region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataplex.googleapis.com/DataScan" + } + ]; +} + +// Get dataScan request. +message GetDataScanRequest { + // DataScan views for getting a partial dataScan. + enum DataScanView { + // The API will default to the `BASIC` view. + DATA_SCAN_VIEW_UNSPECIFIED = 0; + + // Basic view that does not include spec and result. + BASIC = 1; + + // Include everything. + FULL = 10; + } + + // Required. The resource name of the dataScan: + // projects/{project}/locations/{location_id}/dataScans/{data_scan_id} + // where `{project}` refers to a project_id or project_number and + // `location_id` refers to a GCP region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataplex.googleapis.com/DataScan" + } + ]; + + // Optional. Used to select the subset of DataScan information to return. + // Defaults to `BASIC`. + DataScanView view = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// List dataScans request. +message ListDataScansRequest { + // Required. projects/{project}/locations/{location_id} + // where `{project}` refers to a project_id or project_number and + // `location_id` refers to a GCP region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Maximum number of dataScans to return. The service may return + // fewer than this value. If unspecified, at most 10 scans will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `ListDataScans` call. Provide + // this to retrieve the subsequent page. When paginating, all other parameters + // provided to `ListDataScans` must match the call that provided the + // page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter request. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Order by fields (name or create_time) for the result. + // If not specified, the ordering is undefined. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// List dataScans response. +message ListDataScansResponse { + // DataScans (metadata only) under the given parent location. + repeated DataScan data_scans = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Run DataScan Request +message RunDataScanRequest { + // Required. The resource name of the DataScan: + // projects/{project}/locations/{location_id}/dataScans/{data_scan_id}. + // where `{project}` refers to a project_id or project_number and + // `location_id` refers to a GCP region. + // Only on-demand DataScans are allowed. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataplex.googleapis.com/DataScan" + } + ]; +} + +// Run DataScan Response. +message RunDataScanResponse { + // DataScanJob created by RunDataScan API. + DataScanJob job = 1; +} + +// Get DataScanJob request. +message GetDataScanJobRequest { + // DataScanJob views for getting a partial dataScanJob. + enum DataScanJobView { + // The API will default to the `BASIC` view. + DATA_SCAN_JOB_VIEW_UNSPECIFIED = 0; + + // Basic view that does not include spec and result. + BASIC = 1; + + // Include everything. + FULL = 10; + } + + // Required. The resource name of the DataScanJob: + // projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id} + // where `{project}` refers to a project_id or project_number and + // `location_id` refers to a GCP region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataplex.googleapis.com/DataScanJob" + } + ]; + + // Optional. Used to select the subset of DataScan information to return. + // Defaults to `BASIC`. + DataScanJobView view = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// List DataScanJobs request. +message ListDataScanJobsRequest { + // Required. The resource name of the parent environment: + // projects/{project}/locations/{location_id}/dataScans/{data_scan_id} + // where `{project}` refers to a project_id or project_number and + // `location_id` refers to a GCP region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataplex.googleapis.com/DataScan" + } + ]; + + // Optional. Maximum number of DataScanJobs to return. The service may return + // fewer than this value. If unspecified, at most 10 DataScanJobs will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token received from a previous `ListDataScanJobs` call. + // Provide this to retrieve the subsequent page. When paginating, all other + // parameters provided to `ListDataScanJobs` must match the call that provided + // the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// List DataScanJobs response. +message ListDataScanJobsResponse { + // DataScanJobs (metadata only) under a given dataScan. + repeated DataScanJob data_scan_jobs = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// Represents a user-visible job which provides the insights for the related +// data source. +// For examples: +// - Data Quality: generates queries based on the rules and run against the +// data to get data quality check results. +// - Data Profile: analyzes the data in table(s) and generates insights about +// the structure, content and relationships (such as null percent, +// cardinality, min/max/mean, etc). +message DataScan { + option (google.api.resource) = { + type: "dataplex.googleapis.com/DataScan" + pattern: "projects/{project}/locations/{location}/dataScans/{dataScan}" + }; + + // DataScan execution settings. + message ExecutionSpec { + // Optional. Spec related to how often and when a scan should be triggered. + // If not specified, the default is OnDemand, which means the scan will not + // run until the user calls RunDataScan API. + Trigger trigger = 1 [(google.api.field_behavior) = OPTIONAL]; + + // If not specified, run a data scan on all data in the table. + // The incremental is immutable, which means once the field is set, + // it cannot be unset, and vice versa. + oneof incremental { + // Immutable. The unnested field (Date or Timestamp) that contains values + // that monotonically increase over time. + string field = 100 [(google.api.field_behavior) = IMMUTABLE]; + } + } + + // Status of the data scan execution. + message ExecutionStatus { + // The time when the latest DataScanJob started. + google.protobuf.Timestamp latest_job_start_time = 4; + + // The time when the latest DataScanJob ended. + google.protobuf.Timestamp latest_job_end_time = 5; + } + + // Output only. The relative resource name of the scan, of the form: + // projects/{project}/locations/{location_id}/dataScans/{datascan_id}. + // where `{project}` refers to a project_id or project_number and + // `location_id` refers to a GCP region. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System generated globally unique ID for the scan. This ID will + // be different if the scan is deleted and re-created with the same name. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Description of the scan. + // * Must be between 1-1024 characters. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User friendly display name. + // * Must be between 1-256 characters. + string display_name = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User-defined labels for the scan. + map labels = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Current state of the DataScan. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the scan was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the scan was last updated. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The data source for DataScan. + DataSource data = 9 [(google.api.field_behavior) = REQUIRED]; + + // Optional. DataScan execution settings. + // If not specified, the fields under it will use their default values. + ExecutionSpec execution_spec = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Status of the data scan execution. + ExecutionStatus execution_status = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of DataScan. + DataScanType type = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Data Scan related setting. + // It is required and immutable which means once data_quality_spec is set, it + // cannot be changed to data_profile_spec. + oneof spec { + // DataQualityScan related setting. + DataQualitySpec data_quality_spec = 100; + + // DataProfileScan related setting. + DataProfileSpec data_profile_spec = 101; + } + + // The result of the data scan. + oneof result { + // Output only. The result of the data quality scan. + DataQualityResult data_quality_result = 200 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The result of the data profile scan. + DataProfileResult data_profile_result = 201 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// A DataScanJob represents an instance of a data scan. +message DataScanJob { + option (google.api.resource) = { + type: "dataplex.googleapis.com/DataScanJob" + pattern: "projects/{project}/locations/{location}/dataScans/{dataScan}/jobs/{job}" + }; + + // Execution state for the DataScanJob. + enum State { + // The DataScanJob state is unspecified. + STATE_UNSPECIFIED = 0; + + // The DataScanJob is running. + RUNNING = 1; + + // The DataScanJob is canceling. + CANCELING = 2; + + // The DataScanJob cancellation was successful. + CANCELLED = 3; + + // The DataScanJob completed successfully. + SUCCEEDED = 4; + + // The DataScanJob is no longer running due to an error. + FAILED = 5; + + // The DataScanJob has been created but not started to run yet. + PENDING = 7; + } + + // Output only. The relative resource name of the DataScanJob, of the form: + // projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}. + // where `{project}` refers to a project_id or project_number and + // `location_id` refers to a GCP region. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System generated globally unique ID for the DataScanJob. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the DataScanJob was started. + google.protobuf.Timestamp start_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the DataScanJob ended. + google.protobuf.Timestamp end_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Execution state for the DataScanJob. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Additional information about the current state. + string message = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the parent DataScan. + DataScanType type = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Data Scan related setting. + oneof spec { + // Output only. DataQualityScan related setting. + DataQualitySpec data_quality_spec = 100 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DataProfileScan related setting. + DataProfileSpec data_profile_spec = 101 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The result of the data scan. + oneof result { + // Output only. The result of the data quality scan. + DataQualityResult data_quality_result = 200 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The result of the data profile scan. + DataProfileResult data_profile_result = 201 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// The type of DataScan. +enum DataScanType { + // The DataScan Type is unspecified. + DATA_SCAN_TYPE_UNSPECIFIED = 0; + + // Data Quality Scan. + DATA_QUALITY = 1; + + // Data Profile Scan. + DATA_PROFILE = 2; +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto index 0cec184809be..f788c47eaebe 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto @@ -291,10 +291,128 @@ message SessionEvent { // The status of the event. bool event_succeeded = 6; - // If the session is associated with an Environment with fast startup enabled, - // and was pre-created before being assigned to a user. + // If the session is associated with an environment with fast startup enabled, + // and was created before being assigned to a user. bool fast_startup_enabled = 7; // The idle duration of a warm pooled session before it is assigned to user. google.protobuf.Duration unassigned_duration = 8; } + +// These messages contain information about the execution of a datascan. +// The monitored resource is 'DataScan' +message DataScanEvent { + // The type of the data scan. + enum ScanType { + // An unspecified data scan type. + SCAN_TYPE_UNSPECIFIED = 0; + + // Data scan for data profile. + DATA_PROFILE = 1; + + // Data scan for data quality. + DATA_QUALITY = 2; + } + + // The job state of the data scan. + enum State { + // Unspecified job state. + STATE_UNSPECIFIED = 0; + + // Data scan started. + STARTED = 1; + + // Data scan successfully completed. + SUCCEEDED = 2; + + // Data scan was unsuccessful. + FAILED = 3; + + // Data scan was cancelled. + CANCELLED = 4; + } + + // The trigger type for the data scan. + enum Trigger { + // An unspecified trigger type. + TRIGGER_UNSPECIFIED = 0; + + // Data scan triggers on demand. + ON_DEMAND = 1; + + // Data scan triggers as per schedule. + SCHEDULE = 2; + } + + // The scope of job for the data scan. + enum Scope { + // An unspecified scope type. + SCOPE_UNSPECIFIED = 0; + + // Data scan runs on all of the data. + FULL = 1; + + // Data scan runs on incremental data. + INCREMENTAL = 2; + } + + // Data profile result for data scan job. + message DataProfileResult { + // The count of rows processed in the data scan job. + int64 row_count = 1; + } + + // Data quality result for data scan job. + message DataQualityResult { + // The count of rows processed in the data scan job. + int64 row_count = 1; + + // Whether the data quality result was `pass` or not. + bool passed = 2; + + // The result of each dimension for data quality result. + // The key of the map is the name of the dimension. + // The value is the bool value depicting whether the dimension result was + // `pass` or not. + map dimension_passed = 3; + } + + // The data source of the data scan + string data_source = 1; + + // The identifier of the specific data scan job this log entry is for. + string job_id = 2; + + // The time when the data scan job started to run. + google.protobuf.Timestamp start_time = 3; + + // The time when the data scan job finished. + google.protobuf.Timestamp end_time = 4; + + // The type of the data scan. + ScanType type = 5; + + // The status of the data scan job. + State state = 6; + + // The message describing the data scan job event. + string message = 7; + + // A version identifier of the spec which was used to execute this job. + string spec_version = 8; + + // The trigger type of the data scan job. + Trigger trigger = 9; + + // The scope of the data scan (e.g. full, incremental). + Scope scope = 10; + + // The result of the data scan job. + oneof result { + // Data profile result for data profile type data scan. + DataProfileResult data_profile = 101; + + // Data quality result for data quality type data scan. + DataQualityResult data_quality = 102; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/metadata.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/metadata.proto index 290d9406628d..99c817eed8c9 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/metadata.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/metadata.proto @@ -32,7 +32,8 @@ option java_package = "com.google.cloud.dataplex.v1"; // partitions. service MetadataService { option (google.api.default_host) = "dataplex.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Create a metadata entity. rpc CreateEntity(CreateEntityRequest) returns (Entity) { @@ -115,9 +116,7 @@ message CreateEntityRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Zone" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Zone" } ]; // Required. Entity resource. @@ -147,13 +146,11 @@ message DeleteEntityRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Entity" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Entity" } ]; - // Required. The etag associated with the entity, which can be retrieved with a - // [GetEntity][] request. + // Required. The etag associated with the entity, which can be retrieved with + // a [GetEntity][] request. string etag = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -176,17 +173,16 @@ message ListEntitiesRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Zone" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Zone" } ]; // Required. Specify the entity view to make a partial list request. EntityView view = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. Maximum number of entities to return. The service may return fewer than - // this value. If unspecified, 100 entities will be returned by default. The - // maximum value is 500; larger values will will be truncated to 500. + // Optional. Maximum number of entities to return. The service may return + // fewer than this value. If unspecified, 100 entities will be returned by + // default. The maximum value is 500; larger values will will be truncated to + // 500. int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Page token received from a previous `ListEntities` call. Provide @@ -195,8 +191,8 @@ message ListEntitiesRequest { // page token. string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The following filter parameters can be added to the URL to limit the - // entities returned by the API: + // Optional. The following filter parameters can be added to the URL to limit + // the entities returned by the API: // // - Entity ID: ?filter="id=entityID" // - Asset ID: ?filter="asset=assetID" @@ -237,9 +233,7 @@ message GetEntityRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.` string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Entity" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Entity" } ]; // Optional. Used to select the subset of entity information to return. @@ -253,24 +247,23 @@ message ListPartitionsRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Entity" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Entity" } ]; - // Optional. Maximum number of partitions to return. The service may return fewer than - // this value. If unspecified, 100 partitions will be returned by default. The - // maximum page size is 500; larger values will will be truncated to 500. + // Optional. Maximum number of partitions to return. The service may return + // fewer than this value. If unspecified, 100 partitions will be returned by + // default. The maximum page size is 500; larger values will will be truncated + // to 500. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListPartitions` call. Provide - // this to retrieve the subsequent page. When paginating, all other parameters - // provided to `ListPartitions` must match the call that provided the - // page token. + // Optional. Page token received from a previous `ListPartitions` call. + // Provide this to retrieve the subsequent page. When paginating, all other + // parameters provided to `ListPartitions` must match the call that provided + // the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filter the partitions returned to the caller using a key value pair - // expression. Supported operators and syntax: + // Optional. Filter the partitions returned to the caller using a key value + // pair expression. Supported operators and syntax: // // - logic operators: AND, OR // - comparison operators: <, >, >=, <= ,=, != @@ -297,9 +290,7 @@ message CreatePartitionRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Entity" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Entity" } ]; // Required. Partition resource. @@ -325,10 +316,7 @@ message DeletePartitionRequest { ]; // Optional. The etag associated with the partition. - string etag = 2 [ - deprecated = true, - (google.api.field_behavior) = OPTIONAL - ]; + string etag = 2 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // List metadata partitions response. @@ -378,17 +366,18 @@ message Entity { message CompatibilityStatus { // Provides compatibility information for a specific metadata store. message Compatibility { - // Output only. Whether the entity is compatible and can be represented in the metadata - // store. + // Output only. Whether the entity is compatible and can be represented in + // the metadata store. bool compatible = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Provides additional detail if the entity is incompatible with the - // metadata store. + // Output only. Provides additional detail if the entity is incompatible + // with the metadata store. string reason = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. Whether this entity is compatible with Hive Metastore. - Compatibility hive_metastore = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + Compatibility hive_metastore = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Whether this entity is compatible with BigQuery. Compatibility bigquery = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -398,23 +387,23 @@ message Entity { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`. string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Entity" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Entity" } ]; // Optional. Display name must be shorter than or equal to 256 characters. string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. User friendly longer description text. Must be shorter than or equal to - // 1024 characters. + // Optional. User friendly longer description text. Must be shorter than or + // equal to 1024 characters. string description = 3 [(google.api.field_behavior) = OPTIONAL]; // Output only. The time when the entity was created. - google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the entity was last updated. - google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. A user-provided entity ID. It is mutable, and will be used as the // published table name. Specifying a new ID in an update entity @@ -424,8 +413,8 @@ message Entity { // characters. string id = 7 [(google.api.field_behavior) = REQUIRED]; - // Optional. The etag associated with the entity, which can be retrieved with a - // [GetEntity][] request. Required for update and delete requests. + // Optional. The etag associated with the entity, which can be retrieved with + // a [GetEntity][] request. Required for update and delete requests. string etag = 8 [(google.api.field_behavior) = OPTIONAL]; // Required. Immutable. The type of entity. @@ -434,8 +423,9 @@ message Entity { (google.api.field_behavior) = IMMUTABLE ]; - // Required. Immutable. The ID of the asset associated with the storage location containing the - // entity data. The entity must be with in the same zone with the asset. + // Required. Immutable. The ID of the asset associated with the storage + // location containing the entity data. The entity must be with in the same + // zone with the asset. string asset = 11 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE @@ -451,9 +441,9 @@ message Entity { (google.api.field_behavior) = IMMUTABLE ]; - // Optional. The set of items within the data path constituting the data in the entity, - // represented as a glob path. - // Example: `gs://bucket/path/to/data/**/*.csv`. + // Optional. The set of items within the data path constituting the data in + // the entity, represented as a glob path. Example: + // `gs://bucket/path/to/data/**/*.csv`. string data_path_pattern = 13 [(google.api.field_behavior) = OPTIONAL]; // Output only. The name of the associated Data Catalog entry. @@ -470,7 +460,8 @@ message Entity { StorageFormat format = 16 [(google.api.field_behavior) = REQUIRED]; // Output only. Metadata stores that the entity is compatible with. - CompatibilityStatus compatibility = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + CompatibilityStatus compatibility = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The description of the data structure and layout. // The schema is not included in list responses. It is only included in @@ -497,26 +488,23 @@ message Partition { } ]; - // Required. Immutable. The set of values representing the partition, which correspond to the - // partition schema defined in the parent entity. + // Required. Immutable. The set of values representing the partition, which + // correspond to the partition schema defined in the parent entity. repeated string values = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE ]; - // Required. Immutable. The location of the entity data within the partition, for example, - // `gs://bucket/path/to/entity/key1=value1/key2=value2`. - // Or `projects//datasets//tables/` + // Required. Immutable. The location of the entity data within the partition, + // for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or + // `projects//datasets//tables/` string location = 3 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE ]; // Optional. The etag for this partition. - string etag = 4 [ - deprecated = true, - (google.api.field_behavior) = OPTIONAL - ]; + string etag = 4 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // Schema information describing the structure and layout of the data. @@ -595,8 +583,8 @@ message Schema { // and must begin with a letter or underscore. string name = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. User friendly field description. Must be less than or equal to 1024 - // characters. + // Optional. User friendly field description. Must be less than or equal to + // 1024 characters. string description = 2 [(google.api.field_behavior) = OPTIONAL]; // Required. The type of field. @@ -614,9 +602,9 @@ message Schema { // filtering ability due to performance consideration. **Note:** // Partition fields are immutable. message PartitionField { - // Required. Partition field name must consist of letters, numbers, and underscores - // only, with a maximum of length of 256 characters, - // and must begin with a letter or underscore.. + // Required. Partition field name must consist of letters, numbers, and + // underscores only, with a maximum of length of 256 characters, and must + // begin with a letter or underscore.. string name = 1 [(google.api.field_behavior) = REQUIRED]; // Required. Immutable. The type of field. @@ -637,8 +625,8 @@ message Schema { HIVE_COMPATIBLE = 1; } - // Required. Set to `true` if user-managed or `false` if managed by Dataplex. The - // default is `false` (managed by Dataplex). + // Required. Set to `true` if user-managed or `false` if managed by Dataplex. + // The default is `false` (managed by Dataplex). // // - Set to `false`to enable Dataplex discovery to update the schema. // including new data discovery, schema inference, and schema evolution. @@ -656,11 +644,13 @@ message Schema { // **Note:** BigQuery SchemaFields are immutable. repeated SchemaField fields = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The sequence of fields describing the partition structure in entities. - // If this field is empty, there are no partitions within the data. - repeated PartitionField partition_fields = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The sequence of fields describing the partition structure in + // entities. If this field is empty, there are no partitions within the data. + repeated PartitionField partition_fields = 3 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. The structure of paths containing partition data within the entity. + // Optional. The structure of paths containing partition data within the + // entity. PartitionStyle partition_style = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -668,12 +658,12 @@ message Schema { message StorageFormat { // Describes CSV and similar semi-structured data formats. message CsvOptions { - // Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8", and - // "ISO-8859-1". Defaults to UTF-8 if unspecified. + // Optional. The character encoding of the data. Accepts "US-ASCII", + // "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified. string encoding = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The number of rows to interpret as header rows that should be skipped - // when reading data rows. Defaults to 0. + // Optional. The number of rows to interpret as header rows that should be + // skipped when reading data rows. Defaults to 0. int32 header_rows = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The delimiter used to separate values. Defaults to ','. @@ -687,11 +677,18 @@ message StorageFormat { // Describes JSON data format. message JsonOptions { - // Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" and - // "ISO-8859-1". Defaults to UTF-8 if not specified. + // Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" + // and "ISO-8859-1". Defaults to UTF-8 if not specified. string encoding = 1 [(google.api.field_behavior) = OPTIONAL]; } + // Describes Iceberg data format. + message IcebergOptions { + // Optional. The location of where the iceberg metadata is present, must be + // within the table path + string metadata_location = 1 [(google.api.field_behavior) = OPTIONAL]; + } + // The specific file format of the data. enum Format { // Format unspecified. @@ -746,13 +743,14 @@ message StorageFormat { BZIP2 = 3; } - // Output only. The data format associated with the stored data, which represents - // content type values. The value is inferred from mime type. + // Output only. The data format associated with the stored data, which + // represents content type values. The value is inferred from mime type. Format format = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The compression type associated with the stored data. // If unspecified, the data is uncompressed. - CompressionFormat compression_format = 2 [(google.api.field_behavior) = OPTIONAL]; + CompressionFormat compression_format = 2 + [(google.api.field_behavior) = OPTIONAL]; // Required. The mime type descriptor for the data. Must match the pattern // {type}/{subtype}. Supported values: @@ -761,6 +759,9 @@ message StorageFormat { // - application/x-avro // - application/x-orc // - application/x-tfrecord + // - application/x-parquet+iceberg + // - application/x-avro+iceberg + // - application/x-orc+iceberg // - application/json // - application/{subtypes} // - text/csv @@ -777,6 +778,9 @@ message StorageFormat { // Optional. Additional information about CSV formatted data. JsonOptions json = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Additional information about iceberg tables. + IcebergOptions iceberg = 12 [(google.api.field_behavior) = OPTIONAL]; } } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/processing.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/processing.proto new file mode 100644 index 000000000000..49d962eb0c5c --- /dev/null +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/processing.proto @@ -0,0 +1,94 @@ +// 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.dataplex.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/dataplex/v1;dataplex"; +option java_multiple_files = true; +option java_outer_classname = "ProcessingProto"; +option java_package = "com.google.cloud.dataplex.v1"; + +// DataScan scheduling and trigger settings. +message Trigger { + // The scan runs one-time via RunDataScan API. + message OnDemand {} + + // The scan is scheduled to run periodically. + message Schedule { + // Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running + // scans periodically. + // To explicitly set a timezone to the cron tab, apply a prefix in the + // cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". + // The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + // database. For example, "CRON_TZ=America/New_York 1 * * * *", or + // "TZ=America/New_York 1 * * * *". + // This field is required for Schedule scans. + string cron = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // DataScan scheduling and trigger settings. + // If not specified, the default is OnDemand, which means the scan will not + // run until the user calls RunDataScan API. + oneof mode { + // The scan runs one-time shortly after DataScan Creation. + OnDemand on_demand = 100; + + // The scan is scheduled to run periodically. + Schedule schedule = 101; + } +} + +// The data source for DataScan. +message DataSource { + // The source is required and immutable which means once entity is set, it + // cannot be change to others, and vice versa. + oneof source { + // Immutable. The dataplex entity that contains the data for DataScan, of + // the form: + // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + string entity = 100 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "dataplex.googleapis.com/Entity" + } + ]; + } +} + +// The data scanned during processing (e.g. in incremental DataScan) +message ScannedData { + // A data range denoted by a pair of start/end values of a field. + message IncrementalField { + // The field that contains values which monotonically increases over time + // (e.g. timestamp). + string field = 1; + + // Value that marks the start of the range + string start = 2; + + // Value that marks the end of the range + string end = 3; + } + + // The range of scanned data + oneof data_range { + // The range denoted by values of an incremental field + IncrementalField incremental_field = 1; + } +} diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/resources.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/resources.proto index e07caac233af..86af8432b84e 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/resources.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/resources.proto @@ -86,23 +86,23 @@ message Lake { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; // Optional. User friendly display name. string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; - // Output only. System generated globally unique ID for the lake. This ID will be - // different if the lake is deleted and re-created with the same name. + // Output only. System generated globally unique ID for the lake. This ID will + // be different if the lake is deleted and re-created with the same name. string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the lake was created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the lake was last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. User-defined labels for the lake. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -113,8 +113,9 @@ message Lake { // Output only. Current state of the lake. State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Service account associated with this lake. This service account must be - // authorized to access or operate on resources managed by the lake. + // Output only. Service account associated with this lake. This service + // account must be authorized to access or operate on resources managed by the + // lake. string service_account = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Settings to manage lake and Dataproc Metastore service instance @@ -125,7 +126,8 @@ message Lake { AssetStatus asset_status = 103 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Metastore status of the lake. - MetastoreStatus metastore_status = 104 [(google.api.field_behavior) = OUTPUT_ONLY]; + MetastoreStatus metastore_status = 104 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Aggregated status of the underlying assets of a lake or zone. @@ -181,8 +183,8 @@ message Zone { MULTI_REGION = 2; } - // Required. Immutable. The location type of the resources that are allowed to be attached to the - // assets within this zone. + // Required. Immutable. The location type of the resources that are allowed + // to be attached to the assets within this zone. LocationType location_type = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE @@ -193,11 +195,12 @@ message Zone { message DiscoverySpec { // Describe CSV and similar semi-structured data formats. message CsvOptions { - // Optional. The number of rows to interpret as header rows that should be skipped - // when reading data rows. + // Optional. The number of rows to interpret as header rows that should be + // skipped when reading data rows. int32 header_rows = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The delimiter being used to separate values. This defaults to ','. + // Optional. The delimiter being used to separate values. This defaults to + // ','. string delimiter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The character encoding of the data. The default is UTF-8. @@ -222,18 +225,20 @@ message Zone { // Required. Whether discovery is enabled. bool enabled = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. The list of patterns to apply for selecting data to include during - // discovery if only a subset of the data should considered. For Cloud - // Storage bucket assets, these are interpreted as glob patterns used to - // match object names. For BigQuery dataset assets, these are - // interpreted as patterns to match table names. - repeated string include_patterns = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The list of patterns to apply for selecting data to exclude during - // discovery. For Cloud Storage bucket assets, these are interpreted as - // glob patterns used to match object names. For BigQuery dataset assets, + // Optional. The list of patterns to apply for selecting data to include + // during discovery if only a subset of the data should considered. For + // Cloud Storage bucket assets, these are interpreted as glob patterns used + // to match object names. For BigQuery dataset assets, these are interpreted + // as patterns to match table names. + repeated string include_patterns = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of patterns to apply for selecting data to exclude + // during discovery. For Cloud Storage bucket assets, these are interpreted + // as glob patterns used to match object names. For BigQuery dataset assets, // these are interpreted as patterns to match table names. - repeated string exclude_patterns = 3 [(google.api.field_behavior) = OPTIONAL]; + repeated string exclude_patterns = 3 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Configuration for CSV data. CsvOptions csv_options = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -243,15 +248,15 @@ message Zone { // Determines when discovery is triggered. oneof trigger { - // Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running - // discovery periodically. Successive discovery runs must be scheduled at - // least 60 minutes apart. - // The default value is to run discovery every 60 minutes. - // To explicitly set a timezone to the cron tab, apply a prefix in the - // cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". - // The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone - // database. For example, "CRON_TZ=America/New_York 1 * * * *", or - // "TZ=America/New_York 1 * * * *". + // Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for + // running discovery periodically. Successive discovery runs must be + // scheduled at least 60 minutes apart. The default value is to run + // discovery every 60 minutes. To explicitly set a timezone to the cron + // tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or + // TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string + // from IANA time zone database. For example, + // `CRON_TZ=America/New_York 1 * * * *`, + // or `TZ=America/New_York 1 * * * *`. string schedule = 10 [(google.api.field_behavior) = OPTIONAL]; } } @@ -260,23 +265,23 @@ message Zone { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Zone" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Zone" } ]; // Optional. User friendly display name. string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; - // Output only. System generated globally unique ID for the zone. This ID will be - // different if the zone is deleted and re-created with the same name. + // Output only. System generated globally unique ID for the zone. This ID will + // be different if the zone is deleted and re-created with the same name. string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the zone was created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the zone was last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. User defined labels for the zone. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -293,11 +298,12 @@ message Zone { (google.api.field_behavior) = IMMUTABLE ]; - // Optional. Specification of the discovery feature applied to data in this zone. + // Optional. Specification of the discovery feature applied to data in this + // zone. DiscoverySpec discovery_spec = 103 [(google.api.field_behavior) = OPTIONAL]; - // Required. Specification of the resources that are referenced by the assets within - // this zone. + // Required. Specification of the resources that are referenced by the assets + // within this zone. ResourceSpec resource_spec = 104 [(google.api.field_behavior) = REQUIRED]; // Output only. Aggregated status of the underlying assets of the zone. @@ -329,16 +335,12 @@ message Action { } // Action details for resource references in assets that cannot be located. - message MissingResource { - - } + message MissingResource {} // Action details for unauthorized resource issues raised to indicate that the // service account associated with the lake instance is not authorized to // access or manage the resource associated with an asset. - message UnauthorizedResource { - - } + message UnauthorizedResource {} // Failed to apply security policy to the managed resource(s) under a // lake, zone or an asset. For a lake or zone resource, one or more underlying @@ -416,14 +418,10 @@ message Action { } // Action details for absence of data detected by discovery. - message MissingData { - - } + message MissingData {} // Action details for invalid data arrangement. - message InvalidDataOrganization { - - } + message InvalidDataOrganization {} // The category of issue associated with the action. Category category = 1; @@ -440,36 +438,28 @@ message Action { // `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`. string name = 5 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Action" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Action" } ]; // Output only. The relative resource name of the lake, of the form: // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. string lake = 6 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; // Output only. The relative resource name of the zone, of the form: // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. string zone = 7 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Zone" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Zone" } ]; // Output only. The relative resource name of the asset, of the form: // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. string asset = 8 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Asset" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Asset" } ]; // The list of data locations associated with this action. Cloud Storage @@ -552,11 +542,12 @@ message Asset { message DiscoverySpec { // Describe CSV and similar semi-structured data formats. message CsvOptions { - // Optional. The number of rows to interpret as header rows that should be skipped - // when reading data rows. + // Optional. The number of rows to interpret as header rows that should be + // skipped when reading data rows. int32 header_rows = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The delimiter being used to separate values. This defaults to ','. + // Optional. The delimiter being used to separate values. This defaults to + // ','. string delimiter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The character encoding of the data. The default is UTF-8. @@ -581,18 +572,20 @@ message Asset { // Optional. Whether discovery is enabled. bool enabled = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The list of patterns to apply for selecting data to include during - // discovery if only a subset of the data should considered. For Cloud - // Storage bucket assets, these are interpreted as glob patterns used to - // match object names. For BigQuery dataset assets, these are interpreted as - // patterns to match table names. - repeated string include_patterns = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The list of patterns to apply for selecting data to exclude during - // discovery. For Cloud Storage bucket assets, these are interpreted as - // glob patterns used to match object names. For BigQuery dataset assets, + // Optional. The list of patterns to apply for selecting data to include + // during discovery if only a subset of the data should considered. For + // Cloud Storage bucket assets, these are interpreted as glob patterns used + // to match object names. For BigQuery dataset assets, these are interpreted + // as patterns to match table names. + repeated string include_patterns = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of patterns to apply for selecting data to exclude + // during discovery. For Cloud Storage bucket assets, these are interpreted + // as glob patterns used to match object names. For BigQuery dataset assets, // these are interpreted as patterns to match table names. - repeated string exclude_patterns = 3 [(google.api.field_behavior) = OPTIONAL]; + repeated string exclude_patterns = 3 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Configuration for CSV data. CsvOptions csv_options = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -602,15 +595,15 @@ message Asset { // Determines when discovery is triggered. oneof trigger { - // Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running - // discovery periodically. Successive discovery runs must be scheduled at - // least 60 minutes apart. - // The default value is to run discovery every 60 minutes. - // To explicitly set a timezone to the cron tab, apply a prefix in the - // cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". - // The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone - // database. For example, "CRON_TZ=America/New_York 1 * * * *", or - // "TZ=America/New_York 1 * * * *". + // Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for + // running discovery periodically. Successive discovery runs must be + // scheduled at least 60 minutes apart. The default value is to run + // discovery every 60 minutes. To explicitly set a timezone to the cron + // tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or + // TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string + // from IANA time zone database. For example, + // `CRON_TZ=America/New_York 1 * * * *`, + // or `TZ=America/New_York 1 * * * *`. string schedule = 10 [(google.api.field_behavior) = OPTIONAL]; } } @@ -629,8 +622,8 @@ message Asset { BIGQUERY_DATASET = 2; } - // Immutable. Relative name of the cloud resource that contains the data that is - // being managed within a lake. For example: + // Immutable. Relative name of the cloud resource that contains the data + // that is being managed within a lake. For example: // `projects/{project_number}/buckets/{bucket_id}` // `projects/{project_number}/datasets/{dataset_id}` string name = 1 [(google.api.field_behavior) = IMMUTABLE]; @@ -725,23 +718,24 @@ message Asset { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Asset" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Asset" } ]; // Optional. User friendly display name. string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; - // Output only. System generated globally unique ID for the asset. This ID will be - // different if the asset is deleted and re-created with the same name. + // Output only. System generated globally unique ID for the asset. This ID + // will be different if the asset is deleted and re-created with the same + // name. string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the asset was created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the asset was last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. User defined labels for the asset. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -756,19 +750,23 @@ message Asset { ResourceSpec resource_spec = 100 [(google.api.field_behavior) = REQUIRED]; // Output only. Status of the resource referenced by this asset. - ResourceStatus resource_status = 101 [(google.api.field_behavior) = OUTPUT_ONLY]; + ResourceStatus resource_status = 101 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Status of the security policy applied to resource referenced by this asset. - SecurityStatus security_status = 103 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Status of the security policy applied to resource referenced + // by this asset. + SecurityStatus security_status = 103 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Specification of the discovery feature applied to data referenced by this - // asset. - // When this spec is left unset, the asset will use the spec set on the parent - // zone. + // Optional. Specification of the discovery feature applied to data referenced + // by this asset. When this spec is left unset, the asset will use the spec + // set on the parent zone. DiscoverySpec discovery_spec = 106 [(google.api.field_behavior) = OPTIONAL]; - // Output only. Status of the discovery feature applied to data referenced by this asset. - DiscoveryStatus discovery_status = 107 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Status of the discovery feature applied to data referenced by + // this asset. + DiscoveryStatus discovery_status = 107 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // State of a resource. diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/service.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/service.proto index f7995c07b75f..d23ca8e2f868 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/service.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/service.proto @@ -40,7 +40,8 @@ option java_package = "com.google.cloud.dataplex.v1"; // systems including Cloud Storage and BigQuery. service DataplexService { option (google.api.default_host) = "dataplex.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Creates a lake resource. rpc CreateLake(CreateLakeRequest) returns (google.longrunning.Operation) { @@ -311,7 +312,8 @@ service DataplexService { } // Create an environment resource. - rpc CreateEnvironment(CreateEnvironmentRequest) returns (google.longrunning.Operation) { + rpc CreateEnvironment(CreateEnvironmentRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/lakes/*}/environments" body: "environment" @@ -324,7 +326,8 @@ service DataplexService { } // Update the environment resource. - rpc UpdateEnvironment(UpdateEnvironmentRequest) returns (google.longrunning.Operation) { + rpc UpdateEnvironment(UpdateEnvironmentRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{environment.name=projects/*/locations/*/lakes/*/environments/*}" body: "environment" @@ -338,7 +341,8 @@ service DataplexService { // Delete the environment resource. All the child resources must have been // deleted before environment deletion can be initiated. - rpc DeleteEnvironment(DeleteEnvironmentRequest) returns (google.longrunning.Operation) { + rpc DeleteEnvironment(DeleteEnvironmentRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/lakes/*/environments/*}" }; @@ -350,7 +354,8 @@ service DataplexService { } // Lists environments under the given lake. - rpc ListEnvironments(ListEnvironmentsRequest) returns (ListEnvironmentsResponse) { + rpc ListEnvironments(ListEnvironmentsRequest) + returns (ListEnvironmentsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/lakes/*}/environments" }; @@ -407,7 +412,8 @@ message CreateLakeRequest { // Update lake request. message UpdateLakeRequest { // Required. Mask of fields to update. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; // Required. Update description. // Only fields specified in `update_mask` are updated. @@ -424,9 +430,7 @@ message DeleteLakeRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; } @@ -442,13 +446,13 @@ message ListLakesRequest { } ]; - // Optional. Maximum number of Lakes to return. The service may return fewer than this - // value. If unspecified, at most 10 lakes will be returned. The maximum - // value is 1000; values above 1000 will be coerced to 1000. + // Optional. Maximum number of Lakes to return. The service may return fewer + // than this value. If unspecified, at most 10 lakes will be returned. The + // maximum value is 1000; values above 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListLakes` call. Provide this to - // retrieve the subsequent page. When paginating, all other parameters + // Optional. Page token received from a previous `ListLakes` call. Provide + // this to retrieve the subsequent page. When paginating, all other parameters // provided to `ListLakes` must match the call that provided the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -478,20 +482,18 @@ message ListLakeActionsRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; - // Optional. Maximum number of actions to return. The service may return fewer than this - // value. If unspecified, at most 10 actions will be returned. The maximum - // value is 1000; values above 1000 will be coerced to 1000. + // Optional. Maximum number of actions to return. The service may return fewer + // than this value. If unspecified, at most 10 actions will be returned. The + // maximum value is 1000; values above 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListLakeActions` call. Provide this to - // retrieve the subsequent page. When paginating, all other parameters - // provided to `ListLakeActions` must match the call that provided the page - // token. + // Optional. Page token received from a previous `ListLakeActions` call. + // Provide this to retrieve the subsequent page. When paginating, all other + // parameters provided to `ListLakeActions` must match the call that provided + // the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -511,9 +513,7 @@ message GetLakeRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; } @@ -523,9 +523,7 @@ message CreateZoneRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; // Required. Zone identifier. @@ -550,7 +548,8 @@ message CreateZoneRequest { // Update zone request. message UpdateZoneRequest { // Required. Mask of fields to update. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; // Required. Update description. // Only fields specified in `update_mask` are updated. @@ -567,9 +566,7 @@ message DeleteZoneRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Zone" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Zone" } ]; } @@ -579,18 +576,16 @@ message ListZonesRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; - // Optional. Maximum number of zones to return. The service may return fewer than this - // value. If unspecified, at most 10 zones will be returned. The maximum - // value is 1000; values above 1000 will be coerced to 1000. + // Optional. Maximum number of zones to return. The service may return fewer + // than this value. If unspecified, at most 10 zones will be returned. The + // maximum value is 1000; values above 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListZones` call. Provide this to - // retrieve the subsequent page. When paginating, all other parameters + // Optional. Page token received from a previous `ListZones` call. Provide + // this to retrieve the subsequent page. When paginating, all other parameters // provided to `ListZones` must match the call that provided the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -617,20 +612,18 @@ message ListZoneActionsRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Zone" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Zone" } ]; - // Optional. Maximum number of actions to return. The service may return fewer than this - // value. If unspecified, at most 10 actions will be returned. The maximum - // value is 1000; values above 1000 will be coerced to 1000. + // Optional. Maximum number of actions to return. The service may return fewer + // than this value. If unspecified, at most 10 actions will be returned. The + // maximum value is 1000; values above 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListZoneActions` call. Provide this to - // retrieve the subsequent page. When paginating, all other parameters - // provided to `ListZoneActions` must match the call that provided the page - // token. + // Optional. Page token received from a previous `ListZoneActions` call. + // Provide this to retrieve the subsequent page. When paginating, all other + // parameters provided to `ListZoneActions` must match the call that provided + // the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -640,9 +633,7 @@ message GetZoneRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Zone" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Zone" } ]; } @@ -652,9 +643,7 @@ message CreateAssetRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Zone" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Zone" } ]; // Required. Asset identifier. @@ -678,7 +667,8 @@ message CreateAssetRequest { // Update asset request. message UpdateAssetRequest { // Required. Mask of fields to update. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; // Required. Update description. // Only fields specified in `update_mask` are updated. @@ -695,9 +685,7 @@ message DeleteAssetRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Asset" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Asset" } ]; } @@ -707,18 +695,16 @@ message ListAssetsRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Zone" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Zone" } ]; - // Optional. Maximum number of asset to return. The service may return fewer than - // this value. If unspecified, at most 10 assets will be returned. The + // Optional. Maximum number of asset to return. The service may return fewer + // than this value. If unspecified, at most 10 assets will be returned. The // maximum value is 1000; values above 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListAssets` call. Provide this to - // retrieve the subsequent page. When paginating, all other parameters + // Optional. Page token received from a previous `ListAssets` call. Provide + // this to retrieve the subsequent page. When paginating, all other parameters // provided to `ListAssets` must match the call that provided the page // token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -746,20 +732,18 @@ message ListAssetActionsRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Asset" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Asset" } ]; - // Optional. Maximum number of actions to return. The service may return fewer than this - // value. If unspecified, at most 10 actions will be returned. The maximum - // value is 1000; values above 1000 will be coerced to 1000. + // Optional. Maximum number of actions to return. The service may return fewer + // than this value. If unspecified, at most 10 actions will be returned. The + // maximum value is 1000; values above 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListAssetActions` call. Provide this - // to retrieve the subsequent page. When paginating, all other parameters - // provided to `ListAssetActions` must match the call that provided the page - // token. + // Optional. Page token received from a previous `ListAssetActions` call. + // Provide this to retrieve the subsequent page. When paginating, all other + // parameters provided to `ListAssetActions` must match the call that provided + // the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -769,19 +753,19 @@ message GetAssetRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Asset" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Asset" } ]; } // Represents the metadata of a long-running operation. message OperationMetadata { // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Server-defined resource path for the target of the operation. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -794,8 +778,9 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. @@ -808,9 +793,7 @@ message CreateTaskRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; // Required. Task identifier. @@ -827,7 +810,8 @@ message CreateTaskRequest { // Update task request. message UpdateTaskRequest { // Required. Mask of fields to update. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; // Required. Update description. // Only fields specified in `update_mask` are updated. @@ -844,9 +828,7 @@ message DeleteTaskRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Task" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Task" } ]; } @@ -856,18 +838,16 @@ message ListTasksRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; - // Optional. Maximum number of tasks to return. The service may return fewer than this - // value. If unspecified, at most 10 tasks will be returned. The maximum - // value is 1000; values above 1000 will be coerced to 1000. + // Optional. Maximum number of tasks to return. The service may return fewer + // than this value. If unspecified, at most 10 tasks will be returned. The + // maximum value is 1000; values above 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListZones` call. Provide this to - // retrieve the subsequent page. When paginating, all other parameters + // Optional. Page token received from a previous `ListZones` call. Provide + // this to retrieve the subsequent page. When paginating, all other parameters // provided to `ListZones` must match the call that provided the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -897,9 +877,7 @@ message GetTaskRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Task" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Task" } ]; } @@ -909,9 +887,7 @@ message GetJobRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Job" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Job" } ]; } @@ -921,18 +897,16 @@ message ListJobsRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Task" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Task" } ]; - // Optional. Maximum number of jobs to return. The service may return fewer than - // this value. If unspecified, at most 10 jobs will be returned. The + // Optional. Maximum number of jobs to return. The service may return fewer + // than this value. If unspecified, at most 10 jobs will be returned. The // maximum value is 1000; values above 1000 will be coerced to 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListJobs` call. Provide this to - // retrieve the subsequent page. When paginating, all other parameters + // Optional. Page token received from a previous `ListJobs` call. Provide this + // to retrieve the subsequent page. When paginating, all other parameters // provided to `ListJobs` must match the call that provided the page // token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -954,9 +928,7 @@ message CancelJobRequest { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Job" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Job" } ]; } @@ -966,9 +938,7 @@ message CreateEnvironmentRequest { // `projects/{project_id}/locations/{location_id}/lakes/{lake_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; // Required. Environment identifier. @@ -990,7 +960,8 @@ message CreateEnvironmentRequest { // Update environment request. message UpdateEnvironmentRequest { // Required. Mask of fields to update. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; // Required. Update description. // Only fields specified in `update_mask` are updated. @@ -1019,20 +990,19 @@ message ListEnvironmentsRequest { // `projects/{project_id}/locations/{location_id}/lakes/{lake_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Lake" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Lake" } ]; - // Optional. Maximum number of environments to return. The service may return fewer than - // this value. If unspecified, at most 10 environments will be returned. The - // maximum value is 1000; values above 1000 will be coerced to 1000. + // Optional. Maximum number of environments to return. The service may return + // fewer than this value. If unspecified, at most 10 environments will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListEnvironments` call. Provide this - // to retrieve the subsequent page. When paginating, all other parameters - // provided to `ListEnvironments` must match the call that provided the page - // token. + // Optional. Page token received from a previous `ListEnvironments` call. + // Provide this to retrieve the subsequent page. When paginating, all other + // parameters provided to `ListEnvironments` must match the call that provided + // the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Filter request. @@ -1075,24 +1045,24 @@ message ListSessionsRequest { } ]; - // Optional. Maximum number of sessions to return. The service may return fewer than - // this value. If unspecified, at most 10 sessions will be returned. The - // maximum value is 1000; values above 1000 will be coerced to 1000. + // Optional. Maximum number of sessions to return. The service may return + // fewer than this value. If unspecified, at most 10 sessions will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Page token received from a previous `ListSessions` call. Provide this to - // retrieve the subsequent page. When paginating, all other parameters + // Optional. Page token received from a previous `ListSessions` call. Provide + // this to retrieve the subsequent page. When paginating, all other parameters // provided to `ListSessions` must match the call that provided the page // token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filter request. The following `mode` filter is supported to return only the - // sessions belonging to the requester when the mode is USER and return - // sessions of all the users when the mode is ADMIN. When no filter is sent - // default to USER mode. - // NOTE: When the mode is ADMIN, the requester should have - // `dataplex.environments.listAllSessions` permission to list all sessions, - // in absence of the permission, the request fails. + // Optional. Filter request. The following `mode` filter is supported to + // return only the sessions belonging to the requester when the mode is USER + // and return sessions of all the users when the mode is ADMIN. When no filter + // is sent default to USER mode. NOTE: When the mode is ADMIN, the requester + // should have `dataplex.environments.listAllSessions` permission to list all + // sessions, in absence of the permission, the request fails. // // mode = ADMIN | USER string filter = 4 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/tasks.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/tasks.proto index 214be25582e7..6aa028636c0c 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/tasks.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/tasks.proto @@ -61,24 +61,24 @@ message Task { // Optional. A list of python packages to be installed. // Valid formats include Cloud Storage URI to a PIP installable library. // For example, gs://bucket-name/my/path/to/lib.tar.gz - repeated string python_packages = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Override to common configuration of open source components installed on - // the Dataproc cluster. - // The properties to set on daemon config files. - // Property keys are specified in `prefix:property` format, for example - // `core:hadoop.tmp.dir`. - // For more information, see [Cluster + repeated string python_packages = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Override to common configuration of open source components + // installed on the Dataproc cluster. The properties to set on daemon + // config files. Property keys are specified in `prefix:property` format, + // for example `core:hadoop.tmp.dir`. For more information, see [Cluster // properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). - map properties = 4 [(google.api.field_behavior) = OPTIONAL]; + map properties = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Cloud VPC Network used to run the infrastructure. message VpcNetwork { // The Cloud VPC network identifier. oneof network_name { - // Optional. The Cloud VPC network in which the job is run. By default, the Cloud - // VPC network named Default within the project is used. + // Optional. The Cloud VPC network in which the job is run. By default, + // the Cloud VPC network named Default within the project is used. string network = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The Cloud VPC sub-network in which the job is run. @@ -131,7 +131,8 @@ message Task { // Optional. The first run of the task will be after this time. // If not specified, the task will run shortly after being submitted if // ON_DEMAND and based on the schedule if RECURRING. - google.protobuf.Timestamp start_time = 6 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Timestamp start_time = 6 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Prevent the task from executing. // This does not cancel already running tasks. It is intended to temporarily @@ -144,13 +145,13 @@ message Task { // Trigger only applies for RECURRING tasks. oneof trigger { - // Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running - // tasks periodically. - // To explicitly set a timezone to the cron tab, apply a prefix in the - // cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". - // The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone - // database. For example, "CRON_TZ=America/New_York 1 * * * *", or - // "TZ=America/New_York 1 * * * *". + // Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for + // running tasks periodically. To explicitly set a timezone to the cron + // tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or + // "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid + // string from IANA time zone database. For example, + // `CRON_TZ=America/New_York 1 * * * *`, + // or `TZ=America/New_York 1 * * * *`. // This field is required for RECURRING tasks. string schedule = 100 [(google.api.field_behavior) = OPTIONAL]; } @@ -177,13 +178,15 @@ message Task { // used. string service_account = 5 [(google.api.field_behavior) = REQUIRED]; - // Optional. The project in which jobs are run. By default, the project containing the - // Lake is used. If a project is provided, the - // [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] must belong to this project. + // Optional. The project in which jobs are run. By default, the project + // containing the Lake is used. If a project is provided, the + // [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] + // must belong to this project. string project = 7 [(google.api.field_behavior) = OPTIONAL]; // Optional. The maximum duration after which the job execution is expired. - google.protobuf.Duration max_job_execution_lifetime = 8 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration max_job_execution_lifetime = 8 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The Cloud KMS key to use for encryption, of the form: // `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`. @@ -225,44 +228,47 @@ message Task { string sql_script = 105; } - // Optional. Cloud Storage URIs of files to be placed in the working directory of each - // executor. + // Optional. Cloud Storage URIs of files to be placed in the working + // directory of each executor. repeated string file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Cloud Storage URIs of archives to be extracted into the working directory - // of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and - // .zip. + // Optional. Cloud Storage URIs of archives to be extracted into the working + // directory of each executor. Supported file types: .jar, .tar, .tar.gz, + // .tgz, and .zip. repeated string archive_uris = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Infrastructure specification for the execution. - InfrastructureSpec infrastructure_spec = 6 [(google.api.field_behavior) = OPTIONAL]; + InfrastructureSpec infrastructure_spec = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Config for running scheduled notebooks. message NotebookTaskConfig { - // Required. Path to input notebook. This can be the Cloud Storage URI of the notebook - // file or the path to a Notebook Content. The execution args are accessible - // as environment variables + // Required. Path to input notebook. This can be the Cloud Storage URI of + // the notebook file or the path to a Notebook Content. The execution args + // are accessible as environment variables // (`TASK_key=value`). string notebook = 4 [(google.api.field_behavior) = REQUIRED]; // Optional. Infrastructure specification for the execution. - InfrastructureSpec infrastructure_spec = 3 [(google.api.field_behavior) = OPTIONAL]; + InfrastructureSpec infrastructure_spec = 3 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. Cloud Storage URIs of files to be placed in the working directory of each - // executor. + // Optional. Cloud Storage URIs of files to be placed in the working + // directory of each executor. repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Cloud Storage URIs of archives to be extracted into the working directory - // of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and - // .zip. + // Optional. Cloud Storage URIs of archives to be extracted into the working + // directory of each executor. Supported file types: .jar, .tar, .tar.gz, + // .tgz, and .zip. repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; } // Status of the task execution (e.g. Jobs). message ExecutionStatus { // Output only. Last update time of the status. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. latest job execution Job latest_job = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -273,20 +279,20 @@ message Task { // tasks/{task_id}. string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Task" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Task" } ]; - // Output only. System generated globally unique ID for the task. This ID will be - // different if the task is deleted and re-created with the same name. + // Output only. System generated globally unique ID for the task. This ID will + // be different if the task is deleted and re-created with the same name. string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the task was created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the task was last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Description of the task. string description = 5 [(google.api.field_behavior) = OPTIONAL]; @@ -307,7 +313,8 @@ message Task { ExecutionSpec execution_spec = 101 [(google.api.field_behavior) = REQUIRED]; // Output only. Status of the latest task executions. - ExecutionStatus execution_status = 201 [(google.api.field_behavior) = OUTPUT_ONLY]; + ExecutionStatus execution_status = 201 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Task template specific user-specified config. oneof config { @@ -361,19 +368,19 @@ message Job { // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. string name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "dataplex.googleapis.com/Job" - } + (google.api.resource_reference) = { type: "dataplex.googleapis.com/Job" } ]; // Output only. System generated globally unique ID for the job. string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the job was started. - google.protobuf.Timestamp start_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp start_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the job ended. - google.protobuf.Timestamp end_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Execution state for the job. State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -385,7 +392,8 @@ message Job { // Output only. The underlying service running a job. Service service = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The full resource name for the job run under a particular service. + // Output only. The full resource name for the job run under a particular + // service. string service_job = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Additional information about the current state. diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateSetCredentialsProvider.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..681d58b8f32e --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.DataScanServiceSettings; +import com.google.cloud.dataplex.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataScanServiceSettings dataScanServiceSettings = + DataScanServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DataScanServiceClient dataScanServiceClient = + DataScanServiceClient.create(dataScanServiceSettings); + } +} +// [END dataplex_v1_generated_DataScanService_Create_SetCredentialsProvider_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateSetCredentialsProvider1.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..0c6fb5518f2e --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.DataScanServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataScanServiceSettings dataScanServiceSettings = + DataScanServiceSettings.newHttpJsonBuilder().build(); + DataScanServiceClient dataScanServiceClient = + DataScanServiceClient.create(dataScanServiceSettings); + } +} +// [END dataplex_v1_generated_DataScanService_Create_SetCredentialsProvider1_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateSetEndpoint.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..af6c6030d185 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_Create_SetEndpoint_sync] +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.DataScanServiceSettings; +import com.google.cloud.dataplex.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataScanServiceSettings dataScanServiceSettings = + DataScanServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DataScanServiceClient dataScanServiceClient = + DataScanServiceClient.create(dataScanServiceSettings); + } +} +// [END dataplex_v1_generated_DataScanService_Create_SetEndpoint_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/AsyncCreateDataScan.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/AsyncCreateDataScan.java new file mode 100644 index 000000000000..2311a33b528b --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/AsyncCreateDataScan.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_CreateDataScan_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataplex.v1.CreateDataScanRequest; +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateDataScan { + + public static void main(String[] args) throws Exception { + asyncCreateDataScan(); + } + + public static void asyncCreateDataScan() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + CreateDataScanRequest request = + CreateDataScanRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDataScan(DataScan.newBuilder().build()) + .setDataScanId("dataScanId1260787906") + .build(); + ApiFuture future = + dataScanServiceClient.createDataScanCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_CreateDataScan_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/AsyncCreateDataScanLRO.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/AsyncCreateDataScanLRO.java new file mode 100644 index 000000000000..5fcc048a91b6 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/AsyncCreateDataScanLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_CreateDataScan_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataplex.v1.CreateDataScanRequest; +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.LocationName; +import com.google.cloud.dataplex.v1.OperationMetadata; + +public class AsyncCreateDataScanLRO { + + public static void main(String[] args) throws Exception { + asyncCreateDataScanLRO(); + } + + public static void asyncCreateDataScanLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + CreateDataScanRequest request = + CreateDataScanRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDataScan(DataScan.newBuilder().build()) + .setDataScanId("dataScanId1260787906") + .build(); + OperationFuture future = + dataScanServiceClient.createDataScanOperationCallable().futureCall(request); + // Do something. + DataScan response = future.get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_CreateDataScan_LRO_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/SyncCreateDataScan.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/SyncCreateDataScan.java new file mode 100644 index 000000000000..9e7b2278d509 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/SyncCreateDataScan.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_CreateDataScan_sync] +import com.google.cloud.dataplex.v1.CreateDataScanRequest; +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.LocationName; + +public class SyncCreateDataScan { + + public static void main(String[] args) throws Exception { + syncCreateDataScan(); + } + + public static void syncCreateDataScan() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + CreateDataScanRequest request = + CreateDataScanRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setDataScan(DataScan.newBuilder().build()) + .setDataScanId("dataScanId1260787906") + .build(); + DataScan response = dataScanServiceClient.createDataScanAsync(request).get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_CreateDataScan_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/SyncCreateDataScanLocationnameDatascanString.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/SyncCreateDataScanLocationnameDatascanString.java new file mode 100644 index 000000000000..5ed57ddcb8d8 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/SyncCreateDataScanLocationnameDatascanString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_CreateDataScan_LocationnameDatascanString_sync] +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.LocationName; + +public class SyncCreateDataScanLocationnameDatascanString { + + public static void main(String[] args) throws Exception { + syncCreateDataScanLocationnameDatascanString(); + } + + public static void syncCreateDataScanLocationnameDatascanString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + DataScan dataScan = DataScan.newBuilder().build(); + String dataScanId = "dataScanId1260787906"; + DataScan response = + dataScanServiceClient.createDataScanAsync(parent, dataScan, dataScanId).get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_CreateDataScan_LocationnameDatascanString_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/SyncCreateDataScanStringDatascanString.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/SyncCreateDataScanStringDatascanString.java new file mode 100644 index 000000000000..6ff3049df4c4 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/createdatascan/SyncCreateDataScanStringDatascanString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_CreateDataScan_StringDatascanString_sync] +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.LocationName; + +public class SyncCreateDataScanStringDatascanString { + + public static void main(String[] args) throws Exception { + syncCreateDataScanStringDatascanString(); + } + + public static void syncCreateDataScanStringDatascanString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + DataScan dataScan = DataScan.newBuilder().build(); + String dataScanId = "dataScanId1260787906"; + DataScan response = + dataScanServiceClient.createDataScanAsync(parent, dataScan, dataScanId).get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_CreateDataScan_StringDatascanString_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/AsyncDeleteDataScan.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/AsyncDeleteDataScan.java new file mode 100644 index 000000000000..fc873ef4c204 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/AsyncDeleteDataScan.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_DeleteDataScan_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.DeleteDataScanRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteDataScan { + + public static void main(String[] args) throws Exception { + asyncDeleteDataScan(); + } + + public static void asyncDeleteDataScan() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + DeleteDataScanRequest request = + DeleteDataScanRequest.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .build(); + ApiFuture future = + dataScanServiceClient.deleteDataScanCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_DeleteDataScan_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/AsyncDeleteDataScanLRO.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/AsyncDeleteDataScanLRO.java new file mode 100644 index 000000000000..bd76bb54a0bb --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/AsyncDeleteDataScanLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_DeleteDataScan_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.DeleteDataScanRequest; +import com.google.cloud.dataplex.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteDataScanLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteDataScanLRO(); + } + + public static void asyncDeleteDataScanLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + DeleteDataScanRequest request = + DeleteDataScanRequest.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .build(); + OperationFuture future = + dataScanServiceClient.deleteDataScanOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_DeleteDataScan_LRO_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/SyncDeleteDataScan.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/SyncDeleteDataScan.java new file mode 100644 index 000000000000..0c88598711ff --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/SyncDeleteDataScan.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_DeleteDataScan_sync] +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.DeleteDataScanRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteDataScan { + + public static void main(String[] args) throws Exception { + syncDeleteDataScan(); + } + + public static void syncDeleteDataScan() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + DeleteDataScanRequest request = + DeleteDataScanRequest.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .build(); + dataScanServiceClient.deleteDataScanAsync(request).get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_DeleteDataScan_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/SyncDeleteDataScanDatascanname.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/SyncDeleteDataScanDatascanname.java new file mode 100644 index 000000000000..000aff7709a3 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/SyncDeleteDataScanDatascanname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_DeleteDataScan_Datascanname_sync] +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDataScanDatascanname { + + public static void main(String[] args) throws Exception { + syncDeleteDataScanDatascanname(); + } + + public static void syncDeleteDataScanDatascanname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + dataScanServiceClient.deleteDataScanAsync(name).get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_DeleteDataScan_Datascanname_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/SyncDeleteDataScanString.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/SyncDeleteDataScanString.java new file mode 100644 index 000000000000..e3a387ba73c8 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/deletedatascan/SyncDeleteDataScanString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_DeleteDataScan_String_sync] +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteDataScanString { + + public static void main(String[] args) throws Exception { + syncDeleteDataScanString(); + } + + public static void syncDeleteDataScanString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + String name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString(); + dataScanServiceClient.deleteDataScanAsync(name).get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_DeleteDataScan_String_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascan/AsyncGetDataScan.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascan/AsyncGetDataScan.java new file mode 100644 index 000000000000..953fe061c291 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascan/AsyncGetDataScan.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_GetDataScan_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.GetDataScanRequest; + +public class AsyncGetDataScan { + + public static void main(String[] args) throws Exception { + asyncGetDataScan(); + } + + public static void asyncGetDataScan() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + GetDataScanRequest request = + GetDataScanRequest.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .build(); + ApiFuture future = dataScanServiceClient.getDataScanCallable().futureCall(request); + // Do something. + DataScan response = future.get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_GetDataScan_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascan/SyncGetDataScan.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascan/SyncGetDataScan.java new file mode 100644 index 000000000000..93c35fa4c573 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascan/SyncGetDataScan.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_GetDataScan_sync] +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.GetDataScanRequest; + +public class SyncGetDataScan { + + public static void main(String[] args) throws Exception { + syncGetDataScan(); + } + + public static void syncGetDataScan() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + GetDataScanRequest request = + GetDataScanRequest.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .build(); + DataScan response = dataScanServiceClient.getDataScan(request); + } + } +} +// [END dataplex_v1_generated_DataScanService_GetDataScan_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascan/SyncGetDataScanDatascanname.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascan/SyncGetDataScanDatascanname.java new file mode 100644 index 000000000000..e662a36e3055 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascan/SyncGetDataScanDatascanname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_GetDataScan_Datascanname_sync] +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; + +public class SyncGetDataScanDatascanname { + + public static void main(String[] args) throws Exception { + syncGetDataScanDatascanname(); + } + + public static void syncGetDataScanDatascanname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + DataScan response = dataScanServiceClient.getDataScan(name); + } + } +} +// [END dataplex_v1_generated_DataScanService_GetDataScan_Datascanname_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascan/SyncGetDataScanString.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascan/SyncGetDataScanString.java new file mode 100644 index 000000000000..540cc6726024 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascan/SyncGetDataScanString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_GetDataScan_String_sync] +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; + +public class SyncGetDataScanString { + + public static void main(String[] args) throws Exception { + syncGetDataScanString(); + } + + public static void syncGetDataScanString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + String name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString(); + DataScan response = dataScanServiceClient.getDataScan(name); + } + } +} +// [END dataplex_v1_generated_DataScanService_GetDataScan_String_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascanjob/AsyncGetDataScanJob.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascanjob/AsyncGetDataScanJob.java new file mode 100644 index 000000000000..57a730f702da --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascanjob/AsyncGetDataScanJob.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_GetDataScanJob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DataScanJobName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.GetDataScanJobRequest; + +public class AsyncGetDataScanJob { + + public static void main(String[] args) throws Exception { + asyncGetDataScanJob(); + } + + public static void asyncGetDataScanJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + GetDataScanJobRequest request = + GetDataScanJobRequest.newBuilder() + .setName( + DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]").toString()) + .build(); + ApiFuture future = + dataScanServiceClient.getDataScanJobCallable().futureCall(request); + // Do something. + DataScanJob response = future.get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_GetDataScanJob_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascanjob/SyncGetDataScanJob.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascanjob/SyncGetDataScanJob.java new file mode 100644 index 000000000000..3bd21f3e12df --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascanjob/SyncGetDataScanJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_GetDataScanJob_sync] +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DataScanJobName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.GetDataScanJobRequest; + +public class SyncGetDataScanJob { + + public static void main(String[] args) throws Exception { + syncGetDataScanJob(); + } + + public static void syncGetDataScanJob() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + GetDataScanJobRequest request = + GetDataScanJobRequest.newBuilder() + .setName( + DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]").toString()) + .build(); + DataScanJob response = dataScanServiceClient.getDataScanJob(request); + } + } +} +// [END dataplex_v1_generated_DataScanService_GetDataScanJob_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascanjob/SyncGetDataScanJobDatascanjobname.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascanjob/SyncGetDataScanJobDatascanjobname.java new file mode 100644 index 000000000000..2abeb4fc3d67 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascanjob/SyncGetDataScanJobDatascanjobname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_GetDataScanJob_Datascanjobname_sync] +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DataScanJobName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; + +public class SyncGetDataScanJobDatascanjobname { + + public static void main(String[] args) throws Exception { + syncGetDataScanJobDatascanjobname(); + } + + public static void syncGetDataScanJobDatascanjobname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + DataScanJobName name = DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]"); + DataScanJob response = dataScanServiceClient.getDataScanJob(name); + } + } +} +// [END dataplex_v1_generated_DataScanService_GetDataScanJob_Datascanjobname_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascanjob/SyncGetDataScanJobString.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascanjob/SyncGetDataScanJobString.java new file mode 100644 index 000000000000..df2554a6e148 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getdatascanjob/SyncGetDataScanJobString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_GetDataScanJob_String_sync] +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DataScanJobName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; + +public class SyncGetDataScanJobString { + + public static void main(String[] args) throws Exception { + syncGetDataScanJobString(); + } + + public static void syncGetDataScanJobString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + String name = DataScanJobName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]", "[JOB]").toString(); + DataScanJob response = dataScanServiceClient.getDataScanJob(name); + } + } +} +// [END dataplex_v1_generated_DataScanService_GetDataScanJob_String_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getlocation/AsyncGetLocation.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..65ff6fef72e8 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = dataScanServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_GetLocation_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getlocation/SyncGetLocation.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..880afdee82e3 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_GetLocation_sync] +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = dataScanServiceClient.getLocation(request); + } + } +} +// [END dataplex_v1_generated_DataScanService_GetLocation_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/AsyncListDataScanJobs.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/AsyncListDataScanJobs.java new file mode 100644 index 000000000000..3297a4cf15bb --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/AsyncListDataScanJobs.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListDataScanJobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.ListDataScanJobsRequest; + +public class AsyncListDataScanJobs { + + public static void main(String[] args) throws Exception { + asyncListDataScanJobs(); + } + + public static void asyncListDataScanJobs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + ListDataScanJobsRequest request = + ListDataScanJobsRequest.newBuilder() + .setParent(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dataScanServiceClient.listDataScanJobsPagedCallable().futureCall(request); + // Do something. + for (DataScanJob element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListDataScanJobs_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/AsyncListDataScanJobsPaged.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/AsyncListDataScanJobsPaged.java new file mode 100644 index 000000000000..d3c0dbc2e96f --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/AsyncListDataScanJobsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListDataScanJobs_Paged_async] +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.ListDataScanJobsRequest; +import com.google.cloud.dataplex.v1.ListDataScanJobsResponse; +import com.google.common.base.Strings; + +public class AsyncListDataScanJobsPaged { + + public static void main(String[] args) throws Exception { + asyncListDataScanJobsPaged(); + } + + public static void asyncListDataScanJobsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + ListDataScanJobsRequest request = + ListDataScanJobsRequest.newBuilder() + .setParent(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListDataScanJobsResponse response = + dataScanServiceClient.listDataScanJobsCallable().call(request); + for (DataScanJob element : response.getDataScanJobsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListDataScanJobs_Paged_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/SyncListDataScanJobs.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/SyncListDataScanJobs.java new file mode 100644 index 000000000000..ff9771496780 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/SyncListDataScanJobs.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListDataScanJobs_sync] +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.ListDataScanJobsRequest; + +public class SyncListDataScanJobs { + + public static void main(String[] args) throws Exception { + syncListDataScanJobs(); + } + + public static void syncListDataScanJobs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + ListDataScanJobsRequest request = + ListDataScanJobsRequest.newBuilder() + .setParent(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (DataScanJob element : dataScanServiceClient.listDataScanJobs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListDataScanJobs_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/SyncListDataScanJobsDatascanname.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/SyncListDataScanJobsDatascanname.java new file mode 100644 index 000000000000..88db706dffa6 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/SyncListDataScanJobsDatascanname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListDataScanJobs_Datascanname_sync] +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; + +public class SyncListDataScanJobsDatascanname { + + public static void main(String[] args) throws Exception { + syncListDataScanJobsDatascanname(); + } + + public static void syncListDataScanJobsDatascanname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + DataScanName parent = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + for (DataScanJob element : dataScanServiceClient.listDataScanJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListDataScanJobs_Datascanname_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/SyncListDataScanJobsString.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/SyncListDataScanJobsString.java new file mode 100644 index 000000000000..51a7990c00d0 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascanjobs/SyncListDataScanJobsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListDataScanJobs_String_sync] +import com.google.cloud.dataplex.v1.DataScanJob; +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; + +public class SyncListDataScanJobsString { + + public static void main(String[] args) throws Exception { + syncListDataScanJobsString(); + } + + public static void syncListDataScanJobsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + String parent = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString(); + for (DataScanJob element : dataScanServiceClient.listDataScanJobs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListDataScanJobs_String_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/AsyncListDataScans.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/AsyncListDataScans.java new file mode 100644 index 000000000000..38601f060f8a --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/AsyncListDataScans.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListDataScans_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.ListDataScansRequest; +import com.google.cloud.dataplex.v1.LocationName; + +public class AsyncListDataScans { + + public static void main(String[] args) throws Exception { + asyncListDataScans(); + } + + public static void asyncListDataScans() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + ListDataScansRequest request = + ListDataScansRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + dataScanServiceClient.listDataScansPagedCallable().futureCall(request); + // Do something. + for (DataScan element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListDataScans_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/AsyncListDataScansPaged.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/AsyncListDataScansPaged.java new file mode 100644 index 000000000000..9e588e83b448 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/AsyncListDataScansPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListDataScans_Paged_async] +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.ListDataScansRequest; +import com.google.cloud.dataplex.v1.ListDataScansResponse; +import com.google.cloud.dataplex.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListDataScansPaged { + + public static void main(String[] args) throws Exception { + asyncListDataScansPaged(); + } + + public static void asyncListDataScansPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + ListDataScansRequest request = + ListDataScansRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListDataScansResponse response = + dataScanServiceClient.listDataScansCallable().call(request); + for (DataScan element : response.getDataScansList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListDataScans_Paged_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/SyncListDataScans.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/SyncListDataScans.java new file mode 100644 index 000000000000..c1347b89675d --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/SyncListDataScans.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListDataScans_sync] +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.ListDataScansRequest; +import com.google.cloud.dataplex.v1.LocationName; + +public class SyncListDataScans { + + public static void main(String[] args) throws Exception { + syncListDataScans(); + } + + public static void syncListDataScans() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + ListDataScansRequest request = + ListDataScansRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (DataScan element : dataScanServiceClient.listDataScans(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListDataScans_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/SyncListDataScansLocationname.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/SyncListDataScansLocationname.java new file mode 100644 index 000000000000..0cc0872d3603 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/SyncListDataScansLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListDataScans_Locationname_sync] +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.LocationName; + +public class SyncListDataScansLocationname { + + public static void main(String[] args) throws Exception { + syncListDataScansLocationname(); + } + + public static void syncListDataScansLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (DataScan element : dataScanServiceClient.listDataScans(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListDataScans_Locationname_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/SyncListDataScansString.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/SyncListDataScansString.java new file mode 100644 index 000000000000..180b518c8bf4 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listdatascans/SyncListDataScansString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListDataScans_String_sync] +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.LocationName; + +public class SyncListDataScansString { + + public static void main(String[] args) throws Exception { + syncListDataScansString(); + } + + public static void syncListDataScansString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (DataScan element : dataScanServiceClient.listDataScans(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListDataScans_String_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listlocations/AsyncListLocations.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..95c97f48fefa --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + dataScanServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListLocations_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listlocations/AsyncListLocationsPaged.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..20ecc5ebd997 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListLocations_Paged_async] +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + dataScanServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListLocations_Paged_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listlocations/SyncListLocations.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..56ccb15330fd --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_ListLocations_sync] +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : dataScanServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dataplex_v1_generated_DataScanService_ListLocations_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/rundatascan/AsyncRunDataScan.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/rundatascan/AsyncRunDataScan.java new file mode 100644 index 000000000000..bf28c465568b --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/rundatascan/AsyncRunDataScan.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_RunDataScan_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.RunDataScanRequest; +import com.google.cloud.dataplex.v1.RunDataScanResponse; + +public class AsyncRunDataScan { + + public static void main(String[] args) throws Exception { + asyncRunDataScan(); + } + + public static void asyncRunDataScan() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + RunDataScanRequest request = + RunDataScanRequest.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .build(); + ApiFuture future = + dataScanServiceClient.runDataScanCallable().futureCall(request); + // Do something. + RunDataScanResponse response = future.get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_RunDataScan_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/rundatascan/SyncRunDataScan.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/rundatascan/SyncRunDataScan.java new file mode 100644 index 000000000000..7e1c8e1909a4 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/rundatascan/SyncRunDataScan.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_RunDataScan_sync] +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.RunDataScanRequest; +import com.google.cloud.dataplex.v1.RunDataScanResponse; + +public class SyncRunDataScan { + + public static void main(String[] args) throws Exception { + syncRunDataScan(); + } + + public static void syncRunDataScan() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + RunDataScanRequest request = + RunDataScanRequest.newBuilder() + .setName(DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString()) + .build(); + RunDataScanResponse response = dataScanServiceClient.runDataScan(request); + } + } +} +// [END dataplex_v1_generated_DataScanService_RunDataScan_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/rundatascan/SyncRunDataScanDatascanname.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/rundatascan/SyncRunDataScanDatascanname.java new file mode 100644 index 000000000000..97b281cb4d64 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/rundatascan/SyncRunDataScanDatascanname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_RunDataScan_Datascanname_sync] +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.RunDataScanResponse; + +public class SyncRunDataScanDatascanname { + + public static void main(String[] args) throws Exception { + syncRunDataScanDatascanname(); + } + + public static void syncRunDataScanDatascanname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + DataScanName name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]"); + RunDataScanResponse response = dataScanServiceClient.runDataScan(name); + } + } +} +// [END dataplex_v1_generated_DataScanService_RunDataScan_Datascanname_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/rundatascan/SyncRunDataScanString.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/rundatascan/SyncRunDataScanString.java new file mode 100644 index 000000000000..c7c9577ad0c2 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/rundatascan/SyncRunDataScanString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_RunDataScan_String_sync] +import com.google.cloud.dataplex.v1.DataScanName; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.RunDataScanResponse; + +public class SyncRunDataScanString { + + public static void main(String[] args) throws Exception { + syncRunDataScanString(); + } + + public static void syncRunDataScanString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + String name = DataScanName.of("[PROJECT]", "[LOCATION]", "[DATASCAN]").toString(); + RunDataScanResponse response = dataScanServiceClient.runDataScan(name); + } + } +} +// [END dataplex_v1_generated_DataScanService_RunDataScan_String_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/updatedatascan/AsyncUpdateDataScan.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/updatedatascan/AsyncUpdateDataScan.java new file mode 100644 index 000000000000..a1f893b57d5c --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/updatedatascan/AsyncUpdateDataScan.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_UpdateDataScan_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.UpdateDataScanRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDataScan { + + public static void main(String[] args) throws Exception { + asyncUpdateDataScan(); + } + + public static void asyncUpdateDataScan() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + UpdateDataScanRequest request = + UpdateDataScanRequest.newBuilder() + .setDataScan(DataScan.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + dataScanServiceClient.updateDataScanCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_UpdateDataScan_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/updatedatascan/AsyncUpdateDataScanLRO.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/updatedatascan/AsyncUpdateDataScanLRO.java new file mode 100644 index 000000000000..ed1f57a191b6 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/updatedatascan/AsyncUpdateDataScanLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_UpdateDataScan_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.OperationMetadata; +import com.google.cloud.dataplex.v1.UpdateDataScanRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDataScanLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateDataScanLRO(); + } + + public static void asyncUpdateDataScanLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + UpdateDataScanRequest request = + UpdateDataScanRequest.newBuilder() + .setDataScan(DataScan.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + dataScanServiceClient.updateDataScanOperationCallable().futureCall(request); + // Do something. + DataScan response = future.get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_UpdateDataScan_LRO_async] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/updatedatascan/SyncUpdateDataScan.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/updatedatascan/SyncUpdateDataScan.java new file mode 100644 index 000000000000..e46713d2caae --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/updatedatascan/SyncUpdateDataScan.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_UpdateDataScan_sync] +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.cloud.dataplex.v1.UpdateDataScanRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDataScan { + + public static void main(String[] args) throws Exception { + syncUpdateDataScan(); + } + + public static void syncUpdateDataScan() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + UpdateDataScanRequest request = + UpdateDataScanRequest.newBuilder() + .setDataScan(DataScan.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + DataScan response = dataScanServiceClient.updateDataScanAsync(request).get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_UpdateDataScan_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/updatedatascan/SyncUpdateDataScanDatascanFieldmask.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/updatedatascan/SyncUpdateDataScanDatascanFieldmask.java new file mode 100644 index 000000000000..cb6f92fb6556 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservice/updatedatascan/SyncUpdateDataScanDatascanFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanService_UpdateDataScan_DatascanFieldmask_sync] +import com.google.cloud.dataplex.v1.DataScan; +import com.google.cloud.dataplex.v1.DataScanServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDataScanDatascanFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDataScanDatascanFieldmask(); + } + + public static void syncUpdateDataScanDatascanFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataScanServiceClient dataScanServiceClient = DataScanServiceClient.create()) { + DataScan dataScan = DataScan.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DataScan response = dataScanServiceClient.updateDataScanAsync(dataScan, updateMask).get(); + } + } +} +// [END dataplex_v1_generated_DataScanService_UpdateDataScan_DatascanFieldmask_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservicesettings/getdatascan/SyncGetDataScan.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservicesettings/getdatascan/SyncGetDataScan.java new file mode 100644 index 000000000000..fb72868fd574 --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/datascanservicesettings/getdatascan/SyncGetDataScan.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.samples; + +// [START dataplex_v1_generated_DataScanServiceSettings_GetDataScan_sync] +import com.google.cloud.dataplex.v1.DataScanServiceSettings; +import java.time.Duration; + +public class SyncGetDataScan { + + public static void main(String[] args) throws Exception { + syncGetDataScan(); + } + + public static void syncGetDataScan() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataScanServiceSettings.Builder dataScanServiceSettingsBuilder = + DataScanServiceSettings.newBuilder(); + dataScanServiceSettingsBuilder + .getDataScanSettings() + .setRetrySettings( + dataScanServiceSettingsBuilder.getDataScanSettings().getRetrySettings().toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + DataScanServiceSettings dataScanServiceSettings = dataScanServiceSettingsBuilder.build(); + } +} +// [END dataplex_v1_generated_DataScanServiceSettings_GetDataScan_sync] diff --git a/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/stub/datascanservicestubsettings/getdatascan/SyncGetDataScan.java b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/stub/datascanservicestubsettings/getdatascan/SyncGetDataScan.java new file mode 100644 index 000000000000..c0e18ac22e1d --- /dev/null +++ b/java-dataplex/samples/snippets/generated/com/google/cloud/dataplex/v1/stub/datascanservicestubsettings/getdatascan/SyncGetDataScan.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataplex.v1.stub.samples; + +// [START dataplex_v1_generated_DataScanServiceStubSettings_GetDataScan_sync] +import com.google.cloud.dataplex.v1.stub.DataScanServiceStubSettings; +import java.time.Duration; + +public class SyncGetDataScan { + + public static void main(String[] args) throws Exception { + syncGetDataScan(); + } + + public static void syncGetDataScan() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DataScanServiceStubSettings.Builder dataScanServiceSettingsBuilder = + DataScanServiceStubSettings.newBuilder(); + dataScanServiceSettingsBuilder + .getDataScanSettings() + .setRetrySettings( + dataScanServiceSettingsBuilder.getDataScanSettings().getRetrySettings().toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + DataScanServiceStubSettings dataScanServiceSettings = dataScanServiceSettingsBuilder.build(); + } +} +// [END dataplex_v1_generated_DataScanServiceStubSettings_GetDataScan_sync] diff --git a/versions.txt b/versions.txt index a7c8d4a2bf0f..26acef5dc131 100644 --- a/versions.txt +++ b/versions.txt @@ -599,4 +599,4 @@ google-cloud-monitoring-metricsscope:0.1.0:0.1.0 proto-google-cloud-monitoring-metricsscope-v1:0.1.0:0.1.0 grpc-google-cloud-monitoring-metricsscope-v1:0.1.0:0.1.0 proto-google-cloud-tpu-v2:2.8.0:2.8.0 -grpc-google-cloud-tpu-v2:2.8.0:2.8.0 \ No newline at end of file +grpc-google-cloud-tpu-v2:2.8.0:2.8.0