All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dataplex.v1.DataScanServiceGrpc Maven / Gradle / Ivy

There is a newer version: 1.54.0
Show newest version
/*
 * Copyright 2024 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;

/**
 *
 *
 * 
 * DataScanService manages DataScan resources which can be configured to run
 * various types of data scanning workload and generate enriched metadata (e.g.
 * Data Profile, Data Quality) for the data source.
 * 
*/ @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 java.lang.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; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest, com.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse> getGenerateDataQualityRulesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateDataQualityRules", requestType = com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest.class, responseType = com.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest, com.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse> getGenerateDataQualityRulesMethod() { io.grpc.MethodDescriptor< com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest, com.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse> getGenerateDataQualityRulesMethod; if ((getGenerateDataQualityRulesMethod = DataScanServiceGrpc.getGenerateDataQualityRulesMethod) == null) { synchronized (DataScanServiceGrpc.class) { if ((getGenerateDataQualityRulesMethod = DataScanServiceGrpc.getGenerateDataQualityRulesMethod) == null) { DataScanServiceGrpc.getGenerateDataQualityRulesMethod = getGenerateDataQualityRulesMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "GenerateDataQualityRules")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse .getDefaultInstance())) .setSchemaDescriptor( new DataScanServiceMethodDescriptorSupplier("GenerateDataQualityRules")) .build(); } } } return getGenerateDataQualityRulesMethod; } /** 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); } /** * * *
   * DataScanService manages DataScan resources which can be configured to run
   * various types of data scanning workload and generate enriched metadata (e.g.
   * Data Profile, Data Quality) for the data source.
   * 
*/ public interface AsyncService { /** * * *
     * Creates a DataScan resource.
     * 
*/ default void createDataScan( com.google.cloud.dataplex.v1.CreateDataScanRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateDataScanMethod(), responseObserver); } /** * * *
     * Updates a DataScan resource.
     * 
*/ default void updateDataScan( com.google.cloud.dataplex.v1.UpdateDataScanRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateDataScanMethod(), responseObserver); } /** * * *
     * Deletes a DataScan resource.
     * 
*/ default void deleteDataScan( com.google.cloud.dataplex.v1.DeleteDataScanRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteDataScanMethod(), responseObserver); } /** * * *
     * Gets a DataScan resource.
     * 
*/ default void getDataScan( com.google.cloud.dataplex.v1.GetDataScanRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetDataScanMethod(), responseObserver); } /** * * *
     * Lists DataScans.
     * 
*/ default void listDataScans( com.google.cloud.dataplex.v1.ListDataScansRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListDataScansMethod(), responseObserver); } /** * * *
     * Runs an on-demand execution of a DataScan
     * 
*/ default void runDataScan( com.google.cloud.dataplex.v1.RunDataScanRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getRunDataScanMethod(), responseObserver); } /** * * *
     * Gets a DataScanJob resource.
     * 
*/ default 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.
     * 
*/ default void listDataScanJobs( com.google.cloud.dataplex.v1.ListDataScanJobsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListDataScanJobsMethod(), responseObserver); } /** * * *
     * Generates recommended data quality rules based on the results of a data
     * profiling scan.
     * Use the recommendations to build rules for a data quality scan.
     * 
*/ default void generateDataQualityRules( com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGenerateDataQualityRulesMethod(), responseObserver); } } /** * Base class for the server implementation of the service DataScanService. * *
   * DataScanService manages DataScan resources which can be configured to run
   * various types of data scanning workload and generate enriched metadata (e.g.
   * Data Profile, Data Quality) for the data source.
   * 
*/ public abstract static class DataScanServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return DataScanServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service DataScanService. * *
   * DataScanService manages DataScan resources which can be configured to run
   * various types of data scanning workload and generate enriched metadata (e.g.
   * Data Profile, Data Quality) for the data source.
   * 
*/ 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); } /** * * *
     * Updates a 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); } /** * * *
     * Deletes a 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); } /** * * *
     * Gets a 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); } /** * * *
     * Runs 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); } /** * * *
     * Gets a 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); } /** * * *
     * Generates recommended data quality rules based on the results of a data
     * profiling scan.
     * Use the recommendations to build rules for a data quality scan.
     * 
*/ public void generateDataQualityRules( com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGenerateDataQualityRulesMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service DataScanService. * *
   * DataScanService manages DataScan resources which can be configured to run
   * various types of data scanning workload and generate enriched metadata (e.g.
   * Data Profile, Data Quality) for the data source.
   * 
*/ 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); } /** * * *
     * Updates a 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); } /** * * *
     * Deletes a 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); } /** * * *
     * Gets a 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); } /** * * *
     * Runs 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); } /** * * *
     * Gets a 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); } /** * * *
     * Generates recommended data quality rules based on the results of a data
     * profiling scan.
     * Use the recommendations to build rules for a data quality scan.
     * 
*/ public com.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse generateDataQualityRules( com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateDataQualityRulesMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service DataScanService. * *
   * DataScanService manages DataScan resources which can be configured to run
   * various types of data scanning workload and generate enriched metadata (e.g.
   * Data Profile, Data Quality) for the data source.
   * 
*/ 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); } /** * * *
     * Updates a 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); } /** * * *
     * Deletes a 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); } /** * * *
     * Gets a 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); } /** * * *
     * Runs 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); } /** * * *
     * Gets a 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); } /** * * *
     * Generates recommended data quality rules based on the results of a data
     * profiling scan.
     * Use the recommendations to build rules for a data quality scan.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse> generateDataQualityRules( com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGenerateDataQualityRulesMethod(), 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 int METHODID_GENERATE_DATA_QUALITY_RULES = 8; 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 AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService 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; case METHODID_GENERATE_DATA_QUALITY_RULES: serviceImpl.generateDataQualityRules( (com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse>) 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(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { 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>(service, METHODID_CREATE_DATA_SCAN))) .addMethod( getUpdateDataScanMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataplex.v1.UpdateDataScanRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_DATA_SCAN))) .addMethod( getDeleteDataScanMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataplex.v1.DeleteDataScanRequest, com.google.longrunning.Operation>(service, 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>(service, 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>( service, 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>( service, 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>(service, 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>( service, METHODID_LIST_DATA_SCAN_JOBS))) .addMethod( getGenerateDataQualityRulesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest, com.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse>( service, METHODID_GENERATE_DATA_QUALITY_RULES))) .build(); } 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 java.lang.String methodName; DataScanServiceMethodDescriptorSupplier(java.lang.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()) .addMethod(getGenerateDataQualityRulesMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy