• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2017 The Android Open Source Project
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  *      http://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.internal.communications.voicemailtranscription.v1;
18 
19 import static io.grpc.stub.ClientCalls.asyncUnaryCall;
20 import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
21 import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
22 import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
23 import static io.grpc.stub.ClientCalls.blockingUnaryCall;
24 import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
25 import static io.grpc.stub.ClientCalls.futureUnaryCall;
26 import static io.grpc.MethodDescriptor.generateFullMethodName;
27 import static io.grpc.stub.ServerCalls.asyncUnaryCall;
28 import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
29 import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
30 import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
31 import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
32 import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
33 
34 /**
35  * <pre>
36  * RPC service for transcribing voicemails.
37  * </pre>
38  */
39 @javax.annotation.Generated(
40     value = "by gRPC proto compiler (version 1.0.3)",
41     comments = "Source: voicemail_transcription.proto")
42 public class VoicemailTranscriptionServiceGrpc {
43 
VoicemailTranscriptionServiceGrpc()44   private VoicemailTranscriptionServiceGrpc() {}
45 
46   public static final String SERVICE_NAME = "google.internal.communications.voicemailtranscription.v1.VoicemailTranscriptionService";
47 
48   // Static method descriptors that strictly reflect the proto.
49   @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
50   public static final io.grpc.MethodDescriptor<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest,
51       com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailResponse> METHOD_TRANSCRIBE_VOICEMAIL =
52       io.grpc.MethodDescriptor.create(
53           io.grpc.MethodDescriptor.MethodType.UNARY,
54           generateFullMethodName(
55               "google.internal.communications.voicemailtranscription.v1.VoicemailTranscriptionService", "TranscribeVoicemail"),
56           io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest.getDefaultInstance()),
57           io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailResponse.getDefaultInstance()));
58   @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
59   public static final io.grpc.MethodDescriptor<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest,
60       com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncResponse> METHOD_TRANSCRIBE_VOICEMAIL_ASYNC =
61       io.grpc.MethodDescriptor.create(
62           io.grpc.MethodDescriptor.MethodType.UNARY,
63           generateFullMethodName(
64               "google.internal.communications.voicemailtranscription.v1.VoicemailTranscriptionService", "TranscribeVoicemailAsync"),
65           io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest.getDefaultInstance()),
66           io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncResponse.getDefaultInstance()));
67   @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
68   public static final io.grpc.MethodDescriptor<com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest,
69       com.google.internal.communications.voicemailtranscription.v1.GetTranscriptResponse> METHOD_GET_TRANSCRIPT =
70       io.grpc.MethodDescriptor.create(
71           io.grpc.MethodDescriptor.MethodType.UNARY,
72           generateFullMethodName(
73               "google.internal.communications.voicemailtranscription.v1.VoicemailTranscriptionService", "GetTranscript"),
74           io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest.getDefaultInstance()),
75           io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(com.google.internal.communications.voicemailtranscription.v1.GetTranscriptResponse.getDefaultInstance()));
76   @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
77   public static final io.grpc.MethodDescriptor<com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest,
78       com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackResponse> METHOD_SEND_TRANSCRIPTION_FEEDBACK =
79       io.grpc.MethodDescriptor.create(
80           io.grpc.MethodDescriptor.MethodType.UNARY,
81           generateFullMethodName(
82               "google.internal.communications.voicemailtranscription.v1.VoicemailTranscriptionService", "SendTranscriptionFeedback"),
83           io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest.getDefaultInstance()),
84           io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackResponse.getDefaultInstance()));
85 
86   /**
87    * Creates a new async stub that supports all call types for the service
88    */
newStub(io.grpc.Channel channel)89   public static VoicemailTranscriptionServiceStub newStub(io.grpc.Channel channel) {
90     return new VoicemailTranscriptionServiceStub(channel);
91   }
92 
93   /**
94    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
95    */
newBlockingStub( io.grpc.Channel channel)96   public static VoicemailTranscriptionServiceBlockingStub newBlockingStub(
97       io.grpc.Channel channel) {
98     return new VoicemailTranscriptionServiceBlockingStub(channel);
99   }
100 
101   /**
102    * Creates a new ListenableFuture-style stub that supports unary and streaming output calls on the service
103    */
newFutureStub( io.grpc.Channel channel)104   public static VoicemailTranscriptionServiceFutureStub newFutureStub(
105       io.grpc.Channel channel) {
106     return new VoicemailTranscriptionServiceFutureStub(channel);
107   }
108 
109   /**
110    * <pre>
111    * RPC service for transcribing voicemails.
112    * </pre>
113    */
114   public static abstract class VoicemailTranscriptionServiceImplBase implements io.grpc.BindableService {
115 
116     /**
117      * <pre>
118      * Returns a transcript of the given voicemail.
119      * </pre>
120      */
transcribeVoicemail(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest request, io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailResponse> responseObserver)121     public void transcribeVoicemail(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest request,
122         io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailResponse> responseObserver) {
123       asyncUnimplementedUnaryCall(METHOD_TRANSCRIBE_VOICEMAIL, responseObserver);
124     }
125 
126     /**
127      * <pre>
128      * Schedules a transcription of the given voicemail. The transcript can be
129      * retrieved using the returned ID.
130      * </pre>
131      */
transcribeVoicemailAsync(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest request, io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncResponse> responseObserver)132     public void transcribeVoicemailAsync(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest request,
133         io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncResponse> responseObserver) {
134       asyncUnimplementedUnaryCall(METHOD_TRANSCRIBE_VOICEMAIL_ASYNC, responseObserver);
135     }
136 
137     /**
138      * <pre>
139      * Returns the transcript corresponding to the given ID, which was returned
140      * by TranscribeVoicemailAsync.
141      * </pre>
142      */
getTranscript(com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest request, io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.GetTranscriptResponse> responseObserver)143     public void getTranscript(com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest request,
144         io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.GetTranscriptResponse> responseObserver) {
145       asyncUnimplementedUnaryCall(METHOD_GET_TRANSCRIPT, responseObserver);
146     }
147 
148     /**
149      * <pre>
150      * Uploads user's transcription feedback. Feedback will only be collected from
151      * user's who have consented to donate their voicemails.
152      * </pre>
153      */
sendTranscriptionFeedback(com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest request, io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackResponse> responseObserver)154     public void sendTranscriptionFeedback(com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest request,
155         io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackResponse> responseObserver) {
156       asyncUnimplementedUnaryCall(METHOD_SEND_TRANSCRIPTION_FEEDBACK, responseObserver);
157     }
158 
bindService()159     @java.lang.Override public io.grpc.ServerServiceDefinition bindService() {
160       return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
161           .addMethod(
162             METHOD_TRANSCRIBE_VOICEMAIL,
163             asyncUnaryCall(
164               new MethodHandlers<
165                 com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest,
166                 com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailResponse>(
167                   this, METHODID_TRANSCRIBE_VOICEMAIL)))
168           .addMethod(
169             METHOD_TRANSCRIBE_VOICEMAIL_ASYNC,
170             asyncUnaryCall(
171               new MethodHandlers<
172                 com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest,
173                 com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncResponse>(
174                   this, METHODID_TRANSCRIBE_VOICEMAIL_ASYNC)))
175           .addMethod(
176             METHOD_GET_TRANSCRIPT,
177             asyncUnaryCall(
178               new MethodHandlers<
179                 com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest,
180                 com.google.internal.communications.voicemailtranscription.v1.GetTranscriptResponse>(
181                   this, METHODID_GET_TRANSCRIPT)))
182           .addMethod(
183             METHOD_SEND_TRANSCRIPTION_FEEDBACK,
184             asyncUnaryCall(
185               new MethodHandlers<
186                 com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest,
187                 com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackResponse>(
188                   this, METHODID_SEND_TRANSCRIPTION_FEEDBACK)))
189           .build();
190     }
191   }
192 
193   /**
194    * <pre>
195    * RPC service for transcribing voicemails.
196    * </pre>
197    */
198   public static final class VoicemailTranscriptionServiceStub extends io.grpc.stub.AbstractStub<VoicemailTranscriptionServiceStub> {
VoicemailTranscriptionServiceStub(io.grpc.Channel channel)199     private VoicemailTranscriptionServiceStub(io.grpc.Channel channel) {
200       super(channel);
201     }
202 
VoicemailTranscriptionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)203     private VoicemailTranscriptionServiceStub(io.grpc.Channel channel,
204         io.grpc.CallOptions callOptions) {
205       super(channel, callOptions);
206     }
207 
208     @java.lang.Override
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)209     protected VoicemailTranscriptionServiceStub build(io.grpc.Channel channel,
210         io.grpc.CallOptions callOptions) {
211       return new VoicemailTranscriptionServiceStub(channel, callOptions);
212     }
213 
214     /**
215      * <pre>
216      * Returns a transcript of the given voicemail.
217      * </pre>
218      */
transcribeVoicemail(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest request, io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailResponse> responseObserver)219     public void transcribeVoicemail(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest request,
220         io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailResponse> responseObserver) {
221       asyncUnaryCall(
222           getChannel().newCall(METHOD_TRANSCRIBE_VOICEMAIL, getCallOptions()), request, responseObserver);
223     }
224 
225     /**
226      * <pre>
227      * Schedules a transcription of the given voicemail. The transcript can be
228      * retrieved using the returned ID.
229      * </pre>
230      */
transcribeVoicemailAsync(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest request, io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncResponse> responseObserver)231     public void transcribeVoicemailAsync(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest request,
232         io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncResponse> responseObserver) {
233       asyncUnaryCall(
234           getChannel().newCall(METHOD_TRANSCRIBE_VOICEMAIL_ASYNC, getCallOptions()), request, responseObserver);
235     }
236 
237     /**
238      * <pre>
239      * Returns the transcript corresponding to the given ID, which was returned
240      * by TranscribeVoicemailAsync.
241      * </pre>
242      */
getTranscript(com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest request, io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.GetTranscriptResponse> responseObserver)243     public void getTranscript(com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest request,
244         io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.GetTranscriptResponse> responseObserver) {
245       asyncUnaryCall(
246           getChannel().newCall(METHOD_GET_TRANSCRIPT, getCallOptions()), request, responseObserver);
247     }
248 
249     /**
250      * <pre>
251      * Uploads user's transcription feedback. Feedback will only be collected from
252      * user's who have consented to donate their voicemails.
253      * </pre>
254      */
sendTranscriptionFeedback(com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest request, io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackResponse> responseObserver)255     public void sendTranscriptionFeedback(com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest request,
256         io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackResponse> responseObserver) {
257       asyncUnaryCall(
258           getChannel().newCall(METHOD_SEND_TRANSCRIPTION_FEEDBACK, getCallOptions()), request, responseObserver);
259     }
260   }
261 
262   /**
263    * <pre>
264    * RPC service for transcribing voicemails.
265    * </pre>
266    */
267   public static final class VoicemailTranscriptionServiceBlockingStub extends io.grpc.stub.AbstractStub<VoicemailTranscriptionServiceBlockingStub> {
VoicemailTranscriptionServiceBlockingStub(io.grpc.Channel channel)268     private VoicemailTranscriptionServiceBlockingStub(io.grpc.Channel channel) {
269       super(channel);
270     }
271 
VoicemailTranscriptionServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)272     private VoicemailTranscriptionServiceBlockingStub(io.grpc.Channel channel,
273         io.grpc.CallOptions callOptions) {
274       super(channel, callOptions);
275     }
276 
277     @java.lang.Override
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)278     protected VoicemailTranscriptionServiceBlockingStub build(io.grpc.Channel channel,
279         io.grpc.CallOptions callOptions) {
280       return new VoicemailTranscriptionServiceBlockingStub(channel, callOptions);
281     }
282 
283     /**
284      * <pre>
285      * Returns a transcript of the given voicemail.
286      * </pre>
287      */
transcribeVoicemail(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest request)288     public com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailResponse transcribeVoicemail(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest request) {
289       return blockingUnaryCall(
290           getChannel(), METHOD_TRANSCRIBE_VOICEMAIL, getCallOptions(), request);
291     }
292 
293     /**
294      * <pre>
295      * Schedules a transcription of the given voicemail. The transcript can be
296      * retrieved using the returned ID.
297      * </pre>
298      */
transcribeVoicemailAsync(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest request)299     public com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncResponse transcribeVoicemailAsync(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest request) {
300       return blockingUnaryCall(
301           getChannel(), METHOD_TRANSCRIBE_VOICEMAIL_ASYNC, getCallOptions(), request);
302     }
303 
304     /**
305      * <pre>
306      * Returns the transcript corresponding to the given ID, which was returned
307      * by TranscribeVoicemailAsync.
308      * </pre>
309      */
getTranscript(com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest request)310     public com.google.internal.communications.voicemailtranscription.v1.GetTranscriptResponse getTranscript(com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest request) {
311       return blockingUnaryCall(
312           getChannel(), METHOD_GET_TRANSCRIPT, getCallOptions(), request);
313     }
314 
315     /**
316      * <pre>
317      * Uploads user's transcription feedback. Feedback will only be collected from
318      * user's who have consented to donate their voicemails.
319      * </pre>
320      */
sendTranscriptionFeedback(com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest request)321     public com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackResponse sendTranscriptionFeedback(com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest request) {
322       return blockingUnaryCall(
323           getChannel(), METHOD_SEND_TRANSCRIPTION_FEEDBACK, getCallOptions(), request);
324     }
325   }
326 
327   /**
328    * <pre>
329    * RPC service for transcribing voicemails.
330    * </pre>
331    */
332   public static final class VoicemailTranscriptionServiceFutureStub extends io.grpc.stub.AbstractStub<VoicemailTranscriptionServiceFutureStub> {
VoicemailTranscriptionServiceFutureStub(io.grpc.Channel channel)333     private VoicemailTranscriptionServiceFutureStub(io.grpc.Channel channel) {
334       super(channel);
335     }
336 
VoicemailTranscriptionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)337     private VoicemailTranscriptionServiceFutureStub(io.grpc.Channel channel,
338         io.grpc.CallOptions callOptions) {
339       super(channel, callOptions);
340     }
341 
342     @java.lang.Override
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)343     protected VoicemailTranscriptionServiceFutureStub build(io.grpc.Channel channel,
344         io.grpc.CallOptions callOptions) {
345       return new VoicemailTranscriptionServiceFutureStub(channel, callOptions);
346     }
347 
348     /**
349      * <pre>
350      * Returns a transcript of the given voicemail.
351      * </pre>
352      */
transcribeVoicemail( com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest request)353     public com.google.common.util.concurrent.ListenableFuture<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailResponse> transcribeVoicemail(
354         com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest request) {
355       return futureUnaryCall(
356           getChannel().newCall(METHOD_TRANSCRIBE_VOICEMAIL, getCallOptions()), request);
357     }
358 
359     /**
360      * <pre>
361      * Schedules a transcription of the given voicemail. The transcript can be
362      * retrieved using the returned ID.
363      * </pre>
364      */
transcribeVoicemailAsync( com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest request)365     public com.google.common.util.concurrent.ListenableFuture<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncResponse> transcribeVoicemailAsync(
366         com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest request) {
367       return futureUnaryCall(
368           getChannel().newCall(METHOD_TRANSCRIBE_VOICEMAIL_ASYNC, getCallOptions()), request);
369     }
370 
371     /**
372      * <pre>
373      * Returns the transcript corresponding to the given ID, which was returned
374      * by TranscribeVoicemailAsync.
375      * </pre>
376      */
getTranscript( com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest request)377     public com.google.common.util.concurrent.ListenableFuture<com.google.internal.communications.voicemailtranscription.v1.GetTranscriptResponse> getTranscript(
378         com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest request) {
379       return futureUnaryCall(
380           getChannel().newCall(METHOD_GET_TRANSCRIPT, getCallOptions()), request);
381     }
382 
383     /**
384      * <pre>
385      * Uploads user's transcription feedback. Feedback will only be collected from
386      * user's who have consented to donate their voicemails.
387      * </pre>
388      */
sendTranscriptionFeedback( com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest request)389     public com.google.common.util.concurrent.ListenableFuture<com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackResponse> sendTranscriptionFeedback(
390         com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest request) {
391       return futureUnaryCall(
392           getChannel().newCall(METHOD_SEND_TRANSCRIPTION_FEEDBACK, getCallOptions()), request);
393     }
394   }
395 
396   private static final int METHODID_TRANSCRIBE_VOICEMAIL = 0;
397   private static final int METHODID_TRANSCRIBE_VOICEMAIL_ASYNC = 1;
398   private static final int METHODID_GET_TRANSCRIPT = 2;
399   private static final int METHODID_SEND_TRANSCRIPTION_FEEDBACK = 3;
400 
401   private static class MethodHandlers<Req, Resp> implements
402       io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
403       io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
404       io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
405       io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
406     private final VoicemailTranscriptionServiceImplBase serviceImpl;
407     private final int methodId;
408 
MethodHandlers(VoicemailTranscriptionServiceImplBase serviceImpl, int methodId)409     public MethodHandlers(VoicemailTranscriptionServiceImplBase serviceImpl, int methodId) {
410       this.serviceImpl = serviceImpl;
411       this.methodId = methodId;
412     }
413 
414     @java.lang.Override
415     @java.lang.SuppressWarnings("unchecked")
invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver)416     public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
417       switch (methodId) {
418         case METHODID_TRANSCRIBE_VOICEMAIL:
419           serviceImpl.transcribeVoicemail((com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest) request,
420               (io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailResponse>) responseObserver);
421           break;
422         case METHODID_TRANSCRIBE_VOICEMAIL_ASYNC:
423           serviceImpl.transcribeVoicemailAsync((com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest) request,
424               (io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncResponse>) responseObserver);
425           break;
426         case METHODID_GET_TRANSCRIPT:
427           serviceImpl.getTranscript((com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest) request,
428               (io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.GetTranscriptResponse>) responseObserver);
429           break;
430         case METHODID_SEND_TRANSCRIPTION_FEEDBACK:
431           serviceImpl.sendTranscriptionFeedback((com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest) request,
432               (io.grpc.stub.StreamObserver<com.google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackResponse>) responseObserver);
433           break;
434         default:
435           throw new AssertionError();
436       }
437     }
438 
439     @java.lang.Override
440     @java.lang.SuppressWarnings("unchecked")
invoke( io.grpc.stub.StreamObserver<Resp> responseObserver)441     public io.grpc.stub.StreamObserver<Req> invoke(
442         io.grpc.stub.StreamObserver<Resp> responseObserver) {
443       switch (methodId) {
444         default:
445           throw new AssertionError();
446       }
447     }
448   }
449 
getServiceDescriptor()450   public static io.grpc.ServiceDescriptor getServiceDescriptor() {
451     return new io.grpc.ServiceDescriptor(SERVICE_NAME,
452         METHOD_TRANSCRIBE_VOICEMAIL,
453         METHOD_TRANSCRIBE_VOICEMAIL_ASYNC,
454         METHOD_GET_TRANSCRIPT,
455         METHOD_SEND_TRANSCRIPTION_FEEDBACK);
456   }
457 
458 }
459