• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.google.cloud.dlp.v2.stub;
18 
19 import com.google.api.gax.grpc.GrpcCallSettings;
20 import com.google.api.gax.grpc.GrpcCallableFactory;
21 import com.google.api.gax.grpc.GrpcStubCallableFactory;
22 import com.google.api.gax.rpc.BatchingCallSettings;
23 import com.google.api.gax.rpc.BidiStreamingCallable;
24 import com.google.api.gax.rpc.ClientContext;
25 import com.google.api.gax.rpc.ClientStreamingCallable;
26 import com.google.api.gax.rpc.OperationCallSettings;
27 import com.google.api.gax.rpc.OperationCallable;
28 import com.google.api.gax.rpc.PagedCallSettings;
29 import com.google.api.gax.rpc.ServerStreamingCallSettings;
30 import com.google.api.gax.rpc.ServerStreamingCallable;
31 import com.google.api.gax.rpc.StreamingCallSettings;
32 import com.google.api.gax.rpc.UnaryCallSettings;
33 import com.google.api.gax.rpc.UnaryCallable;
34 import com.google.longrunning.Operation;
35 import com.google.longrunning.stub.OperationsStub;
36 import javax.annotation.Generated;
37 
38 // AUTO-GENERATED DOCUMENTATION AND CLASS.
39 /**
40  * gRPC callable factory implementation for the DlpService service API.
41  *
42  * <p>This class is for advanced usage.
43  */
44 @Generated("by gapic-generator-java")
45 public class GrpcDlpServiceCallableFactory implements GrpcStubCallableFactory {
46 
47   @Override
createUnaryCallable( GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, UnaryCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext)48   public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable(
49       GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
50       UnaryCallSettings<RequestT, ResponseT> callSettings,
51       ClientContext clientContext) {
52     return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext);
53   }
54 
55   @Override
56   public <RequestT, ResponseT, PagedListResponseT>
createPagedCallable( GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings, ClientContext clientContext)57       UnaryCallable<RequestT, PagedListResponseT> createPagedCallable(
58           GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
59           PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings,
60           ClientContext clientContext) {
61     return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext);
62   }
63 
64   @Override
createBatchingCallable( GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, BatchingCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext)65   public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable(
66       GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
67       BatchingCallSettings<RequestT, ResponseT> callSettings,
68       ClientContext clientContext) {
69     return GrpcCallableFactory.createBatchingCallable(
70         grpcCallSettings, callSettings, clientContext);
71   }
72 
73   @Override
74   public <RequestT, ResponseT, MetadataT>
createOperationCallable( GrpcCallSettings<RequestT, Operation> grpcCallSettings, OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings, ClientContext clientContext, OperationsStub operationsStub)75       OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
76           GrpcCallSettings<RequestT, Operation> grpcCallSettings,
77           OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings,
78           ClientContext clientContext,
79           OperationsStub operationsStub) {
80     return GrpcCallableFactory.createOperationCallable(
81         grpcCallSettings, callSettings, clientContext, operationsStub);
82   }
83 
84   @Override
85   public <RequestT, ResponseT>
createBidiStreamingCallable( GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, StreamingCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext)86       BidiStreamingCallable<RequestT, ResponseT> createBidiStreamingCallable(
87           GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
88           StreamingCallSettings<RequestT, ResponseT> callSettings,
89           ClientContext clientContext) {
90     return GrpcCallableFactory.createBidiStreamingCallable(
91         grpcCallSettings, callSettings, clientContext);
92   }
93 
94   @Override
95   public <RequestT, ResponseT>
createServerStreamingCallable( GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, ServerStreamingCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext)96       ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
97           GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
98           ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
99           ClientContext clientContext) {
100     return GrpcCallableFactory.createServerStreamingCallable(
101         grpcCallSettings, callSettings, clientContext);
102   }
103 
104   @Override
105   public <RequestT, ResponseT>
createClientStreamingCallable( GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, StreamingCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext)106       ClientStreamingCallable<RequestT, ResponseT> createClientStreamingCallable(
107           GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
108           StreamingCallSettings<RequestT, ResponseT> callSettings,
109           ClientContext clientContext) {
110     return GrpcCallableFactory.createClientStreamingCallable(
111         grpcCallSettings, callSettings, clientContext);
112   }
113 }
114